2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
266 if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
269 elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
280 if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
316 # So, first we look for a working echo in the user's PATH.
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
368 # maybe with a smaller string...
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384 # Oops. We lost completely, so just stick with echo.
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file="src/feature.h"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471 ac_subst_files='MCOMMON'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
945 # Report the --help message.
947 if test "$ac_init_help" = "long"; then
948 # Omit some internal or obsolete options to make the list less imposing.
949 # This message is too long to be a string in the A/UX 3.1 sh.
951 \`configure' configures this package to adapt to many kinds of systems.
953 Usage: $0 [OPTION]... [VAR=VALUE]...
955 To assign environment variables (e.g., CC, CFLAGS...), specify them as
956 VAR=VALUE. See below for descriptions of some of the useful variables.
958 Defaults for the options are specified in brackets.
961 -h, --help display this help and exit
962 --help=short display options specific to this package
963 --help=recursive display the short help of all the included packages
964 -V, --version display version information and exit
965 -q, --quiet, --silent do not print \`checking...' messages
966 --cache-file=FILE cache test results in FILE [disabled]
967 -C, --config-cache alias for \`--cache-file=config.cache'
968 -n, --no-create do not create output files
969 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974 Installation directories:
975 --prefix=PREFIX install architecture-independent files in PREFIX
977 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
980 By default, \`make install' will install all the files in
981 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
982 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
983 for instance \`--prefix=\$HOME'.
985 For better control, use the options below.
987 Fine tuning of the installation directories:
988 --bindir=DIR user executables [EPREFIX/bin]
989 --sbindir=DIR system admin executables [EPREFIX/sbin]
990 --libexecdir=DIR program executables [EPREFIX/libexec]
991 --datadir=DIR read-only architecture-independent data [PREFIX/share]
992 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
993 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
994 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
995 --libdir=DIR object code libraries [EPREFIX/lib]
996 --includedir=DIR C header files [PREFIX/include]
997 --oldincludedir=DIR C header files for non-gcc [/usr/include]
998 --infodir=DIR info documentation [PREFIX/info]
999 --mandir=DIR man documentation [PREFIX/man]
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg
1042 --enable-fading enable colors fading when off focus
1043 --enable-menubar enable menubar
1044 --enable-rxvt-scroll enable rxvt style scrollbar
1045 --enable-next-scroll enable NeXT style scrollbar
1046 --enable-xterm-scroll enable Xterm style scrollbar
1047 --enable-plain-scroll enable plain style scrollbar
1048 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1049 --enable-xim XIM (X Input Method) protocol support
1050 --enable-ttygid enable tty setting to group named "tty"
1051 --disable-backspace-key disable handling of the backspace key
1052 --disable-delete-key disable handling of the delete key
1053 --disable-resources disable all resource checking
1054 --enable-xgetdefault enable resources via X instead of our small version
1055 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1056 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1057 --enable-strings enable some replacement system functions
1058 --disable-swapscreen disable swap screen support
1059 --enable-frills enable support for rarely used features
1060 --enable-linespace enable support for linespace
1061 --enable-24bit enable support for using 24bit visuals if available
1062 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1063 --enable-selectionscrolling enable scrolling during selections
1064 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1065 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1066 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1067 --enable-dlmalloc enable Doug Lea's malloc - for production use
1068 NOTE: enable only one malloc package
1069 --enable-smart-resize enable smart growth/shrink behaviour
1070 --enable-256-color enable 256-color support
1071 --enable-cursor-blink enable blinking cursor
1072 --enable-text-blink enable blinking text
1073 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1076 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1077 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1078 --with-gnu-ld assume the C compiler uses GNU ld default=no
1079 --with-pic try to use only PIC/non-PIC objects default=use both
1080 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
1081 --with-res-name=NAME use this as default resource name (default: urxvt)
1082 --with-res-class=CLASS use this as the resource class (default: URxvt)
1083 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1084 --with-term=NAME set the terminal to NAME (default: rxvt)
1085 --with-terminfo=PATH set the path to the terminfo tree to PATH
1086 --with-x use the X Window System
1087 --with-xpm-includes=DIR use XPM includes in DIR
1088 --with-xpm-library=DIR use XPM library in DIR
1091 Some influential environment variables:
1092 CC C compiler command
1093 CFLAGS C compiler flags
1094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1095 nonstandard directory <lib dir>
1096 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1097 headers in a nonstandard directory <include dir>
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1101 CXXCPP C++ preprocessor
1103 Use these variables to override the choices made by `configure' or to help
1104 it to find libraries and programs with nonstandard names/locations.
1109 if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1116 if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121 ac_dir_suffix= ac_top_builddir=
1125 .) # No --srcdir option. We are building in place.
1127 if test -z "$ac_top_builddir"; then
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1140 # Do not use `cd foo && pwd` to compute absolute paths, because
1141 # the directories may not exist.
1143 .) ac_abs_builddir="$ac_dir";;
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
1188 test -f $ac_srcdir/configure.in; then
1190 $ac_configure --help
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1202 Copyright (C) 2003 Free Software Foundation, Inc.
1203 This configure script is free software; the Free Software Foundation
1204 gives unlimited permission to copy, distribute and modify it.
1210 This file contains any messages produced by compilers while
1211 running configure, to aid debugging if configure makes a mistake.
1213 It was created by $as_me, which was
1214 generated by GNU Autoconf 2.59. Invocation command line was
1225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248 test -z "$as_dir" && as_dir=.
1249 echo "PATH: $as_dir"
1264 # Keep a trace of the command line.
1265 # Strip out --no-create and --no-recursion so they do not pile up.
1266 # Strip out --silent because we don't want to record it for future runs.
1267 # Also quote any args containing shell meta-characters.
1268 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_must_keep_next=false
1279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290 if test $ac_must_keep_next = true; then
1291 ac_must_keep_next=false # Got value, back to normal.
1294 *=* | --config-cache | -C | -disable-* | --disable-* \
1295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297 | -with-* | --with-* | -without-* | --without-* | --x)
1298 case "$ac_configure_args0 " in
1299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 -* ) ac_must_keep_next=true ;;
1305 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306 # Get rid of the leading space.
1312 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315 # When interrupted or exit'd, cleanup temporary files, and complete
1316 # config.log. We remove comments because anyway the quotes in there
1317 # would cause problems or look ugly.
1318 # WARNING: Be sure not to use single quotes in there, as some shells,
1319 # such as our DU 5.0 friend, will then `close' the trap.
1320 trap 'exit_status=$?
1321 # Save into config.log some information that might help in debugging.
1326 ## ---------------- ##
1327 ## Cache variables. ##
1328 ## ---------------- ##
1331 # The following way of writing the cache mishandles newlines in values,
1334 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1349 ## ----------------- ##
1350 ## Output variables. ##
1351 ## ----------------- ##
1354 for ac_var in $ac_subst_vars
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1361 if test -n "$ac_subst_files"; then
1368 for ac_var in $ac_subst_files
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1376 if test -s confdefs.h; then
1383 sed "/^$/d" confdefs.h | sort
1386 test "$ac_signal" != 0 &&
1387 echo "$as_me: caught signal $ac_signal"
1388 echo "$as_me: exit $exit_status"
1390 rm -f core *.core &&
1391 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 for ac_signal in 1 2 13 15; do
1395 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1400 rm -rf conftest* confdefs.h
1401 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404 # Predefined preprocessor variables.
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_NAME "$PACKAGE_NAME"
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_STRING "$PACKAGE_STRING"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431 # Let the site file select an alternate cache file if it wants to.
1432 # Prefer explicitly selected file to automatically selected ones.
1433 if test -z "$CONFIG_SITE"; then
1434 if test "x$prefix" != xNONE; then
1435 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 for ac_site_file in $CONFIG_SITE; do
1441 if test -r "$ac_site_file"; then
1442 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443 echo "$as_me: loading site script $ac_site_file" >&6;}
1444 sed 's/^/| /' "$ac_site_file" >&5
1449 if test -r "$cache_file"; then
1450 # Some versions of bash will fail to source /dev/null (special
1451 # files actually), so we avoid doing that.
1452 if test -f "$cache_file"; then
1453 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454 echo "$as_me: loading cache $cache_file" >&6;}
1456 [\\/]* | ?:[\\/]* ) . $cache_file;;
1457 *) . ./$cache_file;;
1461 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462 echo "$as_me: creating cache $cache_file" >&6;}
1466 # Check that the precious variables saved in the cache have kept the same
1468 ac_cache_corrupted=false
1469 for ac_var in `(set) 2>&1 |
1470 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472 eval ac_new_set=\$ac_env_${ac_var}_set
1473 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474 eval ac_new_val="\$ac_env_${ac_var}_value"
1475 case $ac_old_set,$ac_new_set in
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1486 if test "x$ac_old_val" != "x$ac_new_val"; then
1487 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1490 echo "$as_me: former value: $ac_old_val" >&2;}
1491 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1492 echo "$as_me: current value: $ac_new_val" >&2;}
1493 ac_cache_corrupted=:
1496 # Pass precious variables to config.status.
1497 if test "$ac_new_set" = set; then
1499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501 *) ac_arg=$ac_var=$ac_new_val ;;
1503 case " $ac_configure_args " in
1504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1505 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 if $ac_cache_corrupted; then
1510 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514 { (exit 1); exit 1; }; }
1518 ac_cpp='$CPP $CPPFLAGS'
1519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542 for ac_dir in autoconf $srcdir/autoconf; do
1543 if test -f $ac_dir/install-sh; then
1545 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 elif test -f $ac_dir/install.sh; then
1549 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 elif test -f $ac_dir/shtool; then
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1559 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1560 { (exit 1); exit 1; }; }
1562 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1569 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571 LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1572 LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1574 echo "configuring for rxvt $VERSION"
1579 ac_cpp='$CPP $CPPFLAGS'
1580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 if test -n "$CC"; then
1612 echo "$as_me:$LINENO: result: $CC" >&5
1613 echo "${ECHO_T}$CC" >&6
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1620 if test -z "$ac_cv_prog_CC"; then
1622 # Extract the first word of "gcc", so it can be a program name with args.
1623 set dummy gcc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$ac_ct_CC"; then
1630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_CC="gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1649 if test -n "$ac_ct_CC"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1651 echo "${ECHO_T}$ac_ct_CC" >&6
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1662 if test -z "$CC"; then
1663 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1665 set dummy ${ac_tool_prefix}cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="${ac_tool_prefix}cc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$ac_cv_prog_CC"; then
1702 # Extract the first word of "cc", so it can be a program name with args.
1703 set dummy cc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 if test -n "$ac_ct_CC"; then
1710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_ac_ct_CC="cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729 if test -n "$ac_ct_CC"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731 echo "${ECHO_T}$ac_ct_CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1743 if test -z "$CC"; then
1744 # Extract the first word of "cc", so it can be a program name with args.
1745 set dummy cc; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1763 ac_prog_rejected=yes
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test $ac_prog_rejected = yes; then
1774 # We found a bogon in the path, so make sure we never use it.
1775 set dummy $ac_cv_prog_CC
1777 if test $# != 0; then
1778 # We chose a different compiler from the bogus one.
1779 # However, it has the same basename, so the bogon will be chosen
1780 # first if we set CC to just the basename; use the full file name.
1782 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$CC"; then
1798 if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 if test -n "$CC"; then
1829 echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1836 test -n "$CC" && break
1839 if test -z "$CC"; then
1843 # Extract the first word of "$ac_prog", so it can be a program name with args.
1844 set dummy $ac_prog; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_ac_ct_CC="$ac_prog"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870 if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872 echo "${ECHO_T}$ac_ct_CC" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1878 test -n "$ac_ct_CC" && break
1887 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: no acceptable C compiler found in \$PATH
1890 See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }
1893 # Provide some information about the compiler.
1894 echo "$as_me:$LINENO:" \
1895 "checking for C compiler version" >&5
1896 ac_compiler=`set X $ac_compile; echo $2`
1897 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1898 (eval $ac_compiler --version </dev/null >&5) 2>&5
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }
1902 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1903 (eval $ac_compiler -v </dev/null >&5) 2>&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1908 (eval $ac_compiler -V </dev/null >&5) 2>&5
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1913 cat >conftest.$ac_ext <<_ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h. */
1928 ac_clean_files_save=$ac_clean_files
1929 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1930 # Try to create an executable without -o first, disregard a.out.
1931 # It will help us diagnose broken compilers, and finding out an intuition
1933 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1934 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1935 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1936 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1937 (eval $ac_link_default) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 # Find the output, starting from the most likely. This scheme is
1942 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1945 # Be careful to initialize this variable, since it used to be cached.
1946 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1948 # b.out is created by i960 compilers.
1949 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1951 test -f "$ac_file" || continue
1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1956 # This is the source file.
1959 # We found the default executable, but exeext='' is most
1963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1964 # FIXME: I believe we export ac_cv_exeext for Libtool,
1965 # but it would be cool to find out if it's true. Does anybody
1966 # maintain Libtool? --akim.
1974 echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1977 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1978 See \`config.log' for more details." >&5
1979 echo "$as_me: error: C compiler cannot create executables
1980 See \`config.log' for more details." >&2;}
1981 { (exit 77); exit 77; }; }
1984 ac_exeext=$ac_cv_exeext
1985 echo "$as_me:$LINENO: result: $ac_file" >&5
1986 echo "${ECHO_T}$ac_file" >&6
1988 # Check the compiler produces executables we can run. If not, either
1989 # the compiler is broken, or we cross compile.
1990 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1991 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1992 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1993 # If not cross compiling, check that we can run a simple program.
1994 if test "$cross_compiling" != yes; then
1995 if { ac_try='./$ac_file'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; }; then
2003 if test "$cross_compiling" = maybe; then
2006 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2007 If you meant to cross compile, use \`--host'.
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot run C compiled programs.
2010 If you meant to cross compile, use \`--host'.
2011 See \`config.log' for more details." >&2;}
2012 { (exit 1); exit 1; }; }
2016 echo "$as_me:$LINENO: result: yes" >&5
2017 echo "${ECHO_T}yes" >&6
2019 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2020 ac_clean_files=$ac_clean_files_save
2021 # Check the compiler produces executables we can run. If not, either
2022 # the compiler is broken, or we cross compile.
2023 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2024 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2025 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2026 echo "${ECHO_T}$cross_compiling" >&6
2028 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2029 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2031 (eval $ac_link) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2036 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2037 # work properly (i.e., refer to `conftest.exe'), while it won't with
2039 for ac_file in conftest.exe conftest conftest.*; do
2040 test -f "$ac_file" || continue
2042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2051 See \`config.log' for more details." >&5
2052 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2053 See \`config.log' for more details." >&2;}
2054 { (exit 1); exit 1; }; }
2057 rm -f conftest$ac_cv_exeext
2058 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2059 echo "${ECHO_T}$ac_cv_exeext" >&6
2061 rm -f conftest.$ac_ext
2062 EXEEXT=$ac_cv_exeext
2064 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2065 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2066 if test "${ac_cv_objext+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >conftest.$ac_ext <<_ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 rm -f conftest.o conftest.obj
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2110 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2111 echo "${ECHO_T}$ac_cv_objext" >&6
2112 OBJEXT=$ac_cv_objext
2114 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2115 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2116 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 cat >conftest.$ac_ext <<_ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2169 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2170 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2171 GCC=`test $ac_compiler_gnu = yes && echo yes`
2172 ac_test_CFLAGS=${CFLAGS+set}
2173 ac_save_CFLAGS=$CFLAGS
2175 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2176 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2177 if test "${ac_cv_prog_cc_g+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 cat >conftest.$ac_ext <<_ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2199 grep -v '^ *+' conftest.er1 >conftest.err
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2227 if test "$ac_test_CFLAGS" = set; then
2228 CFLAGS=$ac_save_CFLAGS
2229 elif test $ac_cv_prog_cc_g = yes; then
2230 if test "$GCC" = yes; then
2236 if test "$GCC" = yes; then
2242 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2243 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 ac_cv_prog_cc_stdc=no
2249 cat >conftest.$ac_ext <<_ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2257 #include <sys/types.h>
2258 #include <sys/stat.h>
2259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2260 struct buf { int x; };
2261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2262 static char *e (p, i)
2268 static char *f (char * (*g) (char **, int), char **p, ...)
2273 s = g (p, va_arg (v,int));
2278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2279 function prototypes and stuff, but not '\xHH' hex character constants.
2280 These don't provoke an error unfortunately, instead are silently treated
2281 as 'x'. The following induces an error, until -std1 is added to get
2282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2283 array size at least. It's necessary to write '\x00'==0 to get something
2284 that's true only with -std1. */
2285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2287 int test (int i, double x);
2288 struct s1 {int (*f) (int a);};
2289 struct s2 {int (*f) (double a);};
2290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2296 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2301 # Don't try gcc -ansi; that turns off useful extensions and
2302 # breaks some systems' header files.
2303 # AIX -qlanglvl=ansi
2304 # Ultrix and OSF/1 -std1
2305 # HP-UX 10.20 and later -Ae
2306 # HP-UX older versions -Aa -D_HPUX_SOURCE
2307 # SVR4 -Xc -D__EXTENSIONS__
2308 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2310 CC="$ac_save_CC $ac_arg"
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cc_stdc=$ac_arg
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext
2341 rm -f conftest.$ac_ext conftest.$ac_objext
2346 case "x$ac_cv_prog_cc_stdc" in
2348 echo "$as_me:$LINENO: result: none needed" >&5
2349 echo "${ECHO_T}none needed" >&6 ;;
2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2352 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2353 CC="$CC $ac_cv_prog_cc_stdc" ;;
2356 # Some people use a C++ compiler to compile C. Since we use `exit',
2357 # in C++ we need to declare it. In case someone uses the same compiler
2358 # for both compiling C and C++ we need to have the C++ compiler decide
2359 # the declaration of exit, since it's the most demanding environment.
2360 cat >conftest.$ac_ext <<_ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>conftest.er1
2369 grep -v '^ *+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 for ac_declaration in \
2388 'extern "C" void std::exit (int) throw (); using std::exit;' \
2389 'extern "C" void std::exit (int); using std::exit;' \
2390 'extern "C" void exit (int) throw ();' \
2391 'extern "C" void exit (int);' \
2394 cat >conftest.$ac_ext <<_ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503 ac_cpp='$CXXCPP $CPPFLAGS'
2504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2507 if test -n "$ac_tool_prefix"; then
2508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CXX+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$CXX"; then
2518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 if test -n "$CXX"; then
2538 echo "$as_me:$LINENO: result: $CXX" >&5
2539 echo "${ECHO_T}$CXX" >&6
2541 echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2545 test -n "$CXX" && break
2548 if test -z "$CXX"; then
2550 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$ac_ct_CXX"; then
2560 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_ac_ct_CXX="$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2579 if test -n "$ac_ct_CXX"; then
2580 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2581 echo "${ECHO_T}$ac_ct_CXX" >&6
2583 echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2587 test -n "$ac_ct_CXX" && break
2589 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2595 # Provide some information about the compiler.
2596 echo "$as_me:$LINENO:" \
2597 "checking for C++ compiler version" >&5
2598 ac_compiler=`set X $ac_compile; echo $2`
2599 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2600 (eval $ac_compiler --version </dev/null >&5) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2605 (eval $ac_compiler -v </dev/null >&5) 2>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2610 (eval $ac_compiler -V </dev/null >&5) 2>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
2615 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2616 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2617 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2670 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2671 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2672 GXX=`test $ac_compiler_gnu = yes && echo yes`
2673 ac_test_CXXFLAGS=${CXXFLAGS+set}
2674 ac_save_CXXFLAGS=$CXXFLAGS
2676 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2677 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2678 if test "${ac_cv_prog_cxx_g+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_prog_cxx_g=yes
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2728 if test "$ac_test_CXXFLAGS" = set; then
2729 CXXFLAGS=$ac_save_CXXFLAGS
2730 elif test $ac_cv_prog_cxx_g = yes; then
2731 if test "$GXX" = yes; then
2737 if test "$GXX" = yes; then
2743 for ac_declaration in \
2745 'extern "C" void std::exit (int) throw (); using std::exit;' \
2746 'extern "C" void std::exit (int); using std::exit;' \
2747 'extern "C" void exit (int) throw ();' \
2748 'extern "C" void exit (int);' \
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 cat >conftest.$ac_ext <<_ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2815 grep -v '^ *+' conftest.er1 >conftest.err
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 if test -n "$ac_declaration"; then
2842 echo '#ifdef __cplusplus' >>confdefs.h
2843 echo $ac_declaration >>confdefs.h
2844 echo '#endif' >>confdefs.h
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2859 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2860 # On Suns, sometimes $CPP names a directory.
2861 if test -n "$CPP" && test -d "$CPP"; then
2864 if test -z "$CPP"; then
2865 if test "${ac_cv_prog_CPP+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 # Double quotes because CPP needs to be expanded
2869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2872 for ac_c_preproc_warn_flag in '' yes
2874 # Use a header file that comes with gcc, so configuring glibc
2875 # with a fresh cross-compiler works.
2876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2877 # <limits.h> exists even on freestanding compilers.
2878 # On the NeXT, cc -E runs the code through the compiler's parser,
2879 # not just through cpp. "Syntax error" is here to catch this case.
2880 cat >conftest.$ac_ext <<_ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2887 # include <limits.h>
2889 # include <assert.h>
2893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } >/dev/null; then
2901 if test -s conftest.err; then
2902 ac_cpp_err=$ac_c_preproc_warn_flag
2903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2910 if test -z "$ac_cpp_err"; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 # Broken: fails on valid input.
2919 rm -f conftest.err conftest.$ac_ext
2921 # OK, works on sane cases. Now check whether non-existent headers
2922 # can be detected and how.
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #include <ac_nonexistent.h>
2931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2934 grep -v '^ *+' conftest.er1 >conftest.err
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null; then
2939 if test -s conftest.err; then
2940 ac_cpp_err=$ac_c_preproc_warn_flag
2941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2948 if test -z "$ac_cpp_err"; then
2949 # Broken: success on invalid input.
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 # Passes both tests.
2959 rm -f conftest.err conftest.$ac_ext
2962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963 rm -f conftest.err conftest.$ac_ext
2964 if $ac_preproc_ok; then
2976 echo "$as_me:$LINENO: result: $CPP" >&5
2977 echo "${ECHO_T}$CPP" >&6
2979 for ac_c_preproc_warn_flag in '' yes
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2994 # include <limits.h>
2996 # include <assert.h>
3000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev/null; then
3008 if test -s conftest.err; then
3009 ac_cpp_err=$ac_c_preproc_warn_flag
3010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017 if test -z "$ac_cpp_err"; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Broken: fails on valid input.
3026 rm -f conftest.err conftest.$ac_ext
3028 # OK, works on sane cases. Now check whether non-existent headers
3029 # can be detected and how.
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #include <ac_nonexistent.h>
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 if test -z "$ac_cpp_err"; then
3056 # Broken: success on invalid input.
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 # Passes both tests.
3066 rm -f conftest.err conftest.$ac_ext
3069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3070 rm -f conftest.err conftest.$ac_ext
3071 if $ac_preproc_ok; then
3074 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3075 See \`config.log' for more details." >&5
3076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3077 See \`config.log' for more details." >&2;}
3078 { (exit 1); exit 1; }; }
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 # Find a good install program. We prefer a C program (faster),
3088 # so one script is as good as another. But avoid the broken or
3089 # incompatible versions:
3090 # SysV /etc/install, /usr/sbin/install
3091 # SunOS /usr/etc/install
3092 # IRIX /sbin/install
3094 # AmigaOS /C/install, which installs bootblocks on floppy discs
3095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3098 # OS/2's system install, which has a completely different semantic
3099 # ./install, which can be erroneously created by make from ./install.sh.
3100 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3101 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3102 if test -z "$INSTALL"; then
3103 if test "${ac_cv_path_install+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 # Account for people who put trailing slashes in PATH elements.
3113 ./ | .// | /cC/* | \
3114 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3115 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3118 # OSF1 and SCO ODT 3.0 have their own names for install.
3119 # Don't use installbsd from OSF since it installs stuff as root
3121 for ac_prog in ginstall scoinst install; do
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3124 if test $ac_prog = install &&
3125 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3126 # AIX install. It has an incompatible calling convention.
3128 elif test $ac_prog = install &&
3129 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3130 # program-specific install script used by HP pwplus--don't use.
3133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL=$ac_cv_path_install
3148 # As a last resort, use the slow shell script. We don't cache a
3149 # path for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the path is relative.
3152 INSTALL=$ac_install_sh
3155 echo "$as_me:$LINENO: result: $INSTALL" >&5
3156 echo "${ECHO_T}$INSTALL" >&6
3158 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3159 # It thinks the first close brace ends the variable substitution.
3160 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3162 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3164 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3166 for ac_prog in gawk mawk nawk awk
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 echo "$as_me:$LINENO: checking for $ac_word" >&5
3171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3172 if test "${ac_cv_prog_AWK+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 if test -n "$AWK"; then
3176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_AWK="$ac_prog"
3186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 if test -n "$AWK"; then
3196 echo "$as_me:$LINENO: result: $AWK" >&5
3197 echo "${ECHO_T}$AWK" >&6
3199 echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 test -n "$AWK" && break
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test x$GCC = xyes && test x$GXX = xyes; then
3217 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3218 echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3219 if test "${ac_cv_lib_supcpp_main+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_check_lib_save_LIBS=$LIBS
3223 LIBS="-lsupc++ $LIBS"
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3240 rm -f conftest.$ac_objext conftest$ac_exeext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3242 (eval $ac_link) 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try='test -s conftest$ac_exeext'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_lib_supcpp_main=yes
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_cv_lib_supcpp_main=no
3268 rm -f conftest.err conftest.$ac_objext \
3269 conftest$ac_exeext conftest.$ac_ext
3270 LIBS=$ac_check_lib_save_LIBS
3272 echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3273 echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3274 if test $ac_cv_lib_supcpp_main = yes; then
3277 LIBS="$LIBS -lsupc++"
3285 CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3289 ac_cpp='$CXXCPP $CPPFLAGS'
3290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3297 ac_cpp='$CXXCPP $CPPFLAGS'
3298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3301 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3302 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3303 if test -z "$CXXCPP"; then
3304 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 # Double quotes because CXXCPP needs to be expanded
3308 for CXXCPP in "$CXX -E" "/lib/cpp"
3311 for ac_cxx_preproc_warn_flag in '' yes
3313 # Use a header file that comes with gcc, so configuring glibc
3314 # with a fresh cross-compiler works.
3315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3316 # <limits.h> exists even on freestanding compilers.
3317 # On the NeXT, cc -E runs the code through the compiler's parser,
3318 # not just through cpp. "Syntax error" is here to catch this case.
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3326 # include <limits.h>
3328 # include <assert.h>
3332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null; then
3340 if test -s conftest.err; then
3341 ac_cpp_err=$ac_cxx_preproc_warn_flag
3342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3349 if test -z "$ac_cpp_err"; then
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 # Broken: fails on valid input.
3358 rm -f conftest.err conftest.$ac_ext
3360 # OK, works on sane cases. Now check whether non-existent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <ac_nonexistent.h>
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_cxx_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3387 if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Passes both tests.
3398 rm -f conftest.err conftest.$ac_ext
3401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402 rm -f conftest.err conftest.$ac_ext
3403 if $ac_preproc_ok; then
3408 ac_cv_prog_CXXCPP=$CXXCPP
3411 CXXCPP=$ac_cv_prog_CXXCPP
3413 ac_cv_prog_CXXCPP=$CXXCPP
3415 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3416 echo "${ECHO_T}$CXXCPP" >&6
3418 for ac_cxx_preproc_warn_flag in '' yes
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 # include <limits.h>
3435 # include <assert.h>
3439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_cxx_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3456 if test -z "$ac_cpp_err"; then
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether non-existent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_cxx_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3513 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3521 ac_cpp='$CXXCPP $CPPFLAGS'
3522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527 echo "$as_me:$LINENO: checking for egrep" >&5
3528 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3529 if test "${ac_cv_prog_egrep+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3533 then ac_cv_prog_egrep='grep -E'
3534 else ac_cv_prog_egrep='egrep'
3537 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3538 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3539 EGREP=$ac_cv_prog_egrep
3543 echo "$as_me:$LINENO: checking for AIX" >&5
3544 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "yes" >/dev/null 2>&1; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559 echo "${ECHO_T}yes" >&6
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _ALL_SOURCE 1
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3571 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3572 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3573 if test "${ac_cv_search_strerror+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 ac_func_search_save_LIBS=$LIBS
3577 ac_cv_search_strerror=no
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3585 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3600 rm -f conftest.$ac_objext conftest$ac_exeext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest$ac_exeext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_cv_search_strerror="none required"
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f conftest.err conftest.$ac_objext \
3628 conftest$ac_exeext conftest.$ac_ext
3629 if test "$ac_cv_search_strerror" = no; then
3630 for ac_lib in cposix; do
3631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3639 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3654 rm -f conftest.$ac_objext conftest$ac_exeext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 ac_cv_search_strerror="-l$ac_lib"
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3682 rm -f conftest.err conftest.$ac_objext \
3683 conftest$ac_exeext conftest.$ac_ext
3686 LIBS=$ac_func_search_save_LIBS
3688 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3689 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3690 if test "$ac_cv_search_strerror" != no; then
3691 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3696 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3697 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3698 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_check_lib_save_LIBS=$LIBS
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3725 rm -f conftest.$ac_objext conftest$ac_exeext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 (eval $ac_link) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1 >conftest.err
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest$ac_exeext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_cv_lib_xpg4_setlocale=yes
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 ac_cv_lib_xpg4_setlocale=no
3753 rm -f conftest.err conftest.$ac_objext \
3754 conftest$ac_exeext conftest.$ac_ext
3755 LIBS=$ac_check_lib_save_LIBS
3757 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3758 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3759 if test $ac_cv_lib_xpg4_setlocale = yes; then
3764 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3765 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3766 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 ac_check_lib_save_LIBS=$LIBS
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3778 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3784 char gethostbyname ();
3793 rm -f conftest.$ac_objext conftest$ac_exeext
3794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3795 (eval $ac_link) 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_lib_nsl_gethostbyname=yes
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_cv_lib_nsl_gethostbyname=no
3821 rm -f conftest.err conftest.$ac_objext \
3822 conftest$ac_exeext conftest.$ac_ext
3823 LIBS=$ac_check_lib_save_LIBS
3825 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3826 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3827 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3831 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3832 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3833 if test "${ac_cv_lib_socket_socket+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_check_lib_save_LIBS=$LIBS
3837 LIBS="-lsocket $LIBS"
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3845 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3860 rm -f conftest.$ac_objext conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_lib_socket_socket=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_cv_lib_socket_socket=no
3888 rm -f conftest.err conftest.$ac_objext \
3889 conftest$ac_exeext conftest.$ac_ext
3890 LIBS=$ac_check_lib_save_LIBS
3892 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3893 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3894 if test $ac_cv_lib_socket_socket = yes; then
3895 LIBS="$LIBS -lsocket"
3899 # Check whether --enable-shared or --disable-shared was given.
3900 if test "${enable_shared+set}" = set; then
3901 enableval="$enable_shared"
3902 p=${PACKAGE-default}
3903 case "$enableval" in
3904 yes) enable_shared=yes ;;
3905 no) enable_shared=no ;;
3908 # Look at the argument we got. We use all the common list separators.
3909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3910 for pkg in $enableval; do
3911 if test "X$pkg" = "X$p"; then
3920 fi; # Check whether --enable-static or --disable-static was given.
3921 if test "${enable_static+set}" = set; then
3922 enableval="$enable_static"
3923 p=${PACKAGE-default}
3924 case "$enableval" in
3925 yes) enable_static=yes ;;
3926 no) enable_static=no ;;
3929 # Look at the argument we got. We use all the common list separators.
3930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3931 for pkg in $enableval; do
3932 if test "X$pkg" = "X$p"; then
3941 fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3942 if test "${enable_fast_install+set}" = set; then
3943 enableval="$enable_fast_install"
3944 p=${PACKAGE-default}
3945 case "$enableval" in
3946 yes) enable_fast_install=yes ;;
3947 no) enable_fast_install=no ;;
3949 enable_fast_install=no
3950 # Look at the argument we got. We use all the common list separators.
3951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3952 for pkg in $enableval; do
3953 if test "X$pkg" = "X$p"; then
3954 enable_fast_install=yes
3961 enable_fast_install=yes
3963 # Make sure we can run config.sub.
3964 $ac_config_sub sun4 >/dev/null 2>&1 ||
3965 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3966 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3967 { (exit 1); exit 1; }; }
3969 echo "$as_me:$LINENO: checking build system type" >&5
3970 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3971 if test "${ac_cv_build+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 ac_cv_build_alias=$build_alias
3975 test -z "$ac_cv_build_alias" &&
3976 ac_cv_build_alias=`$ac_config_guess`
3977 test -z "$ac_cv_build_alias" &&
3978 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3979 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3980 { (exit 1); exit 1; }; }
3981 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3982 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3983 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3984 { (exit 1); exit 1; }; }
3987 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3988 echo "${ECHO_T}$ac_cv_build" >&6
3990 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3991 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3992 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3995 echo "$as_me:$LINENO: checking host system type" >&5
3996 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3997 if test "${ac_cv_host+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 ac_cv_host_alias=$host_alias
4001 test -z "$ac_cv_host_alias" &&
4002 ac_cv_host_alias=$ac_cv_build_alias
4003 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4004 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4005 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4006 { (exit 1); exit 1; }; }
4009 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4010 echo "${ECHO_T}$ac_cv_host" >&6
4012 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4013 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4014 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4018 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4019 if test "${with_gnu_ld+set}" = set; then
4020 withval="$with_gnu_ld"
4021 test "$withval" = no || with_gnu_ld=yes
4026 if test "$GCC" = yes; then
4027 # Check if gcc -print-prog-name=ld gives a path.
4028 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4029 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4032 # gcc leaves a trailing carriage return which upsets mingw
4033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 # Accept absolute paths.
4039 [\\/]* | [A-Za-z]:[\\/]*)
4040 re_direlt='/[^/][^/]*/\.\./'
4041 # Canonicalize the path of ld
4042 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4043 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4044 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4046 test -z "$LD" && LD="$ac_prog"
4049 # If it fails, then pretend we aren't using GCC.
4053 # If it is relative, then search for the first ld in PATH.
4057 elif test "$with_gnu_ld" = yes; then
4058 echo "$as_me:$LINENO: checking for GNU ld" >&5
4059 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4061 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4062 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4064 if test "${lt_cv_path_LD+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test -z "$LD"; then
4068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4069 for ac_dir in $PATH; do
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4072 lt_cv_path_LD="$ac_dir/$ac_prog"
4073 # Check to see if the program is GNU ld. I'd rather use --version,
4074 # but apparently some GNU ld's only accept -v.
4075 # Break only if it was the GNU/non-GNU ld that we prefer.
4076 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4077 test "$with_gnu_ld" != no && break
4079 test "$with_gnu_ld" != yes && break
4085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4090 if test -n "$LD"; then
4091 echo "$as_me:$LINENO: result: $LD" >&5
4092 echo "${ECHO_T}$LD" >&6
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4097 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4098 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4099 { (exit 1); exit 1; }; }
4100 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4101 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4102 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4106 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4107 lt_cv_prog_gnu_ld=yes
4109 lt_cv_prog_gnu_ld=no
4112 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4113 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4114 with_gnu_ld=$lt_cv_prog_gnu_ld
4117 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4118 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4119 if test "${lt_cv_ld_reload_flag+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 lt_cv_ld_reload_flag='-r'
4124 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4125 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4126 reload_flag=$lt_cv_ld_reload_flag
4127 test -n "$reload_flag" && reload_flag=" $reload_flag"
4129 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4130 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4131 if test "${lt_cv_path_NM+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 if test -n "$NM"; then
4135 # Let the user override the test.
4138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4139 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4140 test -z "$ac_dir" && ac_dir=.
4141 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4142 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4143 # Check to see if the nm accepts a BSD-compat flag.
4144 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4145 # nm: unknown option "B" ignored
4146 # Tru64's nm complains that /dev/null is an invalid object file
4147 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4148 lt_cv_path_NM="$tmp_nm -B"
4150 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4151 lt_cv_path_NM="$tmp_nm -p"
4154 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4155 continue # so that we can try to find one that supports BSD flags
4160 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4165 echo "$as_me:$LINENO: result: $NM" >&5
4166 echo "${ECHO_T}$NM" >&6
4168 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4171 if test "$LN_S" = "ln -s"; then
4172 echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6
4175 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176 echo "${ECHO_T}no, using $LN_S" >&6
4179 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4180 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4181 if test "${lt_cv_deplibs_check_method+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 lt_cv_file_magic_cmd='$MAGIC_CMD'
4185 lt_cv_file_magic_test_file=
4186 lt_cv_deplibs_check_method='unknown'
4187 # Need to set the preceding variable on all platforms that support
4188 # interlibrary dependencies.
4189 # 'none' -- dependencies not supported.
4190 # `unknown' -- same as none, but documents that we really don't know.
4191 # 'pass_all' -- all dependencies passed with no checks.
4192 # 'test_compile' -- check by making test program.
4193 # ['file_magic [regex]'] -- check by looking for files in library path
4194 # which responds to the $file_magic_cmd with a given egrep regex.
4195 # If you have `file' or equivalent on your system and you're not sure
4196 # whether `pass_all' will *always* work, you probably want this one.
4200 lt_cv_deplibs_check_method=pass_all
4204 lt_cv_deplibs_check_method=pass_all
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209 lt_cv_file_magic_cmd='/usr/bin/file -L'
4210 lt_cv_file_magic_test_file=/shlib/libc.so
4213 cygwin* | mingw* | pw32*)
4214 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4215 lt_cv_file_magic_cmd='$OBJDUMP -f'
4219 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4220 lt_cv_file_magiic_cmd=/usr/bin/file
4221 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4225 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 # Not sure whether the presence of OpenBSD here was a mistake.
4229 # Let's accept both of them until this is cleared up.
4230 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4231 lt_cv_file_magic_cmd=/usr/bin/file
4232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4236 lt_cv_deplibs_check_method=pass_all
4241 lt_cv_deplibs_check_method=pass_all
4245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4246 lt_cv_file_magic_cmd=/usr/bin/file
4247 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4253 # this will be overridden with pass_all, but let us keep it just in case
4254 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4258 *-32|*"-32 ") libmagic=32-bit;;
4259 *-n32|*"-n32 ") libmagic=N32;;
4260 *-64|*"-64 ") libmagic=64-bit;;
4261 *) libmagic=never-match;;
4263 # this will be overridden with pass_all, but let us keep it just in case
4264 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4267 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4268 lt_cv_deplibs_check_method=pass_all
4271 # This must be Linux ELF.
4274 alpha* | i*86 | powerpc* | sparc* | ia64* )
4275 lt_cv_deplibs_check_method=pass_all ;;
4277 # glibc up to 2.1.1 does not perform some relocations on ARM
4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4280 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4284 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4285 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4289 lt_cv_file_magic_cmd='/usr/bin/file -L'
4290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4295 lt_cv_file_magic_cmd=/usr/bin/file
4296 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299 osf3* | osf4* | osf5*)
4300 # this will be overridden with pass_all, but let us keep it just in case
4301 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4302 lt_cv_file_magic_test_file=/shlib/libc.so
4303 lt_cv_deplibs_check_method=pass_all
4307 lt_cv_deplibs_check_method=pass_all
4311 lt_cv_deplibs_check_method=pass_all
4312 lt_cv_file_magic_test_file=/lib/libc.so
4315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4316 case "$host_vendor" in
4318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322 lt_cv_deplibs_check_method=pass_all
4325 lt_cv_file_magic_cmd='/bin/file'
4326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329 lt_cv_file_magic_cmd='/bin/file'
4330 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4331 lt_cv_file_magic_test_file=/lib/libc.so
4338 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4339 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4340 file_magic_cmd=$lt_cv_file_magic_cmd
4341 deplibs_check_method=$lt_cv_deplibs_check_method
4349 # Check for command to grab the raw symbol name followed by C symbol from nm.
4350 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4351 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4352 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 # These are sane defaults that work on at least a few old systems.
4357 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4359 # Character class describing NM global symbol codes.
4360 symcode='[BCDEGRST]'
4362 # Regexp to match symbols that can be accessed directly from C.
4363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4365 # Transform the above into a raw symbol and a C symbol.
4366 symxfrm='\1 \2\3 \3'
4368 # Transform an extracted symbol line into a proper C declaration
4369 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4371 # Define system-specific variables.
4376 cygwin* | mingw* | pw32*)
4377 symcode='[ABCDGISTW]'
4379 hpux*) # Its linker distinguishes data from code symbols
4380 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4383 symcode='[BCDEGRST]'
4393 # Handle CRLF in mingw tool chain
4397 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4401 # If we're using GNU nm, then use its standard symbol codes.
4402 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4403 symcode='[ABCDGISTW]'
4406 # Try without a prefix undercore, then with it.
4407 for ac_symprfx in "" "_"; do
4409 # Write the raw and C identifiers.
4410 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4412 # Check to see that the pipe works correctly.
4415 cat > conftest.$ac_ext <<EOF
4420 void nm_test_func(){}
4424 main(){nm_test_var='a';nm_test_func();return(0);}
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; then
4432 # Now try to grab the symbols.
4434 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4435 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } && test -s "$nlist"; then
4439 # Try sorting and uniquifying the output.
4440 if sort "$nlist" | uniq > "$nlist"T; then
4441 mv -f "$nlist"T "$nlist"
4446 # Make sure that we snagged all the symbols we need.
4447 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4448 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4449 cat <<EOF > conftest.$ac_ext
4455 # Now generate the symbol file.
4456 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4458 cat <<EOF >> conftest.$ac_ext
4459 #if defined (__STDC__) && __STDC__
4460 # define lt_ptr_t void *
4462 # define lt_ptr_t char *
4466 /* The mapping between symbol names and symbols. */
4471 lt_preloaded_symbols[] =
4474 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4475 cat <<\EOF >> conftest.$ac_ext
4483 # Now try linking the two files.
4484 mv conftest.$ac_objext conftstm.$ac_objext
4486 save_CFLAGS="$CFLAGS"
4487 LIBS="conftstm.$ac_objext"
4488 CFLAGS="$CFLAGS$no_builtin_flag"
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } && test -s conftest; then
4497 CFLAGS="$save_CFLAGS"
4499 echo "cannot find nm_test_func in $nlist" >&5
4502 echo "cannot find nm_test_var in $nlist" >&5
4505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4508 echo "$progname: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 rm -f conftest* conftst*
4513 # Do not use the global_symbol_pipe unless it works.
4514 if test "$pipe_works" = yes; then
4517 lt_cv_sys_global_symbol_pipe=
4523 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4525 global_symbol_to_cdecl=
4527 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4529 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4530 echo "$as_me:$LINENO: result: failed" >&5
4531 echo "${ECHO_T}failed" >&6
4533 echo "$as_me:$LINENO: result: ok" >&5
4534 echo "${ECHO_T}ok" >&6
4537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4539 if test "${ac_cv_header_stdc+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_cv_header_stdc=yes
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 ac_cv_header_stdc=no
4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4591 if test $ac_cv_header_stdc = yes; then
4592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "memchr" >/dev/null 2>&1; then
4606 ac_cv_header_stdc=no
4612 if test $ac_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "free" >/dev/null 2>&1; then
4627 ac_cv_header_stdc=no
4633 if test $ac_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4645 #if ((' ' & 0x0FF) == 0x020)
4646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649 # define ISLOWER(c) \
4650 (('a' <= (c) && (c) <= 'i') \
4651 || ('j' <= (c) && (c) <= 'r') \
4652 || ('s' <= (c) && (c) <= 'z'))
4653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661 for (i = 0; i < 256; i++)
4662 if (XOR (islower (i), ISLOWER (i))
4663 || toupper (i) != TOUPPER (i))
4668 rm -f conftest$ac_exeext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4670 (eval $ac_link) 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4681 echo "$as_me: program exited with status $ac_status" >&5
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_cv_header_stdc=no
4688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4692 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4693 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4694 if test $ac_cv_header_stdc = yes; then
4696 cat >>confdefs.h <<\_ACEOF
4697 #define STDC_HEADERS 1
4702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4713 inttypes.h stdint.h unistd.h
4715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716 echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4729 #include <$ac_header>
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 eval "$as_ac_Header=yes"
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 eval "$as_ac_Header=no"
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4764 cat >>confdefs.h <<_ACEOF
4765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 for ac_header in dlfcn.h
4776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo "$as_me:$LINENO: checking for $ac_header" >&5
4779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4786 # Is the header compilable?
4787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 $ac_includes_default
4796 #include <$ac_header>
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest.$ac_objext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 ac_header_compiler=yes
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 ac_header_compiler=no
4826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4828 echo "${ECHO_T}$ac_header_compiler" >&6
4830 # Is the header present?
4831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #include <$ac_header>
4841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1 >conftest.err
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_cxx_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4858 if test -z "$ac_cpp_err"; then
4859 ac_header_preproc=yes
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 ac_header_preproc=no
4866 rm -f conftest.err conftest.$ac_ext
4867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4868 echo "${ECHO_T}$ac_header_preproc" >&6
4870 # So? What about this header?
4871 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4877 ac_header_preproc=yes
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894 ## ------------------------------------------ ##
4895 ## Report this to the AC_PACKAGE_NAME lists. ##
4896 ## ------------------------------------------ ##
4899 sed "s/^/$as_me: WARNING: /" >&2
4902 echo "$as_me:$LINENO: checking for $ac_header" >&5
4903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 eval "$as_ac_Header=\$ac_header_preproc"
4909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4914 cat >>confdefs.h <<_ACEOF
4915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 # Only perform the check for file, if the check method requires it
4927 case "$deplibs_check_method" in
4929 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4930 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4931 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 case "$MAGIC_CMD" in
4937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943 ac_save_MAGIC_CMD="$MAGIC_CMD"
4944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4945 ac_dummy="/usr/bin:$PATH"
4946 for ac_dir in $ac_dummy; do
4947 test -z "$ac_dir" && ac_dir=.
4948 if test -f $ac_dir/${ac_tool_prefix}file; then
4949 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4950 if test -n "$file_magic_test_file"; then
4951 case "$deplibs_check_method" in
4953 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4956 egrep "$file_magic_regex" > /dev/null; then
4961 *** Warning: the command libtool uses to detect shared libraries,
4962 *** $file_magic_cmd, produces output that libtool cannot recognize.
4963 *** The result is that libtool may fail to recognize shared libraries
4964 *** as such. This will affect the creation of libtool libraries that
4965 *** depend on shared libraries, but programs linked with such libtool
4966 *** libraries will work regardless of this problem. Nevertheless, you
4967 *** may want to report the problem to your system manager and/or to
4968 *** bug-libtool@gnu.org
4978 MAGIC_CMD="$ac_save_MAGIC_CMD"
4983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4984 if test -n "$MAGIC_CMD"; then
4985 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4986 echo "${ECHO_T}$MAGIC_CMD" >&6
4988 echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6
4992 if test -z "$lt_cv_path_MAGIC_CMD"; then
4993 if test -n "$ac_tool_prefix"; then
4994 echo "$as_me:$LINENO: checking for file" >&5
4995 echo $ECHO_N "checking for file... $ECHO_C" >&6
4996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 case "$MAGIC_CMD" in
5001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5007 ac_save_MAGIC_CMD="$MAGIC_CMD"
5008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5009 ac_dummy="/usr/bin:$PATH"
5010 for ac_dir in $ac_dummy; do
5011 test -z "$ac_dir" && ac_dir=.
5012 if test -f $ac_dir/file; then
5013 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5014 if test -n "$file_magic_test_file"; then
5015 case "$deplibs_check_method" in
5017 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5020 egrep "$file_magic_regex" > /dev/null; then
5025 *** Warning: the command libtool uses to detect shared libraries,
5026 *** $file_magic_cmd, produces output that libtool cannot recognize.
5027 *** The result is that libtool may fail to recognize shared libraries
5028 *** as such. This will affect the creation of libtool libraries that
5029 *** depend on shared libraries, but programs linked with such libtool
5030 *** libraries will work regardless of this problem. Nevertheless, you
5031 *** may want to report the problem to your system manager and/or to
5032 *** bug-libtool@gnu.org
5042 MAGIC_CMD="$ac_save_MAGIC_CMD"
5047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5048 if test -n "$MAGIC_CMD"; then
5049 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5050 echo "${ECHO_T}$MAGIC_CMD" >&6
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5068 echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5070 if test "${ac_cv_prog_RANLIB+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 if test -n "$RANLIB"; then
5074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 RANLIB=$ac_cv_prog_RANLIB
5093 if test -n "$RANLIB"; then
5094 echo "$as_me:$LINENO: result: $RANLIB" >&5
5095 echo "${ECHO_T}$RANLIB" >&6
5097 echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5102 if test -z "$ac_cv_prog_RANLIB"; then
5103 ac_ct_RANLIB=$RANLIB
5104 # Extract the first word of "ranlib", so it can be a program name with args.
5105 set dummy ranlib; ac_word=$2
5106 echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 if test -n "$ac_ct_RANLIB"; then
5112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_ac_ct_RANLIB="ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5132 if test -n "$ac_ct_RANLIB"; then
5133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5136 echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5140 RANLIB=$ac_ct_RANLIB
5142 RANLIB="$ac_cv_prog_RANLIB"
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}strip; ac_word=$2
5148 echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150 if test "${ac_cv_prog_STRIP+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 if test -n "$STRIP"; then
5154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 STRIP=$ac_cv_prog_STRIP
5173 if test -n "$STRIP"; then
5174 echo "$as_me:$LINENO: result: $STRIP" >&5
5175 echo "${ECHO_T}$STRIP" >&6
5177 echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6
5182 if test -z "$ac_cv_prog_STRIP"; then
5184 # Extract the first word of "strip", so it can be a program name with args.
5185 set dummy strip; ac_word=$2
5186 echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 if test -n "$ac_ct_STRIP"; then
5192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_STRIP="strip"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5212 if test -n "$ac_ct_STRIP"; then
5213 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5214 echo "${ECHO_T}$ac_ct_STRIP" >&6
5216 echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5222 STRIP="$ac_cv_prog_STRIP"
5229 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5230 if test "${enable_libtool_lock+set}" = set; then
5231 enableval="$enable_libtool_lock"
5234 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5236 # Some flags need to be propagated to the compiler or linker for good
5240 # Find out which ABI we are using.
5241 echo '#line 5241 "configure"' > conftest.$ac_ext
5242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243 (eval $ac_compile) 2>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; then
5247 case "`/usr/bin/file conftest.$ac_objext`" in
5263 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5264 SAVE_CFLAGS="$CFLAGS"
5265 CFLAGS="$CFLAGS -belf"
5266 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5267 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5268 if test "${lt_cv_cc_needs_belf+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 lt_cv_cc_needs_belf=yes
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 lt_cv_cc_needs_belf=no
5322 rm -f conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5325 ac_cpp='$CXXCPP $CPPFLAGS'
5326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5332 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5333 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5334 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5335 CFLAGS="$SAVE_CFLAGS"
5342 # Sed substitution that helps us do robust quoting. It backslashifies
5343 # metacharacters that are still active within double-quoted strings.
5344 Xsed='sed -e s/^X//'
5345 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5347 # Same as above, but do not quote variable references.
5348 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5350 # Sed substitution to delay expansion of an escaped shell variable in a
5351 # double_quote_subst'ed string.
5352 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5358 default_ofile=libtool
5359 can_build_shared=yes
5361 # All known linkers require a `.a' archive for static linking (except M$VC,
5362 # which needs '.lib').
5364 ltmain="$ac_aux_dir/ltmain.sh"
5365 ofile="$default_ofile"
5366 with_gnu_ld="$lt_cv_prog_gnu_ld"
5367 need_locks="$enable_libtool_lock"
5370 old_CFLAGS="$CFLAGS"
5372 # Set sane defaults for various variables
5373 test -z "$AR" && AR=ar
5374 test -z "$AR_FLAGS" && AR_FLAGS=cru
5375 test -z "$AS" && AS=as
5376 test -z "$CC" && CC=cc
5377 test -z "$DLLTOOL" && DLLTOOL=dlltool
5378 test -z "$LD" && LD=ld
5379 test -z "$LN_S" && LN_S="ln -s"
5380 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5381 test -z "$NM" && NM=nm
5382 test -z "$OBJDUMP" && OBJDUMP=objdump
5383 test -z "$RANLIB" && RANLIB=:
5384 test -z "$STRIP" && STRIP=:
5385 test -z "$ac_objext" && ac_objext=o
5387 if test x"$host" != x"$build"; then
5388 ac_tool_prefix=${host_alias}-
5393 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5396 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5401 # AIX sometimes has problems with the GCC collect2 program. For some
5402 # reason, if we set the COLLECT_NAMES environment variable, the problems
5403 # vanish in a puff of smoke.
5404 if test "X${COLLECT_NAMES+set}" != Xset; then
5406 export COLLECT_NAMES
5411 # Determine commands to create old-style static archives.
5412 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5413 old_postinstall_cmds='chmod 644 $oldlib'
5414 old_postuninstall_cmds=
5416 if test -n "$RANLIB"; then
5417 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5418 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5421 # Allow CC to be a program name with arguments.
5425 ## FIXME: this should be a separate macro
5427 echo "$as_me:$LINENO: checking for objdir" >&5
5428 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5429 rm -f .libs 2>/dev/null
5430 mkdir .libs 2>/dev/null
5431 if test -d .libs; then
5434 # MS-DOS does not allow filenames that begin with a dot.
5437 rmdir .libs 2>/dev/null
5438 echo "$as_me:$LINENO: result: $objdir" >&5
5439 echo "${ECHO_T}$objdir" >&6
5444 ## FIXME: this should be a separate macro
5447 # Check whether --with-pic or --without-pic was given.
5448 if test "${with_pic+set}" = set; then
5454 test -z "$pic_mode" && pic_mode=default
5456 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5457 # in isolation, and that seeing it set (from the cache) indicates that
5458 # the associated values are set (in the cache) correctly too.
5459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5461 if test "${lt_cv_prog_cc_pic+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 lt_cv_prog_cc_shlib=
5467 lt_cv_prog_cc_static=
5468 lt_cv_prog_cc_no_builtin=
5469 lt_cv_prog_cc_can_build_shared=$can_build_shared
5471 if test "$GCC" = yes; then
5472 lt_cv_prog_cc_wl='-Wl,'
5473 lt_cv_prog_cc_static='-static'
5476 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5477 # PIC is the default for these OSes.
5480 # Below there is a dirty hack to force normal static linking with -ldl
5481 # The problem is because libdl dynamically linked with both libc and
5482 # libC (AIX C++ library), which obviously doesn't included in libraries
5483 # list by gcc. This cause undefined symbols with -static flags.
5484 # This hack allows C programs to be linked with "-static -ldl", but
5485 # we not sure about C++ programs.
5486 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5488 cygwin* | mingw* | pw32* | os2*)
5489 # This hack is so that the source file can tell whether it is being
5490 # built for inclusion in a dll (and should export symbols for example).
5491 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494 # FIXME: we need at least 68020 code to build shared libraries, but
5495 # adding the `-m68020' flag to GCC prevents building anything better,
5497 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5500 if test -d /usr/nec; then
5501 lt_cv_prog_cc_pic=-Kconform_pic
5505 lt_cv_prog_cc_pic='-fPIC'
5509 # PORTME Check for PIC flags for the system compiler.
5512 # All AIX code is PIC.
5513 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5516 hpux9* | hpux10* | hpux11*)
5517 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5518 lt_cv_prog_cc_wl='-Wl,'
5519 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5520 lt_cv_prog_cc_pic='+Z'
5524 lt_cv_prog_cc_wl='-Wl,'
5525 lt_cv_prog_cc_static='-non_shared'
5526 # PIC (with -KPIC) is the default.
5529 cygwin* | mingw* | pw32* | os2*)
5530 # This hack is so that the source file can tell whether it is being
5531 # built for inclusion in a dll (and should export symbols for example).
5532 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5536 lt_cv_prog_cc_pic='-KPIC'
5537 lt_cv_prog_cc_static='-Bstatic'
5540 osf3* | osf4* | osf5*)
5541 # All OSF/1 code is PIC.
5542 lt_cv_prog_cc_wl='-Wl,'
5543 lt_cv_prog_cc_static='-non_shared'
5547 lt_cv_prog_cc_pic='-Kpic'
5548 lt_cv_prog_cc_static='-dn'
5549 lt_cv_prog_cc_shlib='-belf'
5553 lt_cv_prog_cc_pic='-KPIC'
5554 lt_cv_prog_cc_static='-Bstatic'
5555 lt_cv_prog_cc_wl='-Wl,'
5559 lt_cv_prog_cc_pic='-PIC'
5560 lt_cv_prog_cc_static='-Bstatic'
5561 lt_cv_prog_cc_wl='-Qoption ld '
5564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5565 lt_cv_prog_cc_pic='-KPIC'
5566 lt_cv_prog_cc_static='-Bstatic'
5567 if test "x$host_vendor" = xsni; then
5568 lt_cv_prog_cc_wl='-LD'
5570 lt_cv_prog_cc_wl='-Wl,'
5575 lt_cv_prog_cc_pic='-pic'
5576 lt_cv_prog_cc_static='-Bstatic'
5580 if test -d /usr/nec ;then
5581 lt_cv_prog_cc_pic='-Kconform_pic'
5582 lt_cv_prog_cc_static='-Bstatic'
5587 lt_cv_prog_cc_can_build_shared=no
5594 if test -z "$lt_cv_prog_cc_pic"; then
5595 echo "$as_me:$LINENO: result: none" >&5
5596 echo "${ECHO_T}none" >&6
5598 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5599 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5601 # Check to make sure the pic_flag actually works.
5602 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5603 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5604 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 save_CFLAGS="$CFLAGS"
5608 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5624 rm -f conftest.$ac_objext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5646 hpux9* | hpux10* | hpux11*)
5647 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5648 # they create non-PIC objects. So, if there were any warnings, we
5649 # assume that PIC is not supported.
5650 if test -s conftest.err; then
5651 lt_cv_prog_cc_pic_works=no
5653 lt_cv_prog_cc_pic_works=yes
5657 lt_cv_prog_cc_pic_works=yes
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 lt_cv_prog_cc_pic_works=no
5668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 CFLAGS="$save_CFLAGS"
5674 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5676 lt_cv_prog_cc_can_build_shared=no
5678 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5681 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5682 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5687 # Check for any special shared library compilation flags.
5688 if test -n "$lt_cv_prog_cc_shlib"; then
5689 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5690 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5691 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5693 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5694 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5695 lt_cv_prog_cc_can_build_shared=no
5699 ## FIXME: this should be a separate macro
5701 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5702 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5703 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 lt_cv_prog_cc_static_works=no
5707 save_LDFLAGS="$LDFLAGS"
5708 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726 (eval $ac_link) 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest$ac_exeext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 lt_cv_prog_cc_static_works=yes
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5751 rm -f conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 LDFLAGS="$save_LDFLAGS"
5758 # Belt *and* braces to stop my trousers falling down:
5759 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5760 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5761 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5763 pic_flag="$lt_cv_prog_cc_pic"
5764 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5765 wl="$lt_cv_prog_cc_wl"
5766 link_static_flag="$lt_cv_prog_cc_static"
5767 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5768 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5773 ## FIXME: this should be a separate macro
5775 # Check to see if options -o and -c are simultaneously supported by compiler
5776 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5778 $rm -r conftest 2>/dev/null
5781 echo "int some_variable = 0;" > conftest.$ac_ext
5783 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5784 # that will create temporary files in the current directory regardless of
5785 # the output directory. Thus, making CWD read-only will cause this test
5786 # to fail, enabling locking or at least warning the user not to do parallel
5789 save_CFLAGS="$CFLAGS"
5790 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5792 if { (eval echo configure:5792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5793 # The compiler can only warn and ignore the option if not recognized
5794 # So say no if there are warnings
5795 if test -s out/conftest.err; then
5801 # Append any errors to the config.log.
5802 cat out/conftest.err 1>&5
5805 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5806 echo "${ECHO_T}$compiler_c_o" >&6
5807 CFLAGS="$save_CFLAGS"
5813 $rm -r conftest 2>/dev/null
5815 if test x"$compiler_c_o" = x"yes"; then
5816 # Check to see if we can write to a .lo
5817 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5818 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5820 save_CFLAGS="$CFLAGS"
5821 CFLAGS="$CFLAGS -c -o conftest.lo"
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5832 int some_variable = 0;
5837 rm -f conftest.$ac_objext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 # The compiler can only warn and ignore the option if not recognized
5859 # So say no if there are warnings
5860 if test -s conftest.err; then
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5873 echo "${ECHO_T}$compiler_c_o" >&6
5874 CFLAGS="$save_CFLAGS"
5881 ## FIXME: this should be a separate macro
5883 # Check to see if we can do hard links to lock some files if needed
5884 hard_links="nottested"
5885 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5886 # do not overwrite the value of need_locks provided by the user
5887 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5888 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5893 ln conftest.a conftest.b 2>&5 || hard_links=no
5894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5895 echo "$as_me:$LINENO: result: $hard_links" >&5
5896 echo "${ECHO_T}$hard_links" >&6
5897 if test "$hard_links" = no; then
5898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5899 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5908 ## FIXME: this should be a separate macro
5910 if test "$GCC" = yes; then
5911 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5912 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5913 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5914 echo "int some_variable = 0;" > conftest.$ac_ext
5915 save_CFLAGS="$CFLAGS"
5916 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5917 compiler_rtti_exceptions=no
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5928 int some_variable = 0;
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 # The compiler can only warn and ignore the option if not recognized
5955 # So say no if there are warnings
5956 if test -s conftest.err; then
5957 compiler_rtti_exceptions=no
5959 compiler_rtti_exceptions=yes
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5968 CFLAGS="$save_CFLAGS"
5969 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5970 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5972 if test "$compiler_rtti_exceptions" = "yes"; then
5973 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5975 no_builtin_flag=' -fno-builtin'
5981 ## FIXME: this should be a separate macro
5983 # See if the linker supports building shared libraries.
5984 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5985 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5987 allow_undefined_flag=
5989 need_lib_prefix=unknown
5990 need_version=unknown
5991 # when you set need_version to no, make sure it does not cause -set_version
5992 # flags to be left without arguments
5994 archive_expsym_cmds=
5995 old_archive_from_new_cmds=
5996 old_archive_from_expsyms_cmds=
5997 export_dynamic_flag_spec=
5998 whole_archive_flag_spec=
5999 thread_safe_flag_spec=
6000 hardcode_into_libs=no
6001 hardcode_libdir_flag_spec=
6002 hardcode_libdir_separator=
6005 hardcode_shlibpath_var=unsupported
6007 link_all_deplibs=unknown
6008 always_export_symbols=no
6009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6010 # include_expsyms should be a list of space-separated symbols to be *always*
6011 # included in the symbol list
6013 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6016 # as well as any symbol that contains `d'.
6017 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6019 # platforms (ab)use it in PIC code, but their linkers get confused if
6020 # the symbol is explicitly referenced. Since portable code cannot
6021 # rely on this symbol name, it's probably fine to never include it in
6022 # preloaded symbol tables.
6023 extract_expsyms_cmds=
6026 cygwin* | mingw* | pw32* )
6027 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6028 # When not using gcc, we currently assume that we are using
6029 # Microsoft Visual C++.
6030 if test "$GCC" != yes; then
6038 if test "$with_gnu_ld" = yes; then
6039 # If archive_cmds runs LD, not CC, wlarc should be empty
6042 # See if GNU ld supports shared libraries.
6045 # On AIX, the GNU linker is very broken
6049 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6050 *** to be unable to reliably create shared libraries on AIX.
6051 *** Therefore, libtool is disabling shared libraries support. If you
6052 *** really care for shared libraries, you may want to modify your PATH
6053 *** so that a non-GNU linker is found, and then restart.
6059 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6060 hardcode_libdir_flag_spec='-L$libdir'
6061 hardcode_minus_L=yes
6063 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6064 # that the semantics of dynamic libraries on AmigaOS, at least up
6065 # to version 4, is to share data among multiple programs linked
6066 # with the same dynamic library. Since this doesn't match the
6067 # behavior of shared libraries on other platforms, we can use
6073 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6074 allow_undefined_flag=unsupported
6075 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6076 # support --undefined. This deserves some investigation. FIXME
6077 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6083 cygwin* | mingw* | pw32*)
6084 # hardcode_libdir_flag_spec is actually meaningless, as there is
6085 # no search path for DLLs.
6086 hardcode_libdir_flag_spec='-L$libdir'
6087 allow_undefined_flag=unsupported
6088 always_export_symbols=yes
6090 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6091 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6092 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6093 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6094 else $CC -o impgen impgen.c ; fi)~
6095 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6097 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6099 # cygwin and mingw dlls have different entry points and sets of symbols
6101 # FIXME: what about values for MSVC?
6102 dll_entry=__cygwin_dll_entry@12
6103 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6107 dll_entry=_DllMainCRTStartup@12
6108 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6112 # mingw and cygwin differ, and it's simplest to just exclude the union
6113 # of the two symbol sets.
6114 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6116 # recent cygwin and mingw systems supply a stub DllMain which the user
6117 # can override, but on older systems we have to supply one (in ltdll.c)
6118 if test "x$lt_cv_need_dllmain" = "xyes"; then
6119 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6120 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
6121 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6127 # Extract the symbol export list from an `--export-all' def file,
6128 # then regenerate the def file from the symbol export list, so that
6129 # the compiled dll only exports the symbol export list.
6130 # Be careful not to strip the DATA tag left be newer dlltools.
6131 export_symbols_cmds="$ltdll_cmds"'
6132 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6133 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6135 # If DATA tags from a recent dlltool are present, honour them!
6136 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6138 cat $export_symbols | while read symbol; do
6141 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6142 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6144 _lt_hint=`expr 1 + \$_lt_hint`;
6147 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6148 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6149 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6150 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6151 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6156 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6165 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6170 *** create shared libraries on Solaris systems. Therefore, libtool
6171 *** is disabling shared libraries support. We urge you to upgrade GNU
6172 *** binutils to release 2.9.1 or newer. Another option is to modify
6173 *** your PATH or compiler configuration so that the native linker is
6174 *** used, and then restart.
6177 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6189 hardcode_shlibpath_var=no
6193 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6202 if test "$ld_shlibs" = yes; then
6203 runpath_var=LD_RUN_PATH
6204 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6205 export_dynamic_flag_spec='${wl}--export-dynamic'
6207 cygwin* | mingw* | pw32*)
6208 # dlltool doesn't understand --whole-archive et. al.
6209 whole_archive_flag_spec=
6212 # ancient GNU ld didn't support --whole-archive et. al.
6213 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6214 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6216 whole_archive_flag_spec=
6222 # PORTME fill in a description of your system's linker (not GNU ld)
6225 allow_undefined_flag=unsupported
6226 always_export_symbols=yes
6227 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6228 # Note: this linker hardcodes the directories in LIBPATH if there
6229 # are no directories specified by -L.
6230 hardcode_minus_L=yes
6231 if test "$GCC" = yes && test -z "$link_static_flag"; then
6232 # Neither direct hardcoding nor static linking is supported with a
6234 hardcode_direct=unsupported
6239 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6240 hardcode_libdir_separator=':'
6241 if test "$GCC" = yes; then
6242 collect2name=`${CC} -print-prog-name=collect2`
6243 if test -f "$collect2name" && \
6244 strings "$collect2name" | grep resolve_lib_name >/dev/null
6246 # We have reworked collect2
6249 # We have old collect2
6250 hardcode_direct=unsupported
6251 # It fails to find uninstalled libraries when the uninstalled
6252 # path is not listed in the libpath. Setting hardcode_minus_L
6253 # to unsupported forces relinking
6254 hardcode_minus_L=yes
6255 hardcode_libdir_flag_spec='-L$libdir'
6256 hardcode_libdir_separator=
6258 shared_flag='-shared'
6260 shared_flag='${wl}-bM:SRE'
6263 allow_undefined_flag=' ${wl}-berok'
6264 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6265 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6266 case "$host_os" in aix4.[01]|aix4.[01].*)
6267 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6268 always_export_symbols=yes ;;
6271 # We don't want to build shared libraries on unknown CPU types.
6273 powerpc | rs6000) ;;
6279 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6280 hardcode_libdir_flag_spec='-L$libdir'
6281 hardcode_minus_L=yes
6282 # see comment about different semantics on the GNU ld section
6286 cygwin* | mingw* | pw32*)
6287 # When not using gcc, we currently assume that we are using
6288 # Microsoft Visual C++.
6289 # hardcode_libdir_flag_spec is actually meaningless, as there is
6290 # no search path for DLLs.
6291 hardcode_libdir_flag_spec=' '
6292 allow_undefined_flag=unsupported
6293 # Tell ltmain to make .lib files, not .a files.
6295 # FIXME: Setting linknames here is a bad hack.
6296 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6297 # The linker will automatically build a .lib file if we build a DLL.
6298 old_archive_from_new_cmds='true'
6299 # FIXME: Should let the user specify the lib program.
6300 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6301 fix_srcfile_path='`cygpath -w "$srcfile"`'
6304 darwin* | rhapsody*)
6305 allow_undefined_flag='-undefined warning'
6306 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6307 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6308 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6309 ## What we need is to hardcode the path to the library, not the search path
6310 #hardcode_direct=yes
6311 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6312 hardcode_shlibpath_var=no
6313 whole_archive_flag_spec='-all_load'
6320 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6321 # support. Future versions do this automatically, but an explicit c++rt0.o
6322 # does not break anything, and helps significantly (at the cost of a little
6325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6326 hardcode_libdir_flag_spec='-R$libdir'
6328 hardcode_shlibpath_var=no
6331 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6335 hardcode_minus_L=yes
6336 hardcode_shlibpath_var=no
6339 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6341 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6342 hardcode_libdir_flag_spec='-R$libdir'
6344 hardcode_shlibpath_var=no
6347 hpux9* | hpux10* | hpux11*)
6349 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6350 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6353 hardcode_libdir_separator=:
6355 hardcode_minus_L=yes # Not in the search PATH, but as the default
6356 # location of the library.
6357 export_dynamic_flag_spec='${wl}-E'
6361 if test "$GCC" = yes; then
6362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6364 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6367 hardcode_libdir_separator=:
6368 link_all_deplibs=yes
6372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6375 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6377 hardcode_libdir_flag_spec='-R$libdir'
6379 hardcode_shlibpath_var=no
6383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6386 hardcode_libdir_separator=:
6387 hardcode_shlibpath_var=no
6391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6392 hardcode_libdir_flag_spec='-R$libdir'
6394 hardcode_shlibpath_var=no
6398 hardcode_libdir_flag_spec='-L$libdir'
6399 hardcode_minus_L=yes
6400 allow_undefined_flag=unsupported
6401 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6402 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6406 if test "$GCC" = yes; then
6407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6408 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6410 allow_undefined_flag=' -expect_unresolved \*'
6411 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6414 hardcode_libdir_separator=:
6417 osf4* | osf5*) # as osf3* with the addition of -msym flag
6418 if test "$GCC" = yes; then
6419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6420 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6422 allow_undefined_flag=' -expect_unresolved \*'
6423 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6424 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6425 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6427 #Both c and cxx compiler support -rpath directly
6428 hardcode_libdir_flag_spec='-rpath $libdir'
6429 hardcode_libdir_separator=:
6433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6434 hardcode_shlibpath_var=no
6435 runpath_var=LD_RUN_PATH
6436 hardcode_runpath_var=yes
6440 no_undefined_flag=' -z text'
6441 # $CC -shared without GNU ld will not create a library from C++
6442 # object files and a static libstdc++, better avoid it by now
6443 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6444 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6446 hardcode_libdir_flag_spec='-R$libdir'
6447 hardcode_shlibpath_var=no
6449 solaris2.[0-5] | solaris2.[0-5].*) ;;
6450 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6451 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6453 link_all_deplibs=yes
6457 if test "x$host_vendor" = xsequent; then
6458 # Use $CC to link under sequent, because it throws in some extra .o
6459 # files that make .init and .fini sections work.
6460 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6462 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6464 hardcode_libdir_flag_spec='-L$libdir'
6466 hardcode_minus_L=yes
6467 hardcode_shlibpath_var=no
6471 if test "x$host_vendor" = xsno; then
6472 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6473 hardcode_direct=yes # is this really true???
6475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6478 runpath_var='LD_RUN_PATH'
6479 hardcode_shlibpath_var=no
6483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6484 hardcode_shlibpath_var=no
6485 export_dynamic_flag_spec='-Bexport'
6489 no_undefined_flag=' -z text'
6490 # $CC -shared without GNU ld will not create a library from C++
6491 # object files and a static libstdc++, better avoid it by now
6492 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6493 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6495 hardcode_libdir_flag_spec=
6496 hardcode_shlibpath_var=no
6497 runpath_var='LD_RUN_PATH'
6501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6502 hardcode_libdir_flag_spec='-L$libdir'
6503 hardcode_shlibpath_var=no
6507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6508 hardcode_libdir_flag_spec='-L$libdir'
6509 hardcode_shlibpath_var=no
6513 if test -d /usr/nec; then
6514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6515 hardcode_shlibpath_var=no
6516 runpath_var=LD_RUN_PATH
6517 hardcode_runpath_var=yes
6523 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_shlibpath_var=no
6527 hardcode_runpath_var=yes
6528 runpath_var=LD_RUN_PATH
6532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6533 runpath_var='LD_RUN_PATH'
6534 hardcode_shlibpath_var=no
6542 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6543 echo "${ECHO_T}$ld_shlibs" >&6
6544 test "$ld_shlibs" = no && can_build_shared=no
6548 ## FIXME: this should be a separate macro
6550 # Check hardcoding attributes.
6551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6554 if test -n "$hardcode_libdir_flag_spec" || \
6555 test -n "$runpath_var"; then
6557 # We can hardcode non-existant directories.
6558 if test "$hardcode_direct" != no &&
6559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6560 # have to relink, otherwise we might link with an installed library
6561 # when we should be linking with a yet-to-be-installed one
6562 ## test "$hardcode_shlibpath_var" != no &&
6563 test "$hardcode_minus_L" != no; then
6564 # Linking always hardcodes the temporary library directory.
6565 hardcode_action=relink
6567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6568 hardcode_action=immediate
6571 # We cannot hardcode anything, or else we can only hardcode existing
6573 hardcode_action=unsupported
6575 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6576 echo "${ECHO_T}$hardcode_action" >&6
6580 ## FIXME: this should be a separate macro
6584 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6585 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6586 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6587 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6588 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6589 echo "$as_me:$LINENO: result: yes" >&5
6590 echo "${ECHO_T}yes" >&6
6592 echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6
6598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6601 ## FIXME: this should be a separate macro
6603 # PORTME Fill in your ld.so characteristics
6604 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6605 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6607 libname_spec='lib$name'
6614 shlibpath_overrides_runpath=unknown
6616 dynamic_linker="$host_os ld.so"
6617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6623 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6624 shlibpath_var=LIBPATH
6626 # AIX has no versioning support, so we append a major version to the name.
6627 soname_spec='${libname}${release}.so$major'
6632 # AIX has no versioning support, so currently we can not hardcode correct
6633 # soname into executable. Probably we can add versioning support to
6634 # collect2, so additional links can be useful in future.
6635 # We preserve .a as extension for shared libraries though AIX4.2
6636 # and later linker supports .so
6637 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6638 shlibpath_var=LIBPATH
6642 library_names_spec='$libname.ixlibrary $libname.a'
6643 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6644 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6648 library_names_spec='${libname}.so'
6649 dynamic_linker="$host_os ld.so"
6650 shlibpath_var=LIBRARY_PATH
6656 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6657 soname_spec='${libname}${release}.so$major'
6658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6659 shlibpath_var=LD_LIBRARY_PATH
6660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6662 export_dynamic_flag_spec=-rdynamic
6663 # the default ld.so.conf also contains /usr/contrib/lib and
6664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6665 # libtool to hard-code these into programs
6668 cygwin* | mingw* | pw32*)
6669 version_type=windows
6672 if test "$GCC" = yes; then
6673 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6675 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6677 dynamic_linker='Win32 ld.exe'
6678 # FIXME: first we should search . and the directory the executable is in
6682 darwin* | rhapsody*)
6685 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6686 shlibpath_overrides_runpath=yes
6687 shlibpath_var=DYLD_LIBRARY_PATH
6688 postinstall_cmds='chmod +x $lib'
6696 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6697 version_type=freebsd-$objformat
6698 case "$version_type" in
6700 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6705 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6709 shlibpath_var=LD_LIBRARY_PATH
6712 shlibpath_overrides_runpath=yes
6715 shlibpath_overrides_runpath=no
6716 hardcode_into_libs=yes
6725 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6726 soname_spec='${libname}${release}.so$major'
6727 shlibpath_var=LD_LIBRARY_PATH
6728 hardcode_into_libs=yes
6731 hpux9* | hpux10* | hpux11*)
6732 # Give a soname corresponding to the major version so that dld.sl refuses to
6733 # link against other versions.
6734 dynamic_linker="$host_os dld.sl"
6738 shlibpath_var=SHLIB_PATH
6739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6740 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6741 soname_spec='${libname}${release}.sl$major'
6742 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6743 postinstall_cmds='chmod 555 $lib'
6750 soname_spec='${libname}${release}.so$major'
6751 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6757 case "$LD" in # libtool.m4 will add one of these switches to LD
6758 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6759 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6760 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6761 *) libsuff= shlibsuff= libmagic=never-match;;
6765 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6766 shlibpath_overrides_runpath=no
6767 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6768 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6771 # No shared lib support for Linux oldld, aout, or coff.
6772 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6776 # This must be Linux ELF.
6781 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6782 soname_spec='${libname}${release}.so$major'
6783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6784 shlibpath_var=LD_LIBRARY_PATH
6785 shlibpath_overrides_runpath=no
6786 # This implies no fast_install, which is unacceptable.
6787 # Some rework will be needed to allow for fast_install
6788 # before this can be enabled.
6789 hardcode_into_libs=yes
6791 # We used to test for /lib/ld.so.1 and disable shared libraries on
6792 # powerpc, because MkLinux only supported shared libraries with the
6793 # GNU dynamic linker. Since this was broken with cross compilers,
6794 # most powerpc-linux boxes support dynamic linking these days and
6795 # people can always --disable-shared, the test was removed, and we
6796 # assume the GNU/Linux dynamic linker is in use.
6797 dynamic_linker='GNU/Linux ld.so'
6802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6803 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6805 dynamic_linker='NetBSD (a.out) ld.so'
6807 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6808 soname_spec='${libname}${release}.so$major'
6809 dynamic_linker='NetBSD ld.elf_so'
6811 shlibpath_var=LD_LIBRARY_PATH
6812 shlibpath_overrides_runpath=yes
6813 hardcode_into_libs=yes
6818 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6819 shlibpath_var=LD_LIBRARY_PATH
6820 shlibpath_overrides_runpath=yes
6825 if test "$with_gnu_ld" = yes; then
6829 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6831 shlibpath_var=LD_LIBRARY_PATH
6835 libname_spec='$name'
6837 library_names_spec='$libname.dll $libname.a'
6838 dynamic_linker='OS/2 ld.exe'
6839 shlibpath_var=LIBPATH
6842 osf3* | osf4* | osf5*)
6845 soname_spec='${libname}${release}.so'
6846 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6847 shlibpath_var=LD_LIBRARY_PATH
6848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6854 soname_spec='${libname}${release}.so$major'
6855 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6856 shlibpath_var=LD_LIBRARY_PATH
6863 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6864 soname_spec='${libname}${release}.so$major'
6865 shlibpath_var=LD_LIBRARY_PATH
6866 shlibpath_overrides_runpath=yes
6867 hardcode_into_libs=yes
6868 # ldd complains unless libraries are executable
6869 postinstall_cmds='chmod +x $lib'
6874 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6876 shlibpath_var=LD_LIBRARY_PATH
6877 shlibpath_overrides_runpath=yes
6878 if test "$with_gnu_ld" = yes; then
6884 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6886 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6887 soname_spec='${libname}${release}.so$major'
6888 shlibpath_var=LD_LIBRARY_PATH
6889 case "$host_vendor" in
6891 shlibpath_overrides_runpath=no
6896 shlibpath_overrides_runpath=no
6897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6904 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6905 soname_spec='${libname}${release}.so$major'
6906 shlibpath_var=LD_LIBRARY_PATH
6913 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6914 soname_spec='${libname}${release}.so$major'
6915 shlibpath_var=LD_LIBRARY_PATH
6919 if test -d /usr/nec ;then
6921 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6922 soname_spec='$libname.so.$major'
6923 shlibpath_var=LD_LIBRARY_PATH
6931 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6932 echo "${ECHO_T}$dynamic_linker" >&6
6933 test "$dynamic_linker" = no && can_build_shared=no
6937 ## FIXME: this should be a separate macro
6939 # Report the final consequences.
6940 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6941 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6942 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6943 echo "${ECHO_T}$can_build_shared" >&6
6947 if test "$hardcode_action" = relink; then
6948 # Fast installation is not supported
6949 enable_fast_install=no
6950 elif test "$shlibpath_overrides_runpath" = yes ||
6951 test "$enable_shared" = no; then
6952 # Fast installation is not necessary
6953 enable_fast_install=needless
6956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6957 if test "$GCC" = yes; then
6958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6961 if test "x$enable_dlopen" != xyes; then
6962 enable_dlopen=unknown
6963 enable_dlopen_self=unknown
6964 enable_dlopen_self_static=unknown
6971 lt_cv_dlopen="load_add_on"
6973 lt_cv_dlopen_self=yes
6976 cygwin* | mingw* | pw32*)
6977 lt_cv_dlopen="LoadLibrary"
6982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_check_lib_save_LIBS=$LIBS
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6996 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_lib_dl_dlopen=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_lib_dl_dlopen=no
7039 rm -f conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 LIBS=$ac_check_lib_save_LIBS
7043 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7045 if test $ac_cv_lib_dl_dlopen = yes; then
7046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7048 echo "$as_me:$LINENO: checking for dlopen" >&5
7049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7050 if test "${ac_cv_func_dlopen+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7061 #define dlopen innocuous_dlopen
7063 /* System header to define __stub macros and hopefully few prototypes,
7064 which can conflict with char dlopen (); below.
7065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 <limits.h> exists even on freestanding compilers. */
7069 # include <limits.h>
7071 # include <assert.h>
7076 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7084 /* The GNU C library defines this for functions which it implements
7085 to always fail with ENOSYS. Some functions are actually named
7086 something starting with __ and the normal name is an alias. */
7087 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7090 char (*f) () = dlopen;
7104 rm -f conftest.$ac_objext conftest$ac_exeext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 (eval $ac_link) 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_func_dlopen=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_func_dlopen=no
7132 rm -f conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7136 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7137 if test $ac_cv_func_dlopen = yes; then
7138 lt_cv_dlopen="dlopen"
7140 echo "$as_me:$LINENO: checking for shl_load" >&5
7141 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7142 if test "${ac_cv_func_shl_load+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7153 #define shl_load innocuous_shl_load
7155 /* System header to define __stub macros and hopefully few prototypes,
7156 which can conflict with char shl_load (); below.
7157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7158 <limits.h> exists even on freestanding compilers. */
7161 # include <limits.h>
7163 # include <assert.h>
7168 /* Override any gcc2 internal prototype to avoid an error. */
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7176 /* The GNU C library defines this for functions which it implements
7177 to always fail with ENOSYS. Some functions are actually named
7178 something starting with __ and the normal name is an alias. */
7179 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7182 char (*f) () = shl_load;
7191 return f != shl_load;
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; } &&
7211 { ac_try='test -s conftest$ac_exeext'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7217 ac_cv_func_shl_load=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_func_shl_load=no
7224 rm -f conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
7227 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7228 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7229 if test $ac_cv_func_shl_load = yes; then
7230 lt_cv_dlopen="shl_load"
7232 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 ac_check_lib_save_LIBS=$LIBS
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_svld_dlopen=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_lib_svld_dlopen=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7294 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7295 if test $ac_cv_lib_svld_dlopen = yes; then
7296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7298 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7299 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7300 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 ac_check_lib_save_LIBS=$LIBS
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7312 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329 (eval $ac_link) 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_lib_dld_shl_load=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_cv_lib_dld_shl_load=no
7355 rm -f conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7357 LIBS=$ac_check_lib_save_LIBS
7359 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7360 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7361 if test $ac_cv_lib_dld_shl_load = yes; then
7362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7380 if test "x$lt_cv_dlopen" != xno; then
7386 case "$lt_cv_dlopen" in
7388 save_CPPFLAGS="$CPP_FLAGS"
7389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7391 save_LDFLAGS="$LDFLAGS"
7392 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7395 LIBS="$lt_cv_dlopen_libs $LIBS"
7397 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7398 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7399 if test "${lt_cv_dlopen_self+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 if test "$cross_compiling" = yes; then :
7403 lt_cv_dlopen_self=cross
7405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7406 lt_status=$lt_dlunknown
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7408 "configure"
7409 #include "confdefs.h"
7418 # define LT_DLGLOBAL RTLD_GLOBAL
7421 # define LT_DLGLOBAL DL_GLOBAL
7423 # define LT_DLGLOBAL 0
7427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7428 find out it does not work in some platform. */
7429 #ifndef LT_DLLAZY_OR_NOW
7431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7434 # define LT_DLLAZY_OR_NOW DL_LAZY
7437 # define LT_DLLAZY_OR_NOW RTLD_NOW
7440 # define LT_DLLAZY_OR_NOW DL_NOW
7442 # define LT_DLLAZY_OR_NOW 0
7450 extern "C" void exit (int);
7453 fnord() { int i=42;}
7456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7457 int status = $lt_dlunknown;
7461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7463 /* dlclose (self); */
7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 (eval $ac_link) 2>&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7474 (./conftest; exit; ) 2>/dev/null
7477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7479 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7482 # compilation failed
7483 lt_cv_dlopen_self=no
7490 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7491 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7493 if test "x$lt_cv_dlopen_self" = xyes; then
7494 LDFLAGS="$LDFLAGS $link_static_flag"
7495 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7496 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7497 if test "${lt_cv_dlopen_self_static+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 if test "$cross_compiling" = yes; then :
7501 lt_cv_dlopen_self_static=cross
7503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7504 lt_status=$lt_dlunknown
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7506 "configure"
7507 #include "confdefs.h"
7516 # define LT_DLGLOBAL RTLD_GLOBAL
7519 # define LT_DLGLOBAL DL_GLOBAL
7521 # define LT_DLGLOBAL 0
7525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7526 find out it does not work in some platform. */
7527 #ifndef LT_DLLAZY_OR_NOW
7529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7532 # define LT_DLLAZY_OR_NOW DL_LAZY
7535 # define LT_DLLAZY_OR_NOW RTLD_NOW
7538 # define LT_DLLAZY_OR_NOW DL_NOW
7540 # define LT_DLLAZY_OR_NOW 0
7548 extern "C" void exit (int);
7551 fnord() { int i=42;}
7554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7555 int status = $lt_dlunknown;
7559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7561 /* dlclose (self); */
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7572 (./conftest; exit; ) 2>/dev/null
7575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7577 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7580 # compilation failed
7581 lt_cv_dlopen_self_static=no
7588 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7589 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7592 CPPFLAGS="$save_CPPFLAGS"
7593 LDFLAGS="$save_LDFLAGS"
7598 case "$lt_cv_dlopen_self" in
7599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7600 *) enable_dlopen_self=unknown ;;
7603 case "$lt_cv_dlopen_self_static" in
7604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7605 *) enable_dlopen_self_static=unknown ;;
7610 ## FIXME: this should be a separate macro
7612 if test "$enable_shared" = yes && test "$GCC" = yes; then
7613 case "$archive_cmds" in
7615 # FIXME: we may have to deal with multi-command sequences.
7618 # Test whether the compiler implicitly links with -lc since on some
7619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7620 # to ld, don't add -lc before -lgcc.
7621 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7623 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 echo 'static int dummy;' > conftest.$ac_ext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; then
7636 libobjs=conftest.$ac_objext
7638 wl=$lt_cv_prog_cc_wl
7644 save_allow_undefined_flag=$allow_undefined_flag
7645 allow_undefined_flag=
7646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }
7652 lt_cv_archive_cmds_need_lc=no
7654 lt_cv_archive_cmds_need_lc=yes
7656 allow_undefined_flag=$save_allow_undefined_flag
7658 cat conftest.err 1>&5
7662 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7663 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7667 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7671 ## FIXME: this should be a separate macro
7673 # The second clause should only fire when bootstrapping the
7674 # libtool distribution, otherwise you forgot to ship ltmain.sh
7675 # with your package, and you will get complaints that there are
7676 # no rules to generate ltmain.sh.
7677 if test -f "$ltmain"; then
7680 # If there is no Makefile yet, we rely on a make rule to execute
7681 # `config.status --recheck' to rerun these tests and create the
7682 # libtool script then.
7683 test -f Makefile && make "$ltmain"
7686 if test -f "$ltmain"; then
7687 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7690 echo creating $ofile
7692 # Now quote all the things that may contain metacharacters while being
7693 # careful not to overquote the AC_SUBSTed values. We take copies of the
7694 # variables and quote the copies for generation of the libtool script.
7695 for var in echo old_CC old_CFLAGS \
7696 AR AR_FLAGS CC LD LN_S NM SHELL \
7697 reload_flag reload_cmds wl \
7698 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7699 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7700 library_names_spec soname_spec \
7701 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7702 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7703 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7704 old_striplib striplib file_magic_cmd export_symbols_cmds \
7705 deplibs_check_method allow_undefined_flag no_undefined_flag \
7706 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7707 hardcode_libdir_flag_spec hardcode_libdir_separator \
7708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7709 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7712 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7713 old_postinstall_cmds | old_postuninstall_cmds | \
7714 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7715 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7716 postinstall_cmds | postuninstall_cmds | \
7717 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7718 # Double-quote double-evaled strings.
7719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7727 cat <<__EOF__ > "${ofile}T"
7730 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7731 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7734 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7735 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7737 # This program is free software; you can redistribute it and/or modify
7738 # it under the terms of the GNU General Public License as published by
7739 # the Free Software Foundation; either version 2 of the License, or
7740 # (at your option) any later version.
7742 # This program is distributed in the hope that it will be useful, but
7743 # WITHOUT ANY WARRANTY; without even the implied warranty of
7744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7745 # General Public License for more details.
7747 # You should have received a copy of the GNU General Public License
7748 # along with this program; if not, write to the Free Software
7749 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7751 # As a special exception to the GNU General Public License, if you
7752 # distribute this file as part of a program that contains a
7753 # configuration script generated by Autoconf, you may include it under
7754 # the same distribution terms that you use for the rest of that program.
7756 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7757 Xsed="sed -e s/^X//"
7759 # The HP-UX ksh and POSIX shell print the target directory to stdout
7761 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7763 # ### BEGIN LIBTOOL CONFIG
7765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7767 # Shell to use when invoking shell scripts.
7770 # Whether or not to build shared libraries.
7771 build_libtool_libs=$enable_shared
7773 # Whether or not to add -lc for building shared libraries.
7774 build_libtool_need_lc=$need_lc
7776 # Whether or not to build static libraries.
7777 build_old_libs=$enable_static
7779 # Whether or not to optimize for fast installation.
7780 fast_install=$enable_fast_install
7783 host_alias=$host_alias
7786 # An echo program that does not interpret backslashes.
7791 AR_FLAGS=$lt_AR_FLAGS
7793 # The default C compiler.
7796 # Is the compiler the GNU C compiler?
7799 # The linker used to build libraries.
7802 # Whether we need hard or soft links.
7805 # A BSD-compatible nm program.
7808 # A symbol stripping program
7811 # Used to examine libraries when file_magic_cmd begins "file"
7812 MAGIC_CMD=$MAGIC_CMD
7814 # Used on cygwin: DLL creation program.
7817 # Used on cygwin: object dumper.
7820 # Used on cygwin: assembler.
7823 # The name of the directory that contains temporary libtool files.
7826 # How to create reloadable object files.
7827 reload_flag=$lt_reload_flag
7828 reload_cmds=$lt_reload_cmds
7830 # How to pass a linker flag through the compiler.
7833 # Object file suffix (normally "o").
7836 # Old archive suffix (normally "a").
7839 # Executable file suffix (normally "").
7842 # Additional compiler flags for building library objects.
7843 pic_flag=$lt_pic_flag
7846 # Does compiler simultaneously support -c and -o options?
7847 compiler_c_o=$lt_compiler_c_o
7849 # Can we write directly to a .lo ?
7850 compiler_o_lo=$lt_compiler_o_lo
7852 # Must we lock files when doing compilation ?
7853 need_locks=$lt_need_locks
7855 # Do we need the lib prefix for modules?
7856 need_lib_prefix=$need_lib_prefix
7858 # Do we need a version for libraries?
7859 need_version=$need_version
7861 # Whether dlopen is supported.
7862 dlopen_support=$enable_dlopen
7864 # Whether dlopen of programs is supported.
7865 dlopen_self=$enable_dlopen_self
7867 # Whether dlopen of statically linked programs is supported.
7868 dlopen_self_static=$enable_dlopen_self_static
7870 # Compiler flag to prevent dynamic linking.
7871 link_static_flag=$lt_link_static_flag
7873 # Compiler flag to turn off builtin functions.
7874 no_builtin_flag=$lt_no_builtin_flag
7876 # Compiler flag to allow reflexive dlopens.
7877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7879 # Compiler flag to generate shared objects directly from archives.
7880 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7882 # Compiler flag to generate thread-safe objects.
7883 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7885 # Library versioning type.
7886 version_type=$version_type
7888 # Format of library name prefix.
7889 libname_spec=$lt_libname_spec
7891 # List of archive names. First name is the real one, the rest are links.
7892 # The last name is the one that the linker finds with -lNAME.
7893 library_names_spec=$lt_library_names_spec
7895 # The coded name of the library, if different from the real name.
7896 soname_spec=$lt_soname_spec
7898 # Commands used to build and install an old-style archive.
7900 old_archive_cmds=$lt_old_archive_cmds
7901 old_postinstall_cmds=$lt_old_postinstall_cmds
7902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7904 # Create an old-style archive from a shared archive.
7905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7907 # Create a temporary old-style archive to link instead of a shared archive.
7908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7910 # Commands used to build and install a shared archive.
7911 archive_cmds=$lt_archive_cmds
7912 archive_expsym_cmds=$lt_archive_expsym_cmds
7913 postinstall_cmds=$lt_postinstall_cmds
7914 postuninstall_cmds=$lt_postuninstall_cmds
7916 # Commands to strip libraries.
7917 old_striplib=$lt_old_striplib
7918 striplib=$lt_striplib
7920 # Method to check whether dependent libraries are shared objects.
7921 deplibs_check_method=$lt_deplibs_check_method
7923 # Command to use when deplibs_check_method == file_magic.
7924 file_magic_cmd=$lt_file_magic_cmd
7926 # Flag that allows shared libraries with undefined symbols to be built.
7927 allow_undefined_flag=$lt_allow_undefined_flag
7929 # Flag that forces no undefined symbols.
7930 no_undefined_flag=$lt_no_undefined_flag
7932 # Commands used to finish a libtool library installation in a directory.
7933 finish_cmds=$lt_finish_cmds
7935 # Same as above, but a single script fragment to be evaled but not shown.
7936 finish_eval=$lt_finish_eval
7938 # Take the output of nm and produce a listing of raw symbols and C names.
7939 global_symbol_pipe=$lt_global_symbol_pipe
7941 # Transform the output of nm in a proper C declaration
7942 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7944 # This is the shared library runtime path variable.
7945 runpath_var=$runpath_var
7947 # This is the shared library path variable.
7948 shlibpath_var=$shlibpath_var
7950 # Is shlibpath searched before the hard-coded library search path?
7951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7953 # How to hardcode a shared library path into an executable.
7954 hardcode_action=$hardcode_action
7956 # Whether we should hardcode library paths into libraries.
7957 hardcode_into_libs=$hardcode_into_libs
7959 # Flag to hardcode \$libdir into a binary during linking.
7960 # This must work even if \$libdir does not exist.
7961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7963 # Whether we need a single -rpath flag with a separated argument.
7964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7966 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7968 hardcode_direct=$hardcode_direct
7970 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7972 hardcode_minus_L=$hardcode_minus_L
7974 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7975 # the resulting binary.
7976 hardcode_shlibpath_var=$hardcode_shlibpath_var
7978 # Variables whose values should be saved in libtool wrapper scripts and
7979 # restored at relink time.
7980 variables_saved_for_relink="$variables_saved_for_relink"
7982 # Whether libtool must link a program against all its dependency libraries.
7983 link_all_deplibs=$link_all_deplibs
7985 # Compile-time system search path for libraries
7986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7988 # Run-time system search path for libraries
7989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7991 # Fix the shell variable \$srcfile for the compiler.
7992 fix_srcfile_path="$fix_srcfile_path"
7994 # Set to yes if exported symbols are required.
7995 always_export_symbols=$always_export_symbols
7997 # The commands to list exported symbols.
7998 export_symbols_cmds=$lt_export_symbols_cmds
8000 # The commands to extract the exported symbol list from a shared archive.
8001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8003 # Symbols that should not be listed in the preloaded symbols.
8004 exclude_expsyms=$lt_exclude_expsyms
8006 # Symbols that must always be exported.
8007 include_expsyms=$lt_include_expsyms
8009 # ### END LIBTOOL CONFIG
8015 cat <<\EOF >> "${ofile}T"
8017 # AIX sometimes has problems with the GCC collect2 program. For some
8018 # reason, if we set the COLLECT_NAMES environment variable, the problems
8019 # vanish in a puff of smoke.
8020 if test "X${COLLECT_NAMES+set}" != Xset; then
8022 export COLLECT_NAMES
8029 cygwin* | mingw* | pw32* | os2*)
8030 cat <<'EOF' >> "${ofile}T"
8031 # This is a source program that is used to create dlls on Windows
8032 # Don't remove nor modify the starting and closing comments
8033 # /* ltdll.c starts here */
8034 # #define WIN32_LEAN_AND_MEAN
8035 # #include <windows.h>
8036 # #undef WIN32_LEAN_AND_MEAN
8037 # #include <stdio.h>
8039 # #ifndef __CYGWIN__
8040 # # ifdef __CYGWIN32__
8041 # # define __CYGWIN__ __CYGWIN32__
8045 # #ifdef __cplusplus
8048 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8049 # #ifdef __cplusplus
8054 # #include <cygwin/cygwin_dll.h>
8055 # DECLARE_CYGWIN_DLL( DllMain );
8057 # HINSTANCE __hDllInstance_base;
8060 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8062 # __hDllInstance_base = hInst;
8065 # /* ltdll.c ends here */
8066 # This is a source program that is used to create import libraries
8067 # on Windows for dlls which lack them. Don't remove nor modify the
8068 # starting and closing comments
8069 # /* impgen.c starts here */
8070 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8072 # This file is part of GNU libtool.
8074 # This program is free software; you can redistribute it and/or modify
8075 # it under the terms of the GNU General Public License as published by
8076 # the Free Software Foundation; either version 2 of the License, or
8077 # (at your option) any later version.
8079 # This program is distributed in the hope that it will be useful,
8080 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8081 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8082 # GNU General Public License for more details.
8084 # You should have received a copy of the GNU General Public License
8085 # along with this program; if not, write to the Free Software
8086 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8089 # #include <stdio.h> /* for printf() */
8090 # #include <unistd.h> /* for open(), lseek(), read() */
8091 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8092 # #include <string.h> /* for strdup() */
8094 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8096 # #define O_BINARY 0
8099 # static unsigned int
8100 # pe_get16 (fd, offset)
8104 # unsigned char b[2];
8105 # lseek (fd, offset, SEEK_SET);
8107 # return b[0] + (b[1]<<8);
8110 # static unsigned int
8111 # pe_get32 (fd, offset)
8115 # unsigned char b[4];
8116 # lseek (fd, offset, SEEK_SET);
8118 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8121 # static unsigned int
8125 # unsigned char *b = ptr;
8126 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8135 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8136 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8137 # unsigned long name_rvas, nexp;
8138 # unsigned char *expdata, *erva;
8139 # char *filename, *dll_name;
8141 # filename = argv[1];
8143 # dll = open(filename, O_RDONLY|O_BINARY);
8147 # dll_name = filename;
8149 # for (i=0; filename[i]; i++)
8150 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8151 # dll_name = filename + i +1;
8153 # pe_header_offset = pe_get32 (dll, 0x3c);
8154 # opthdr_ofs = pe_header_offset + 4 + 20;
8155 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8157 # if (num_entries < 1) /* no exports */
8160 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8161 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8162 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8163 # secptr = (pe_header_offset + 4 + 20 +
8164 # pe_get16 (dll, pe_header_offset + 4 + 16));
8167 # for (i = 0; i < nsections; i++)
8170 # unsigned long secptr1 = secptr + 40 * i;
8171 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8172 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8173 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8174 # lseek(dll, secptr1, SEEK_SET);
8175 # read(dll, sname, 8);
8176 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8178 # expptr = fptr + (export_rva - vaddr);
8179 # if (export_rva + export_size > vaddr + vsize)
8180 # export_size = vsize - (export_rva - vaddr);
8185 # expdata = (unsigned char*)malloc(export_size);
8186 # lseek (dll, expptr, SEEK_SET);
8187 # read (dll, expdata, export_size);
8188 # erva = expdata - export_rva;
8190 # nexp = pe_as32 (expdata+24);
8191 # name_rvas = pe_as32 (expdata+32);
8193 # printf ("EXPORTS\n");
8194 # for (i = 0; i<nexp; i++)
8196 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8197 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8202 # /* impgen.c ends here */
8208 # We use sed instead of cat because bash on DJGPP gets confused if
8209 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8210 # text mode, it properly converts lines to CR/LF. This bash problem
8211 # is reportedly fixed, but why not run on old versions too?
8212 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8214 mv -f "${ofile}T" "$ofile" || \
8215 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8225 # This can be used to rebuild libtool when needed
8226 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8228 # Always use our own libtool.
8229 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8231 # Prevent multiple expansion
8235 support_addstrings=no
8237 support_linespace=no
8238 support_inheritpixmap=no
8241 support_keepscrolling=no
8242 support_selectionscrolling=no
8244 support_mousewheel=no
8245 support_mouseslipwheel=no
8249 support_cursor_blink=no
8250 support_text_blink=no
8251 support_pointer_blank=no
8252 support_scroll_rxvt=no
8253 support_scroll_next=no
8254 support_scroll_xterm=no
8255 support_scroll_plain=no
8260 support_combining=no
8261 support_8bitctrls=no
8265 if test "x$enable_shared" = xyes; then
8267 cat >>confdefs.h <<\_ACEOF
8275 # Check whether --enable-everything or --disable-everything was given.
8276 if test "${enable_everything+set}" = set; then
8277 enableval="$enable_everything"
8278 if test x$enableval = xyes; then
8281 support_linespace=yes
8282 support_inheritpixmap=yes
8285 support_keepscrolling=yes
8286 support_selectionscrolling=yes
8289 support_mousewheel=yes
8290 support_mouseslipwheel=yes
8291 support_cursor_blink=yes
8292 support_text_blink=yes
8293 support_pointer_blank=yes
8294 support_scroll_rxvt=yes
8295 support_scroll_next=yes
8296 support_scroll_xterm=yes
8297 support_scroll_plain=yes
8303 support_unicode3=yes
8304 support_combining=yes
8305 #support_8bitctrls=yes
8310 # Check whether --enable-unicode3 or --disable-unicode3 was given.
8311 if test "${enable_unicode3+set}" = set; then
8312 enableval="$enable_unicode3"
8313 if test x$enableval = xyes -o x$enableval = xno; then
8314 support_unicode3=yes
8318 # Check whether --enable-combining or --disable-combining was given.
8319 if test "${enable_combining+set}" = set; then
8320 enableval="$enable_combining"
8321 if test x$enableval = xyes -o x$enableval = xno; then
8322 support_combining=yes
8326 # Check whether --enable-xft or --disable-xft was given.
8327 if test "${enable_xft+set}" = set; then
8328 enableval="$enable_xft"
8329 if test x$enableval = xyes -o x$enableval = xno; then
8334 # Check whether --enable-utmp or --disable-utmp was given.
8335 if test "${enable_utmp+set}" = set; then
8336 enableval="$enable_utmp"
8337 if test x$enableval = xyes -o x$enableval = xno; then
8338 support_utmp=$enableval
8342 # Check whether --enable-wtmp or --disable-wtmp was given.
8343 if test "${enable_wtmp+set}" = set; then
8344 enableval="$enable_wtmp"
8345 if test x$enableval = xyes -o x$enableval = xno; then
8346 support_wtmp=$enableval
8350 # Check whether --enable-lastlog or --disable-lastlog was given.
8351 if test "${enable_lastlog+set}" = set; then
8352 enableval="$enable_lastlog"
8353 if test x$enableval = xyes -o x$enableval = xno; then
8354 support_lastlog=$enableval
8358 # Check whether --enable-xpm-background or --disable-xpm-background was given.
8359 if test "${enable_xpm_background+set}" = set; then
8360 enableval="$enable_xpm_background"
8361 if test x$enableval = xyes -o x$enableval = xno; then
8362 support_xpm=$enableval
8366 # Check whether --enable-transparency or --disable-transparency was given.
8367 if test "${enable_transparency+set}" = set; then
8368 enableval="$enable_transparency"
8369 if test x$enableval = xyes -o x$enableval = xno; then
8370 support_inheritpixmap=$enableval
8374 # Check whether --enable-tinting or --disable-tinting was given.
8375 if test "${enable_tinting+set}" = set; then
8376 enableval="$enable_tinting"
8377 if test x$enableval = xyes -o x$enableval = xno; then
8378 support_tinting=$enableval
8382 # Check whether --enable-fading or --disable-fading was given.
8383 if test "${enable_fading+set}" = set; then
8384 enableval="$enable_fading"
8385 if test x$enableval = xyes -o x$enableval = xno; then
8386 support_fading=$enableval
8390 # Check whether --enable-menubar or --disable-menubar was given.
8391 if test "${enable_menubar+set}" = set; then
8392 enableval="$enable_menubar"
8393 if test x$enableval = xyes -o x$enableval = xno; then
8394 support_menubar=$enableval
8398 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8399 if test "${enable_rxvt_scroll+set}" = set; then
8400 enableval="$enable_rxvt_scroll"
8401 if test x$enableval = xyes -o x$enableval = xno; then
8402 support_scroll_rxvt=$enableval
8406 # Check whether --enable-next-scroll or --disable-next-scroll was given.
8407 if test "${enable_next_scroll+set}" = set; then
8408 enableval="$enable_next_scroll"
8409 if test x$enableval = xyes -o x$enableval = xno; then
8410 support_scroll_next=$enableval
8414 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
8415 if test "${enable_xterm_scroll+set}" = set; then
8416 enableval="$enable_xterm_scroll"
8417 if test x$enableval = xyes -o x$enableval = xno; then
8418 support_scroll_xterm=$enableval
8422 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8423 if test "${enable_plain_scroll+set}" = set; then
8424 enableval="$enable_plain_scroll"
8425 if test x$enableval = xyes -o x$enableval = xno; then
8426 support_scroll_plain=$enableval
8430 # Check whether --enable-half-shadow or --disable-half-shadow was given.
8431 if test "${enable_half_shadow+set}" = set; then
8432 enableval="$enable_half_shadow"
8433 if test x$enableval = xyes; then
8435 cat >>confdefs.h <<\_ACEOF
8436 #define HALFSHADOW 1
8443 # Check whether --with-codesets or --without-codesets was given.
8444 if test "${with_codesets+set}" = set; then
8445 withval="$with_codesets"
8449 # Check whether --enable-xim or --disable-xim was given.
8450 if test "${enable_xim+set}" = set; then
8451 enableval="$enable_xim"
8452 if test x$enableval = xyes -o x$enableval = xno; then
8453 support_xim=$enableval
8457 # Check whether --enable-ttygid or --disable-ttygid was given.
8458 if test "${enable_ttygid+set}" = set; then
8459 enableval="$enable_ttygid"
8460 if test x$enableval = xyes; then
8462 cat >>confdefs.h <<\_ACEOF
8463 #define TTY_GID_SUPPORT 1
8469 # Check whether --enable-backspace-key or --disable-backspace-key was given.
8470 if test "${enable_backspace_key+set}" = set; then
8471 enableval="$enable_backspace_key"
8472 if test x$enableval = xno; then
8474 cat >>confdefs.h <<\_ACEOF
8475 #define NO_BACKSPACE_KEY 1
8481 # Check whether --enable-delete-key or --disable-delete-key was given.
8482 if test "${enable_delete_key+set}" = set; then
8483 enableval="$enable_delete_key"
8484 if test x$enableval = xno; then
8486 cat >>confdefs.h <<\_ACEOF
8487 #define NO_DELETE_KEY 1
8493 # Check whether --enable-resources or --disable-resources was given.
8494 if test "${enable_resources+set}" = set; then
8495 enableval="$enable_resources"
8496 if test x$enableval = xno; then
8498 cat >>confdefs.h <<\_ACEOF
8499 #define NO_RESOURCES 1
8505 # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8506 if test "${enable_xgetdefault+set}" = set; then
8507 enableval="$enable_xgetdefault"
8508 if test x$enableval = xyes; then
8510 cat >>confdefs.h <<\_ACEOF
8511 #define USE_XGETDEFAULT 1
8517 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8518 if test "${enable_8bitctrls+set}" = set; then
8519 enableval="$enable_8bitctrls"
8520 if test x$enableval = xyes -o x$enableval = xno; then
8521 support_8bitctrls=yes
8526 # Check whether --enable-fallback or --disable-fallback was given.
8527 if test "${enable_fallback+set}" = set; then
8528 enableval="$enable_fallback"
8530 test x$enableval = xyes && enableval=Rxvt
8531 test x$enableval = xno && enableval=
8532 RESFALLBACK="$enableval"
8536 if test x$RESFALLBACK != x; then
8538 cat >>confdefs.h <<_ACEOF
8539 #define RESFALLBACK "$RESFALLBACK"
8546 # Check whether --with-res-name or --without-res-name was given.
8547 if test "${with_res_name+set}" = set; then
8548 withval="$with_res_name"
8552 cat >>confdefs.h <<_ACEOF
8553 #define RESNAME "$RESNAME"
8559 # Check whether --with-res-class or --without-res-class was given.
8560 if test "${with_res_class+set}" = set; then
8561 withval="$with_res_class"
8565 cat >>confdefs.h <<_ACEOF
8566 #define RESCLASS "$RESCLASS"
8572 # Check whether --with-name or --without-name was given.
8573 if test "${with_name+set}" = set; then
8574 withval="$with_name"
8578 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8581 # Check whether --enable-strings or --disable-strings was given.
8582 if test "${enable_strings+set}" = set; then
8583 enableval="$enable_strings"
8584 if test x$enableval = xyes -o x$enableval = xno; then
8585 support_addstrings=$enableval
8589 # Check whether --enable-swapscreen or --disable-swapscreen was given.
8590 if test "${enable_swapscreen+set}" = set; then
8591 enableval="$enable_swapscreen"
8592 if test x$enableval = xno; then
8594 cat >>confdefs.h <<\_ACEOF
8595 #define NO_SECONDARY_SCREEN 1
8601 # Check whether --enable-frills or --disable-frills was given.
8602 if test "${enable_frills+set}" = set; then
8603 enableval="$enable_frills"
8604 if test x$enableval = xyes -o x$enableval = xno; then
8605 support_frills=$enableval
8609 # Check whether --enable-linespace or --disable-linespace was given.
8610 if test "${enable_linespace+set}" = set; then
8611 enableval="$enable_linespace"
8612 if test x$enableval = xyes -o x$enableval = xno; then
8613 support_linespace=$enableval
8617 # Check whether --enable-24bit or --disable-24bit was given.
8618 if test "${enable_24bit+set}" = set; then
8619 enableval="$enable_24bit"
8620 if test x$enableval = xyes -o x$enableval = xno; then
8621 support_24bit=$enableval
8625 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8626 if test "${enable_keepscrolling+set}" = set; then
8627 enableval="$enable_keepscrolling"
8628 if test x$enableval = xyes -o x$enableval = xno; then
8629 support_keepscrolling=$enableval
8633 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
8634 if test "${enable_selectionscrolling+set}" = set; then
8635 enableval="$enable_selectionscrolling"
8636 if test x$enableval = xyes -o x$enableval = xno; then
8637 support_selectionscrolling=$enableval
8641 # Check whether --enable-mousewheel or --disable-mousewheel was given.
8642 if test "${enable_mousewheel+set}" = set; then
8643 enableval="$enable_mousewheel"
8644 if test x$enableval = xyes -o x$enableval = xno; then
8645 support_mousewheel=$enableval
8649 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8650 if test "${enable_slipwheeling+set}" = set; then
8651 enableval="$enable_slipwheeling"
8652 if test x$enableval = xyes -o x$enableval = xno; then
8653 support_mouseslipwheel=$enableval
8657 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8658 if test "${enable_dmalloc+set}" = set; then
8659 enableval="$enable_dmalloc"
8660 if test x$enableval = xyes; then
8662 DEBUG=-DDEBUG_MALLOC
8663 DLIB="-L/usr/local/lib -ldmalloc"
8664 DINCLUDE=-I/usr/local/include
8668 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8669 if test "${enable_dlmalloc+set}" = set; then
8670 enableval="$enable_dlmalloc"
8671 if test x$enableval = xyes; then
8674 DLIB="-L/usr/local/lib -ldlmalloc"
8679 # Check whether --enable-smart-resize or --disable-smart-resize was given.
8680 if test "${enable_smart_resize+set}" = set; then
8681 enableval="$enable_smart_resize"
8682 if test x$enableval = xyes; then
8684 cat >>confdefs.h <<\_ACEOF
8685 #define SMART_RESIZE 1
8691 # Check whether --enable-256-color or --disable-256-color was given.
8692 if test "${enable_256_color+set}" = set; then
8693 enableval="$enable_256_color"
8694 if test x$enableval = xyes; then
8696 cat >>confdefs.h <<\_ACEOF
8697 #define TTY_256COLOR 1
8703 # Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8704 if test "${enable_cursor_blink+set}" = set; then
8705 enableval="$enable_cursor_blink"
8706 if test x$enableval = xyes -o x$enableval = xno; then
8707 support_cursor_blink=$enableval
8711 # Check whether --enable-text-blink or --disable-text-blink was given.
8712 if test "${enable_text_blink+set}" = set; then
8713 enableval="$enable_text_blink"
8714 if test x$enableval = xyes -o x$enableval = xno; then
8715 support_text_blink=$enableval
8719 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
8720 if test "${enable_pointer_blank+set}" = set; then
8721 enableval="$enable_pointer_blank"
8722 if test x$enableval = xyes -o x$enableval = xno; then
8723 support_pointer_blank=$enableval
8728 # Check whether --with-term or --without-term was given.
8729 if test "${with_term+set}" = set; then
8730 withval="$with_term"
8731 if test x$withval != x; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define TERMENV "$withval"
8741 # Check whether --with-terminfo or --without-terminfo was given.
8742 if test "${with_terminfo+set}" = set; then
8743 withval="$with_terminfo"
8744 if test x$withval != x; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define RXVT_TERMINFO "$withval"
8755 cat >>confdefs.h <<\_ACEOF
8756 #define PROTOTYPES 1
8760 if test -z "$CFLAGS"; then
8761 if test -z "$CCOPTS"; then
8767 # Extract the first word of "mv", so it can be a program name with args.
8768 set dummy mv; ac_word=$2
8769 echo "$as_me:$LINENO: checking for $ac_word" >&5
8770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771 if test "${ac_cv_path_MV+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 ac_cv_path_MV="$MV" # Let the user override the test with a path.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
8799 if test -n "$MV"; then
8800 echo "$as_me:$LINENO: result: $MV" >&5
8801 echo "${ECHO_T}$MV" >&6
8803 echo "$as_me:$LINENO: result: no" >&5
8804 echo "${ECHO_T}no" >&6
8807 # Extract the first word of "rm", so it can be a program name with args.
8808 set dummy rm; ac_word=$2
8809 echo "$as_me:$LINENO: checking for $ac_word" >&5
8810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8811 if test "${ac_cv_path_RM+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8839 if test -n "$RM"; then
8840 echo "$as_me:$LINENO: result: $RM" >&5
8841 echo "${ECHO_T}$RM" >&6
8843 echo "$as_me:$LINENO: result: no" >&5
8844 echo "${ECHO_T}no" >&6
8847 # Extract the first word of "cp", so it can be a program name with args.
8848 set dummy cp; ac_word=$2
8849 echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851 if test "${ac_cv_path_CP+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
8879 if test -n "$CP"; then
8880 echo "$as_me:$LINENO: result: $CP" >&5
8881 echo "${ECHO_T}$CP" >&6
8883 echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8887 # Extract the first word of "ln", so it can be a program name with args.
8888 set dummy ln; ac_word=$2
8889 echo "$as_me:$LINENO: checking for $ac_word" >&5
8890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8891 if test "${ac_cv_path_LN+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 ac_cv_path_LN="$LN" # Let the user override the test with a path.
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8906 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
8919 if test -n "$LN"; then
8920 echo "$as_me:$LINENO: result: $LN" >&5
8921 echo "${ECHO_T}$LN" >&6
8923 echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6
8927 # Extract the first word of "sed", so it can be a program name with args.
8928 set dummy sed; ac_word=$2
8929 echo "$as_me:$LINENO: checking for $ac_word" >&5
8930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8931 if test "${ac_cv_path_SED+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 ac_cv_path_SED="$SED" # Let the user override the test with a path.
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
8959 if test -n "$SED"; then
8960 echo "$as_me:$LINENO: result: $SED" >&5
8961 echo "${ECHO_T}$SED" >&6
8963 echo "$as_me:$LINENO: result: no" >&5
8964 echo "${ECHO_T}no" >&6
8967 # Extract the first word of "echo", so it can be a program name with args.
8968 set dummy echo; ac_word=$2
8969 echo "$as_me:$LINENO: checking for $ac_word" >&5
8970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971 if test "${ac_cv_path_ECHO+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
8997 ECHO=$ac_cv_path_ECHO
8999 if test -n "$ECHO"; then
9000 echo "$as_me:$LINENO: result: $ECHO" >&5
9001 echo "${ECHO_T}$ECHO" >&6
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9007 # Extract the first word of "cmp", so it can be a program name with args.
9008 set dummy cmp; ac_word=$2
9009 echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9011 if test "${ac_cv_path_CMP+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
9027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
9039 if test -n "$CMP"; then
9040 echo "$as_me:$LINENO: result: $CMP" >&5
9041 echo "${ECHO_T}$CMP" >&6
9043 echo "$as_me:$LINENO: result: no" >&5
9044 echo "${ECHO_T}no" >&6
9047 # Extract the first word of "tbl", so it can be a program name with args.
9048 set dummy tbl; ac_word=$2
9049 echo "$as_me:$LINENO: checking for $ac_word" >&5
9050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9051 if test "${ac_cv_path_TBL+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 test -z "$as_dir" && as_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9066 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
9067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9078 if test -n "$TBL"; then
9079 echo "$as_me:$LINENO: result: $TBL" >&5
9080 echo "${ECHO_T}$TBL" >&6
9082 echo "$as_me:$LINENO: result: no" >&5
9083 echo "${ECHO_T}no" >&6
9090 if test "x$ac_path_x_has_been_run" != xyes; then
9091 echo "$as_me:$LINENO: checking for X" >&5
9092 echo $ECHO_N "checking for X... $ECHO_C" >&6
9094 ac_path_x_has_been_run=yes
9096 # Check whether --with-x or --without-x was given.
9097 if test "${with_x+set}" = set; then
9101 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9102 if test "x$with_x" = xno; then
9103 # The user explicitly disabled X.
9106 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9107 # Both variables are already set.
9110 if test "${ac_cv_have_x+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 # One or both of the vars are not set, and there is no cached value.
9114 ac_x_includes=no ac_x_libraries=no
9116 if mkdir conftest.dir; then
9118 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9119 cat >Imakefile <<'_ACEOF'
9121 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9123 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9124 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9125 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9126 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9127 for ac_extension in a so sl; do
9128 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9129 test -f $ac_im_libdir/libX11.$ac_extension; then
9130 ac_im_usrlibdir=$ac_im_libdir; break
9133 # Screen out bogus values from the imake configuration. They are
9134 # bogus both because they are the default anyway, and because
9135 # using them would break gcc on systems where it needs fixed includes.
9136 case $ac_im_incroot in
9138 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9140 case $ac_im_usrlibdir in
9142 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9149 # Standard set of common directories for X headers.
9150 # Check X11 before X11Rn because it is often a symlink to the current release.
9162 /usr/local/X11/include
9163 /usr/local/X11R6/include
9164 /usr/local/X11R5/include
9165 /usr/local/X11R4/include
9167 /usr/local/include/X11
9168 /usr/local/include/X11R6
9169 /usr/local/include/X11R5
9170 /usr/local/include/X11R4
9174 /usr/XFree86/include/X11
9178 /usr/unsupported/include
9180 /usr/local/x11r5/include
9181 /usr/lpp/Xamples/include
9183 /usr/openwin/include
9184 /usr/openwin/share/include'
9186 if test "$ac_x_includes" = no; then
9187 # Guess where to find include files, by looking for a specified header file.
9188 # First, try using that file with no special directory specified.
9189 cat >conftest.$ac_ext <<_ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <X11/Intrinsic.h>
9197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9200 grep -v '^ *+' conftest.er1 >conftest.err
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } >/dev/null; then
9205 if test -s conftest.err; then
9206 ac_cpp_err=$ac_cxx_preproc_warn_flag
9207 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9214 if test -z "$ac_cpp_err"; then
9215 # We can compile using X headers with no special include directory.
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 for ac_dir in $ac_x_header_dirs; do
9222 if test -r "$ac_dir/X11/Intrinsic.h"; then
9223 ac_x_includes=$ac_dir
9228 rm -f conftest.err conftest.$ac_ext
9229 fi # $ac_x_includes = no
9231 if test "$ac_x_libraries" = no; then
9232 # Check for the libraries.
9233 # See if we find them without any special options.
9234 # Don't add to $LIBS permanently.
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 #include <X11/Intrinsic.h>
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9274 # We can link X programs with no special library path.
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9281 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9283 # Don't even attempt the hair of trying to link an X program!
9284 for ac_extension in a so sl; do
9285 if test -r $ac_dir/libXt.$ac_extension; then
9286 ac_x_libraries=$ac_dir
9292 rm -f conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 fi # $ac_x_libraries = no
9296 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9297 # Didn't find X anywhere. Cache the known absence of X.
9298 ac_cv_have_x="have_x=no"
9300 # Record where we found X for the cache.
9301 ac_cv_have_x="have_x=yes \
9302 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9307 eval "$ac_cv_have_x"
9310 if test "$have_x" != yes; then
9311 echo "$as_me:$LINENO: result: $have_x" >&5
9312 echo "${ECHO_T}$have_x" >&6
9315 # If each of the values was on the command line, it overrides each guess.
9316 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9317 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9318 # Update the cache value to reflect the command line values.
9319 ac_cv_have_x="have_x=yes \
9320 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9321 # It might be that x_includes is empty (headers are found in the
9322 # standard search path. Then output the corresponding message
9323 ac_out_x_includes=$x_includes
9324 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9325 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9326 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9330 if test "$no_x" = yes; then
9331 # Not all programs may use this symbol, but it does not hurt to define it.
9333 cat >>confdefs.h <<\_ACEOF
9334 #define X_DISPLAY_MISSING 1
9337 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9339 if test -n "$x_includes"; then
9340 X_CFLAGS="$X_CFLAGS -I$x_includes"
9343 # It would also be nice to do this for all -L options, not just this one.
9344 if test -n "$x_libraries"; then
9345 X_LIBS="$X_LIBS -L$x_libraries"
9346 # For Solaris; some versions of Sun CC require a space after -R and
9347 # others require no space. Words are not sufficient . . . .
9348 case `(uname -sr) 2>/dev/null` in
9350 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9351 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9352 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9353 cat >conftest.$ac_ext <<_ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 if test $ac_R_nospace = yes; then
9399 echo "$as_me:$LINENO: result: no" >&5
9400 echo "${ECHO_T}no" >&6
9401 X_LIBS="$X_LIBS -R$x_libraries"
9403 LIBS="$ac_xsave_LIBS -R $x_libraries"
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest$ac_exeext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9447 rm -f conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 if test $ac_R_space = yes; then
9450 echo "$as_me:$LINENO: result: yes" >&5
9451 echo "${ECHO_T}yes" >&6
9452 X_LIBS="$X_LIBS -R $x_libraries"
9454 echo "$as_me:$LINENO: result: neither works" >&5
9455 echo "${ECHO_T}neither works" >&6
9462 # Check for system-dependent libraries X programs must link with.
9463 # Do this before checking for the system-independent R6 libraries
9464 # (-lICE), since we may need -lsocket or whatever for X linking.
9466 if test "$ISC" = yes; then
9467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9469 # Martyn Johnson says this is needed for Ultrix, if the X
9470 # libraries were built with DECnet support. And Karl Berry says
9471 # the Alpha needs dnet_stub (dnet does not exist).
9472 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any gcc2 internal prototype to avoid an error. */
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486 char XOpenDisplay ();
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest$ac_exeext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9522 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9523 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_check_lib_save_LIBS=$LIBS
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9535 /* Override any gcc2 internal prototype to avoid an error. */
9539 /* We use char because int might match the return type of a gcc2
9540 builtin and then its argument prototype would still apply. */
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_lib_dnet_dnet_ntoa=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_cv_lib_dnet_dnet_ntoa=no
9578 rm -f conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 LIBS=$ac_check_lib_save_LIBS
9582 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9583 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9584 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9585 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9588 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9589 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9590 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9591 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-ldnet_stub $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any gcc2 internal prototype to avoid an error. */
9607 /* We use char because int might match the return type of a gcc2
9608 builtin and then its argument prototype would still apply. */
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_cv_lib_dnet_stub_dnet_ntoa=no
9646 rm -f conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9650 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9651 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9652 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9653 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9658 rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS="$ac_xsave_LIBS"
9662 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9663 # to get the SysV transport functions.
9664 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9666 # The nsl library prevents programs from opening the X display
9667 # on Irix 5.2, according to T.E. Dickey.
9668 # The functions gethostbyname, getservbyname, and inet_addr are
9669 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9670 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9671 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9672 if test "${ac_cv_func_gethostbyname+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9683 #define gethostbyname innocuous_gethostbyname
9685 /* System header to define __stub macros and hopefully few prototypes,
9686 which can conflict with char gethostbyname (); below.
9687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9688 <limits.h> exists even on freestanding compilers. */
9691 # include <limits.h>
9693 # include <assert.h>
9696 #undef gethostbyname
9698 /* Override any gcc2 internal prototype to avoid an error. */
9703 /* We use char because int might match the return type of a gcc2
9704 builtin and then its argument prototype would still apply. */
9705 char gethostbyname ();
9706 /* The GNU C library defines this for functions which it implements
9707 to always fail with ENOSYS. Some functions are actually named
9708 something starting with __ and the normal name is an alias. */
9709 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9712 char (*f) () = gethostbyname;
9721 return f != gethostbyname;
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728 (eval $ac_link) 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_func_gethostbyname=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_func_gethostbyname=no
9754 rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9758 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9760 if test $ac_cv_func_gethostbyname = no; then
9761 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9762 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9763 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 ac_check_lib_save_LIBS=$LIBS
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9775 /* Override any gcc2 internal prototype to avoid an error. */
9779 /* We use char because int might match the return type of a gcc2
9780 builtin and then its argument prototype would still apply. */
9781 char gethostbyname ();
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_nsl_gethostbyname=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_nsl_gethostbyname=no
9818 rm -f conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9822 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9823 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9824 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9828 if test $ac_cv_lib_nsl_gethostbyname = no; then
9829 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9830 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9831 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 ac_check_lib_save_LIBS=$LIBS
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any gcc2 internal prototype to avoid an error. */
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849 char gethostbyname ();
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_bsd_gethostbyname=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_lib_bsd_gethostbyname=no
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9891 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9892 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9899 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9900 # socket/setsockopt and other routines are undefined under SCO ODT
9901 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9902 # on later versions), says Simon Leinen: it contains gethostby*
9903 # variants that don't use the name server (or something). -lsocket
9904 # must be given before -lnsl if both are needed. We assume that
9905 # if connect needs -lnsl, so does gethostbyname.
9906 echo "$as_me:$LINENO: checking for connect" >&5
9907 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9908 if test "${ac_cv_func_connect+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9919 #define connect innocuous_connect
9921 /* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char connect (); below.
9923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9924 <limits.h> exists even on freestanding compilers. */
9927 # include <limits.h>
9929 # include <assert.h>
9934 /* Override any gcc2 internal prototype to avoid an error. */
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9942 /* The GNU C library defines this for functions which it implements
9943 to always fail with ENOSYS. Some functions are actually named
9944 something starting with __ and the normal name is an alias. */
9945 #if defined (__stub_connect) || defined (__stub___connect)
9948 char (*f) () = connect;
9957 return f != connect;
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_func_connect=yes
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_func_connect=no
9990 rm -f conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9993 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9994 echo "${ECHO_T}$ac_cv_func_connect" >&6
9996 if test $ac_cv_func_connect = no; then
9997 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9998 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9999 if test "${ac_cv_lib_socket_connect+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any gcc2 internal prototype to avoid an error. */
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 ac_cv_lib_socket_connect=yes
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_cv_lib_socket_connect=no
10054 rm -f conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10058 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10059 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10060 if test $ac_cv_lib_socket_connect = yes; then
10061 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10066 # Guillermo Gomez says -lposix is necessary on A/UX.
10067 echo "$as_me:$LINENO: checking for remove" >&5
10068 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10069 if test "${ac_cv_func_remove+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080 #define remove innocuous_remove
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char remove (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10088 # include <limits.h>
10090 # include <assert.h>
10095 /* Override any gcc2 internal prototype to avoid an error. */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined (__stub_remove) || defined (__stub___remove)
10109 char (*f) () = remove;
10118 return f != remove;
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10127 grep -v '^ *+' conftest.er1 >conftest.err
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_func_remove=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_func_remove=no
10151 rm -f conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10154 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10155 echo "${ECHO_T}$ac_cv_func_remove" >&6
10157 if test $ac_cv_func_remove = no; then
10158 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10159 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10160 if test "${ac_cv_lib_posix_remove+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-lposix $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10172 /* Override any gcc2 internal prototype to avoid an error. */
10176 /* We use char because int might match the return type of a gcc2
10177 builtin and then its argument prototype would still apply. */
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_posix_remove=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_lib_posix_remove=no
10215 rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10220 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10221 if test $ac_cv_lib_posix_remove = yes; then
10222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10227 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10228 echo "$as_me:$LINENO: checking for shmat" >&5
10229 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10230 if test "${ac_cv_func_shmat+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10241 #define shmat innocuous_shmat
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char shmat (); below.
10245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246 <limits.h> exists even on freestanding compilers. */
10249 # include <limits.h>
10251 # include <assert.h>
10256 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10264 /* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267 #if defined (__stub_shmat) || defined (__stub___shmat)
10270 char (*f) () = shmat;
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_func_shmat=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_func_shmat=no
10312 rm -f conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10316 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10318 if test $ac_cv_func_shmat = no; then
10319 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10320 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10321 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 ac_check_lib_save_LIBS=$LIBS
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10333 /* Override any gcc2 internal prototype to avoid an error. */
10337 /* We use char because int might match the return type of a gcc2
10338 builtin and then its argument prototype would still apply. */
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_lib_ipc_shmat=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_cv_lib_ipc_shmat=no
10376 rm -f conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10378 LIBS=$ac_check_lib_save_LIBS
10380 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10381 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10382 if test $ac_cv_lib_ipc_shmat = yes; then
10383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10389 # Check for libraries that X11R6 Xt/Xaw programs need.
10390 ac_save_LDFLAGS=$LDFLAGS
10391 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10392 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10393 # check for ICE first), but we must link in the order -lSM -lICE or
10394 # we get undefined symbols. So assume we have SM if we have ICE.
10395 # These have to be linked with before -lX11, unlike the other
10396 # libraries we check for below, so use a different variable.
10397 # John Interrante, Karl Berry
10398 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10399 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10400 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 ac_check_lib_save_LIBS=$LIBS
10404 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10405 cat >conftest.$ac_ext <<_ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10412 /* Override any gcc2 internal prototype to avoid an error. */
10416 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */
10418 char IceConnectionNumber ();
10422 IceConnectionNumber ();
10427 rm -f conftest.$ac_objext conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_lib_ICE_IceConnectionNumber=yes
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_cv_lib_ICE_IceConnectionNumber=no
10455 rm -f conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10459 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10460 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10461 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10465 LDFLAGS=$ac_save_LDFLAGS
10471 if test x$support_xpm = xyes; then
10475 # Initialize some more variables set by options.
10476 # The variables have the same names as the options, with
10477 # dashes changed to underlines.
10479 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
10480 # paths, otherwise set no_xpm=yes.
10481 # Uses ac_ vars as temps to allow command line to override cache and checks.
10482 echo "$as_me:$LINENO: checking for libXpm" >&5
10483 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
10486 # Check whether --with-xpm_includes or --without-xpm_includes was given.
10487 if test "${with_xpm_includes+set}" = set; then
10488 withval="$with_xpm_includes"
10489 xpm_includes="$withval"
10494 # Check whether --with-xpm_library or --without-xpm_library was given.
10495 if test "${with_xpm_library+set}" = set; then
10496 withval="$with_xpm_library"
10497 xpm_libraries="$withval"
10502 # --without-xpm overrides everything else, but does not touch the cache.
10504 # Check whether --with-xpm or --without-xpm was given.
10505 if test "${with_xpm+set}" = set; then
10506 withval="$with_xpm"
10509 if test "$with_xpm" = no; then
10512 if test "${ac_cv_have_xpm+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 vt_xpm_include_X11=no
10517 if test -n "$xpm_includes"; then
10518 vt_xpm_includes=$xpm_includes
10522 if test -n "$xpm_libraries"; then
10523 vt_xpm_libraries=$xpm_libraries
10525 vt_xpm_libraries=NO
10528 if test "$vt_xpm_includes" = NO; then
10529 # Guess where to find xpm.h
10531 ac_save_CPPFLAGS="$CPPFLAGS"
10532 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10534 # First, try using that file with no special directory specified.
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <X11/xpm.h>
10543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } >/dev/null; then
10551 if test -s conftest.err; then
10552 ac_cpp_err=$ac_cxx_preproc_warn_flag
10553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10560 if test -z "$ac_cpp_err"; then
10561 # We can compile using X headers with no special include directory.
10563 vt_xpm_include_X11=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 CPPFLAGS="$ac_save_CPPFLAGS"
10569 # Look for the header file in a standard set of common directories.
10572 /usr/X11R6/include \
10573 /usr/X11R5/include \
10574 /usr/X11R4/include \
10577 /usr/include/X11R6 \
10578 /usr/include/X11R5 \
10579 /usr/include/X11R4 \
10581 /usr/local/X11/include \
10582 /usr/local/X11R6/include \
10583 /usr/local/X11R5/include \
10584 /usr/local/X11R4/include \
10586 /usr/local/include/X11 \
10587 /usr/local/include/X11R6 \
10588 /usr/local/include/X11R5 \
10589 /usr/local/include/X11R4 \
10591 /usr/X386/include \
10592 /usr/x386/include \
10593 /usr/XFree86/include/X11 \
10596 /usr/local/include \
10597 /usr/unsupported/include \
10598 /usr/athena/include \
10599 /usr/local/x11r5/include \
10600 /usr/lpp/Xamples/include \
10602 /usr/openwin/include \
10603 /usr/openwin/share/include \
10606 if test -r "$ac_dir/X11/xpm.h"; then
10607 vt_xpm_includes="$ac_dir"
10608 vt_xpm_include_X11=yes
10611 if test -r "$ac_dir/xpm.h"; then
10612 vt_xpm_includes=$ac_dir
10618 rm -f conftest.err conftest.$ac_ext
10621 if test "$vt_xpm_libraries" = NO; then
10622 # Check for the libraries.
10624 # See if we find them without any special options.
10625 # Don't add to $LIBS permanently.
10626 ac_save_LIBS="$LIBS"
10627 LIBS="$LIBS $X_LIBS -lXpm -lX11"
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10638 XpmReadFileToPixmap()
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 LIBS="$ac_save_LIBS"
10665 # We can link libXpm with no special library path.
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 LIBS="$ac_save_LIBS"
10672 # First see if replacing the include by lib works.
10674 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
10685 /usr/local/X11/lib \
10686 /usr/local/X11R6/lib \
10687 /usr/local/X11R5/lib \
10688 /usr/local/X11R4/lib \
10690 /usr/local/lib/X11 \
10691 /usr/local/lib/X11R6 \
10692 /usr/local/lib/X11R5 \
10693 /usr/local/lib/X11R4 \
10697 /usr/XFree86/lib/X11 \
10701 /usr/unsupported/lib \
10703 /usr/local/x11r5/lib \
10704 /usr/lpp/Xamples/lib \
10707 /usr/openwin/share/lib \
10710 for ac_extension in a so sl; do
10711 if test -r $ac_dir/libXpm.$ac_extension; then
10712 vt_xpm_libraries=$ac_dir
10718 rm -f conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10723 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
10724 ac_cv_have_xpm="have_xpm=no"
10726 ac_cv_have_xpm="have_xpm=yes \
10727 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
10728 vt_xpm_include_X11=$vt_xpm_include_X11"
10731 eval "$ac_cv_have_xpm"
10734 if test "$have_xpm" != yes; then
10735 echo "$as_me:$LINENO: result: $have_xpm" >&5
10736 echo "${ECHO_T}$have_xpm" >&6
10739 if test "$xpm_includes" != NO; then
10740 if test "$xpm_includes" = "$vt_xpm_includes"; then
10741 if test -r "$xpm_includes/X11/xpm.h"; then
10742 vt_xpm_include_X11=yes
10745 vt_xpm_include_X11=no
10746 if test -z "$xpm_includes"; then
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <X11/xpm.h>
10755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } >/dev/null; then
10763 if test -s conftest.err; then
10764 ac_cpp_err=$ac_cxx_preproc_warn_flag
10765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10772 if test -z "$ac_cpp_err"; then
10773 vt_xpm_include_X11=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10780 rm -f conftest.err conftest.$ac_ext
10782 if test -r "$xpm_includes/X11/xpm.h"; then
10783 vt_xpm_include_X11=yes
10787 vt_xpm_includes=$xpm_includes
10789 if test "x$xpm_libraries" != xNO; then
10790 vt_xpm_libraries=$xpm_libraries
10792 # Update the cache value to reflect the command line values.
10793 ac_cv_have_xpm="have_xpm=yes \
10794 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
10795 vt_xpm_include_X11=$vt_xpm_include_X11"
10796 eval "$ac_cv_have_xpm"
10797 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
10798 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
10799 if test -n "$vt_xpm_includes"; then
10800 XPM_CPPFLAGS="-DHAVE_LIBXPM"
10802 if test -n "$vt_xpm_includes"; then
10803 XPM_CFLAGS="-I$vt_xpm_includes"
10806 if test -n "$vt_xpm_libraries"; then
10807 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
10809 if test "x$vt_xpm_include_X11" = xyes; then
10811 cat >>confdefs.h <<\_ACEOF
10812 #define XPM_INC_X11 1
10822 if test x$no_xpm = xyes; then
10823 support_xpm=needsmanualspecification
10827 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10828 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10829 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 #include <sys/types.h>
10839 #include <sys/wait.h>
10840 #ifndef WEXITSTATUS
10841 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10844 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10857 rm -f conftest.$ac_objext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>conftest.er1
10861 grep -v '^ *+' conftest.er1 >conftest.err
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_header_sys_wait_h=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ac_cv_header_sys_wait_h=no
10885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10887 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10888 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10889 if test $ac_cv_header_sys_wait_h = yes; then
10891 cat >>confdefs.h <<\_ACEOF
10892 #define HAVE_SYS_WAIT_H 1
10938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10940 echo "$as_me:$LINENO: checking for $ac_header" >&5
10941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10948 # Is the header compilable?
10949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 $ac_includes_default
10958 #include <$ac_header>
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>conftest.er1
10964 grep -v '^ *+' conftest.er1 >conftest.err
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_header_compiler=yes
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_header_compiler=no
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6
10992 # Is the header present?
10993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <$ac_header>
11003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null; then
11011 if test -s conftest.err; then
11012 ac_cpp_err=$ac_cxx_preproc_warn_flag
11013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11020 if test -z "$ac_cpp_err"; then
11021 ac_header_preproc=yes
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_header_preproc=no
11028 rm -f conftest.err conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030 echo "${ECHO_T}$ac_header_preproc" >&6
11032 # So? What about this header?
11033 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039 ac_header_preproc=yes
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11056 ## ------------------------------------------ ##
11057 ## Report this to the AC_PACKAGE_NAME lists. ##
11058 ## ------------------------------------------ ##
11061 sed "s/^/$as_me: WARNING: /" >&2
11064 echo "$as_me:$LINENO: checking for $ac_header" >&5
11065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 eval "$as_ac_Header=\$ac_header_preproc"
11071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11085 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11086 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11087 if test "${ac_cv_header_time+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <sys/types.h>
11097 #include <sys/time.h>
11103 if ((struct tm *) 0)
11109 rm -f conftest.$ac_objext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11111 (eval $ac_compile) 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 ac_cv_header_time=yes
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_cv_header_time=no
11137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11139 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11140 echo "${ECHO_T}$ac_cv_header_time" >&6
11141 if test $ac_cv_header_time = yes; then
11143 cat >>confdefs.h <<\_ACEOF
11144 #define TIME_WITH_SYS_TIME 1
11150 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
11151 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
11152 if test "${rxvt_cv_header_sysioctl+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11162 #include <sys/ioctl.h>
11163 #ifdef HAVE_TERMIOS_H
11164 #include <termios.h>
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11178 grep -v '^ *+' conftest.er1 >conftest.err
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 rxvt_cv_header_sysioctl=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 rxvt_cv_header_sysioctl=no
11202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
11205 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
11207 if test -n "$GCC"; then
11212 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
11214 ac_save_CFLAGS=$CFLAGS
11216 CFLAGS="$CFLAGS $X_CFLAGS"
11217 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11218 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
11219 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
11220 if test "${rxvt_cv_rpath+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 if test "$cross_compiling" = yes; then
11224 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
11225 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11237 (void) XOpenDisplay("foobar");
11240 rm -f conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11253 echo "$as_me: program exited with status $ac_status" >&5
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ( exit $ac_status )
11260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
11264 echo "${ECHO_T}$rxvt_cv_rpath" >&6
11265 if test x$rxvt_cv_rpath != xyes; then
11266 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
11267 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11268 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
11269 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
11270 if test "${rxvt_cv_R+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 if test "$cross_compiling" = yes; then
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11286 (void) XOpenDisplay("foobar");
11289 rm -f conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11302 echo "$as_me: program exited with status $ac_status" >&5
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ( exit $ac_status )
11309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11312 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
11313 echo "${ECHO_T}$rxvt_cv_R" >&6
11314 if test x$rxvt_cv_R != xyes; then
11315 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11319 echo "$as_me:$LINENO: checking for XPointer" >&5
11320 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
11321 if test "${rxvt_cv_xpointer+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <X11/Xlib.h>
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest.$ac_objext'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 rxvt_cv_xpointer=yes
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 rxvt_cv_xpointer=no
11367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11369 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
11370 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
11371 if test x$rxvt_cv_xpointer = xyes; then
11373 cat >>confdefs.h <<\_ACEOF
11374 #define HAVE_XPOINTER 1
11379 CFLAGS=$ac_save_CFLAGS
11382 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11383 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11384 if test "${ac_cv_c_const+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11397 /* FIXME: Include the comments suggested by Paul. */
11398 #ifndef __cplusplus
11399 /* Ultrix mips cc rejects this. */
11400 typedef int charset[2];
11402 /* SunOS 4.1.1 cc rejects this. */
11403 char const *const *ccp;
11405 /* NEC SVR4.0.2 mips cc rejects this. */
11406 struct point {int x, y;};
11407 static struct point const zero = {0,0};
11408 /* AIX XL C 1.02.0.0 rejects this.
11409 It does not let you subtract one const X* pointer from another in
11410 an arm of an if-expression whose if-part is not a constant
11412 const char *g = "string";
11413 ccp = &g + (g ? g-g : 0);
11414 /* HPUX 7.0 cc rejects these. */
11417 ccp = (char const *const *) p;
11418 { /* SCO 3.2v4 cc rejects this. */
11420 char const *s = 0 ? (char *) 0 : (char const *) 0;
11424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11425 int x[] = {25, 17};
11426 const int *foo = &x[0];
11429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11430 typedef const int *iptr;
11434 { /* AIX XL C 1.02.0.0 rejects this saying
11435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11436 struct s { int j; const int *ap[3]; };
11437 struct s *b; b->j = 5;
11439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11440 const int foo = 10;
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>conftest.er1
11452 grep -v '^ *+' conftest.er1 >conftest.err
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11479 echo "${ECHO_T}$ac_cv_c_const" >&6
11480 if test $ac_cv_c_const = no; then
11482 cat >>confdefs.h <<\_ACEOF
11488 echo "$as_me:$LINENO: checking for inline" >&5
11489 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11490 if test "${ac_cv_c_inline+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 for ac_kw in inline __inline__ __inline; do
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #ifndef __cplusplus
11503 static $ac_kw foo_t static_foo () {return 0; }
11504 $ac_kw foo_t foo () {return 0; }
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest.$ac_objext'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 ac_cv_c_inline=$ac_kw; break
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11539 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11540 echo "${ECHO_T}$ac_cv_c_inline" >&6
11543 case $ac_cv_c_inline in
11546 case $ac_cv_c_inline in
11548 *) ac_val=$ac_cv_c_inline;;
11550 cat >>confdefs.h <<_ACEOF
11551 #ifndef __cplusplus
11552 #define inline $ac_val
11560 echo "$as_me:$LINENO: checking for mode_t" >&5
11561 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11562 if test "${ac_cv_type_mode_t+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11577 if (sizeof (mode_t))
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_type_mode_t=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_type_mode_t=no
11611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11613 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11614 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11615 if test $ac_cv_type_mode_t = yes; then
11619 cat >>confdefs.h <<_ACEOF
11625 echo "$as_me:$LINENO: checking for pid_t" >&5
11626 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11627 if test "${ac_cv_type_pid_t+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 $ac_includes_default
11642 if (sizeof (pid_t))
11648 rm -f conftest.$ac_objext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650 (eval $ac_compile) 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_type_pid_t=yes
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_cv_type_pid_t=no
11676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11678 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11679 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11680 if test $ac_cv_type_pid_t = yes; then
11684 cat >>confdefs.h <<_ACEOF
11690 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11691 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11692 if test "${ac_cv_type_uid_t+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <sys/types.h>
11704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11705 $EGREP "uid_t" >/dev/null 2>&1; then
11706 ac_cv_type_uid_t=yes
11708 ac_cv_type_uid_t=no
11713 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11714 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11715 if test $ac_cv_type_uid_t = no; then
11717 cat >>confdefs.h <<\_ACEOF
11722 cat >>confdefs.h <<\_ACEOF
11730 echo "$as_me:$LINENO: checking for char" >&5
11731 echo $ECHO_N "checking for char... $ECHO_C" >&6
11732 if test "${ac_cv_type_char+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 $ac_includes_default
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_type_char=yes
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11783 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11784 echo "${ECHO_T}$ac_cv_type_char" >&6
11786 echo "$as_me:$LINENO: checking size of char" >&5
11787 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11788 if test "${ac_cv_sizeof_char+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 if test "$ac_cv_type_char" = yes; then
11792 # The cast to unsigned long works around a bug in the HP C Compiler
11793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11795 # This bug is HP SR number 8606223364.
11796 if test "$cross_compiling" = yes; then
11797 # Depending upon the size, compute the lo and hi bounds.
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11808 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11848 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11855 rm -f conftest.$ac_objext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>conftest.er1
11859 grep -v '^ *+' conftest.er1 >conftest.err
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_hi=$ac_mid; break
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 ac_lo=`expr $ac_mid + 1`
11882 if test $ac_lo -le $ac_mid; then
11886 ac_mid=`expr 2 '*' $ac_mid + 1`
11888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 $ac_includes_default
11904 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11911 rm -f conftest.$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest.$ac_objext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 $ac_includes_default
11944 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_lo=$ac_mid; break
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_hi=`expr '(' $ac_mid ')' - 1`
11978 if test $ac_mid -le $ac_hi; then
11982 ac_mid=`expr 2 '*' $ac_mid`
11984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 # Binary search between lo and hi bounds.
11996 while test "x$ac_lo" != "x$ac_hi"; do
11997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12008 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12015 rm -f conftest.$ac_objext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017 (eval $ac_compile) 2>conftest.er1
12019 grep -v '^ *+' conftest.er1 >conftest.err
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_lo=`expr '(' $ac_mid ')' + 1`
12043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12046 ?*) ac_cv_sizeof_char=$ac_lo;;
12047 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12048 See \`config.log' for more details." >&5
12049 echo "$as_me: error: cannot compute sizeof (char), 77
12050 See \`config.log' for more details." >&2;}
12051 { (exit 1); exit 1; }; } ;;
12054 if test "$cross_compiling" = yes; then
12055 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12056 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12057 { (exit 1); exit 1; }; }
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 long longval () { return (long) (sizeof (char)); }
12067 unsigned long ulongval () { return (long) (sizeof (char)); }
12069 #include <stdlib.h>
12074 FILE *f = fopen ("conftest.val", "w");
12077 if (((long) (sizeof (char))) < 0)
12079 long i = longval ();
12080 if (i != ((long) (sizeof (char))))
12082 fprintf (f, "%ld\n", i);
12086 unsigned long i = ulongval ();
12087 if (i != ((long) (sizeof (char))))
12089 fprintf (f, "%lu\n", i);
12091 exit (ferror (f) || fclose (f) != 0);
12097 rm -f conftest$ac_exeext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_sizeof_char=`cat conftest.val`
12110 echo "$as_me: program exited with status $ac_status" >&5
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ( exit $ac_status )
12115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12116 See \`config.log' for more details." >&5
12117 echo "$as_me: error: cannot compute sizeof (char), 77
12118 See \`config.log' for more details." >&2;}
12119 { (exit 1); exit 1; }; }
12121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12126 ac_cv_sizeof_char=0
12129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12130 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12131 cat >>confdefs.h <<_ACEOF
12132 #define SIZEOF_CHAR $ac_cv_sizeof_char
12136 echo "$as_me:$LINENO: checking for short" >&5
12137 echo $ECHO_N "checking for short... $ECHO_C" >&6
12138 if test "${ac_cv_type_short+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12153 if (sizeof (short))
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_type_short=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 ac_cv_type_short=no
12187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12189 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12190 echo "${ECHO_T}$ac_cv_type_short" >&6
12192 echo "$as_me:$LINENO: checking size of short" >&5
12193 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12194 if test "${ac_cv_sizeof_short+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 if test "$ac_cv_type_short" = yes; then
12198 # The cast to unsigned long works around a bug in the HP C Compiler
12199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12201 # This bug is HP SR number 8606223364.
12202 if test "$cross_compiling" = yes; then
12203 # Depending upon the size, compute the lo and hi bounds.
12204 cat >conftest.$ac_ext <<_ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 $ac_includes_default
12214 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 $ac_includes_default
12254 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12261 rm -f conftest.$ac_objext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263 (eval $ac_compile) 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_hi=$ac_mid; break
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_lo=`expr $ac_mid + 1`
12288 if test $ac_lo -le $ac_mid; then
12292 ac_mid=`expr 2 '*' $ac_mid + 1`
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 $ac_includes_default
12310 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 $ac_includes_default
12350 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_lo=$ac_mid; break
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_hi=`expr '(' $ac_mid ')' - 1`
12384 if test $ac_mid -le $ac_hi; then
12388 ac_mid=`expr 2 '*' $ac_mid`
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12401 # Binary search between lo and hi bounds.
12402 while test "x$ac_lo" != "x$ac_hi"; do
12403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12414 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_lo=`expr '(' $ac_mid ')' + 1`
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12452 ?*) ac_cv_sizeof_short=$ac_lo;;
12453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12454 See \`config.log' for more details." >&5
12455 echo "$as_me: error: cannot compute sizeof (short), 77
12456 See \`config.log' for more details." >&2;}
12457 { (exit 1); exit 1; }; } ;;
12460 if test "$cross_compiling" = yes; then
12461 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12462 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12463 { (exit 1); exit 1; }; }
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 long longval () { return (long) (sizeof (short)); }
12473 unsigned long ulongval () { return (long) (sizeof (short)); }
12475 #include <stdlib.h>
12480 FILE *f = fopen ("conftest.val", "w");
12483 if (((long) (sizeof (short))) < 0)
12485 long i = longval ();
12486 if (i != ((long) (sizeof (short))))
12488 fprintf (f, "%ld\n", i);
12492 unsigned long i = ulongval ();
12493 if (i != ((long) (sizeof (short))))
12495 fprintf (f, "%lu\n", i);
12497 exit (ferror (f) || fclose (f) != 0);
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_sizeof_short=`cat conftest.val`
12516 echo "$as_me: program exited with status $ac_status" >&5
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ( exit $ac_status )
12521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12522 See \`config.log' for more details." >&5
12523 echo "$as_me: error: cannot compute sizeof (short), 77
12524 See \`config.log' for more details." >&2;}
12525 { (exit 1); exit 1; }; }
12527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12532 ac_cv_sizeof_short=0
12535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12536 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12537 cat >>confdefs.h <<_ACEOF
12538 #define SIZEOF_SHORT $ac_cv_sizeof_short
12542 echo "$as_me:$LINENO: checking for int" >&5
12543 echo $ECHO_N "checking for int... $ECHO_C" >&6
12544 if test "${ac_cv_type_int+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 $ac_includes_default
12565 rm -f conftest.$ac_objext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>conftest.er1
12569 grep -v '^ *+' conftest.er1 >conftest.err
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12595 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12596 echo "${ECHO_T}$ac_cv_type_int" >&6
12598 echo "$as_me:$LINENO: checking size of int" >&5
12599 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12600 if test "${ac_cv_sizeof_int+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 if test "$ac_cv_type_int" = yes; then
12604 # The cast to unsigned long works around a bug in the HP C Compiler
12605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12607 # This bug is HP SR number 8606223364.
12608 if test "$cross_compiling" = yes; then
12609 # Depending upon the size, compute the lo and hi bounds.
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 $ac_includes_default
12620 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12627 rm -f conftest.$ac_objext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 $ac_includes_default
12660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_hi=$ac_mid; break
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_lo=`expr $ac_mid + 1`
12694 if test $ac_lo -le $ac_mid; then
12698 ac_mid=`expr 2 '*' $ac_mid + 1`
12700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12716 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12727 grep -v '^ *+' conftest.er1 >conftest.err
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12756 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_lo=$ac_mid; break
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_hi=`expr '(' $ac_mid ')' - 1`
12790 if test $ac_mid -le $ac_hi; then
12794 ac_mid=`expr 2 '*' $ac_mid`
12796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12807 # Binary search between lo and hi bounds.
12808 while test "x$ac_lo" != "x$ac_hi"; do
12809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12810 cat >conftest.$ac_ext <<_ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 $ac_includes_default
12820 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12827 rm -f conftest.$ac_objext
12828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12829 (eval $ac_compile) 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_lo=`expr '(' $ac_mid ')' + 1`
12855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 ?*) ac_cv_sizeof_int=$ac_lo;;
12859 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12860 See \`config.log' for more details." >&5
12861 echo "$as_me: error: cannot compute sizeof (int), 77
12862 See \`config.log' for more details." >&2;}
12863 { (exit 1); exit 1; }; } ;;
12866 if test "$cross_compiling" = yes; then
12867 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12868 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12869 { (exit 1); exit 1; }; }
12871 cat >conftest.$ac_ext <<_ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 $ac_includes_default
12878 long longval () { return (long) (sizeof (int)); }
12879 unsigned long ulongval () { return (long) (sizeof (int)); }
12881 #include <stdlib.h>
12886 FILE *f = fopen ("conftest.val", "w");
12889 if (((long) (sizeof (int))) < 0)
12891 long i = longval ();
12892 if (i != ((long) (sizeof (int))))
12894 fprintf (f, "%ld\n", i);
12898 unsigned long i = ulongval ();
12899 if (i != ((long) (sizeof (int))))
12901 fprintf (f, "%lu\n", i);
12903 exit (ferror (f) || fclose (f) != 0);
12909 rm -f conftest$ac_exeext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911 (eval $ac_link) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_sizeof_int=`cat conftest.val`
12922 echo "$as_me: program exited with status $ac_status" >&5
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 ( exit $ac_status )
12927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12928 See \`config.log' for more details." >&5
12929 echo "$as_me: error: cannot compute sizeof (int), 77
12930 See \`config.log' for more details." >&2;}
12931 { (exit 1); exit 1; }; }
12933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12941 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12942 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12943 cat >>confdefs.h <<_ACEOF
12944 #define SIZEOF_INT $ac_cv_sizeof_int
12948 echo "$as_me:$LINENO: checking for long" >&5
12949 echo $ECHO_N "checking for long... $ECHO_C" >&6
12950 if test "${ac_cv_type_long+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 $ac_includes_default
12971 rm -f conftest.$ac_objext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12973 (eval $ac_compile) 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 ac_cv_type_long=yes
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13001 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13002 echo "${ECHO_T}$ac_cv_type_long" >&6
13004 echo "$as_me:$LINENO: checking size of long" >&5
13005 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13006 if test "${ac_cv_sizeof_long+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 if test "$ac_cv_type_long" = yes; then
13010 # The cast to unsigned long works around a bug in the HP C Compiler
13011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13013 # This bug is HP SR number 8606223364.
13014 if test "$cross_compiling" = yes; then
13015 # Depending upon the size, compute the lo and hi bounds.
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 $ac_includes_default
13026 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13033 rm -f conftest.$ac_objext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035 (eval $ac_compile) 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13056 cat >conftest.$ac_ext <<_ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13066 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13073 rm -f conftest.$ac_objext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest.$ac_objext'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 ac_hi=$ac_mid; break
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_lo=`expr $ac_mid + 1`
13100 if test $ac_lo -le $ac_mid; then
13104 ac_mid=`expr 2 '*' $ac_mid + 1`
13106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13122 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>conftest.er1
13133 grep -v '^ *+' conftest.er1 >conftest.err
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest.$ac_objext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 $ac_includes_default
13162 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13169 rm -f conftest.$ac_objext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13173 grep -v '^ *+' conftest.er1 >conftest.err
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest.$ac_objext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_lo=$ac_mid; break
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13195 ac_hi=`expr '(' $ac_mid ')' - 1`
13196 if test $ac_mid -le $ac_hi; then
13200 ac_mid=`expr 2 '*' $ac_mid`
13202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13213 # Binary search between lo and hi bounds.
13214 while test "x$ac_lo" != "x$ac_hi"; do
13215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 $ac_includes_default
13226 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13233 rm -f conftest.$ac_objext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13235 (eval $ac_compile) 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_lo=`expr '(' $ac_mid ')' + 1`
13261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13264 ?*) ac_cv_sizeof_long=$ac_lo;;
13265 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13266 See \`config.log' for more details." >&5
13267 echo "$as_me: error: cannot compute sizeof (long), 77
13268 See \`config.log' for more details." >&2;}
13269 { (exit 1); exit 1; }; } ;;
13272 if test "$cross_compiling" = yes; then
13273 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13274 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13275 { (exit 1); exit 1; }; }
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13284 long longval () { return (long) (sizeof (long)); }
13285 unsigned long ulongval () { return (long) (sizeof (long)); }
13287 #include <stdlib.h>
13292 FILE *f = fopen ("conftest.val", "w");
13295 if (((long) (sizeof (long))) < 0)
13297 long i = longval ();
13298 if (i != ((long) (sizeof (long))))
13300 fprintf (f, "%ld\n", i);
13304 unsigned long i = ulongval ();
13305 if (i != ((long) (sizeof (long))))
13307 fprintf (f, "%lu\n", i);
13309 exit (ferror (f) || fclose (f) != 0);
13315 rm -f conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_sizeof_long=`cat conftest.val`
13328 echo "$as_me: program exited with status $ac_status" >&5
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 ( exit $ac_status )
13333 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13334 See \`config.log' for more details." >&5
13335 echo "$as_me: error: cannot compute sizeof (long), 77
13336 See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }
13339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13344 ac_cv_sizeof_long=0
13347 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13348 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13349 cat >>confdefs.h <<_ACEOF
13350 #define SIZEOF_LONG $ac_cv_sizeof_long
13354 echo "$as_me:$LINENO: checking for long long" >&5
13355 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13356 if test "${ac_cv_type_long_long+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365 $ac_includes_default
13369 if ((long long *) 0)
13371 if (sizeof (long long))
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_type_long_long=yes
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_cv_type_long_long=no
13405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13408 echo "${ECHO_T}$ac_cv_type_long_long" >&6
13410 echo "$as_me:$LINENO: checking size of long long" >&5
13411 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13412 if test "${ac_cv_sizeof_long_long+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 if test "$ac_cv_type_long_long" = yes; then
13416 # The cast to unsigned long works around a bug in the HP C Compiler
13417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13419 # This bug is HP SR number 8606223364.
13420 if test "$cross_compiling" = yes; then
13421 # Depending upon the size, compute the lo and hi bounds.
13422 cat >conftest.$ac_ext <<_ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 $ac_includes_default
13432 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13439 rm -f conftest.$ac_objext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13441 (eval $ac_compile) 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest.$ac_objext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13462 cat >conftest.$ac_ext <<_ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 $ac_includes_default
13472 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13479 rm -f conftest.$ac_objext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481 (eval $ac_compile) 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_hi=$ac_mid; break
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ac_lo=`expr $ac_mid + 1`
13506 if test $ac_lo -le $ac_mid; then
13510 ac_mid=`expr 2 '*' $ac_mid + 1`
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 $ac_includes_default
13528 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13568 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13579 grep -v '^ *+' conftest.er1 >conftest.err
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_lo=$ac_mid; break
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13601 ac_hi=`expr '(' $ac_mid ')' - 1`
13602 if test $ac_mid -le $ac_hi; then
13606 ac_mid=`expr 2 '*' $ac_mid`
13608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619 # Binary search between lo and hi bounds.
13620 while test "x$ac_lo" != "x$ac_hi"; do
13621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 $ac_includes_default
13632 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13639 rm -f conftest.$ac_objext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13643 grep -v '^ *+' conftest.er1 >conftest.err
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_lo=`expr '(' $ac_mid ')' + 1`
13667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13670 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13671 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13672 See \`config.log' for more details." >&5
13673 echo "$as_me: error: cannot compute sizeof (long long), 77
13674 See \`config.log' for more details." >&2;}
13675 { (exit 1); exit 1; }; } ;;
13678 if test "$cross_compiling" = yes; then
13679 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13680 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13681 { (exit 1); exit 1; }; }
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 long longval () { return (long) (sizeof (long long)); }
13691 unsigned long ulongval () { return (long) (sizeof (long long)); }
13693 #include <stdlib.h>
13698 FILE *f = fopen ("conftest.val", "w");
13701 if (((long) (sizeof (long long))) < 0)
13703 long i = longval ();
13704 if (i != ((long) (sizeof (long long))))
13706 fprintf (f, "%ld\n", i);
13710 unsigned long i = ulongval ();
13711 if (i != ((long) (sizeof (long long))))
13713 fprintf (f, "%lu\n", i);
13715 exit (ferror (f) || fclose (f) != 0);
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_sizeof_long_long=`cat conftest.val`
13734 echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ( exit $ac_status )
13739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13740 See \`config.log' for more details." >&5
13741 echo "$as_me: error: cannot compute sizeof (long long), 77
13742 See \`config.log' for more details." >&2;}
13743 { (exit 1); exit 1; }; }
13745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13750 ac_cv_sizeof_long_long=0
13753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13754 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13755 cat >>confdefs.h <<_ACEOF
13756 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13760 echo "$as_me:$LINENO: checking for int *" >&5
13761 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13762 if test "${ac_cv_type_int_p+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 $ac_includes_default
13777 if (sizeof (int *))
13783 rm -f conftest.$ac_objext
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_type_int_p=yes
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ac_cv_type_int_p=no
13811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13814 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13816 echo "$as_me:$LINENO: checking size of int *" >&5
13817 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13818 if test "${ac_cv_sizeof_int_p+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 if test "$ac_cv_type_int_p" = yes; then
13822 # The cast to unsigned long works around a bug in the HP C Compiler
13823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825 # This bug is HP SR number 8606223364.
13826 if test "$cross_compiling" = yes; then
13827 # Depending upon the size, compute the lo and hi bounds.
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13838 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13845 rm -f conftest.$ac_objext
13846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13878 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>conftest.er1
13889 grep -v '^ *+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try='test -s conftest.$ac_objext'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_hi=$ac_mid; break
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ac_lo=`expr $ac_mid + 1`
13912 if test $ac_lo -le $ac_mid; then
13916 ac_mid=`expr 2 '*' $ac_mid + 1`
13918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13934 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13945 grep -v '^ *+' conftest.er1 >conftest.err
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest.$ac_objext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 $ac_includes_default
13974 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest.$ac_objext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_lo=$ac_mid; break
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_hi=`expr '(' $ac_mid ')' - 1`
14008 if test $ac_mid -le $ac_hi; then
14012 ac_mid=`expr 2 '*' $ac_mid`
14014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14025 # Binary search between lo and hi bounds.
14026 while test "x$ac_lo" != "x$ac_hi"; do
14027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14038 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 (eval $ac_compile) 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_lo=`expr '(' $ac_mid ')' + 1`
14073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14076 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14077 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14078 See \`config.log' for more details." >&5
14079 echo "$as_me: error: cannot compute sizeof (int *), 77
14080 See \`config.log' for more details." >&2;}
14081 { (exit 1); exit 1; }; } ;;
14084 if test "$cross_compiling" = yes; then
14085 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14086 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14087 { (exit 1); exit 1; }; }
14089 cat >conftest.$ac_ext <<_ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095 $ac_includes_default
14096 long longval () { return (long) (sizeof (int *)); }
14097 unsigned long ulongval () { return (long) (sizeof (int *)); }
14099 #include <stdlib.h>
14104 FILE *f = fopen ("conftest.val", "w");
14107 if (((long) (sizeof (int *))) < 0)
14109 long i = longval ();
14110 if (i != ((long) (sizeof (int *))))
14112 fprintf (f, "%ld\n", i);
14116 unsigned long i = ulongval ();
14117 if (i != ((long) (sizeof (int *))))
14119 fprintf (f, "%lu\n", i);
14121 exit (ferror (f) || fclose (f) != 0);
14127 rm -f conftest$ac_exeext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14129 (eval $ac_link) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_sizeof_int_p=`cat conftest.val`
14140 echo "$as_me: program exited with status $ac_status" >&5
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ( exit $ac_status )
14145 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14146 See \`config.log' for more details." >&5
14147 echo "$as_me: error: cannot compute sizeof (int *), 77
14148 See \`config.log' for more details." >&2;}
14149 { (exit 1); exit 1; }; }
14151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14156 ac_cv_sizeof_int_p=0
14159 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14160 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14161 cat >>confdefs.h <<_ACEOF
14162 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14168 echo "$as_me:$LINENO: checking for int16_t" >&5
14169 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
14170 if test "${rxvt_cv_int16_t+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 #include <stdint.h>
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 rxvt_cv_int16_t=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 if test $ac_cv_sizeof_char -ge 2; then
14215 rxvt_cv_int16_t=" char"
14217 if test $ac_cv_sizeof_short -ge 2; then
14218 rxvt_cv_int16_t=" short"
14220 if test $ac_cv_sizeof_int -ge 2; then
14221 rxvt_cv_int16_t=" int"
14223 if test $ac_cv_sizeof_long -ge 2; then
14224 rxvt_cv_int16_t=" long"
14226 if test $ac_cv_sizeof_long_long -ge 2; then
14227 rxvt_cv_int16_t=" long long"
14229 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
14239 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
14240 if test x"$rxvt_cv_int16_t" != xyes; then
14241 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
14243 if test x"" = x; then
14244 rxvt_int16_typedef="/* typedef short int16_t; */"
14246 rxvt_int16_typedef="/* typedef short int16_t; */"
14250 echo "$as_me:$LINENO: checking for uint16_t" >&5
14251 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
14252 if test "${rxvt_cv_uint16_t+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 #include <stdint.h>
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 rxvt_cv_uint16_t=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 if test $ac_cv_sizeof_char -ge 2; then
14297 rxvt_cv_uint16_t="unsigned char"
14299 if test $ac_cv_sizeof_short -ge 2; then
14300 rxvt_cv_uint16_t="unsigned short"
14302 if test $ac_cv_sizeof_int -ge 2; then
14303 rxvt_cv_uint16_t="unsigned int"
14305 if test $ac_cv_sizeof_long -ge 2; then
14306 rxvt_cv_uint16_t="unsigned long"
14308 if test $ac_cv_sizeof_long_long -ge 2; then
14309 rxvt_cv_uint16_t="unsigned long long"
14311 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14320 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
14321 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
14322 if test x"$rxvt_cv_uint16_t" != xyes; then
14323 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
14325 if test x"unsigned" = x; then
14326 rxvt_uint16_typedef="/* typedef short uint16_t; */"
14328 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
14332 echo "$as_me:$LINENO: checking for int32_t" >&5
14333 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
14334 if test "${rxvt_cv_int32_t+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <stdint.h>
14352 rm -f conftest.$ac_objext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 rxvt_cv_int32_t=yes
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14378 if test $ac_cv_sizeof_char -ge 4; then
14379 rxvt_cv_int32_t=" char"
14381 if test $ac_cv_sizeof_short -ge 4; then
14382 rxvt_cv_int32_t=" short"
14384 if test $ac_cv_sizeof_int -ge 4; then
14385 rxvt_cv_int32_t=" int"
14387 if test $ac_cv_sizeof_long -ge 4; then
14388 rxvt_cv_int32_t=" long"
14390 if test $ac_cv_sizeof_long_long -ge 4; then
14391 rxvt_cv_int32_t=" long long"
14393 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
14403 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
14404 if test x"$rxvt_cv_int32_t" != xyes; then
14405 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
14407 if test x"" = x; then
14408 rxvt_int32_typedef="/* typedef int int32_t; */"
14410 rxvt_int32_typedef="/* typedef int int32_t; */"
14414 echo "$as_me:$LINENO: checking for uint32_t" >&5
14415 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14416 if test "${rxvt_cv_uint32_t+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 #include <stdint.h>
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>conftest.er1
14438 grep -v '^ *+' conftest.er1 >conftest.err
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 rxvt_cv_uint32_t=yes
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 if test $ac_cv_sizeof_char -ge 4; then
14461 rxvt_cv_uint32_t="unsigned char"
14463 if test $ac_cv_sizeof_short -ge 4; then
14464 rxvt_cv_uint32_t="unsigned short"
14466 if test $ac_cv_sizeof_int -ge 4; then
14467 rxvt_cv_uint32_t="unsigned int"
14469 if test $ac_cv_sizeof_long -ge 4; then
14470 rxvt_cv_uint32_t="unsigned long"
14472 if test $ac_cv_sizeof_long_long -ge 4; then
14473 rxvt_cv_uint32_t="unsigned long long"
14475 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14484 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
14485 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
14486 if test x"$rxvt_cv_uint32_t" != xyes; then
14487 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
14489 if test x"unsigned" = x; then
14490 rxvt_uint32_typedef="/* typedef int uint32_t; */"
14492 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14496 if test $ac_cv_sizeof_int_p -eq 8; then
14497 rxvt_intp_define="#define intp_t int64_t"
14498 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14500 if test $ac_cv_sizeof_int_p -eq 4; then
14501 rxvt_intp_define="#define intp_t int32_t"
14502 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14504 if test $ac_cv_sizeof_int_p -eq 2; then
14505 rxvt_intp_define="#define intp_t int16_t"
14506 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14508 rxvt_intp_define="#error set intp_t"
14509 rxvt_u_intp_define="#error set u_intp_t"
14516 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14517 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14518 if test "${ac_cv_type_signal+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 #include <sys/types.h>
14528 #include <signal.h>
14533 extern "C" void (*signal (int, void (*)(int)))(int);
14535 void (*signal ()) ();
14546 rm -f conftest.$ac_objext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548 (eval $ac_compile) 2>conftest.er1
14550 grep -v '^ *+' conftest.er1 >conftest.err
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_type_signal=void
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_cv_type_signal=int
14574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14577 echo "${ECHO_T}$ac_cv_type_signal" >&6
14579 cat >>confdefs.h <<_ACEOF
14580 #define RETSIGTYPE $ac_cv_type_signal
14585 case "$host_alias" in
14586 *ultrix) ac_cv_func_setsid='no' ;;
14629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14630 echo "$as_me:$LINENO: checking for $ac_func" >&5
14631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14632 if eval "test \"\${$as_ac_var+set}\" = set"; then
14633 echo $ECHO_N "(cached) $ECHO_C" >&6
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14643 #define $ac_func innocuous_$ac_func
14645 /* System header to define __stub macros and hopefully few prototypes,
14646 which can conflict with char $ac_func (); below.
14647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14648 <limits.h> exists even on freestanding compilers. */
14651 # include <limits.h>
14653 # include <assert.h>
14658 /* Override any gcc2 internal prototype to avoid an error. */
14663 /* We use char because int might match the return type of a gcc2
14664 builtin and then its argument prototype would still apply. */
14666 /* The GNU C library defines this for functions which it implements
14667 to always fail with ENOSYS. Some functions are actually named
14668 something starting with __ and the normal name is an alias. */
14669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14672 char (*f) () = $ac_func;
14681 return f != $ac_func;
14686 rm -f conftest.$ac_objext conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688 (eval $ac_link) 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; } &&
14701 { ac_try='test -s conftest$ac_exeext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 eval "$as_ac_var=yes"
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 eval "$as_ac_var=no"
14714 rm -f conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14719 if test `eval echo '${'$as_ac_var'}'` = yes; then
14720 cat >>confdefs.h <<_ACEOF
14721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14729 if test "${ac_cv_header_utmp_h+set}" = set; then
14730 echo "$as_me:$LINENO: checking for utmp.h" >&5
14731 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14732 if test "${ac_cv_header_utmp_h+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14736 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14738 # Is the header compilable?
14739 echo "$as_me:$LINENO: checking utmp.h usability" >&5
14740 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 $ac_includes_default
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>conftest.er1
14754 grep -v '^ *+' conftest.er1 >conftest.err
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_header_compiler=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 ac_header_compiler=no
14778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14780 echo "${ECHO_T}$ac_header_compiler" >&6
14782 # Is the header present?
14783 echo "$as_me:$LINENO: checking utmp.h presence" >&5
14784 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } >/dev/null; then
14801 if test -s conftest.err; then
14802 ac_cpp_err=$ac_cxx_preproc_warn_flag
14803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14810 if test -z "$ac_cpp_err"; then
14811 ac_header_preproc=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_preproc=no
14818 rm -f conftest.err conftest.$ac_ext
14819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6
14822 # So? What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14825 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14832 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14846 ## ------------------------------------------ ##
14847 ## Report this to the AC_PACKAGE_NAME lists. ##
14848 ## ------------------------------------------ ##
14851 sed "s/^/$as_me: WARNING: /" >&2
14854 echo "$as_me:$LINENO: checking for utmp.h" >&5
14855 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14856 if test "${ac_cv_header_utmp_h+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 ac_cv_header_utmp_h=$ac_header_preproc
14861 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14862 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14865 if test $ac_cv_header_utmp_h = yes; then
14866 echo "$as_me:$LINENO: checking for struct utmp" >&5
14867 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14868 if test "${rxvt_cv_struct_utmp+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <sys/types.h>
14878 #include <stdint.h>
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 rxvt_cv_struct_utmp=yes
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 rxvt_cv_struct_utmp=no
14916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14918 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
14919 echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
14920 if test x$rxvt_cv_struct_utmp = xyes; then
14922 cat >>confdefs.h <<\_ACEOF
14923 #define HAVE_STRUCT_UTMP 1
14929 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14930 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14931 if test "${rxvt_cv_struct_utmp_host+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <sys/types.h>
14945 struct utmp ut; ut.ut_host;
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 rxvt_cv_struct_utmp_host=yes
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 rxvt_cv_struct_utmp_host=no
14978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14980 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
14981 echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
14982 if test x$rxvt_cv_struct_utmp_host = xyes; then
14984 cat >>confdefs.h <<\_ACEOF
14985 #define HAVE_UTMP_HOST 1
14990 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14991 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14992 if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 cat >conftest.$ac_ext <<_ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15001 #include <sys/types.h>
15006 struct utmp ut; ut.ut_pid;
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest.$ac_objext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 rxvt_cv_struct_utmp_pid=yes
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 rxvt_cv_struct_utmp_pid=no
15039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15041 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
15042 echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
15043 if test x$rxvt_cv_struct_utmp_pid = xyes; then
15045 cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_UTMP_PID 1
15055 if test "${ac_cv_header_utmpx_h+set}" = set; then
15056 echo "$as_me:$LINENO: checking for utmpx.h" >&5
15057 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
15058 if test "${ac_cv_header_utmpx_h+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
15062 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
15064 # Is the header compilable?
15065 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
15066 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 $ac_includes_default
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_header_compiler=yes
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 ac_header_compiler=no
15104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15106 echo "${ECHO_T}$ac_header_compiler" >&6
15108 # Is the header present?
15109 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
15110 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
15111 cat >conftest.$ac_ext <<_ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15122 grep -v '^ *+' conftest.er1 >conftest.err
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } >/dev/null; then
15127 if test -s conftest.err; then
15128 ac_cpp_err=$ac_cxx_preproc_warn_flag
15129 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15136 if test -z "$ac_cpp_err"; then
15137 ac_header_preproc=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_header_preproc=no
15144 rm -f conftest.err conftest.$ac_ext
15145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15146 echo "${ECHO_T}$ac_header_preproc" >&6
15148 # So? What about this header?
15149 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15151 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
15152 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
15154 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
15155 ac_header_preproc=yes
15158 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
15159 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
15161 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
15163 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
15165 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
15167 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
15169 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
15172 ## ------------------------------------------ ##
15173 ## Report this to the AC_PACKAGE_NAME lists. ##
15174 ## ------------------------------------------ ##
15177 sed "s/^/$as_me: WARNING: /" >&2
15180 echo "$as_me:$LINENO: checking for utmpx.h" >&5
15181 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
15182 if test "${ac_cv_header_utmpx_h+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 ac_cv_header_utmpx_h=$ac_header_preproc
15187 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
15188 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
15191 if test $ac_cv_header_utmpx_h = yes; then
15192 echo "$as_me:$LINENO: checking for struct utmpx" >&5
15193 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
15194 if test "${rxvt_cv_struct_utmpx+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<_ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 #include <sys/types.h>
15213 rm -f conftest.$ac_objext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15215 (eval $ac_compile) 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
15222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 rxvt_cv_struct_utmpx=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 rxvt_cv_struct_utmpx=no
15241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15243 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
15244 echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
15245 if test x$rxvt_cv_struct_utmpx = xyes; then
15247 cat >>confdefs.h <<\_ACEOF
15248 #define HAVE_STRUCT_UTMPX 1
15254 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15255 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15256 if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/types.h>
15270 struct utmpx utx; utx.ut_host;
15275 rm -f conftest.$ac_objext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>conftest.er1
15279 grep -v '^ *+' conftest.er1 >conftest.err
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try='test -s conftest.$ac_objext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 rxvt_cv_struct_utmpx_host=yes
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 rxvt_cv_struct_utmpx_host=no
15303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15305 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
15306 echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
15307 if test x$rxvt_cv_struct_utmpx_host = xyes; then
15309 cat >>confdefs.h <<\_ACEOF
15310 #define HAVE_UTMPX_HOST 1
15319 echo "$as_me:$LINENO: checking for struct lastlog" >&5
15320 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15321 if test "${rxvt_cv_struct_lastlog+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 #include <sys/types.h>
15332 #ifdef HAVE_LASTLOG_H
15333 #include <lastlog.h>
15344 rm -f conftest.$ac_objext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>conftest.er1
15348 grep -v '^ *+' conftest.er1 >conftest.err
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 rxvt_cv_struct_lastlog=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 rxvt_cv_struct_lastlog=no
15372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
15375 echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
15376 if test x$rxvt_cv_struct_lastlog = xyes; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_STRUCT_LASTLOG 1
15384 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15385 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15386 if test "${rxvt_cv_struct_lastlogx+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 #include <sys/types.h>
15397 #ifdef HAVE_LASTLOG_H
15398 #include <lastlog.h>
15404 struct lastlogx ll;
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 rxvt_cv_struct_lastlogx=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 rxvt_cv_struct_lastlogx=no
15437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15439 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
15440 echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
15441 if test x$rxvt_cv_struct_lastlogx = xyes; then
15443 cat >>confdefs.h <<\_ACEOF
15444 #define HAVE_STRUCT_LASTLOGX 1
15450 echo "$as_me:$LINENO: checking where utmp is located" >&5
15451 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15452 if test "${rxvt_cv_path_utmp+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 if test "$cross_compiling" = yes; then
15456 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
15457 echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15466 #include <sys/types.h>
15471 char **u, *utmplist[] = {
15472 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
15473 FILE *a, *f=fopen("conftestval", "w");
15476 fprintf(f, "%s\n", UTMP_FILE);
15480 fprintf(f, "%s\n", _PATH_UTMP);
15483 for (u = utmplist; *u; u++) {
15484 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
15485 fprintf(f, "%s\n", *u);
15492 rm -f conftest$ac_exeext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 rxvt_cv_path_utmp=`cat conftestval`
15505 echo "$as_me: program exited with status $ac_status" >&5
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ( exit $ac_status )
15512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15515 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
15516 echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
15517 if test x$rxvt_cv_path_utmp != x; then
15519 cat >>confdefs.h <<_ACEOF
15520 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
15526 echo "$as_me:$LINENO: checking where utmpx is located" >&5
15527 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15528 if test "${rxvt_cv_path_utmpx+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 if test "$cross_compiling" = yes; then
15532 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
15533 echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15542 #include <sys/types.h>
15545 #include <sys/stat.h>
15546 #ifdef HAVE_STRING_H
15547 #include <string.h>
15551 char **u, *p, *utmplist[] = {
15558 "/var/adm/utmpx", "/etc/utmpx", NULL };
15559 FILE *a, *f=fopen("conftestval", "w");
15560 struct stat statu, statux;
15562 for (u = utmplist; *u; u++) {
15563 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
15564 if (stat(*u, &statux) < 0)
15567 p[strlen(p) - 1] = '\0';
15568 if (stat(p, &statu) >= 0
15569 && (statu.st_mtime - statux.st_mtime > 86400))
15571 fprintf(f, "%s\n", *u);
15578 rm -f conftest$ac_exeext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 rxvt_cv_path_utmpx=`cat conftestval`
15591 echo "$as_me: program exited with status $ac_status" >&5
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ( exit $ac_status )
15596 rxvt_cv_path_utmpx=
15598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15601 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
15602 echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
15603 if test x$rxvt_cv_path_utmpx != x; then
15605 cat >>confdefs.h <<_ACEOF
15606 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
15612 echo "$as_me:$LINENO: checking where wtmp is located" >&5
15613 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15614 if test "${rxvt_cv_path_wtmp+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 if test "$cross_compiling" = yes; then
15618 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
15619 echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
15621 cat >conftest.$ac_ext <<_ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 #include <sys/types.h>
15635 char **w, *wtmplist[] = {
15636 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
15637 FILE *a, *f=fopen("conftestval", "w");
15640 fprintf(f, "%s\n", WTMP_FILE);
15644 fprintf(f, "%s\n", _PATH_WTMP);
15647 for (w = wtmplist; *w; w++) {
15648 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15649 fprintf(f, "%s\n", *w);
15656 rm -f conftest$ac_exeext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658 (eval $ac_link) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 rxvt_cv_path_wtmp=`cat conftestval`
15669 echo "$as_me: program exited with status $ac_status" >&5
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ( exit $ac_status )
15676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
15680 echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
15681 if test x$rxvt_cv_path_wtmp != x; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
15689 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15690 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15691 if test "${rxvt_cv_path_wtmpx+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 if test "$cross_compiling" = yes; then
15695 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
15696 echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15705 #ifdef HAVE_UTMPX_H
15711 char **w, *wtmplist[] = {
15712 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
15713 FILE *a, *f=fopen("conftestval", "w");
15716 fprintf(f, "%s\n", WTMPX_FILE);
15720 fprintf(f, "%s\n", _PATH_WTMPX);
15723 for (w = wtmplist; *w; w++) {
15724 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15725 fprintf(f, "%s\n", *w);
15732 rm -f conftest$ac_exeext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 rxvt_cv_path_wtmpx=`cat conftestval`
15745 echo "$as_me: program exited with status $ac_status" >&5
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ( exit $ac_status )
15750 rxvt_cv_path_wtmpx=
15752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15755 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
15756 echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
15757 if test x$rxvt_cv_path_wtmpx != x; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
15765 echo "$as_me:$LINENO: checking where lastlog is located" >&5
15766 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15767 if test "${rxvt_cv_path_lastlog+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 if test "$cross_compiling" = yes; then
15771 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
15772 echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15781 #include <sys/types.h>
15782 #ifdef HAVE_UTMPX_H
15784 #elif defined(HAVE_UTMP_H)
15787 #ifdef HAVE_LASTLOG_H
15788 #include <lastlog.h>
15793 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
15794 FILE *a, *f=fopen("conftestval", "w");
15796 #ifdef LASTLOG_FILE
15797 fprintf(f, "%s\n", LASTLOG_FILE);
15800 #ifdef _PATH_LASTLOG
15801 fprintf(f, "%s\n", _PATH_LASTLOG);
15804 for (w = lastloglist; *w; w++) {
15805 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15806 fprintf(f, "%s\n", *w);
15813 rm -f conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 rxvt_cv_path_lastlog=`cat conftestval`
15826 echo "$as_me: program exited with status $ac_status" >&5
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 ( exit $ac_status )
15831 rxvt_cv_path_lastlog=
15833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15836 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
15837 echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
15838 if test x$rxvt_cv_path_lastlog != x; then
15840 cat >>confdefs.h <<_ACEOF
15841 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
15844 if test -d "$rxvt_cv_path_lastlog"; then
15846 cat >>confdefs.h <<\_ACEOF
15847 #define LASTLOG_IS_DIR 1
15853 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15854 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15855 if test "${rxvt_cv_path_lastlogx+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 if test "$cross_compiling" = yes; then
15859 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
15860 echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
15862 cat >conftest.$ac_ext <<_ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15869 #ifdef HAVE_UTMPX_H
15875 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
15876 FILE *a, *f=fopen("conftestval", "w");
15878 #ifdef LASTLOGX_FILE
15879 fprintf(f, "%s\n", LASTLOGX_FILE);
15882 #ifdef _PATH_LASTLOGX
15883 fprintf(f, "%s\n", _PATH_LASTLOGX);
15886 for (w = wtmplist; *w; w++) {
15887 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15888 fprintf(f, "%s\n", *w);
15895 rm -f conftest$ac_exeext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 rxvt_cv_path_lastlogx=`cat conftestval`
15908 echo "$as_me: program exited with status $ac_status" >&5
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ( exit $ac_status )
15913 rxvt_cv_path_lastlogx=
15915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15918 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
15919 echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
15920 if test x$rxvt_cv_path_lastlogx != x; then
15922 cat >>confdefs.h <<_ACEOF
15923 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
15929 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15930 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15931 if test "${rxvt_cv_path_ttytab+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 for ttys_file in /etc/ttys /etc/ttytab;
15936 if test -f "$ttys_file" ; then
15937 rxvt_cv_path_ttytab=$ttys_file
15943 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
15944 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
15945 if test x$rxvt_cv_path_ttytab != x; then
15947 cat >>confdefs.h <<_ACEOF
15948 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
15955 ac_save_CFLAGS=$CFLAGS
15956 CFLAGS="$CFLAGS $X_CFLAGS"
15957 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
15958 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
15959 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
15961 echo "$as_me:$LINENO: checking for working Xlocale" >&5
15962 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
15963 if test "${rxvt_cv_func_xlocale+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 if test "$cross_compiling" = yes; then
15967 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
15968 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <X11/Xlib.h>
15979 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
15980 exit (XSupportsLocale() ? 0 : 1);
15984 rm -f conftest$ac_exeext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 rxvt_cv_func_xlocale=yes
15997 echo "$as_me: program exited with status $ac_status" >&5
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ( exit $ac_status )
16002 rxvt_cv_func_xlocale=no
16004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16007 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
16008 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
16009 if test x$rxvt_cv_func_xlocale = xyes; then
16011 cat >>confdefs.h <<\_ACEOF
16012 #define HAVE_XLOCALE 1
16017 echo "$as_me:$LINENO: checking for working X setlocale" >&5
16018 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
16019 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16029 #include <X11/Xlocale.h>
16033 setlocale(LC_CTYPE, "");
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 rxvt_cv_func_xsetlocale=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 rxvt_cv_func_xsetlocale=no
16066 rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16069 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
16070 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
16071 if test x$rxvt_cv_func_xsetlocale = xyes; then
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_XSETLOCALE 1
16079 CFLAGS=$ac_save_CFLAGS
16081 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
16082 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
16083 if test "${rxvt_cv_func_setlocale+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16096 setlocale(LC_CTYPE, "");
16101 rm -f conftest.$ac_objext conftest$ac_exeext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103 (eval $ac_link) 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest$ac_exeext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122 rxvt_cv_func_setlocale=yes
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 rxvt_cv_func_setlocale=no
16129 rm -f conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16132 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
16133 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
16134 if test x$rxvt_cv_func_setlocale = xyes; then
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE_SETLOCALE 1
16142 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
16143 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
16144 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 #include <langinfo.h>
16157 nl_langinfo(CODESET);
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 rxvt_cv_func_nl_langinfo=yes
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 rxvt_cv_func_nl_langinfo=no
16190 rm -f conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16193 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
16194 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
16195 if test x$rxvt_cv_func_nl_langinfo = xyes; then
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_NL_LANGINFO 1
16203 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16204 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16205 if test "${rxvt_broken_ximcb+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 cat >conftest.$ac_ext <<_ACEOF
16210 #include <X11/Xlib.h>
16212 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16216 cb.callback = im_destroy_cb;
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 rxvt_broken_ximcb=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 rxvt_broken_ximcb=no
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16250 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16251 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16253 if test x$rxvt_broken_ximcb = xyes; then
16255 cat >>confdefs.h <<\_ACEOF
16256 #define XIMCB_PROTO_BROKEN 1
16261 echo "$as_me:$LINENO: checking for getpt" >&5
16262 echo $ECHO_N "checking for getpt... $ECHO_C" >&6
16263 if test "${rxvt_cv_func_getpt+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #define _GNU_SOURCE
16273 #ifdef HAVE_STDLIB_H
16274 # include <cstdlib>
16284 rm -f conftest.$ac_objext conftest$ac_exeext
16285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16286 (eval $ac_link) 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 rxvt_cv_func_getpt=yes
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 rxvt_cv_func_getpt=no
16312 rm -f conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16315 echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
16316 echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
16317 if test x$rxvt_cv_func_getpt = xyes; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_GETPT 1
16325 echo "$as_me:$LINENO: checking for pty/tty type" >&5
16326 echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
16327 if test "${rxvt_cv_ptys+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 if test x$ac_cv_func_openpty = xyes; then
16331 rxvt_cv_ptys=OPENPTY
16332 else if test x$ac_cv_func__getpty = xyes; then
16334 else if test -c /dev/ttyp20; then
16336 else if test -c /dev/ptym/clone; then
16338 else if test x$rxvt_cv_func_getpt = xyes; then
16340 else if test -c /dev/ptc -a -c /dev/pts; then
16342 else if test -c /dev/ptc -a -d /dev/pts; then
16344 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16345 rxvt_cv_ptys=STREAMS
16346 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16347 rxvt_cv_ptys=STREAMS
16361 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16362 echo "${ECHO_T}$rxvt_cv_ptys" >&6
16364 if test x$rxvt_cv_ptys = xOPENPTY; then
16366 cat >>confdefs.h <<\_ACEOF
16367 #define PTYS_ARE_OPENPTY 1
16371 if test x$rxvt_cv_ptys = xSCO; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define PTYS_ARE_NUMERIC 1
16378 if test x$rxvt_cv_ptys = xSTREAMS; then
16380 cat >>confdefs.h <<\_ACEOF
16381 #define PTYS_ARE_PTMX 1
16385 if test x$rxvt_cv_ptys = xPTC; then
16387 cat >>confdefs.h <<\_ACEOF
16388 #define PTYS_ARE_PTC 1
16392 if test x$rxvt_cv_ptys = xSGI4; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define PTYS_ARE__GETPTY 1
16399 if test x$rxvt_cv_ptys = xCONVEX; then
16401 cat >>confdefs.h <<\_ACEOF
16402 #define PTYS_ARE_GETPTY 1
16406 if test x$rxvt_cv_ptys = xGLIBC; then
16408 cat >>confdefs.h <<\_ACEOF
16409 #define PTYS_ARE_GETPT 1
16413 if test x$rxvt_cv_ptys = xHPUX; then
16415 cat >>confdefs.h <<\_ACEOF
16416 #define PTYS_ARE_CLONE 1
16420 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16422 cat >>confdefs.h <<\_ACEOF
16423 #define PTYS_ARE_SEARCHED 1
16429 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
16430 echo "$as_me: checking for pty ranges..." >&6;}
16431 ptys=`echo /dev/pty??`
16432 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16433 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16434 if test x$pch1 != x; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define PTYCHAR1 "$pch1"
16441 if test x$pch2 != x; then
16443 cat >>confdefs.h <<_ACEOF
16444 #define PTYCHAR2 "$pch2"
16449 if test x$support_8bitctrls = xyes; then
16451 cat >>confdefs.h <<\_ACEOF
16452 #define EIGHT_BIT_CONTROLS 1
16456 if test x$support_fading = xyes; then
16458 cat >>confdefs.h <<\_ACEOF
16459 #define OFF_FOCUS_FADING 1
16463 if test x$support_tinting = xyes; then
16465 cat >>confdefs.h <<\_ACEOF
16470 if test x$support_inheritpixmap = xyes; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define TRANSPARENT 1
16477 if test x$support_keepscrolling = xno; then
16479 cat >>confdefs.h <<\_ACEOF
16480 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16484 if test x$support_selectionscrolling = xyes; then
16486 cat >>confdefs.h <<\_ACEOF
16487 #define SELECTION_SCROLLING 1
16491 if test x$support_menubar = xyes; then
16493 cat >>confdefs.h <<\_ACEOF
16498 if test x$support_frills = xno; then
16500 cat >>confdefs.h <<\_ACEOF
16501 #define NO_FRILLS 1
16505 if test x$support_linespace = xno; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define NO_LINESPACE 1
16512 if test x$support_24bit = xyes; then
16514 cat >>confdefs.h <<\_ACEOF
16515 #define PREFER_24BIT 1
16519 if test x$support_mousewheel = xyes; then
16521 cat >>confdefs.h <<\_ACEOF
16522 #define MOUSE_WHEEL 1
16526 if test x$support_mouseslipwheel = xyes; then
16528 cat >>confdefs.h <<\_ACEOF
16529 #define MOUSE_SLIP_WHEELING 1
16533 if test x$support_utmp = xyes; then
16535 cat >>confdefs.h <<\_ACEOF
16536 #define UTMP_SUPPORT 1
16540 if test x$support_wtmp = xyes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define WTMP_SUPPORT 1
16547 if test x$support_lastlog = xyes; then
16549 cat >>confdefs.h <<\_ACEOF
16550 #define LASTLOG_SUPPORT 1
16554 if test x$support_xim = xyes -o x$multichar_set = xyes; then
16555 if test x$rxvt_cv_func_xlocale = xyes; then
16557 cat >>confdefs.h <<\_ACEOF
16563 if test x$support_xpm = xyes; then
16565 cat >>confdefs.h <<\_ACEOF
16566 #define XPM_BACKGROUND 1
16570 if test x$support_scroll_rxvt = xyes; then
16572 cat >>confdefs.h <<\_ACEOF
16573 #define RXVT_SCROLLBAR 1
16578 if test x$support_scroll_next = xyes; then
16580 cat >>confdefs.h <<\_ACEOF
16581 #define NEXT_SCROLLBAR 1
16584 scrolltypes="$scrolltypes next"
16586 if test x$support_scroll_xterm = xyes; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define XTERM_SCROLLBAR 1
16592 scrolltypes="$scrolltypes xterm"
16594 if test x$support_scroll_plain = xyes; then
16596 cat >>confdefs.h <<\_ACEOF
16597 #define PLAIN_SCROLLBAR 1
16600 scrolltypes="$scrolltypes plain"
16602 if test x$support_pointer_blank = xyes; then
16604 cat >>confdefs.h <<\_ACEOF
16605 #define POINTER_BLANK 1
16609 if test x$support_cursor_blink = xyes; then
16611 cat >>confdefs.h <<\_ACEOF
16612 #define CURSOR_BLINK 1
16616 if test x$support_text_blink = xyes; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define TEXT_BLINK 1
16623 if test x$support_unicode3 = xyes; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define UNICODE_3 1
16630 if test x$support_combining = xyes; then
16632 cat >>confdefs.h <<\_ACEOF
16633 #define ENABLE_COMBINING 1
16637 if test x$codesets = xall; then
16638 codesets=jp,jp-ext,kr,cn,cn-ext
16640 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16642 cat >>confdefs.h <<\_ACEOF
16643 #define ENCODING_EU 1
16647 cat >>confdefs.h <<\_ACEOF
16648 #define ENCODING_VN 1
16653 cat >>confdefs.h <<\_ACEOF
16654 #define ENCODING_JP 1
16658 cat >>confdefs.h <<\_ACEOF
16659 #define ENCODING_JP_EXT 1
16663 cat >>confdefs.h <<\_ACEOF
16664 #define ENCODING_KR 1
16668 cat >>confdefs.h <<\_ACEOF
16669 #define ENCODING_CN 1
16673 cat >>confdefs.h <<\_ACEOF
16674 #define ENCODING_CN_EXT 1
16681 CFLAGS=${CFLAGS--O}
16682 LDFLAGS=${LDFLAGS--O}
16684 CPPFLAGS="$CPPFLAGS"
16692 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16693 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16694 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16695 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16696 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16697 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16704 if test x$support_addstrings = xno; then
16706 cat >>confdefs.h <<\_ACEOF
16707 #define NO_STRINGS 1
16712 MCOMMON=./autoconf/Make.common
16715 test "$program_prefix" != NONE &&
16716 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16717 # Use a double $ so make ignores it.
16718 test "$program_suffix" != NONE &&
16719 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16720 # Double any \ or $. echo might interpret backslashes.
16721 # By default was `s,x,x', remove it if useless.
16722 cat <<\_ACEOF >conftest.sed
16723 s/[\\$]/&&/g;s/;s,x,x,$//
16725 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16732 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16733 include_stdint_h="#include <stdint.h>"
16735 include_stdint_h="/* #include <stdint.h> */"
16737 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16738 include_stdarg_h="#include <cstdarg>"
16740 include_stdarg_h="/* #include <cstdarg> */"
16742 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16743 include_stdlib_h="#include <cstdlib>"
16745 include_stdlib_h="/* #include <cstdlib> */"
16747 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16748 include_unistd_h="#include <unistd.h>"
16750 include_unistd_h="/* #include <unistd.h> */"
16752 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16753 include_string_h="#include <cstring>"
16755 include_string_h="/* #include <cstring> */"
16757 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16758 include_fcntl_h="#include <fcntl.h>"
16760 include_fcntl_h="/* #include <fcntl.h> */"
16762 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16763 include_util_h="#include <util.h>"
16765 include_util_h="/* #include <util.h> */"
16767 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16768 include_assert_h="#include <assert.h>"
16770 include_assert_h="/* #include <assert.h> */"
16772 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16773 include_sys_ioctl_h="#include <sys/ioctl.h>"
16775 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16777 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16778 include_sys_select_h="#include <sys/select.h>"
16780 include_sys_select_h="/* #include <sys/select.h> */"
16782 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16783 include_sys_strredir_h="#include <sys/strredir.h>"
16785 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16787 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16788 include_sys_time_h="#include <sys/time.h>"
16790 include_sys_time_h="/* #include <sys/time.h> */"
16792 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16793 include_time_h="#include <time.h>"
16795 include_time_h="/* #include <time.h> */"
16798 if test x$support_xft = xyes; then
16799 LIBS="$LIBS `pkg-config xft --libs`"
16800 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16801 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16804 for ac_header in X11/Xft/Xft.h
16806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16808 echo "$as_me:$LINENO: checking for $ac_header" >&5
16809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16816 # Is the header compilable?
16817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 #include <$ac_header>
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 ac_header_compiler=no
16856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858 echo "${ECHO_T}$ac_header_compiler" >&6
16860 # Is the header present?
16861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 #include <$ac_header>
16871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_cxx_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16888 if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_header_preproc=no
16896 rm -f conftest.err conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16898 echo "${ECHO_T}$ac_header_preproc" >&6
16900 # So? What about this header?
16901 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16907 ac_header_preproc=yes
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16924 ## ------------------------------------------ ##
16925 ## Report this to the AC_PACKAGE_NAME lists. ##
16926 ## ------------------------------------------ ##
16929 sed "s/^/$as_me: WARNING: /" >&2
16932 echo "$as_me:$LINENO: checking for $ac_header" >&5
16933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 eval "$as_ac_Header=\$ac_header_preproc"
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
16956 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
16957 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 ac_check_lib_save_LIBS=$LIBS
16962 cat >conftest.$ac_ext <<_ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 /* Override any gcc2 internal prototype to avoid an error. */
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char XftDrawString32 ();
16979 XftDrawString32 ();
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>conftest.er1
16988 grep -v '^ *+' conftest.er1 >conftest.err
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_lib_Xft_XftDrawString32=yes
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_cv_lib_Xft_XftDrawString32=no
17012 rm -f conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17016 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
17017 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
17018 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define HAVE_LIBXFT 1
17030 if test x$support_xft = xyes; then
17032 cat >>confdefs.h <<\_ACEOF
17039 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
17040 cat >confcache <<\_ACEOF
17041 # This file is a shell script that caches the results of configure
17042 # tests run on this system so they can be shared between configure
17043 # scripts and configure runs, see configure's option --config-cache.
17044 # It is not useful on other systems. If it contains results you don't
17045 # want to keep, you may remove or edit it.
17047 # config.status only pays attention to the cache file if you give it
17048 # the --recheck option to rerun configure.
17050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17052 # following values.
17056 # The following way of writing the cache mishandles newlines in values,
17057 # but we know of no workaround that is simple, portable, and efficient.
17058 # So, don't put newlines in cache variables' values.
17059 # Ultrix sh set writes to stderr and can't be redirected directly,
17060 # and sets the high bit in the cache file unless we assign to the vars.
17063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17065 # `set' does not quote correctly, so add quotes (double-quote
17066 # substitution turns \\\\ into \\, and sed turns \\ into \).
17069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17072 # `set' quotes correctly as required by POSIX, so do not add quotes.
17074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17083 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17085 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17086 if test -w $cache_file; then
17087 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17088 cat confcache >$cache_file
17090 echo "not updating unwritable cache $cache_file"
17095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17096 # Let make expand exec_prefix.
17097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17099 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17101 # trailing colons and then remove the whole line if VPATH becomes empty
17102 # (actually we leave an empty line to preserve line numbers).
17103 if test "x$srcdir" = x.; then
17104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17105 s/:*\$(srcdir):*/:/;
17106 s/:*\${srcdir}:*/:/;
17108 s/^\([^=]*=[ ]*\):*/\1/;
17114 DEFS=-DHAVE_CONFIG_H
17118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17119 # 1. Remove the extension, and $U if already installed.
17120 ac_i=`echo "$ac_i" |
17121 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17123 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17124 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17126 LIBOBJS=$ac_libobjs
17128 LTLIBOBJS=$ac_ltlibobjs
17132 : ${CONFIG_STATUS=./config.status}
17133 ac_clean_files_save=$ac_clean_files
17134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17137 cat >$CONFIG_STATUS <<_ACEOF
17139 # Generated by $as_me.
17140 # Run this file to recreate the current configuration.
17141 # Compiler output produced by configure, useful for debugging
17142 # configure, is in config.log if it exists.
17145 ac_cs_recheck=false
17147 SHELL=\${CONFIG_SHELL-$SHELL}
17150 cat >>$CONFIG_STATUS <<\_ACEOF
17151 ## --------------------- ##
17152 ## M4sh Initialization. ##
17153 ## --------------------- ##
17155 # Be Bourne compatible
17156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17160 # is contrary to our usage. Disable this feature.
17161 alias -g '${1+"$@"}'='"$@"'
17162 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17165 DUALCASE=1; export DUALCASE # for MKS sh
17167 # Support unset when possible.
17168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17175 # Work around bugs in pre-3.0 UWIN ksh.
17176 $as_unset ENV MAIL MAILPATH
17183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17185 LC_TELEPHONE LC_TIME
17187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17188 eval $as_var=C; export $as_var
17194 # Required to use basename.
17195 if expr a : '\(a\)' >/dev/null 2>&1; then
17201 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17202 as_basename=basename
17208 # Name of the executable.
17209 as_me=`$as_basename "$0" ||
17210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17211 X"$0" : 'X\(//\)$' \| \
17212 X"$0" : 'X\(/\)$' \| \
17213 . : '\(.\)' 2>/dev/null ||
17215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17216 /^X\/\(\/\/\)$/{ s//\1/; q; }
17217 /^X\/\(\/\).*/{ s//\1/; q; }
17221 # PATH needs CR, and LINENO needs CR and PATH.
17222 # Avoid depending upon Character Ranges.
17223 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17224 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17225 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17226 as_cr_digits='0123456789'
17227 as_cr_alnum=$as_cr_Letters$as_cr_digits
17229 # The user is always right.
17230 if test "${PATH_SEPARATOR+set}" != set; then
17231 echo "#! /bin/sh" >conf$$.sh
17232 echo "exit 0" >>conf$$.sh
17234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17243 as_lineno_1=$LINENO
17244 as_lineno_2=$LINENO
17245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17246 test "x$as_lineno_1" != "x$as_lineno_2" &&
17247 test "x$as_lineno_3" = "x$as_lineno_2" || {
17248 # Find who we are. Look in the path if we contain no path at all
17251 *[\\/]* ) as_myself=$0 ;;
17252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17253 for as_dir in $PATH
17256 test -z "$as_dir" && as_dir=.
17257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17262 # We did not find ourselves, most probably we were run as `sh COMMAND'
17263 # in which case we are not to be found in the path.
17264 if test "x$as_myself" = x; then
17267 if test ! -f "$as_myself"; then
17268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17269 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17270 { (exit 1); exit 1; }; }
17272 case $CONFIG_SHELL in
17274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17275 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17278 test -z "$as_dir" && as_dir=.
17279 for as_base in sh bash ksh sh5; do
17282 if ("$as_dir/$as_base" -c '
17283 as_lineno_1=$LINENO
17284 as_lineno_2=$LINENO
17285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17286 test "x$as_lineno_1" != "x$as_lineno_2" &&
17287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17288 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17289 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17290 CONFIG_SHELL=$as_dir/$as_base
17291 export CONFIG_SHELL
17292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17301 # uniformly replaced by the line number. The first 'sed' inserts a
17302 # line-number line before each line; the second 'sed' does the real
17303 # work. The second script uses 'N' to pair each line-number line
17304 # with the numbered line, and appends trailing '-' during
17305 # substitution so that $LINENO is not a special case at line end.
17306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17308 sed '=' <$as_myself |
17313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17316 s,^['$as_cr_digits']*\n,,
17317 ' >$as_me.lineno &&
17318 chmod +x $as_me.lineno ||
17319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17320 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17321 { (exit 1); exit 1; }; }
17323 # Don't try to exec as it changes $[0], causing all sort of problems
17324 # (the dirname of $[0] is not the place where we might find the
17325 # original and so on. Autoconf is especially sensible to this).
17327 # Exit status is that of the last command.
17332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17333 *c*,-n*) ECHO_N= ECHO_C='
17335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17339 if expr a : '\(a\)' >/dev/null 2>&1; then
17345 rm -f conf$$ conf$$.exe conf$$.file
17347 if ln -s conf$$.file conf$$ 2>/dev/null; then
17348 # We could just check for DJGPP; but this test a) works b) is more generic
17349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17350 if test -f conf$$.exe; then
17351 # Don't use ln at all; we don't have any links
17356 elif ln conf$$.file conf$$ 2>/dev/null; then
17361 rm -f conf$$ conf$$.exe conf$$.file
17363 if mkdir -p . 2>/dev/null; then
17366 test -d ./-p && rmdir ./-p
17370 as_executable_p="test -f"
17372 # Sed expression to map a string onto a valid CPP name.
17373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17375 # Sed expression to map a string onto a valid variable name.
17376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17380 # We need space, tab and new line, in precisely that order.
17390 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17391 # report actual input values of CONFIG_FILES etc. instead of their
17392 # values after options handling. Logging --version etc. is OK.
17396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17397 ## Running $as_me. ##
17402 This file was extended by $as_me, which was
17403 generated by GNU Autoconf 2.59. Invocation command line was
17405 CONFIG_FILES = $CONFIG_FILES
17406 CONFIG_HEADERS = $CONFIG_HEADERS
17407 CONFIG_LINKS = $CONFIG_LINKS
17408 CONFIG_COMMANDS = $CONFIG_COMMANDS
17412 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17416 # Files that config.status was made for.
17417 if test -n "$ac_config_files"; then
17418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17421 if test -n "$ac_config_headers"; then
17422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17425 if test -n "$ac_config_links"; then
17426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17429 if test -n "$ac_config_commands"; then
17430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17433 cat >>$CONFIG_STATUS <<\_ACEOF
17436 \`$as_me' instantiates files from templates according to the
17437 current configuration.
17439 Usage: $0 [OPTIONS] [FILE]...
17441 -h, --help print this help, then exit
17442 -V, --version print version number, then exit
17443 -q, --quiet do not print progress messages
17444 -d, --debug don't remove temporary files
17445 --recheck update $as_me by reconfiguring in the same conditions
17446 --file=FILE[:TEMPLATE]
17447 instantiate the configuration file FILE
17448 --header=FILE[:TEMPLATE]
17449 instantiate the configuration header FILE
17451 Configuration files:
17454 Configuration headers:
17457 Report bugs to <bug-autoconf@gnu.org>."
17460 cat >>$CONFIG_STATUS <<_ACEOF
17463 configured by $0, generated by GNU Autoconf 2.59,
17464 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17466 Copyright (C) 2003 Free Software Foundation, Inc.
17467 This config.status script is free software; the Free Software Foundation
17468 gives unlimited permission to copy, distribute and modify it."
17473 cat >>$CONFIG_STATUS <<\_ACEOF
17474 # If no file are specified by the user, then we need to provide default
17475 # value. By we need to know if files were specified by the user.
17481 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17482 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17490 *) # This is not an option, so the user has probably given explicit
17493 ac_need_defaults=false;;
17497 # Handling of the options.
17499 cat >>$CONFIG_STATUS <<\_ACEOF
17500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17502 --version | --vers* | -V )
17503 echo "$ac_cs_version"; exit 0 ;;
17505 # Conflict between --help and --header
17506 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17507 Try \`$0 --help' for more information." >&5
17508 echo "$as_me: error: ambiguous option: $1
17509 Try \`$0 --help' for more information." >&2;}
17510 { (exit 1); exit 1; }; };;
17511 --help | --hel | -h )
17512 echo "$ac_cs_usage"; exit 0 ;;
17513 --debug | --d* | -d )
17515 --file | --fil | --fi | --f )
17517 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17518 ac_need_defaults=false;;
17519 --header | --heade | --head | --hea )
17521 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17522 ac_need_defaults=false;;
17523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17527 # This is an error.
17528 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17529 Try \`$0 --help' for more information." >&5
17530 echo "$as_me: error: unrecognized option: $1
17531 Try \`$0 --help' for more information." >&2;}
17532 { (exit 1); exit 1; }; } ;;
17534 *) ac_config_targets="$ac_config_targets $1" ;;
17540 ac_configure_extra_args=
17542 if $ac_cs_silent; then
17544 ac_configure_extra_args="$ac_configure_extra_args --silent"
17548 cat >>$CONFIG_STATUS <<_ACEOF
17549 if \$ac_cs_recheck; then
17550 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17551 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17560 cat >>$CONFIG_STATUS <<\_ACEOF
17561 for ac_config_target in $ac_config_targets
17563 case "$ac_config_target" in
17564 # Handling of arguments.
17565 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17566 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17567 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17568 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17569 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17570 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17571 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17572 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17575 { (exit 1); exit 1; }; };;
17579 # If the user did not use the arguments to specify the items to instantiate,
17580 # then the envvar interface is used. Set only those that are not.
17581 # We use the long form for the default assignment because of an extremely
17582 # bizarre bug on SunOS 4.1.3.
17583 if $ac_need_defaults; then
17584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17588 # Have a temporary directory for convenience. Make it in the build tree
17589 # simply because there is no reason to put it here, and in addition,
17590 # creating and moving files from /tmp can sometimes cause problems.
17591 # Create a temporary directory, and hook for its removal unless debugging.
17594 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17595 trap '{ (exit 1); exit 1; }' 1 2 13 15
17598 # Create a (secure) tmp directory for tmp files.
17601 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17602 test -n "$tmp" && test -d "$tmp"
17605 tmp=./confstat$$-$RANDOM
17606 (umask 077 && mkdir $tmp)
17609 echo "$me: cannot create a temporary directory in ." >&2
17610 { (exit 1); exit 1; }
17615 cat >>$CONFIG_STATUS <<_ACEOF
17618 # CONFIG_FILES section.
17621 # No need to generate the scripts if there are no CONFIG_FILES.
17622 # This happens for instance when ./config.status config.h
17623 if test -n "\$CONFIG_FILES"; then
17624 # Protect against being on the right side of a sed subst in config.status.
17625 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17626 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17627 s,@SHELL@,$SHELL,;t t
17628 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17629 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17630 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17631 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17632 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17633 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17634 s,@exec_prefix@,$exec_prefix,;t t
17635 s,@prefix@,$prefix,;t t
17636 s,@program_transform_name@,$program_transform_name,;t t
17637 s,@bindir@,$bindir,;t t
17638 s,@sbindir@,$sbindir,;t t
17639 s,@libexecdir@,$libexecdir,;t t
17640 s,@datadir@,$datadir,;t t
17641 s,@sysconfdir@,$sysconfdir,;t t
17642 s,@sharedstatedir@,$sharedstatedir,;t t
17643 s,@localstatedir@,$localstatedir,;t t
17644 s,@libdir@,$libdir,;t t
17645 s,@includedir@,$includedir,;t t
17646 s,@oldincludedir@,$oldincludedir,;t t
17647 s,@infodir@,$infodir,;t t
17648 s,@mandir@,$mandir,;t t
17649 s,@build_alias@,$build_alias,;t t
17650 s,@host_alias@,$host_alias,;t t
17651 s,@target_alias@,$target_alias,;t t
17652 s,@DEFS@,$DEFS,;t t
17653 s,@ECHO_C@,$ECHO_C,;t t
17654 s,@ECHO_N@,$ECHO_N,;t t
17655 s,@ECHO_T@,$ECHO_T,;t t
17656 s,@LIBS@,$LIBS,;t t
17657 s,@VERSION@,$VERSION,;t t
17658 s,@DATE@,$DATE,;t t
17659 s,@LSMDATE@,$LSMDATE,;t t
17660 s,@LIBVERSION@,$LIBVERSION,;t t
17662 s,@CFLAGS@,$CFLAGS,;t t
17663 s,@LDFLAGS@,$LDFLAGS,;t t
17664 s,@CPPFLAGS@,$CPPFLAGS,;t t
17665 s,@ac_ct_CC@,$ac_ct_CC,;t t
17666 s,@EXEEXT@,$EXEEXT,;t t
17667 s,@OBJEXT@,$OBJEXT,;t t
17669 s,@CXXFLAGS@,$CXXFLAGS,;t t
17670 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17672 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17673 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17674 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17676 s,@LINKER@,$LINKER,;t t
17677 s,@CXXCPP@,$CXXCPP,;t t
17678 s,@EGREP@,$EGREP,;t t
17679 s,@build@,$build,;t t
17680 s,@build_cpu@,$build_cpu,;t t
17681 s,@build_vendor@,$build_vendor,;t t
17682 s,@build_os@,$build_os,;t t
17683 s,@host@,$host,;t t
17684 s,@host_cpu@,$host_cpu,;t t
17685 s,@host_vendor@,$host_vendor,;t t
17686 s,@host_os@,$host_os,;t t
17687 s,@LN_S@,$LN_S,;t t
17688 s,@ECHO@,$ECHO,;t t
17689 s,@RANLIB@,$RANLIB,;t t
17690 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17691 s,@STRIP@,$STRIP,;t t
17692 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17693 s,@LIBTOOL@,$LIBTOOL,;t t
17694 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17695 s,@RXVTNAME@,$RXVTNAME,;t t
17703 s,@X_CFLAGS@,$X_CFLAGS,;t t
17704 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17705 s,@X_LIBS@,$X_LIBS,;t t
17706 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17707 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17708 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17709 s,@XPM_LIBS@,$XPM_LIBS,;t t
17710 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17711 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17712 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17713 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17714 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17715 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17716 s,@DEBUG@,$DEBUG,;t t
17717 s,@DINCLUDE@,$DINCLUDE,;t t
17718 s,@DLIB@,$DLIB,;t t
17719 s,@include_stdint_h@,$include_stdint_h,;t t
17720 s,@include_stdarg_h@,$include_stdarg_h,;t t
17721 s,@include_stdlib_h@,$include_stdlib_h,;t t
17722 s,@include_unistd_h@,$include_unistd_h,;t t
17723 s,@include_string_h@,$include_string_h,;t t
17724 s,@include_fcntl_h@,$include_fcntl_h,;t t
17725 s,@include_util_h@,$include_util_h,;t t
17726 s,@include_assert_h@,$include_assert_h,;t t
17727 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17728 s,@include_sys_select_h@,$include_sys_select_h,;t t
17729 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17730 s,@include_sys_time_h@,$include_sys_time_h,;t t
17731 s,@include_time_h@,$include_time_h,;t t
17732 s,@LIBOBJS@,$LIBOBJS,;t t
17733 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17734 /@MCOMMON@/r $MCOMMON
17740 cat >>$CONFIG_STATUS <<\_ACEOF
17741 # Split the substitutions into bite-sized pieces for seds with
17742 # small command number limits, like on Digital OSF/1 and HP-UX.
17743 ac_max_sed_lines=48
17744 ac_sed_frag=1 # Number of current file.
17745 ac_beg=1 # First line for current file.
17746 ac_end=$ac_max_sed_lines # Line after last line for current file.
17749 while $ac_more_lines; do
17750 if test $ac_beg -gt 1; then
17751 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17753 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17755 if test ! -s $tmp/subs.frag; then
17756 ac_more_lines=false
17758 # The purpose of the label and of the branching condition is to
17759 # speed up the sed processing (if there are no `@' at all, there
17760 # is no need to browse any of the substitutions).
17761 # These are the two extra sed commands mentioned above.
17763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17764 if test -z "$ac_sed_cmds"; then
17765 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17767 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17769 ac_sed_frag=`expr $ac_sed_frag + 1`
17771 ac_end=`expr $ac_end + $ac_max_sed_lines`
17774 if test -z "$ac_sed_cmds"; then
17777 fi # test -n "$CONFIG_FILES"
17780 cat >>$CONFIG_STATUS <<\_ACEOF
17781 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17784 - | *:- | *:-:* ) # input from stdin
17786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17790 * ) ac_file_in=$ac_file.in ;;
17793 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796 X"$ac_file" : 'X\(//\)[^/]' \| \
17797 X"$ac_file" : 'X\(//\)$' \| \
17798 X"$ac_file" : 'X\(/\)' \| \
17799 . : '\(.\)' 2>/dev/null ||
17801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17803 /^X\(\/\/\)$/{ s//\1/; q; }
17804 /^X\(\/\).*/{ s//\1/; q; }
17806 { if $as_mkdir_p; then
17811 while test ! -d "$as_dir"; do
17812 as_dirs="$as_dir $as_dirs"
17813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17815 X"$as_dir" : 'X\(//\)[^/]' \| \
17816 X"$as_dir" : 'X\(//\)$' \| \
17817 X"$as_dir" : 'X\(/\)' \| \
17818 . : '\(.\)' 2>/dev/null ||
17820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17822 /^X\(\/\/\)$/{ s//\1/; q; }
17823 /^X\(\/\).*/{ s//\1/; q; }
17826 test ! -n "$as_dirs" || mkdir $as_dirs
17827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17829 { (exit 1); exit 1; }; }; }
17833 if test "$ac_dir" != .; then
17834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17835 # A "../" for each directory in $ac_dir_suffix.
17836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17838 ac_dir_suffix= ac_top_builddir=
17842 .) # No --srcdir option. We are building in place.
17844 if test -z "$ac_top_builddir"; then
17847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17849 [\\/]* | ?:[\\/]* ) # Absolute path.
17850 ac_srcdir=$srcdir$ac_dir_suffix;
17851 ac_top_srcdir=$srcdir ;;
17852 *) # Relative path.
17853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17857 # Do not use `cd foo && pwd` to compute absolute paths, because
17858 # the directories may not exist.
17860 .) ac_abs_builddir="$ac_dir";;
17863 .) ac_abs_builddir=`pwd`;;
17864 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17865 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17868 case $ac_abs_builddir in
17869 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17871 case ${ac_top_builddir}. in
17872 .) ac_abs_top_builddir=$ac_abs_builddir;;
17873 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17874 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17877 case $ac_abs_builddir in
17878 .) ac_abs_srcdir=$ac_srcdir;;
17881 .) ac_abs_srcdir=$ac_abs_builddir;;
17882 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17883 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17886 case $ac_abs_builddir in
17887 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17889 case $ac_top_srcdir in
17890 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17891 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17892 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17899 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17902 # Let's still pretend it is `configure' which instantiates (i.e., don't
17903 # use $as_me), people would be surprised to read:
17904 # /* config.h. Generated by config.status. */
17905 if test x"$ac_file" = x-; then
17908 configure_input="$ac_file. "
17910 configure_input=$configure_input"Generated from `echo $ac_file_in |
17911 sed 's,.*/,,'` by configure."
17913 # First look for the input files in the build tree, otherwise in the
17915 ac_file_inputs=`IFS=:
17916 for f in $ac_file_in; do
17918 -) echo $tmp/stdin ;;
17920 # Absolute (can't be DOS-style, as IFS=:)
17921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17922 echo "$as_me: error: cannot find input file: $f" >&2;}
17923 { (exit 1); exit 1; }; }
17926 if test -f "$f"; then
17929 elif test -f "$srcdir/$f"; then
17934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17935 echo "$as_me: error: cannot find input file: $f" >&2;}
17936 { (exit 1); exit 1; }; }
17939 done` || { (exit 1); exit 1; }
17941 if test x"$ac_file" != x-; then
17942 { echo "$as_me:$LINENO: creating $ac_file" >&5
17943 echo "$as_me: creating $ac_file" >&6;}
17947 cat >>$CONFIG_STATUS <<_ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17954 s,@configure_input@,$configure_input,;t t
17955 s,@srcdir@,$ac_srcdir,;t t
17956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17957 s,@top_srcdir@,$ac_top_srcdir,;t t
17958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17959 s,@builddir@,$ac_builddir,;t t
17960 s,@abs_builddir@,$ac_abs_builddir,;t t
17961 s,@top_builddir@,$ac_top_builddir,;t t
17962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17963 s,@INSTALL@,$ac_INSTALL,;t t
17964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17966 if test x"$ac_file" != x-; then
17967 mv $tmp/out $ac_file
17975 cat >>$CONFIG_STATUS <<\_ACEOF
17978 # CONFIG_HEADER section.
17981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17984 # ac_d sets the value in "#define NAME VALUE" lines.
17985 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17986 ac_dB='[ ].*$,\1#\2'
17989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17990 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17991 ac_uB='$,\1#\2define\3'
17995 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17998 - | *:- | *:-:* ) # input from stdin
18000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18004 * ) ac_file_in=$ac_file.in ;;
18007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18008 echo "$as_me: creating $ac_file" >&6;}
18010 # First look for the input files in the build tree, otherwise in the
18012 ac_file_inputs=`IFS=:
18013 for f in $ac_file_in; do
18015 -) echo $tmp/stdin ;;
18017 # Absolute (can't be DOS-style, as IFS=:)
18018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18019 echo "$as_me: error: cannot find input file: $f" >&2;}
18020 { (exit 1); exit 1; }; }
18021 # Do quote $f, to prevent DOS paths from being IFS'd.
18024 if test -f "$f"; then
18027 elif test -f "$srcdir/$f"; then
18032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18033 echo "$as_me: error: cannot find input file: $f" >&2;}
18034 { (exit 1); exit 1; }; }
18037 done` || { (exit 1); exit 1; }
18038 # Remove the trailing spaces.
18039 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18043 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18044 # `conftest.undefs', that substitutes the proper values into
18045 # config.h.in to produce config.h. The first handles `#define'
18046 # templates, and the second `#undef' templates.
18047 # And first: Protect against being on the right side of a sed subst in
18048 # config.status. Protect against being in an unquoted here document
18049 # in config.status.
18050 rm -f conftest.defines conftest.undefs
18051 # Using a here document instead of a string reduces the quoting nightmare.
18052 # Putting comments in sed scripts is not portable.
18054 # `end' is used to avoid that the second main sed command (meant for
18055 # 0-ary CPP macros) applies to n-ary macro definitions.
18056 # See the Autoconf documentation for `clear'.
18057 cat >confdef2sed.sed <<\_ACEOF
18062 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18064 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18067 # If some macros were called several times there might be several times
18068 # the same #defines, which is useless. Nevertheless, we may not want to
18069 # sort them, since we want the *last* AC-DEFINE to be honored.
18070 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18071 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18072 rm -f confdef2sed.sed
18074 # This sed command replaces #undef with comments. This is necessary, for
18075 # example, in the case of _POSIX_SOURCE, which is predefined and required
18076 # on some systems where configure will not decide to define it.
18077 cat >>conftest.undefs <<\_ACEOF
18078 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18081 # Break up conftest.defines because some shells have a limit on the size
18082 # of here documents, and old seds have small limits too (100 cmds).
18083 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18084 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18085 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18086 echo ' :' >>$CONFIG_STATUS
18087 rm -f conftest.tail
18088 while grep . conftest.defines >/dev/null
18090 # Write a limited-size here document to $tmp/defines.sed.
18091 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18092 # Speed up: don't consider the non `#define' lines.
18093 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18094 # Work around the forget-to-reset-the-flag bug.
18095 echo 't clr' >>$CONFIG_STATUS
18096 echo ': clr' >>$CONFIG_STATUS
18097 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18099 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18101 mv $tmp/out $tmp/in
18103 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18104 rm -f conftest.defines
18105 mv conftest.tail conftest.defines
18107 rm -f conftest.defines
18108 echo ' fi # grep' >>$CONFIG_STATUS
18109 echo >>$CONFIG_STATUS
18111 # Break up conftest.undefs because some shells have a limit on the size
18112 # of here documents, and old seds have small limits too (100 cmds).
18113 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18114 rm -f conftest.tail
18115 while grep . conftest.undefs >/dev/null
18117 # Write a limited-size here document to $tmp/undefs.sed.
18118 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18119 # Speed up: don't consider the non `#undef'
18120 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18121 # Work around the forget-to-reset-the-flag bug.
18122 echo 't clr' >>$CONFIG_STATUS
18123 echo ': clr' >>$CONFIG_STATUS
18124 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18126 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18128 mv $tmp/out $tmp/in
18130 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18131 rm -f conftest.undefs
18132 mv conftest.tail conftest.undefs
18134 rm -f conftest.undefs
18136 cat >>$CONFIG_STATUS <<\_ACEOF
18137 # Let's still pretend it is `configure' which instantiates (i.e., don't
18138 # use $as_me), people would be surprised to read:
18139 # /* config.h. Generated by config.status. */
18140 if test x"$ac_file" = x-; then
18141 echo "/* Generated by configure. */" >$tmp/config.h
18143 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18145 cat $tmp/in >>$tmp/config.h
18147 if test x"$ac_file" != x-; then
18148 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18150 echo "$as_me: $ac_file is unchanged" >&6;}
18152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18154 X"$ac_file" : 'X\(//\)[^/]' \| \
18155 X"$ac_file" : 'X\(//\)$' \| \
18156 X"$ac_file" : 'X\(/\)' \| \
18157 . : '\(.\)' 2>/dev/null ||
18159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18161 /^X\(\/\/\)$/{ s//\1/; q; }
18162 /^X\(\/\).*/{ s//\1/; q; }
18164 { if $as_mkdir_p; then
18169 while test ! -d "$as_dir"; do
18170 as_dirs="$as_dir $as_dirs"
18171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18173 X"$as_dir" : 'X\(//\)[^/]' \| \
18174 X"$as_dir" : 'X\(//\)$' \| \
18175 X"$as_dir" : 'X\(/\)' \| \
18176 . : '\(.\)' 2>/dev/null ||
18178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18180 /^X\(\/\/\)$/{ s//\1/; q; }
18181 /^X\(\/\).*/{ s//\1/; q; }
18184 test ! -n "$as_dirs" || mkdir $as_dirs
18185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18187 { (exit 1); exit 1; }; }; }
18190 mv $tmp/config.h $ac_file
18194 rm -f $tmp/config.h
18199 cat >>$CONFIG_STATUS <<\_ACEOF
18201 { (exit 0); exit 0; }
18203 chmod +x $CONFIG_STATUS
18204 ac_clean_files=$ac_clean_files_save
18207 # configure is writing to config.log, and then calls config.status.
18208 # config.status does its own redirection, appending to config.log.
18209 # Unfortunately, on DOS this fails, as config.log is still kept open
18210 # by configure, so config.status won't be able to write to it; its
18211 # output is simply discarded. So we exec the FD to /dev/null,
18212 # effectively closing config.log, so it can be properly (re)opened and
18213 # appended to by config.status. When coming back to configure, we
18214 # need to make the FD available again.
18215 if test "$no_create" != yes; then
18217 ac_config_status_args=
18218 test "$silent" = yes &&
18219 ac_config_status_args="$ac_config_status_args --quiet"
18221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18224 # would make configure fail if this is the last instruction.
18225 $ac_cs_success || { (exit 1); exit 1; }
18229 echo "Configuration:
18231 Rxvt version: $VERSION : $DATE
18232 Source code location: $srcdir
18233 Install path: ${prefix}/bin
18235 Compiler flags: $CFLAGS
18238 if test "$MALLOC_TYPE" = S; then
18239 echo " malloc support: system default"
18241 if test "$MALLOC_TYPE" = G; then
18242 echo " malloc support: Gray Watson's dmalloc"
18244 if test "$MALLOC_TYPE" = D; then
18245 echo " malloc support: Doug Lea's malloc"
18248 if test x$support_xpm = xyes; then
18249 echo " Xpm library: $XPM_LIBS"
18253 The following are set in config.h
18255 echo " pty/tty type: "$rxvt_cv_ptys
18256 if test x$support_utmp != xyes; then
18257 echo " utmp support: disabled"
18260 echo " utmp support: enabled
18261 utmp file: $rxvt_cv_path_utmp
18262 utmpx file: $rxvt_cv_path_utmpx
18263 wtmp file: $rxvt_cv_path_wtmp
18264 wtmpx file: $rxvt_cv_path_wtmpx
18265 lastlog file: $rxvt_cv_path_lastlog
18266 ttys/ttytab file: $rxvt_cv_path_ttytab"
18269 if test x$term != x; then
18270 echo " set TERM to: $term"
18272 if test x$terminfo != x; then
18273 echo " set TERMINFO to: $terminfo"
18275 echo " default resource name: $RESNAME"
18276 echo " resource class: $RESCLASS"
18277 if test x$RESFALLBACK != x; then
18278 echo " resource class fallback: $RESFALLBACK"
18281 if test x$rxvt_cv_ptys = xUNKNOWN; then
18282 echo ".----------------------------------------------------------------."
18283 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18284 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18285 echo ".----------------------------------------------------------------."
18287 if test x$support_xpm = xneedsmanualspecification; then
18288 echo ".----------------------------------------------------------------."
18289 echo ". WARNING: --enable-xpm-background was specified however the ."
18290 echo ". XPM includes files and libraries could not be found. ."
18291 echo ". XPM backgrounds are now being DISABLED! If you want ."
18292 echo ". to use them you should rerun configure with the ."
18293 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
18294 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
18295 echo ".----------------------------------------------------------------."
18297 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
18298 echo ".----------------------------------------------------------------."
18299 echo ". WARNING: --enable-xim was specified however the locale support ."
18300 echo ". functions could not be found. ."
18301 echo ". XIM is now being DISABLED! ."
18302 echo ".----------------------------------------------------------------."
18305 echo " *** Please check src/feature.h for further options ***"
18308 echo ".----------------------------------------------------------------."
18309 echo ". NOTE: most features are disabled by default, try ."
18310 echo ". configure --help to get an idea of the optional features ."
18311 echo ".----------------------------------------------------------------."