"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure" between
xterm-367.tgz and xterm-368.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

configure  (xterm-367.tgz):configure  (xterm-368.tgz)
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.52.20210105. # Generated by Autoconf 2.52.20210509.
# #
# Copyright 2003-2020,2021 Thomas E. Dickey # Copyright 2003-2020,2021 Thomas E. Dickey
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation # This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it. # gives unlimited permission to copy, distribute and modify it.
# Avoid depending upon Character Ranges. # Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
skipping to change at line 894 skipping to change at line 894
gives unlimited permission to copy, distribute and modify it. gives unlimited permission to copy, distribute and modify it.
EOF EOF
exit 0 exit 0
fi fi
exec 5>config.log exec 5>config.log
cat >&5 <<EOF cat >&5 <<EOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was It was created by $as_me, which was
generated by GNU Autoconf 2.52.20210105. Invocation command line was generated by GNU Autoconf 2.52.20210509. Invocation command line was
$ $0 $@ $ $0 $@
EOF EOF
{ {
cat <<_ASUNAME cat <<_ASUNAME
## ---------- ## ## ---------- ##
## Platform. ## ## Platform. ##
## ---------- ## ## ---------- ##
skipping to change at line 3839 skipping to change at line 3839
fi fi
fi fi
fi # cf_cv_posix_visible fi # cf_cv_posix_visible
;; ;;
(netbsd*) (netbsd*)
cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 fo r lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 fo r lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
;; ;;
(openbsd[4-9]*) (openbsd[6-9]*)
# OpenBSD 6.x has broken locale support, both compile-time and runtime.
# see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
# Abusing the conformance level is a workaround.
{ echo "$as_me:3843: WARNING: this system does not provide usable locale
support" >&5
echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
cf_xopen_source="-D_BSD_SOURCE"
cf_XOPEN_SOURCE=700
;;
(openbsd[4-5]*)
# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, n eeded for ncursesw # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, n eeded for ncursesw
cf_xopen_source="-D_BSD_SOURCE" cf_xopen_source="-D_BSD_SOURCE"
cf_XOPEN_SOURCE=600 cf_XOPEN_SOURCE=600
;; ;;
(openbsd*) (openbsd*)
# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for nc ursesw # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for nc ursesw
;; ;;
(osf[45]*) (osf[45]*)
cf_xopen_source="-D_OSF_SOURCE" cf_xopen_source="-D_OSF_SOURCE"
;; ;;
skipping to change at line 3866 skipping to change at line 3875
(solaris2.*) (solaris2.*)
cf_xopen_source="-D__EXTENSIONS__" cf_xopen_source="-D__EXTENSIONS__"
cf_cv_xopen_source=broken cf_cv_xopen_source=broken
;; ;;
(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
cf_XOPEN_SOURCE= cf_XOPEN_SOURCE=
cf_POSIX_C_SOURCE= cf_POSIX_C_SOURCE=
;; ;;
(*) (*)
echo "$as_me:3866: checking if we should define _XOPEN_SOURCE" >&5 echo "$as_me:3875: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then if test "${cf_cv_xopen_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3873 "configure" #line 3882 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3892: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3901: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3895: \$? = $ac_status" >&5 echo "$as_me:3904: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3898: \"$ac_try\"") >&5 { (eval echo "$as_me:3907: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3901: \$? = $ac_status" >&5 echo "$as_me:3910: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3913 "configure" #line 3922 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _XOPEN_SOURCE #ifdef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3932: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3941: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3935: \$? = $ac_status" >&5 echo "$as_me:3944: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3938: \"$ac_try\"") >&5 { (eval echo "$as_me:3947: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3941: \$? = $ac_status" >&5 echo "$as_me:3950: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save" CPPFLAGS="$cf_save"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3956: result: $cf_cv_xopen_source" >&5 echo "$as_me:3965: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6 echo "${ECHO_T}$cf_cv_xopen_source" >&6
if test "$cf_cv_xopen_source" != no ; then if test "$cf_cv_xopen_source" != no ; then
CFLAGS=`echo "$CFLAGS" | \ CFLAGS=`echo "$CFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
CPPFLAGS=`echo "$CPPFLAGS" | \ CPPFLAGS=`echo "$CPPFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
skipping to change at line 4086 skipping to change at line 4095
cf_save_CPPFLAGS="$CPPFLAGS" cf_save_CPPFLAGS="$CPPFLAGS"
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
echo "$as_me:4086: checking if we should define _POSIX_C_SOURCE" >&5 echo "$as_me:4095: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then if test "${cf_cv_posix_c_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
echo "${as_me:-configure}:4092: testing if the symbol is already defined go no f urther ..." 1>&5 echo "${as_me:-configure}:4101: testing if the symbol is already defined go no f urther ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4095 "configure" #line 4104 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4110: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4113: \$? = $ac_status" >&5 echo "$as_me:4122: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4116: \"$ac_try\"") >&5 { (eval echo "$as_me:4125: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4119: \$? = $ac_status" >&5 echo "$as_me:4128: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_c_source=no cf_cv_posix_c_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_want_posix_source=no cf_want_posix_source=no
case .$cf_POSIX_C_SOURCE in case .$cf_POSIX_C_SOURCE in
(.[12]??*) (.[12]??*)
cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
;; ;;
(.2) (.2)
cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
cf_want_posix_source=yes cf_want_posix_source=yes
;; ;;
(.*) (.*)
cf_want_posix_source=yes cf_want_posix_source=yes
;; ;;
esac esac
if test "$cf_want_posix_source" = yes ; then if test "$cf_want_posix_source" = yes ; then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4140 "configure" #line 4149 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4155: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4158: \$? = $ac_status" >&5 echo "$as_me:4167: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4161: \"$ac_try\"") >&5 { (eval echo "$as_me:4170: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4164: \$? = $ac_status" >&5 echo "$as_me:4173: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "${as_me:-configure}:4175: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 echo "${as_me:-configure}:4184: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
CFLAGS="$cf_trim_CFLAGS" CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
echo "${as_me:-configure}:4183: testing if the second compile does not leave our definition intact error ..." 1>&5 echo "${as_me:-configure}:4192: testing if the second compile does not leave our definition intact error ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4186 "configure" #line 4195 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4201: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4210: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4204: \$? = $ac_status" >&5 echo "$as_me:4213: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4207: \"$ac_try\"") >&5 { (eval echo "$as_me:4216: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4210: \$? = $ac_status" >&5 echo "$as_me:4219: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_c_source=no cf_cv_posix_c_source=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
CPPFLAGS="$cf_save_CPPFLAGS" CPPFLAGS="$cf_save_CPPFLAGS"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4226: result: $cf_cv_posix_c_source" >&5 echo "$as_me:4235: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
if test "$cf_cv_posix_c_source" != no ; then if test "$cf_cv_posix_c_source" != no ; then
CFLAGS="$cf_trim_CFLAGS" CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS"
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
skipping to change at line 4420 skipping to change at line 4429
test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
&& test -z "${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \
&& cf_fix_cppflags=no && cf_fix_cppflags=no
;; ;;
esac esac
done done
if test -n "$cf_new_cflags" ; then if test -n "$cf_new_cflags" ; then
test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
echo "${as_me:-configure}:4420: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 echo "${as_me:-configure}:4429: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
test -n "$CFLAGS" && CFLAGS="$CFLAGS " test -n "$CFLAGS" && CFLAGS="$CFLAGS "
CFLAGS="${CFLAGS}$cf_new_cflags" CFLAGS="${CFLAGS}$cf_new_cflags"
fi fi
if test -n "$cf_new_cppflags" ; then if test -n "$cf_new_cppflags" ; then
test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
echo "${as_me:-configure}:4430: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 echo "${as_me:-configure}:4439: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
fi fi
if test -n "$cf_new_extra_cppflags" ; then if test -n "$cf_new_extra_cppflags" ; then
test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cpp flags" 1>&6 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cpp flags" 1>&6
echo "${as_me:-configure}:4440: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cp pflags ..." 1>&5 echo "${as_me:-configure}:4449: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cp pflags ..." 1>&5
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
fi fi
if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
echo "$as_me:4450: checking if _XOPEN_SOURCE really is set" >&5 echo "$as_me:4459: checking if _XOPEN_SOURCE really is set" >&5
echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4453 "configure" #line 4462 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4468: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4477: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4471: \$? = $ac_status" >&5 echo "$as_me:4480: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4474: \"$ac_try\"") >&5 { (eval echo "$as_me:4483: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4477: \$? = $ac_status" >&5 echo "$as_me:4486: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_XOPEN_SOURCE_set=yes cf_XOPEN_SOURCE_set=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_XOPEN_SOURCE_set=no cf_XOPEN_SOURCE_set=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
echo "$as_me:4486: result: $cf_XOPEN_SOURCE_set" >&5 echo "$as_me:4495: result: $cf_XOPEN_SOURCE_set" >&5
echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
if test "$cf_XOPEN_SOURCE_set" = yes if test "$cf_XOPEN_SOURCE_set" = yes
then then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4491 "configure" #line 4500 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
int int
main (void) main (void)
{ {
#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4515: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4509: \$? = $ac_status" >&5 echo "$as_me:4518: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4512: \"$ac_try\"") >&5 { (eval echo "$as_me:4521: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4515: \$? = $ac_status" >&5 echo "$as_me:4524: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_XOPEN_SOURCE_set_ok=yes cf_XOPEN_SOURCE_set_ok=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_XOPEN_SOURCE_set_ok=no cf_XOPEN_SOURCE_set_ok=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_XOPEN_SOURCE_set_ok" = no if test "$cf_XOPEN_SOURCE_set_ok" = no
then then
{ echo "$as_me:4526: WARNING: _XOPEN_SOURCE is lower than requested" >&5 { echo "$as_me:4535: WARNING: _XOPEN_SOURCE is lower than requested" >&5
echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
fi fi
else else
echo "$as_me:4531: checking if we should define _XOPEN_SOURCE" >&5 echo "$as_me:4540: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then if test "${cf_cv_xopen_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4538 "configure" #line 4547 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4557: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4566: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4560: \$? = $ac_status" >&5 echo "$as_me:4569: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4563: \"$ac_try\"") >&5 { (eval echo "$as_me:4572: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4566: \$? = $ac_status" >&5 echo "$as_me:4575: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4578 "configure" #line 4587 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _XOPEN_SOURCE #ifdef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4597: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4606: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4600: \$? = $ac_status" >&5 echo "$as_me:4609: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4603: \"$ac_try\"") >&5 { (eval echo "$as_me:4612: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4606: \$? = $ac_status" >&5 echo "$as_me:4615: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save" CPPFLAGS="$cf_save"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4621: result: $cf_cv_xopen_source" >&5 echo "$as_me:4630: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6 echo "${ECHO_T}$cf_cv_xopen_source" >&6
if test "$cf_cv_xopen_source" != no ; then if test "$cf_cv_xopen_source" != no ; then
CFLAGS=`echo "$CFLAGS" | \ CFLAGS=`echo "$CFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
CPPFLAGS=`echo "$CPPFLAGS" | \ CPPFLAGS=`echo "$CPPFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
skipping to change at line 4740 skipping to change at line 4749
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
fi fi
fi fi
fi fi
fi # cf_cv_posix_visible fi # cf_cv_posix_visible
echo "$as_me:4740: checking if SIGWINCH is defined" >&5 echo "$as_me:4749: checking if SIGWINCH is defined" >&5
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
if test "${cf_cv_define_sigwinch+set}" = set; then if test "${cf_cv_define_sigwinch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4747 "configure" #line 4756 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/signal.h> #include <sys/signal.h>
int int
main (void) main (void)
{ {
int x = SIGWINCH; (void)x int x = SIGWINCH; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4771: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4765: \$? = $ac_status" >&5 echo "$as_me:4774: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4768: \"$ac_try\"") >&5 { (eval echo "$as_me:4777: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4771: \$? = $ac_status" >&5 echo "$as_me:4780: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_define_sigwinch=yes cf_cv_define_sigwinch=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4778 "configure" #line 4787 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef _XOPEN_SOURCE #undef _XOPEN_SOURCE
#undef _POSIX_SOURCE #undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE #undef _POSIX_C_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <sys/signal.h> #include <sys/signal.h>
int int
main (void) main (void)
{ {
int x = SIGWINCH; (void)x int x = SIGWINCH; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4796: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4805: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4799: \$? = $ac_status" >&5 echo "$as_me:4808: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4802: \"$ac_try\"") >&5 { (eval echo "$as_me:4811: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4805: \$? = $ac_status" >&5 echo "$as_me:4814: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_define_sigwinch=maybe cf_cv_define_sigwinch=maybe
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_define_sigwinch=no cf_cv_define_sigwinch=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4819: result: $cf_cv_define_sigwinch" >&5 echo "$as_me:4828: result: $cf_cv_define_sigwinch" >&5
echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
if test "$cf_cv_define_sigwinch" = maybe ; then if test "$cf_cv_define_sigwinch" = maybe ; then
echo "$as_me:4823: checking for actual SIGWINCH definition" >&5 echo "$as_me:4832: checking for actual SIGWINCH definition" >&5
echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
if test "${cf_cv_fixup_sigwinch+set}" = set; then if test "${cf_cv_fixup_sigwinch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_fixup_sigwinch=unknown cf_cv_fixup_sigwinch=unknown
cf_sigwinch=32 cf_sigwinch=32
while test "$cf_sigwinch" != 1 while test "$cf_sigwinch" != 1
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4834 "configure" #line 4843 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef _XOPEN_SOURCE #undef _XOPEN_SOURCE
#undef _POSIX_SOURCE #undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE #undef _POSIX_C_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <sys/signal.h> #include <sys/signal.h>
int int
main (void) main (void)
skipping to change at line 4856 skipping to change at line 4865
#if SIGWINCH != $cf_sigwinch #if SIGWINCH != $cf_sigwinch
make an error make an error
#endif #endif
int x = SIGWINCH; (void)x int x = SIGWINCH; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4856: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4865: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4859: \$? = $ac_status" >&5 echo "$as_me:4868: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4862: \"$ac_try\"") >&5 { (eval echo "$as_me:4871: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4865: \$? = $ac_status" >&5 echo "$as_me:4874: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_fixup_sigwinch=$cf_sigwinch cf_cv_fixup_sigwinch=$cf_sigwinch
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cf_sigwinch="`expr "$cf_sigwinch" - 1`" cf_sigwinch="`expr "$cf_sigwinch" - 1`"
done done
fi fi
echo "$as_me:4879: result: $cf_cv_fixup_sigwinch" >&5 echo "$as_me:4888: result: $cf_cv_fixup_sigwinch" >&5
echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
if test "$cf_cv_fixup_sigwinch" != unknown ; then if test "$cf_cv_fixup_sigwinch" != unknown ; then
CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
fi fi
fi fi
### checks for header files ### checks for header files
for ac_header in \ for ac_header in \
skipping to change at line 4901 skipping to change at line 4910
ncurses/term.h \ ncurses/term.h \
stdlib.h \ stdlib.h \
sys/ptem.h sys/ttydefaults.h \ sys/ptem.h sys/ttydefaults.h \
term.h \ term.h \
termios.h \ termios.h \
unistd.h \ unistd.h \
wchar.h \ wchar.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:4901: checking for $ac_header" >&5 echo "$as_me:4910: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4907 "configure" #line 4916 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:4911: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:4920: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:4917: \$? = $ac_status" >&5 echo "$as_me:4926: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:4936: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:4945: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:4946: checking whether time.h and sys/time.h may both be included" >&5 echo "$as_me:4955: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $EC HO_C" >&6 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $EC HO_C" >&6
if test "${ac_cv_header_time+set}" = set; then if test "${ac_cv_header_time+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4952 "configure" #line 4961 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
int int
main (void) main (void)
{ {
if ((struct tm *) 0) if ((struct tm *) 0)
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4977: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4971: \$? = $ac_status" >&5 echo "$as_me:4980: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4974: \"$ac_try\"") >&5 { (eval echo "$as_me:4983: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4977: \$? = $ac_status" >&5 echo "$as_me:4986: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_header_time=yes ac_cv_header_time=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_time=no ac_cv_header_time=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4987: result: $ac_cv_header_time" >&5 echo "$as_me:4996: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6 echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then if test $ac_cv_header_time = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1 #define TIME_WITH_SYS_TIME 1
EOF EOF
fi fi
echo "$as_me:4997: checking for nl_langinfo and CODESET" >&5 echo "$as_me:5006: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then if test "${am_cv_langinfo_codeset+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5003 "configure" #line 5012 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <langinfo.h> #include <langinfo.h>
int int
main (void) main (void)
{ {
char* cs = nl_langinfo(CODESET); (void)cs char* cs = nl_langinfo(CODESET); (void)cs
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:5015: \"$ac_link\"") >&5 if { (eval echo "$as_me:5024: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5018: \$? = $ac_status" >&5 echo "$as_me:5027: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:5021: \"$ac_try\"") >&5 { (eval echo "$as_me:5030: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5024: \$? = $ac_status" >&5 echo "$as_me:5033: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
am_cv_langinfo_codeset=yes am_cv_langinfo_codeset=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
am_cv_langinfo_codeset=no am_cv_langinfo_codeset=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:5035: result: $am_cv_langinfo_codeset" >&5 echo "$as_me:5044: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
if test "$am_cv_langinfo_codeset" = yes; then if test "$am_cv_langinfo_codeset" = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1 #define HAVE_LANGINFO_CODESET 1
EOF EOF
fi fi
### checks for typedefs ### checks for typedefs
echo "$as_me:5047: checking for signal global datatype" >&5 echo "$as_me:5056: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then if test "${cf_cv_sig_atomic_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
for cf_type in \ for cf_type in \
"volatile sig_atomic_t" \ "volatile sig_atomic_t" \
"sig_atomic_t" \ "sig_atomic_t" \
"int" "int"
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5059 "configure" #line 5068 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
extern $cf_type x; extern $cf_type x;
$cf_type x; $cf_type x;
static void handler(int sig) static void handler(int sig)
{ {
skipping to change at line 5083 skipping to change at line 5092
int int
main (void) main (void)
{ {
signal(SIGINT, handler); signal(SIGINT, handler);
x = 1 x = 1
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5083: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5092: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5086: \$? = $ac_status" >&5 echo "$as_me:5095: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5089: \"$ac_try\"") >&5 { (eval echo "$as_me:5098: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5092: \$? = $ac_status" >&5 echo "$as_me:5101: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_sig_atomic_t=$cf_type cf_cv_sig_atomic_t=$cf_type
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_sig_atomic_t=no cf_cv_sig_atomic_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
test "$cf_cv_sig_atomic_t" != no && break test "$cf_cv_sig_atomic_t" != no && break
done done
fi fi
echo "$as_me:5106: result: $cf_cv_sig_atomic_t" >&5 echo "$as_me:5115: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && test "$cf_cv_sig_atomic_t" != no &&
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF EOF
echo "$as_me:5113: checking for ANSI C header files" >&5 echo "$as_me:5122: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5119 "configure" #line 5128 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <float.h> #include <float.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:5127: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:5136: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:5133: \$? = $ac_status" >&5 echo "$as_me:5142: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 5155 skipping to change at line 5164
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5155 "configure" #line 5164 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <string.h> #include <string.h>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "memchr" >/dev/null 2>&1; then $EGREP "memchr" >/dev/null 2>&1; then
: :
else else
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5173 "configure" #line 5182 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then $EGREP "free" >/dev/null 2>&1; then
: :
else else
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
: :
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5194 "configure" #line 5203 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <ctype.h> #include <ctype.h>
#if ((' ' & 0x0FF) == 0x020) #if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else #else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \ || ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z')) || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
skipping to change at line 5220 skipping to change at line 5229
{ {
int i; int i;
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i)) || toupper (i) != TOUPPER (i))
$ac_main_return(2); $ac_main_return(2);
$ac_main_return (0); $ac_main_return (0);
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:5220: \"$ac_link\"") >&5 if { (eval echo "$as_me:5229: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5223: \$? = $ac_status" >&5 echo "$as_me:5232: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:5225: \"$ac_try\"") >&5 { (eval echo "$as_me:5234: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5228: \$? = $ac_status" >&5 echo "$as_me:5237: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
fi fi
fi fi
echo "$as_me:5241: result: $ac_cv_header_stdc" >&5 echo "$as_me:5250: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6 echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1 #define STDC_HEADERS 1
EOF EOF
fi fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h inttypes.h stdint.h unistd.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5257: checking for $ac_header" >&5 echo "$as_me:5266: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5263 "configure" #line 5272 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5269: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5278: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5272: \$? = $ac_status" >&5 echo "$as_me:5281: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5275: \"$ac_try\"") >&5 { (eval echo "$as_me:5284: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5278: \$? = $ac_status" >&5 echo "$as_me:5287: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5288: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:5297: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:5298: checking for time_t" >&5 echo "$as_me:5307: checking for time_t" >&5
echo $ECHO_N "checking for time_t... $ECHO_C" >&6 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
if test "${ac_cv_type_time_t+set}" = set; then if test "${ac_cv_type_time_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5304 "configure" #line 5313 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((time_t *) 0) if ((time_t *) 0)
return 0; return 0;
if (sizeof (time_t)) if (sizeof (time_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5319: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5328: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5322: \$? = $ac_status" >&5 echo "$as_me:5331: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5325: \"$ac_try\"") >&5 { (eval echo "$as_me:5334: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5328: \$? = $ac_status" >&5 echo "$as_me:5337: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_time_t=yes ac_cv_type_time_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_time_t=no ac_cv_type_time_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5338: result: $ac_cv_type_time_t" >&5 echo "$as_me:5347: result: $ac_cv_type_time_t" >&5
echo "${ECHO_T}$ac_cv_type_time_t" >&6 echo "${ECHO_T}$ac_cv_type_time_t" >&6
if test "$ac_cv_type_time_t" = yes; then if test "$ac_cv_type_time_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define time_t long #define time_t long
EOF EOF
fi fi
echo "$as_me:5350: checking for cc_t in <termios.h> or <termio.h>" >&5 echo "$as_me:5359: checking for cc_t in <termios.h> or <termio.h>" >&5
echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
if test "${cf_cv_type_cc_t+set}" = set; then if test "${cf_cv_type_cc_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5357 "configure" #line 5366 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#if defined(HAVE_TERMIOS_H) #if defined(HAVE_TERMIOS_H)
#include <termios.h> #include <termios.h>
#else #else
#include <termio.h> #include <termio.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
int int
main (void) main (void)
{ {
cc_t x; (void)x cc_t x; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5377: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5386: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5380: \$? = $ac_status" >&5 echo "$as_me:5389: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5383: \"$ac_try\"") >&5 { (eval echo "$as_me:5392: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5386: \$? = $ac_status" >&5 echo "$as_me:5395: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_type_cc_t=yes cf_cv_type_cc_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_type_cc_t=no cf_cv_type_cc_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5398: result: $cf_cv_type_cc_t" >&5 echo "$as_me:5407: result: $cf_cv_type_cc_t" >&5
echo "${ECHO_T}$cf_cv_type_cc_t" >&6 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
test $cf_cv_type_cc_t = no && test $cf_cv_type_cc_t = no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define cc_t unsigned char #define cc_t unsigned char
EOF EOF
echo "$as_me:5405: checking for mode_t" >&5 echo "$as_me:5414: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then if test "${ac_cv_type_mode_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5411 "configure" #line 5420 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((mode_t *) 0) if ((mode_t *) 0)
return 0; return 0;
if (sizeof (mode_t)) if (sizeof (mode_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5426: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5435: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5429: \$? = $ac_status" >&5 echo "$as_me:5438: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5432: \"$ac_try\"") >&5 { (eval echo "$as_me:5441: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5435: \$? = $ac_status" >&5 echo "$as_me:5444: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_mode_t=yes ac_cv_type_mode_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_mode_t=no ac_cv_type_mode_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5445: result: $ac_cv_type_mode_t" >&5 echo "$as_me:5454: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test "$ac_cv_type_mode_t" = yes; then if test "$ac_cv_type_mode_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define mode_t int #define mode_t int
EOF EOF
fi fi
echo "$as_me:5457: checking for pid_t" >&5 echo "$as_me:5466: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then if test "${ac_cv_type_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5463 "configure" #line 5472 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((pid_t *) 0) if ((pid_t *) 0)
return 0; return 0;
if (sizeof (pid_t)) if (sizeof (pid_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5478: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5487: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5481: \$? = $ac_status" >&5 echo "$as_me:5490: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5484: \"$ac_try\"") >&5 { (eval echo "$as_me:5493: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5487: \$? = $ac_status" >&5 echo "$as_me:5496: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_pid_t=yes ac_cv_type_pid_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_pid_t=no ac_cv_type_pid_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5497: result: $ac_cv_type_pid_t" >&5 echo "$as_me:5506: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test "$ac_cv_type_pid_t" = yes; then if test "$ac_cv_type_pid_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define pid_t int #define pid_t int
EOF EOF
fi fi
echo "$as_me:5509: checking for uid_t in sys/types.h" >&5 echo "$as_me:5518: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then if test "${ac_cv_type_uid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5515 "configure" #line 5524 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "uid_t" >/dev/null 2>&1; then $EGREP "uid_t" >/dev/null 2>&1; then
ac_cv_type_uid_t=yes ac_cv_type_uid_t=yes
else else
ac_cv_type_uid_t=no ac_cv_type_uid_t=no
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
echo "$as_me:5529: result: $ac_cv_type_uid_t" >&5 echo "$as_me:5538: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then if test $ac_cv_type_uid_t = no; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define uid_t int #define uid_t int
EOF EOF
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define gid_t int #define gid_t int
EOF EOF
fi fi
echo "$as_me:5543: checking for off_t" >&5 echo "$as_me:5552: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then if test "${ac_cv_type_off_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5549 "configure" #line 5558 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((off_t *) 0) if ((off_t *) 0)
return 0; return 0;
if (sizeof (off_t)) if (sizeof (off_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5564: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5573: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5567: \$? = $ac_status" >&5 echo "$as_me:5576: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5570: \"$ac_try\"") >&5 { (eval echo "$as_me:5579: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5573: \$? = $ac_status" >&5 echo "$as_me:5582: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_off_t=yes ac_cv_type_off_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_off_t=no ac_cv_type_off_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5583: result: $ac_cv_type_off_t" >&5 echo "$as_me:5592: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6 echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test "$ac_cv_type_off_t" = yes; then if test "$ac_cv_type_off_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define off_t long #define off_t long
EOF EOF
fi fi
skipping to change at line 5615 skipping to change at line 5624
unsetenv \ unsetenv \
sched_yield \ sched_yield \
setpgid \ setpgid \
strftime \ strftime \
tcgetattr \ tcgetattr \
waitpid \ waitpid \
wcswidth \ wcswidth \
wcwidth wcwidth
do do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5615: checking for $ac_func" >&5 echo "$as_me:5624: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5621 "configure" #line 5630 "configure"
#include "confdefs.h" #include "confdefs.h"
#define $ac_func autoconf_temporary #define $ac_func autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef $ac_func #undef $ac_func
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 5652 skipping to change at line 5661
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#error found stub for $ac_func #error found stub for $ac_func
#endif #endif
return $ac_func (); return $ac_func ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:5652: \"$ac_link\"") >&5 if { (eval echo "$as_me:5661: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5655: \$? = $ac_status" >&5 echo "$as_me:5664: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:5658: \"$ac_try\"") >&5 { (eval echo "$as_me:5667: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5661: \$? = $ac_status" >&5 echo "$as_me:5670: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
eval "$as_ac_var=yes" eval "$as_ac_var=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_var=no" eval "$as_ac_var=no"
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:5671: result: `eval echo '${'"$as_ac_var"'}'`" >&5 echo "$as_me:5680: result: `eval echo '${'"$as_ac_var"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
for ac_header in lastlog.h paths.h for ac_header in lastlog.h paths.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5684: checking for $ac_header" >&5 echo "$as_me:5693: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5690 "configure" #line 5699 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:5694: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:5703: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:5700: \$? = $ac_status" >&5 echo "$as_me:5709: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:5719: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:5728: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:5729: checking for lastlog path" >&5 echo "$as_me:5738: checking for lastlog path" >&5
echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
if test "${cf_cv_path_lastlog+set}" = set; then if test "${cf_cv_path_lastlog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5736 "configure" #line 5745 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_LASTLOG_H #ifdef HAVE_LASTLOG_H
#include <lastlog.h> #include <lastlog.h>
#else #else
#ifdef HAVE_PATHS_H #ifdef HAVE_PATHS_H
#include <paths.h> #include <paths.h>
#endif #endif
#endif #endif
int int
main (void) main (void)
{ {
char *path = _PATH_LASTLOG; (void)path char *path = _PATH_LASTLOG; (void)path
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5756: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5765: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5759: \$? = $ac_status" >&5 echo "$as_me:5768: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5762: \"$ac_try\"") >&5 { (eval echo "$as_me:5771: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5765: \$? = $ac_status" >&5 echo "$as_me:5774: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_path_lastlog="_PATH_LASTLOG" cf_cv_path_lastlog="_PATH_LASTLOG"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
if test -f /usr/adm/lastlog ; then if test -f /usr/adm/lastlog ; then
cf_cv_path_lastlog=/usr/adm/lastlog cf_cv_path_lastlog=/usr/adm/lastlog
else else
cf_cv_path_lastlog=no cf_cv_path_lastlog=no
fi fi
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5780: result: $cf_cv_path_lastlog" >&5 echo "$as_me:5789: result: $cf_cv_path_lastlog" >&5
echo "${ECHO_T}$cf_cv_path_lastlog" >&6 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
test "$cf_cv_path_lastlog" != no && test "$cf_cv_path_lastlog" != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_LASTLOG 1 #define USE_LASTLOG 1
EOF EOF
echo "$as_me:5787: checking for utmp implementation" >&5 echo "$as_me:5796: checking for utmp implementation" >&5
echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
if test "${cf_cv_have_utmp+set}" = set; then if test "${cf_cv_have_utmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_have_utmp=no cf_cv_have_utmp=no
for cf_header in utmpx utmp ; do for cf_header in utmpx utmp ; do
cf_utmp_includes=" cf_utmp_includes="
#include <sys/types.h> #include <sys/types.h>
#include <${cf_header}.h> #include <${cf_header}.h>
#define getutent getutxent #define getutent getutxent
#ifdef USE_LASTLOG #ifdef USE_LASTLOG
#include <lastlog.h> /* may conflict with utmpx.h on Linux */ #include <lastlog.h> /* may conflict with utmpx.h on Linux */
#endif #endif
" "
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5804 "configure" #line 5813 "configure"
#include "confdefs.h" #include "confdefs.h"
$cf_utmp_includes $cf_utmp_includes
int int
main (void) main (void)
{ {
struct $cf_header x; struct $cf_header x;
char *name = x.ut_name; /* utmp.h and compatible definitions */ char *name = x.ut_name; /* utmp.h and compatible definitions */
(void)x; (void)x;
(void)name; (void)name;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5820: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5829: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5823: \$? = $ac_status" >&5 echo "$as_me:5832: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5826: \"$ac_try\"") >&5 { (eval echo "$as_me:5835: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5829: \$? = $ac_status" >&5 echo "$as_me:5838: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp=$cf_header cf_cv_have_utmp=$cf_header
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5838 "configure" #line 5847 "configure"
#include "confdefs.h" #include "confdefs.h"
$cf_utmp_includes $cf_utmp_includes
int int
main (void) main (void)
{ {
struct $cf_header x; struct $cf_header x;
char *name = x.ut_user; /* utmpx.h must declare this */ char *name = x.ut_user; /* utmpx.h must declare this */
(void)x; (void)x;
(void)name; (void)name;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5854: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5863: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5857: \$? = $ac_status" >&5 echo "$as_me:5866: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5860: \"$ac_try\"") >&5 { (eval echo "$as_me:5869: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5863: \$? = $ac_status" >&5 echo "$as_me:5872: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp=$cf_header cf_cv_have_utmp=$cf_header
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
fi fi
echo "$as_me:5878: result: $cf_cv_have_utmp" >&5 echo "$as_me:5887: result: $cf_cv_have_utmp" >&5
echo "${ECHO_T}$cf_cv_have_utmp" >&6 echo "${ECHO_T}$cf_cv_have_utmp" >&6
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP 1 #define HAVE_UTMP 1
EOF EOF
test "$cf_cv_have_utmp" = utmpx && test "$cf_cv_have_utmp" = utmpx &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define UTMPX_FOR_UTMP 1 #define UTMPX_FOR_UTMP 1
EOF EOF
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:5893: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 echo "$as_me:5902: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_host+set}" = set; then if test "${cf_cv_have_utmp_ut_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5900 "configure" #line 5909 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
char *y = &x.ut_host[0]; char *y = &x.ut_host[0];
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5917: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5926: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5920: \$? = $ac_status" >&5 echo "$as_me:5929: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5923: \"$ac_try\"") >&5 { (eval echo "$as_me:5932: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5926: \$? = $ac_status" >&5 echo "$as_me:5935: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_host=yes cf_cv_have_utmp_ut_host=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_host=no cf_cv_have_utmp_ut_host=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5938: result: $cf_cv_have_utmp_ut_host" >&5 echo "$as_me:5947: result: $cf_cv_have_utmp_ut_host" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
test "$cf_cv_have_utmp_ut_host" != no && test "$cf_cv_have_utmp_ut_host" != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_HOST 1 #define HAVE_UTMP_UT_HOST 1
EOF EOF
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:5948: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 echo "$as_me:5957: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" > &6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" > &6
if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5955 "configure" #line 5964 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
int y = x.ut_syslen; int y = x.ut_syslen;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5972: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5981: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5975: \$? = $ac_status" >&5 echo "$as_me:5984: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5978: \"$ac_try\"") >&5 { (eval echo "$as_me:5987: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5981: \$? = $ac_status" >&5 echo "$as_me:5990: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_syslen=yes cf_cv_have_utmp_ut_syslen=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_syslen=no cf_cv_have_utmp_ut_syslen=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5993: result: $cf_cv_have_utmp_ut_syslen" >&5 echo "$as_me:6002: result: $cf_cv_have_utmp_ut_syslen" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
test "$cf_cv_have_utmp_ut_syslen" != no && test "$cf_cv_have_utmp_ut_syslen" != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_SYSLEN 1 #define HAVE_UTMP_UT_SYSLEN 1
EOF EOF
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6003: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 echo "$as_me:6012: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_name+set}" = set; then if test "${cf_cv_have_utmp_ut_name+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_have_utmp_ut_name=no cf_cv_have_utmp_ut_name=no
cf_utmp_includes=" cf_utmp_includes="
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
#define getutent getutxent #define getutent getutxent
#ifdef USE_LASTLOG #ifdef USE_LASTLOG
#include <lastlog.h> /* may conflict with utmpx.h on Linux */ #include <lastlog.h> /* may conflict with utmpx.h on Linux */
#endif #endif
" "
for cf_header in ut_name ut_user ; do for cf_header in ut_name ut_user ; do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6020 "configure" #line 6029 "configure"
#include "confdefs.h" #include "confdefs.h"
$cf_utmp_includes $cf_utmp_includes
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
char *name = x.$cf_header; char *name = x.$cf_header;
(void)x; (void)x;
(void)name; (void)name;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6036: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6045: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6039: \$? = $ac_status" >&5 echo "$as_me:6048: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6042: \"$ac_try\"") >&5 { (eval echo "$as_me:6051: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6045: \$? = $ac_status" >&5 echo "$as_me:6054: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_name=$cf_header cf_cv_have_utmp_ut_name=$cf_header
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
fi fi
echo "$as_me:6057: result: $cf_cv_have_utmp_ut_name" >&5 echo "$as_me:6066: result: $cf_cv_have_utmp_ut_name" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
case "$cf_cv_have_utmp_ut_name" in case "$cf_cv_have_utmp_ut_name" in
(no) (no)
{ { echo "$as_me:6062: error: Cannot find declaration for ut.ut_name" >&5 { { echo "$as_me:6071: error: Cannot find declaration for ut.ut_name" >&5
echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
(ut_user) (ut_user)
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define ut_name ut_user #define ut_name ut_user
EOF EOF
;; ;;
esac esac
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6077: checking for exit-status in $cf_cv_have_utmp" >&5 echo "$as_me:6086: checking for exit-status in $cf_cv_have_utmp" >&5
echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
for cf_result in \ for cf_result in \
ut_exit.__e_exit \ ut_exit.__e_exit \
ut_exit.e_exit \ ut_exit.e_exit \
ut_exit.ut_e_exit \ ut_exit.ut_e_exit \
ut_exit.ut_exit ut_exit.ut_exit
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6090 "configure" #line 6099 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.$cf_result = 0; long y = x.$cf_result = 0;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6107: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6116: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6110: \$? = $ac_status" >&5 echo "$as_me:6119: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6113: \"$ac_try\"") >&5 { (eval echo "$as_me:6122: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6116: \$? = $ac_status" >&5 echo "$as_me:6125: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_xstatus=$cf_result cf_cv_have_utmp_ut_xstatus=$cf_result
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_xstatus=no cf_cv_have_utmp_ut_xstatus=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
fi fi
echo "$as_me:6129: result: $cf_cv_have_utmp_ut_xstatus" >&5 echo "$as_me:6138: result: $cf_cv_have_utmp_ut_xstatus" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
if test "$cf_cv_have_utmp_ut_xstatus" != no ; then if test "$cf_cv_have_utmp_ut_xstatus" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_XSTATUS 1 #define HAVE_UTMP_UT_XSTATUS 1
EOF EOF
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define ut_xstatus $cf_cv_have_utmp_ut_xstatus #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
EOF EOF
fi fi
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6145: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 echo "$as_me:6154: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >& 6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >& 6
if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6152 "configure" #line 6161 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.ut_xtime = 0; long y = x.ut_xtime = 0;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6169: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6178: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6172: \$? = $ac_status" >&5 echo "$as_me:6181: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6175: \"$ac_try\"") >&5 { (eval echo "$as_me:6184: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6178: \$? = $ac_status" >&5 echo "$as_me:6187: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_xtime=yes cf_cv_have_utmp_ut_xtime=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6185 "configure" #line 6194 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.ut_tv.tv_sec; long y = x.ut_tv.tv_sec;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6202: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6211: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6205: \$? = $ac_status" >&5 echo "$as_me:6214: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6208: \"$ac_try\"") >&5 { (eval echo "$as_me:6217: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6211: \$? = $ac_status" >&5 echo "$as_me:6220: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_xtime=define cf_cv_have_utmp_ut_xtime=define
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_xtime=no cf_cv_have_utmp_ut_xtime=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:6225: result: $cf_cv_have_utmp_ut_xtime" >&5 echo "$as_me:6234: result: $cf_cv_have_utmp_ut_xtime" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
if test "$cf_cv_have_utmp_ut_xtime" != no ; then if test "$cf_cv_have_utmp_ut_xtime" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_XTIME 1 #define HAVE_UTMP_UT_XTIME 1
EOF EOF
if test "$cf_cv_have_utmp_ut_xtime" = define ; then if test "$cf_cv_have_utmp_ut_xtime" = define ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define ut_xtime ut_tv.tv_sec #define ut_xtime ut_tv.tv_sec
EOF EOF
fi fi
fi fi
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6244: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 echo "$as_me:6253: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_session+set}" = set; then if test "${cf_cv_have_utmp_ut_session+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6251 "configure" #line 6260 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; static struct $cf_cv_have_utmp x;
long y = x.ut_session; long y = x.ut_session;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6268: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6277: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6271: \$? = $ac_status" >&5 echo "$as_me:6280: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6274: \"$ac_try\"") >&5 { (eval echo "$as_me:6283: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6277: \$? = $ac_status" >&5 echo "$as_me:6286: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_session=yes cf_cv_have_utmp_ut_session=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_session=no cf_cv_have_utmp_ut_session=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:6288: result: $cf_cv_have_utmp_ut_session" >&5 echo "$as_me:6297: result: $cf_cv_have_utmp_ut_session" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
if test "$cf_cv_have_utmp_ut_session" != no ; then if test "$cf_cv_have_utmp_ut_session" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_SESSION 1 #define HAVE_UTMP_UT_SESSION 1
EOF EOF
fi fi
fi fi
echo "$as_me:6299: checking if $cf_cv_have_utmp is SYSV flavor" >&5 echo "$as_me:6308: checking if $cf_cv_have_utmp is SYSV flavor" >&5
echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
if test "${cf_cv_sysv_utmp+set}" = set; then if test "${cf_cv_sysv_utmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6307 "configure" #line 6316 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
set${cf_prefix}ent (); set${cf_prefix}ent ();
get${cf_prefix}id(&x); get${cf_prefix}id(&x);
put${cf_prefix}line(&x); put${cf_prefix}line(&x);
end${cf_prefix}ent(); end${cf_prefix}ent();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:6326: \"$ac_link\"") >&5 if { (eval echo "$as_me:6335: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6329: \$? = $ac_status" >&5 echo "$as_me:6338: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:6332: \"$ac_try\"") >&5 { (eval echo "$as_me:6341: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6335: \$? = $ac_status" >&5 echo "$as_me:6344: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_sysv_utmp=yes cf_cv_sysv_utmp=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_sysv_utmp=no cf_cv_sysv_utmp=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:6346: result: $cf_cv_sysv_utmp" >&5 echo "$as_me:6355: result: $cf_cv_sysv_utmp" >&5
echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
test "$cf_cv_sysv_utmp" = yes && test "$cf_cv_sysv_utmp" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_SYSV_UTMP 1 #define USE_SYSV_UTMP 1
EOF EOF
fi fi
for ac_header in lastlog.h for ac_header in lastlog.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6358: checking for $ac_header" >&5 echo "$as_me:6367: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6364 "configure" #line 6373 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6368: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6377: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6374: \$? = $ac_status" >&5 echo "$as_me:6383: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6393: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6402: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:6403: checking for struct lastlog" >&5 echo "$as_me:6412: checking for struct lastlog" >&5
echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
if test "${cf_cv_struct_lastlog+set}" = set; then if test "${cf_cv_struct_lastlog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
cf_cv_struct_lastlog=unknown cf_cv_struct_lastlog=unknown
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6414 "configure" #line 6423 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <time.h> #include <time.h>
#include <lastlog.h> #include <lastlog.h>
int main(void) int main(void)
{ {
struct lastlog data; struct lastlog data;
return (sizeof(data.ll_time) != sizeof(time_t)); return (sizeof(data.ll_time) != sizeof(time_t));
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:6428: \"$ac_link\"") >&5 if { (eval echo "$as_me:6437: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6431: \$? = $ac_status" >&5 echo "$as_me:6440: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:6433: \"$ac_try\"") >&5 { (eval echo "$as_me:6442: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6436: \$? = $ac_status" >&5 echo "$as_me:6445: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_struct_lastlog=yes cf_cv_struct_lastlog=yes
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_struct_lastlog=no cf_cv_struct_lastlog=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
fi fi
echo "$as_me:6450: result: $cf_cv_struct_lastlog" >&5 echo "$as_me:6459: result: $cf_cv_struct_lastlog" >&5
echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
test $cf_cv_struct_lastlog != no && test $cf_cv_struct_lastlog != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_STRUCT_LASTLOG 1 #define USE_STRUCT_LASTLOG 1
EOF EOF
for ac_header in \ for ac_header in \
sys/param.h \ sys/param.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6463: checking for $ac_header" >&5 echo "$as_me:6472: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6469 "configure" #line 6478 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6473: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6482: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6479: \$? = $ac_status" >&5 echo "$as_me:6488: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6498: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6507: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:6508: checking if POSIX saved-ids are supported" >&5 echo "$as_me:6517: checking if POSIX saved-ids are supported" >&5
echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
if test "${cf_cv_posix_saved_ids+set}" = set; then if test "${cf_cv_posix_saved_ids+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6515 "configure" #line 6524 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> /* this may define "BSD" */ #include <sys/param.h> /* this may define "BSD" */
#endif #endif
int int
main (void) main (void)
{ {
skipping to change at line 6545 skipping to change at line 6554
*/ */
#else #else
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:6545: \"$ac_link\"") >&5 if { (eval echo "$as_me:6554: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6548: \$? = $ac_status" >&5 echo "$as_me:6557: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:6551: \"$ac_try\"") >&5 { (eval echo "$as_me:6560: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6554: \$? = $ac_status" >&5 echo "$as_me:6563: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_saved_ids=yes cf_cv_posix_saved_ids=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
cf_cv_posix_saved_ids=unknown cf_cv_posix_saved_ids=unknown
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6566 "configure" #line 6575 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <unistd.h> #include <unistd.h>
int main(void) int main(void)
{ {
void *p = (void *) seteuid; void *p = (void *) seteuid;
long code = sysconf(_SC_SAVED_IDS); long code = sysconf(_SC_SAVED_IDS);
(void)p; (void)p;
${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:6582: \"$ac_link\"") >&5 if { (eval echo "$as_me:6591: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6585: \$? = $ac_status" >&5 echo "$as_me:6594: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:6587: \"$ac_try\"") >&5 { (eval echo "$as_me:6596: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6590: \$? = $ac_status" >&5 echo "$as_me:6599: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_saved_ids=yes cf_cv_posix_saved_ids=yes
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_saved_ids=no cf_cv_posix_saved_ids=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:6606: result: $cf_cv_posix_saved_ids" >&5 echo "$as_me:6615: result: $cf_cv_posix_saved_ids" >&5
echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
test "$cf_cv_posix_saved_ids" = yes && test "$cf_cv_posix_saved_ids" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_POSIX_SAVED_IDS 1 #define HAVE_POSIX_SAVED_IDS 1
EOF EOF
# compute a reasonable value for $TERM to give tgetent(), since we may be # compute a reasonable value for $TERM to give tgetent(), since we may be
# running in 'screen', which sets $TERMCAP to a specific entry that is not # running in 'screen', which sets $TERMCAP to a specific entry that is not
# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
skipping to change at line 6645 skipping to change at line 6654
# ncurses provides termcap prototypes in both term.h and termcap.h # ncurses provides termcap prototypes in both term.h and termcap.h
# #
# The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do # The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do
# not return the text of the termcap entry in the buffer), but as a special # not return the text of the termcap entry in the buffer), but as a special
# case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that # case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that
# returns the termcap text. # returns the termcap text.
for ac_header in termcap.h for ac_header in termcap.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6645: checking for $ac_header" >&5 echo "$as_me:6654: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6651 "configure" #line 6660 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6655: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6664: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6661: \$? = $ac_status" >&5 echo "$as_me:6670: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6680: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6689: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:6690: checking if we want full tgetent function" >&5 echo "$as_me:6699: checking if we want full tgetent function" >&5
echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
# Check whether --enable-full-tgetent or --disable-full-tgetent was given. # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
if test "${enable_full_tgetent+set}" = set; then if test "${enable_full_tgetent+set}" = set; then
enableval="$enable_full_tgetent" enableval="$enable_full_tgetent"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
cf_full_tgetent=no cf_full_tgetent=no
else else
cf_full_tgetent=yes cf_full_tgetent=yes
fi fi
else else
enableval=yes enableval=yes
cf_full_tgetent=yes cf_full_tgetent=yes
fi; fi;
echo "$as_me:6707: result: $cf_full_tgetent" >&5 echo "$as_me:6716: result: $cf_full_tgetent" >&5
echo "${ECHO_T}$cf_full_tgetent" >&6 echo "${ECHO_T}$cf_full_tgetent" >&6
if test "$cf_full_tgetent" = yes ; then if test "$cf_full_tgetent" = yes ; then
cf_test_message="full tgetent" cf_test_message="full tgetent"
else else
cf_test_message="tgetent" cf_test_message="tgetent"
fi fi
echo "$as_me:6716: checking for $cf_test_message function" >&5 echo "$as_me:6725: checking for $cf_test_message function" >&5
echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
if test "${cf_cv_lib_tgetent+set}" = set; then if test "${cf_cv_lib_tgetent+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_save_LIBS="$LIBS" cf_save_LIBS="$LIBS"
cf_cv_lib_tgetent=no cf_cv_lib_tgetent=no
if test "$cf_full_tgetent" = yes ; then if test "$cf_full_tgetent" = yes ; then
cf_TERMLIB="otermcap termcap termlib ncurses curses" cf_TERMLIB="otermcap termcap termlib ncurses curses"
cf_TERMTST="buffer[0] == 0" cf_TERMTST="buffer[0] == 0"
skipping to change at line 6754 skipping to change at line 6763
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
} }
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_te rmlib" 1>&5 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_te rmlib" 1>&5
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6754 "configure" #line 6763 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_TERMCAP_H #ifdef HAVE_TERMCAP_H
#include <termcap.h> #include <termcap.h>
#endif #endif
/* terminfo implementations ignore the buffer argument, making it useless for /* terminfo implementations ignore the buffer argument, making it useless for
* the xterm application, which uses this information to make a new TERMCAP * the xterm application, which uses this information to make a new TERMCAP
* environment variable. * environment variable.
*/ */
int main(void) int main(void)
{ {
char buffer[1024]; char buffer[1024];
buffer[0] = 0; buffer[0] = 0;
tgetent(buffer, "$cf_TERMVAR"); tgetent(buffer, "$cf_TERMVAR");
${cf_cv_main_return:-return} ($cf_TERMTST); } ${cf_cv_main_return:-return} ($cf_TERMTST); }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:6772: \"$ac_link\"") >&5 if { (eval echo "$as_me:6781: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6775: \$? = $ac_status" >&5 echo "$as_me:6784: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:6777: \"$ac_try\"") >&5 { (eval echo "$as_me:6786: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6780: \$? = $ac_status" >&5 echo "$as_me:6789: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
if test -n "$cf_termlib" ; then if test -n "$cf_termlib" ; then
cf_cv_lib_tgetent="-l$cf_termlib" cf_cv_lib_tgetent="-l$cf_termlib"
else else
cf_cv_lib_tgetent=yes cf_cv_lib_tgetent=yes
fi fi
break break
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
done done
LIBS="$cf_save_LIBS" LIBS="$cf_save_LIBS"
fi fi
echo "$as_me:6801: result: $cf_cv_lib_tgetent" >&5 echo "$as_me:6810: result: $cf_cv_lib_tgetent" >&5
echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
# If we found a working tgetent(), set LIBS and check for termcap.h. # If we found a working tgetent(), set LIBS and check for termcap.h.
# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
# not have side effects other than setting the cache variable, because # not have side effects other than setting the cache variable, because
# they are not executed when a cached value exists.) # they are not executed when a cached value exists.)
if test "x$cf_cv_lib_tgetent" != xno ; then if test "x$cf_cv_lib_tgetent" != xno ; then
test "x$cf_cv_lib_tgetent" != xyes && { test "x$cf_cv_lib_tgetent" != xyes && {
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
skipping to change at line 6833 skipping to change at line 6842
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
} }
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TERMCAP 1 #define USE_TERMCAP 1
EOF EOF
if test "$cf_full_tgetent" = no ; then if test "$cf_full_tgetent" = no ; then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6833 "configure" #line 6842 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <termcap.h> #include <termcap.h>
int int
main (void) main (void)
{ {
#ifdef NCURSES_VERSION #ifdef NCURSES_VERSION
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6849: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6858: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6852: \$? = $ac_status" >&5 echo "$as_me:6861: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6855: \"$ac_try\"") >&5 { (eval echo "$as_me:6864: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6858: \$? = $ac_status" >&5 echo "$as_me:6867: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_TERMCAP_H 1 #define HAVE_TERMCAP_H 1
EOF EOF
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
else else
for ac_header in termcap.h for ac_header in termcap.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6874: checking for $ac_header" >&5 echo "$as_me:6883: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6880 "configure" #line 6889 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6884: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6893: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6890: \$? = $ac_status" >&5 echo "$as_me:6899: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6909: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6918: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
fi fi
else else
# If we didn't find a tgetent() that supports the buffer # If we didn't find a tgetent() that supports the buffer
# argument, look again to see whether we can find even # argument, look again to see whether we can find even
# a crippled one. A crippled tgetent() is still useful to # a crippled one. A crippled tgetent() is still useful to
# validate values for the TERM environment variable given to # validate values for the TERM environment variable given to
# child processes. # child processes.
echo "$as_me:6926: checking for partial tgetent function" >&5 echo "$as_me:6935: checking for partial tgetent function" >&5
echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
if test "${cf_cv_lib_part_tgetent+set}" = set; then if test "${cf_cv_lib_part_tgetent+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_lib_part_tgetent=no cf_cv_lib_part_tgetent=no
for cf_termlib in $cf_TERMLIB ; do for cf_termlib in $cf_TERMLIB ; do
LIBS="$cf_save_LIBS -l$cf_termlib" LIBS="$cf_save_LIBS -l$cf_termlib"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6936 "configure" #line 6945 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
tgetent(0, "$cf_TERMVAR") tgetent(0, "$cf_TERMVAR")
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:6948: \"$ac_link\"") >&5 if { (eval echo "$as_me:6957: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6951: \$? = $ac_status" >&5 echo "$as_me:6960: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:6954: \"$ac_try\"") >&5 { (eval echo "$as_me:6963: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6957: \$? = $ac_status" >&5 echo "$as_me:6966: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
cf_cv_lib_part_tgetent="-l$cf_termlib" cf_cv_lib_part_tgetent="-l$cf_termlib"
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
done done
LIBS="$cf_save_LIBS" LIBS="$cf_save_LIBS"
fi fi
echo "$as_me:6971: result: $cf_cv_lib_part_tgetent" >&5 echo "$as_me:6980: result: $cf_cv_lib_part_tgetent" >&5
echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
if test "$cf_cv_lib_part_tgetent" != no ; then if test "$cf_cv_lib_part_tgetent" != no ; then
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add _0lib"; done for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add _0lib"; done
# filter duplicates # filter duplicates
for cf_add_1lib in $cf_add_0lib; do for cf_add_1lib in $cf_add_0lib; do
skipping to change at line 6995 skipping to change at line 7004
break break
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
for ac_header in termcap.h for ac_header in termcap.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6995: checking for $ac_header" >&5 echo "$as_me:7004: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 7001 "configure" #line 7010 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:7005: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:7014: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:7011: \$? = $ac_status" >&5 echo "$as_me:7020: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:7030: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:7039: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
# If this is linking against ncurses, we'll trigger the # If this is linking against ncurses, we'll trigger the
# ifdef in resize.c that turns the termcap stuff back off. # ifdef in resize.c that turns the termcap stuff back off.
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TERMINFO 1 #define USE_TERMINFO 1
EOF EOF
fi fi
fi fi
echo "$as_me:7050: checking for X applications class" >&5 echo "$as_me:7059: checking for X applications class" >&5
echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
# Check whether --with-app-class or --without-app-class was given. # Check whether --with-app-class or --without-app-class was given.
if test "${with_app_class+set}" = set; then if test "${with_app_class+set}" = set; then
withval="$with_app_class" withval="$with_app_class"
APP_CLASS=$withval APP_CLASS=$withval
else else
APP_CLASS=XTerm APP_CLASS=XTerm
fi; fi;
case x$APP_CLASS in case x$APP_CLASS in
(*[/@,%]*) (*[/@,%]*)
{ echo "$as_me:7063: WARNING: X applications class cannot contain punctua tion" >&5 { echo "$as_me:7072: WARNING: X applications class cannot contain punctua tion" >&5
echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
APP_CLASS=XTerm APP_CLASS=XTerm
;; ;;
(x[A-Z]*) (x[A-Z]*)
;; ;;
(*) (*)
{ echo "$as_me:7070: WARNING: X applications class must start with capita l, ignoring $APP_CLASS" >&5 { echo "$as_me:7079: WARNING: X applications class must start with capita l, ignoring $APP_CLASS" >&5
echo "$as_me: WARNING: X applications class must start with capital, ignoring $A PP_CLASS" >&2;} echo "$as_me: WARNING: X applications class must start with capital, ignoring $A PP_CLASS" >&2;}
APP_CLASS=XTerm APP_CLASS=XTerm
;; ;;
esac esac
echo "$as_me:7076: result: $APP_CLASS" >&5 echo "$as_me:7085: result: $APP_CLASS" >&5
echo "${ECHO_T}$APP_CLASS" >&6 echo "${ECHO_T}$APP_CLASS" >&6
echo "$as_me:7079: checking for directory to install resource files" >&5 echo "$as_me:7088: checking for directory to install resource files" >&5
echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
# Check whether --with-app-defaults or --without-app-defaults was given. # Check whether --with-app-defaults or --without-app-defaults was given.
if test "${with_app_defaults+set}" = set; then if test "${with_app_defaults+set}" = set; then
withval="$with_app_defaults" withval="$with_app_defaults"
APPSDIR=$withval APPSDIR=$withval
else else
APPSDIR='${exec_prefix}/lib/X11/app-defaults' APPSDIR='${exec_prefix}/lib/X11/app-defaults'
fi; fi;
skipping to change at line 7143 skipping to change at line 7152
case ".$cf_path" in case ".$cf_path" in
(.NONE/*) (.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:7143: error: expected a pathname, not \"$cf_path\"" >&5 { { echo "$as_me:7152: error: expected a pathname, not \"$cf_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
fi fi
echo "$as_me:7151: result: $APPSDIR" >&5 echo "$as_me:7160: result: $APPSDIR" >&5
echo "${ECHO_T}$APPSDIR" >&6 echo "${ECHO_T}$APPSDIR" >&6
no_appsdir= no_appsdir=
if test "$APPSDIR" = no if test "$APPSDIR" = no
then then
no_appsdir="#" no_appsdir="#"
else else
EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
fi fi
echo "$as_me:7162: checking for the icon name" >&5 echo "$as_me:7171: checking for the icon name" >&5
echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
# Check whether --with-icon-name or --without-icon-name was given. # Check whether --with-icon-name or --without-icon-name was given.
if test "${with_icon_name+set}" = set; then if test "${with_icon_name+set}" = set; then
withval="$with_icon_name" withval="$with_icon_name"
ICON_NAME="$withval" ICON_NAME="$withval"
else else
ICON_NAME=mini.xterm ICON_NAME=mini.xterm
fi; fi;
case "x$ICON_NAME" in case "x$ICON_NAME" in
(xyes|xno|x) (xyes|xno|x)
ICON_NAME=mini.xterm ICON_NAME=mini.xterm
;; ;;
esac esac
echo "$as_me:7178: result: $ICON_NAME" >&5 echo "$as_me:7187: result: $ICON_NAME" >&5
echo "${ECHO_T}$ICON_NAME" >&6 echo "${ECHO_T}$ICON_NAME" >&6
echo "$as_me:7181: checking for icon symlink to use" >&5 echo "$as_me:7190: checking for icon symlink to use" >&5
echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
# Check whether --with-icon-symlink or --without-icon-symlink was given. # Check whether --with-icon-symlink or --without-icon-symlink was given.
if test "${with_icon_symlink+set}" = set; then if test "${with_icon_symlink+set}" = set; then
withval="$with_icon_symlink" withval="$with_icon_symlink"
ICON_SYMLINK="$withval" ICON_SYMLINK="$withval"
else else
ICON_SYMLINK=NONE ICON_SYMLINK=NONE
fi; fi;
case "x$ICON_SYMLINK" in case "x$ICON_SYMLINK" in
(xyes) (xyes)
ICON_SYMLINK=xterm ICON_SYMLINK=xterm
;; ;;
(xno|x) (xno|x)
ICON_SYMLINK=NONE ICON_SYMLINK=NONE
;; ;;
esac esac
echo "$as_me:7200: result: $ICON_SYMLINK" >&5 echo "$as_me:7209: result: $ICON_SYMLINK" >&5
echo "${ECHO_T}$ICON_SYMLINK" >&6 echo "${ECHO_T}$ICON_SYMLINK" >&6
# Install all icons except for the overused "terminal". # Install all icons except for the overused "terminal".
cf_cv_icon_list= cf_cv_icon_list=
for my_item in $srcdir/icons/*.svg for my_item in $srcdir/icons/*.svg
do do
test -f "$my_item" || continue test -f "$my_item" || continue
cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"`
case $cf_icon_name in case $cf_icon_name in
(*_48x48) (*_48x48)
continue continue
;; ;;
esac esac
test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6
echo "${as_me:-configure}:7216: testing adding $cf_icon_name to icon-list ..." 1 >&5 echo "${as_me:-configure}:7225: testing adding $cf_icon_name to icon-list ..." 1 >&5
cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name"
if test -f "${cf_icon_name}_48x48.png" if test -f "${cf_icon_name}_48x48.png"
then then
test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to i con-list" 1>&6 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to i con-list" 1>&6
echo "${as_me:-configure}:7223: testing adding ${cf_icon_name}_48x48 to icon-lis t ..." 1>&5 echo "${as_me:-configure}:7232: testing adding ${cf_icon_name}_48x48 to icon-lis t ..." 1>&5
cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48"
fi fi
done done
echo "$as_me:7229: checking for directory to install pixmaps" >&5 echo "$as_me:7238: checking for directory to install pixmaps" >&5
echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
# Check whether --with-pixmapdir or --without-pixmapdir was given. # Check whether --with-pixmapdir or --without-pixmapdir was given.
if test "${with_pixmapdir+set}" = set; then if test "${with_pixmapdir+set}" = set; then
withval="$with_pixmapdir" withval="$with_pixmapdir"
PIXMAPDIR=$withval PIXMAPDIR=$withval
else else
test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
fi; fi;
skipping to change at line 7280 skipping to change at line 7289
case ".$cf_path" in case ".$cf_path" in
(.NONE/*) (.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:7280: error: expected a pathname, not \"$cf_path\"" >&5 { { echo "$as_me:7289: error: expected a pathname, not \"$cf_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
fi fi
echo "$as_me:7287: result: $PIXMAPDIR" >&5 echo "$as_me:7296: result: $PIXMAPDIR" >&5
echo "${ECHO_T}$PIXMAPDIR" >&6 echo "${ECHO_T}$PIXMAPDIR" >&6
no_pixmapdir= no_pixmapdir=
if test "$PIXMAPDIR" = no if test "$PIXMAPDIR" = no
then then
no_pixmapdir="#" no_pixmapdir="#"
else else
EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
fi fi
echo "$as_me:7298: checking for directory to install icons" >&5 echo "$as_me:7307: checking for directory to install icons" >&5
echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
# Check whether --with-icondir or --without-icondir was given. # Check whether --with-icondir or --without-icondir was given.
if test "${with_icondir+set}" = set; then if test "${with_icondir+set}" = set; then
withval="$with_icondir" withval="$with_icondir"
ICONDIR=$withval ICONDIR=$withval
else else
test -z "$ICONDIR" && ICONDIR=no test -z "$ICONDIR" && ICONDIR=no
fi; fi;
skipping to change at line 7349 skipping to change at line 7358
case ".$cf_path" in case ".$cf_path" in
(.NONE/*) (.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:7349: error: expected a pathname, not \"$cf_path\"" >&5 { { echo "$as_me:7358: error: expected a pathname, not \"$cf_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
fi fi
echo "$as_me:7356: result: $ICONDIR" >&5 echo "$as_me:7365: result: $ICONDIR" >&5
echo "${ECHO_T}$ICONDIR" >&6 echo "${ECHO_T}$ICONDIR" >&6
no_icondir= no_icondir=
if test "$ICONDIR" = no if test "$ICONDIR" = no
then then
no_icondir="#" no_icondir="#"
else else
EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
fi fi
echo "$as_me:7367: checking if icon theme should be used" >&5 echo "$as_me:7376: checking if icon theme should be used" >&5
echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
# Check whether --with-icon-theme or --without-icon-theme was given. # Check whether --with-icon-theme or --without-icon-theme was given.
if test "${with_icon_theme+set}" = set; then if test "${with_icon_theme+set}" = set; then
withval="$with_icon_theme" withval="$with_icon_theme"
ICON_THEME=$withval ICON_THEME=$withval
else else
ICON_THEME=no ICON_THEME=no
fi; fi;
case "x$ICON_THEME" in case "x$ICON_THEME" in
(xno) (xno)
;; ;;
(x|xyes) (x|xyes)
ICON_THEME=hicolor ICON_THEME=hicolor
;; ;;
esac esac
echo "$as_me:7385: result: $ICON_THEME" >&5 echo "$as_me:7394: result: $ICON_THEME" >&5
echo "${ECHO_T}$ICON_THEME" >&6 echo "${ECHO_T}$ICON_THEME" >&6
if test "x$ICON_THEME" = xno if test "x$ICON_THEME" = xno
then then
if test "x$ICONDIR" != xno if test "x$ICONDIR" != xno
then then
test -n "$verbose" && echo " ignoring icondir without theme" 1 >&6 test -n "$verbose" && echo " ignoring icondir without theme" 1 >&6
echo "${as_me:-configure}:7394: testing ignoring icondir without theme ..." 1>&5 echo "${as_me:-configure}:7403: testing ignoring icondir without theme ..." 1>&5
no_icondir="#" no_icondir="#"
fi fi
else else
if test "x$ICONDIR" = xno if test "x$ICONDIR" = xno
then then
{ { echo "$as_me:7401: error: icondir must be set for icon theme" >&5 { { echo "$as_me:7410: error: icondir must be set for icon theme" >&5
echo "$as_me: error: icondir must be set for icon theme" >&2;} echo "$as_me: error: icondir must be set for icon theme" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
fi fi
: ${ICON_FORMAT:=".svg .png .xpm"} : ${ICON_FORMAT:=".svg .png .xpm"}
ICON_LIST= ICON_LIST=
if test "x$ICON_THEME" != xno if test "x$ICON_THEME" != xno
then then
cf_icon_list="$cf_cv_icon_list" cf_icon_list="$cf_cv_icon_list"
else else
cf_icon_list="icons/${ICON_NAME}_48x48" cf_icon_list="icons/${ICON_NAME}_48x48"
fi fi
echo "$as_me:7418: checking for icon(s) to install" >&5 echo "$as_me:7427: checking for icon(s) to install" >&5
echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
for cf_name in $cf_icon_list for cf_name in $cf_icon_list
do do
test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
echo "${as_me:-configure}:7424: testing using $ICON_FORMAT ..." 1>&5 echo "${as_me:-configure}:7433: testing using $ICON_FORMAT ..." 1>&5
for cf_suffix in $ICON_FORMAT for cf_suffix in $ICON_FORMAT
do do
cf_icon="${cf_name}${cf_suffix}" cf_icon="${cf_name}${cf_suffix}"
cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
if test ! -f "${cf_left}" if test ! -f "${cf_left}"
then then
if test "x$srcdir" != "x." if test "x$srcdir" != "x."
then then
cf_icon="${srcdir}/${cf_left}" cf_icon="${srcdir}/${cf_left}"
skipping to change at line 7457 skipping to change at line 7466
cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0- 9]\././'` cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0- 9]\././'`
case "x${cf_base}" in case "x${cf_base}" in
(*:*) (*:*)
cf_next=$cf_base cf_next=$cf_base
# user-defined mapping # user-defined mapping
;; ;;
(*.png) (*.png)
cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'` cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'`
if test -z "$cf_size" if test -z "$cf_size"
then then
{ echo "$as_me:7457: WARNING: cannot dete rmine size of $cf_left" >&5 { echo "$as_me:7466: WARNING: cannot dete rmine size of $cf_left" >&5
echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
continue continue
fi fi
cf_next="$cf_size/apps/$cf_trim" cf_next="$cf_size/apps/$cf_trim"
;; ;;
(*.svg) (*.svg)
cf_next="scalable/apps/$cf_trim" cf_next="scalable/apps/$cf_trim"
;; ;;
(*.xpm) (*.xpm)
test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
echo "${as_me:-configure}:7469: testing ignored XPM file in icon theme ..." 1>&5 echo "${as_me:-configure}:7478: testing ignored XPM file in icon theme ..." 1>&5
continue continue
;; ;;
(*_[0-9][0-9]*x[0-9][0-9]*.*) (*_[0-9][0-9]*x[0-9][0-9]*.*)
cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0- 9]*x[0-9][0-9]*\)\..*$/\1/'` cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0- 9]*x[0-9][0-9]*\)\..*$/\1/'`
cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9 ][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9 ][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
cf_next="$cf_size/apps/$cf_base" cf_next="$cf_size/apps/$cf_base"
;; ;;
esac esac
test -n "$verbose" && echo " adding $cf_next" 1>&6 test -n "$verbose" && echo " adding $cf_next" 1>&6
echo "${as_me:-configure}:7481: testing adding $cf_next ..." 1>&5 echo "${as_me:-configure}:7490: testing adding $cf_next ..." 1>&5
cf_icon="${cf_icon}:${cf_next}" cf_icon="${cf_icon}:${cf_next}"
fi fi
test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
ICON_LIST="$ICON_LIST${cf_icon}" ICON_LIST="$ICON_LIST${cf_icon}"
if test -z "$ICON_NAME" if test -z "$ICON_NAME"
then then
ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'` ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'`
fi fi
done done
done done
if test -n "$verbose" if test -n "$verbose"
then then
echo "$as_me:7496: checking result" >&5 echo "$as_me:7505: checking result" >&5
echo $ECHO_N "checking result... $ECHO_C" >&6 echo $ECHO_N "checking result... $ECHO_C" >&6
fi fi
echo "$as_me:7499: result: $ICON_LIST" >&5 echo "$as_me:7508: result: $ICON_LIST" >&5
echo "${ECHO_T}$ICON_LIST" >&6 echo "${ECHO_T}$ICON_LIST" >&6
if test -z "$ICON_LIST" if test -z "$ICON_LIST"
then then
{ { echo "$as_me:7504: error: no icons found" >&5 { { echo "$as_me:7513: error: no icons found" >&5
echo "$as_me: error: no icons found" >&2;} echo "$as_me: error: no icons found" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
echo "$as_me:7509: checking for icon name" >&5 echo "$as_me:7518: checking for icon name" >&5
echo $ECHO_N "checking for icon name... $ECHO_C" >&6 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
echo "$as_me:7511: result: $ICON_NAME" >&5 echo "$as_me:7520: result: $ICON_NAME" >&5
echo "${ECHO_T}$ICON_NAME" >&6 echo "${ECHO_T}$ICON_NAME" >&6
# Comment-out the install-desktop rule if the desktop-utils are not found. # Comment-out the install-desktop rule if the desktop-utils are not found.
echo "$as_me:7515: checking if you want to install desktop files" >&5 echo "$as_me:7524: checking if you want to install desktop files" >&5
echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
# Check whether --enable-desktop or --disable-desktop was given. # Check whether --enable-desktop or --disable-desktop was given.
if test "${enable_desktop+set}" = set; then if test "${enable_desktop+set}" = set; then
enableval="$enable_desktop" enableval="$enable_desktop"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
enable_desktop=$enableval enable_desktop=$enableval
else else
enable_desktop=$enableval enable_desktop=$enableval
fi fi
else else
enableval=yes enableval=yes
enable_desktop=$enableval enable_desktop=$enableval
fi; fi;
echo "$as_me:7532: result: $enable_desktop" >&5 echo "$as_me:7541: result: $enable_desktop" >&5
echo "${ECHO_T}$enable_desktop" >&6 echo "${ECHO_T}$enable_desktop" >&6
desktop_utils= desktop_utils=
if test "$enable_desktop" = yes ; then if test "$enable_desktop" = yes ; then
# Extract the first word of "desktop-file-install", so it can be a program name with args. # Extract the first word of "desktop-file-install", so it can be a program name with args.
set dummy desktop-file-install; ac_word=$2 set dummy desktop-file-install; ac_word=$2
echo "$as_me:7539: checking for $ac_word" >&5 echo "$as_me:7548: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_desktop_utils+set}" = set; then if test "${ac_cv_prog_desktop_utils+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$desktop_utils"; then if test -n "$desktop_utils"; then
ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_desktop_utils="yes" ac_cv_prog_desktop_utils="yes"
echo "$as_me:7554: found $ac_dir/$ac_word" >&5 echo "$as_me:7563: found $ac_dir/$ac_word" >&5
break break
done done
test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
fi fi
fi fi
desktop_utils=$ac_cv_prog_desktop_utils desktop_utils=$ac_cv_prog_desktop_utils
if test -n "$desktop_utils"; then if test -n "$desktop_utils"; then
echo "$as_me:7563: result: $desktop_utils" >&5 echo "$as_me:7572: result: $desktop_utils" >&5
echo "${ECHO_T}$desktop_utils" >&6 echo "${ECHO_T}$desktop_utils" >&6
else else
echo "$as_me:7566: result: no" >&5 echo "$as_me:7575: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
fi fi
test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
if test -z "$desktop_utils" if test -z "$desktop_utils"
then then
echo "$as_me:7576: checking for requested desktop-category" >&5 echo "$as_me:7585: checking for requested desktop-category" >&5
echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
# Check whether --with-desktop-category or --without-desktop-category was given. # Check whether --with-desktop-category or --without-desktop-category was given.
if test "${with_desktop_category+set}" = set; then if test "${with_desktop_category+set}" = set; then
withval="$with_desktop_category" withval="$with_desktop_category"
cf_desktop_want=$withval cf_desktop_want=$withval
else else
cf_desktop_want=auto cf_desktop_want=auto
fi; fi;
echo "$as_me:7586: result: $cf_desktop_want" >&5 echo "$as_me:7595: result: $cf_desktop_want" >&5
echo "${ECHO_T}$cf_desktop_want" >&6 echo "${ECHO_T}$cf_desktop_want" >&6
if test "$cf_desktop_want" = auto if test "$cf_desktop_want" = auto
then then
rm -rf conftest* rm -rf conftest*
cf_desktop_also= cf_desktop_also=
for cf_desktop_dir in \ for cf_desktop_dir in \
/usr/share/app-install \ /usr/share/app-install \
/usr/share/applications /usr/share/applications
do do
skipping to change at line 7609 skipping to change at line 7618
find $cf_desktop_dir -name '*.desktop' | \ find $cf_desktop_dir -name '*.desktop' | \
while true while true
do do
read cf_desktop_path read cf_desktop_path
test -z "$cf_desktop_path" && break test -z "$cf_desktop_path" && break
cf_desktop_name=`basename "$cf_desktop_pa th" .desktop` cf_desktop_name=`basename "$cf_desktop_pa th" .desktop`
case $cf_desktop_name in case $cf_desktop_name in
(xterm|*-xterm|*rxvt*|*konsole|*[Tt]ermin al) (xterm|*-xterm|*rxvt*|*konsole|*[Tt]ermin al)
test -n "$verbose" && echo " i nspect $cf_desktop_path" 1>&6 test -n "$verbose" && echo " i nspect $cf_desktop_path" 1>&6
echo "${as_me:-configure}:7609: testing inspect $cf_desktop_path ..." 1>&5 echo "${as_me:-configure}:7618: testing inspect $cf_desktop_path ..." 1>&5
${EGREP-egrep} '^Categories=' "$c f_desktop_path" | \ ${EGREP-egrep} '^Categories=' "$c f_desktop_path" | \
tr ';' '\n' | \ tr ';' '\n' | \
sed -e 's%^.*=%%' -e '/^$ /d' >>conftest.1 sed -e 's%^.*=%%' -e '/^$ /d' >>conftest.1
;; ;;
esac esac
done done
fi fi
done done
if test -s conftest.1 if test -s conftest.1
skipping to change at line 7640 skipping to change at line 7649
elif test -s conftest.3 elif test -s conftest.3
then then
grep -w "$cf_desktop_this" conftest.3 >/d ev/null && continue grep -w "$cf_desktop_this" conftest.3 >/d ev/null && continue
fi fi
case "$cf_desktop_this" in case "$cf_desktop_this" in
(-*) (-*)
;; ;;
(Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFG HIJKLMNOPQRSTUVWXYZ]*) (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFG HIJKLMNOPQRSTUVWXYZ]*)
test -n "$verbose" && echo " ignored $ cf_desktop_this" 1>&6 test -n "$verbose" && echo " ignored $ cf_desktop_this" 1>&6
echo "${as_me:-configure}:7640: testing ignored $cf_desktop_this ..." 1>&5 echo "${as_me:-configure}:7649: testing ignored $cf_desktop_this ..." 1>&5
echo "$cf_desktop_this" >> conftest.3 echo "$cf_desktop_this" >> conftest.3
;; ;;
(System|TerminalEmulator|*) (System|TerminalEmulator|*)
test -n "$verbose" && echo " applied $ cf_desktop_this" 1>&6 test -n "$verbose" && echo " applied $ cf_desktop_this" 1>&6
echo "${as_me:-configure}:7647: testing applied $cf_desktop_this ..." 1>&5 echo "${as_me:-configure}:7656: testing applied $cf_desktop_this ..." 1>&5
test "x$cf_desktop_last" != "x$cf_desktop _this" && echo "$cf_desktop_this" >>conftest.2 test "x$cf_desktop_last" != "x$cf_desktop _this" && echo "$cf_desktop_this" >>conftest.2
;; ;;
esac esac
cf_desktop_last=$cf_desktop_this cf_desktop_last=$cf_desktop_this
done done
cf_desktop_want="`tr '\n' ';' < conftest.2`" cf_desktop_want="`tr '\n' ';' < conftest.2`"
fi fi
if test -n "$cf_desktop_want" if test -n "$cf_desktop_want"
then then
skipping to change at line 7674 skipping to change at line 7683
test -z "$cf_desktop_test" && cf_desktop_want= test -z "$cf_desktop_test" && cf_desktop_want=
cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
test -z "$cf_desktop_test" && cf_desktop_want= test -z "$cf_desktop_test" && cf_desktop_want=
fi fi
fi fi
if test -z "$cf_desktop_want" if test -z "$cf_desktop_want"
then then
cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
echo "${as_me:-configure}:7674: testing no usable value found for desktop catego ry ..." 1>&5 echo "${as_me:-configure}:7683: testing no usable value found for desktop catego ry ..." 1>&5
fi fi
fi fi
DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1> &6 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1> &6
echo "${as_me:-configure}:7681: testing will use Categories=$DESKTOP_CATEGORY .. ." 1>&5 echo "${as_me:-configure}:7690: testing will use Categories=$DESKTOP_CATEGORY .. ." 1>&5
fi fi
echo "$as_me:7685: checking for install-permissions reference" >&5 echo "$as_me:7694: checking for install-permissions reference" >&5
echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
# Check whether --with-reference or --without-reference was given. # Check whether --with-reference or --without-reference was given.
if test "${with_reference+set}" = set; then if test "${with_reference+set}" = set; then
withval="$with_reference" withval="$with_reference"
with_reference=$withval with_reference=$withval
else else
with_reference=xterm with_reference=xterm
fi; fi;
echo "$as_me:7695: result: $with_reference" >&5 echo "$as_me:7704: result: $with_reference" >&5
echo "${ECHO_T}$with_reference" >&6 echo "${ECHO_T}$with_reference" >&6
with_full_paths=yes with_full_paths=yes
echo "$as_me:7700: checking for PATH separator" >&5 echo "$as_me:7709: checking for PATH separator" >&5
echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
case "$cf_cv_system_name" in case "$cf_cv_system_name" in
(os2*) PATH_SEPARATOR=';' ;; (os2*) PATH_SEPARATOR=';' ;;
(*) ${PATH_SEPARATOR:=':'} ;; (*) ${PATH_SEPARATOR:=':'} ;;
esac esac
echo "$as_me:7707: result: $PATH_SEPARATOR" >&5 echo "$as_me:7716: result: $PATH_SEPARATOR" >&5
echo "${ECHO_T}$PATH_SEPARATOR" >&6 echo "${ECHO_T}$PATH_SEPARATOR" >&6
test -z "$XTERM_PATH" && XTERM_PATH="$with_reference" test -z "$XTERM_PATH" && XTERM_PATH="$with_reference"
for ac_prog in $XTERM_PATH $with_reference for ac_prog in $XTERM_PATH $with_reference
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:7715: checking for $ac_word" >&5 echo "$as_me:7724: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_XTERM_PATH+set}" = set; then if test "${ac_cv_path_XTERM_PATH+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
case $XTERM_PATH in case $XTERM_PATH in
[\\/]* | ?:[\\/]*) [\\/]* | ?:[\\/]*)
ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a pa th. ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a pa th.
;; ;;
*) *)
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
echo "$as_me:7732: found $ac_dir/$ac_word" >&5 echo "$as_me:7741: found $ac_dir/$ac_word" >&5
break break
fi fi
done done
;; ;;
esac esac
fi fi
XTERM_PATH=$ac_cv_path_XTERM_PATH XTERM_PATH=$ac_cv_path_XTERM_PATH
if test -n "$XTERM_PATH"; then if test -n "$XTERM_PATH"; then
echo "$as_me:7743: result: $XTERM_PATH" >&5 echo "$as_me:7752: result: $XTERM_PATH" >&5
echo "${ECHO_T}$XTERM_PATH" >&6 echo "${ECHO_T}$XTERM_PATH" >&6
else else
echo "$as_me:7746: result: no" >&5 echo "$as_me:7755: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$XTERM_PATH" && break test -n "$XTERM_PATH" && break
done done
test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
cf_path_prog="" cf_path_prog=""
cf_path_args="" cf_path_args=""
IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
skipping to change at line 7805 skipping to change at line 7814
elif test -z "$cf_path_args" ; then elif test -z "$cf_path_args" ; then
cf_path_args="$cf_temp" cf_path_args="$cf_temp"
else else
cf_path_args="$cf_path_args $cf_temp" cf_path_args="$cf_path_args $cf_temp"
fi fi
done done
IFS="$cf_save_ifs" IFS="$cf_save_ifs"
if test -n "$cf_path_prog" ; then if test -n "$cf_path_prog" ; then
echo "${as_me:-configure}:7805: testing defining path for ${cf_path_prog} ..." 1 >&5 echo "${as_me:-configure}:7814: testing defining path for ${cf_path_prog} ..." 1 >&5
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define XTERM_PATH_PATH "$cf_path_prog" #define XTERM_PATH_PATH "$cf_path_prog"
EOF EOF
test -n "$cf_path_args" && test -n "$cf_path_args" &&
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define XTERM_PATH_ARGS "$cf_path_args" #define XTERM_PATH_ARGS "$cf_path_args"
EOF EOF
fi fi
# If any of --program-prefix, --program-suffix or --program-transform-name is # If any of --program-prefix, --program-suffix or --program-transform-name is
# given, accept an option tell the makefile to create a symbolic link, e.g., # given, accept an option tell the makefile to create a symbolic link, e.g.,
# to "xterm" on install. # to "xterm" on install.
XTERM_SYMLINK=NONE XTERM_SYMLINK=NONE
if test "$program_transform_name" != "'s,,,'" ; then if test "$program_transform_name" != "'s,,,'" ; then
cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
cf_name=`echo xterm |sed -e "$cf_name"` cf_name=`echo xterm |sed -e "$cf_name"`
echo "$as_me:7826: checking for symbolic link to create to $cf_name" >&5 echo "$as_me:7835: checking for symbolic link to create to $cf_name" >&5
echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
# Check whether --with-xterm-symlink or --without-xterm-symlink was given. # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
if test "${with_xterm_symlink+set}" = set; then if test "${with_xterm_symlink+set}" = set; then
withval="$with_xterm_symlink" withval="$with_xterm_symlink"
with_symlink=$withval with_symlink=$withval
else else
with_symlink=xterm with_symlink=xterm
fi; fi;
echo "$as_me:7836: result: $with_symlink" >&5 echo "$as_me:7845: result: $with_symlink" >&5
echo "${ECHO_T}$with_symlink" >&6 echo "${ECHO_T}$with_symlink" >&6
test "$with_symlink" = yes && with_symlink=xterm test "$with_symlink" = yes && with_symlink=xterm
test -n "$with_symlink" && \ test -n "$with_symlink" && \
test "$with_symlink" != no && \ test "$with_symlink" != no && \
test "$with_symlink" != "$cf_name" && \ test "$with_symlink" != "$cf_name" && \
XTERM_SYMLINK="$with_symlink" XTERM_SYMLINK="$with_symlink"
fi fi
echo "$as_me:7845: checking if you want to disable openpty" >&5 echo "$as_me:7854: checking if you want to disable openpty" >&5
echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
# Check whether --enable-openpty or --disable-openpty was given. # Check whether --enable-openpty or --disable-openpty was given.
if test "${enable_openpty+set}" = set; then if test "${enable_openpty+set}" = set; then
enableval="$enable_openpty" enableval="$enable_openpty"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
disable_openpty=yes disable_openpty=yes
else else
disable_openpty=no disable_openpty=no
fi fi
else else
enableval=yes enableval=yes
disable_openpty=no disable_openpty=no
fi; fi;
echo "$as_me:7862: result: $disable_openpty" >&5 echo "$as_me:7871: result: $disable_openpty" >&5
echo "${ECHO_T}$disable_openpty" >&6 echo "${ECHO_T}$disable_openpty" >&6
echo "$as_me:7865: checking if you want to disable setuid" >&5 echo "$as_me:7874: checking if you want to disable setuid" >&5
echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
# Check whether --enable-setuid or --disable-setuid was given. # Check whether --enable-setuid or --disable-setuid was given.
if test "${enable_setuid+set}" = set; then if test "${enable_setuid+set}" = set; then
enableval="$enable_setuid" enableval="$enable_setuid"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
disable_setuid=yes disable_setuid=yes
else else
disable_setuid=no disable_setuid=no
fi fi
else else
enableval=yes enableval=yes
disable_setuid=no disable_setuid=no
fi; fi;
echo "$as_me:7882: result: $disable_setuid" >&5 echo "$as_me:7891: result: $disable_setuid" >&5
echo "${ECHO_T}$disable_setuid" >&6 echo "${ECHO_T}$disable_setuid" >&6
echo "$as_me:7885: checking if you want to disable setgid" >&5 echo "$as_me:7894: checking if you want to disable setgid" >&5
echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
# Check whether --enable-setgid or --disable-setgid was given. # Check whether --enable-setgid or --disable-setgid was given.
if test "${enable_setgid+set}" = set; then if test "${enable_setgid+set}" = set; then
enableval="$enable_setgid" enableval="$enable_setgid"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
disable_setgid=yes disable_setgid=yes
else else
disable_setgid=no disable_setgid=no
fi fi
else else
enableval=yes enableval=yes
disable_setgid=no disable_setgid=no
fi; fi;
echo "$as_me:7902: result: $disable_setgid" >&5 echo "$as_me:7911: result: $disable_setgid" >&5
echo "${ECHO_T}$disable_setgid" >&6 echo "${ECHO_T}$disable_setgid" >&6
echo "$as_me:7905: checking if you want to run xterm setuid to a given user" >&5 echo "$as_me:7914: checking if you want to run xterm setuid to a given user" >&5
echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_ C" >&6 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_ C" >&6
# Check whether --with-setuid or --without-setuid was given. # Check whether --with-setuid or --without-setuid was given.
if test "${with_setuid+set}" = set; then if test "${with_setuid+set}" = set; then
withval="$with_setuid" withval="$with_setuid"
use_given_setuid=$withval use_given_setuid=$withval
else else
use_given_setuid=no use_given_setuid=no
fi; fi;
echo "$as_me:7915: result: $use_given_setuid" >&5 echo "$as_me:7924: result: $use_given_setuid" >&5
echo "${ECHO_T}$use_given_setuid" >&6 echo "${ECHO_T}$use_given_setuid" >&6
if test "$use_given_setuid" != no ; then if test "$use_given_setuid" != no ; then
if test "$use_given_setuid" = yes ; then if test "$use_given_setuid" = yes ; then
cf_cv_given_setuid=root cf_cv_given_setuid=root
else else
cf_cv_given_setuid=$use_given_setuid cf_cv_given_setuid=$use_given_setuid
fi fi
# inherit SINSTALL_OPTS from environment to allow packager to customize i t. # inherit SINSTALL_OPTS from environment to allow packager to customize i t.
SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
fi fi
echo "$as_me:7928: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 echo "$as_me:7937: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file. .. $ECHO_C" >&6 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file. .. $ECHO_C" >&6
# Check whether --with-utmp-setgid or --without-utmp-setgid was given. # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
if test "${with_utmp_setgid+set}" = set; then if test "${with_utmp_setgid+set}" = set; then
withval="$with_utmp_setgid" withval="$with_utmp_setgid"
use_utmp_setgid=$withval use_utmp_setgid=$withval
else else
use_utmp_setgid=no use_utmp_setgid=no
fi; fi;
echo "$as_me:7938: result: $use_utmp_setgid" >&5 echo "$as_me:7947: result: $use_utmp_setgid" >&5
echo "${ECHO_T}$use_utmp_setgid" >&6 echo "${ECHO_T}$use_utmp_setgid" >&6
if test "$use_utmp_setgid" != no ; then if test "$use_utmp_setgid" != no ; then
if test "$use_utmp_setgid" = yes ; then if test "$use_utmp_setgid" = yes ; then
if test $cf_cv_have_utmp != no ; then if test $cf_cv_have_utmp != no ; then
echo "$as_me:7945: checking for utmp/utmpx group" >&5 echo "$as_me:7954: checking for utmp/utmpx group" >&5
echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
if test "${cf_cv_utmp_group+set}" = set; then if test "${cf_cv_utmp_group+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
for cf_utmp_path in /var/adm /var/run for cf_utmp_path in /var/adm /var/run
do do
for cf_utmp_file in utmpx utmp for cf_utmp_file in utmpx utmp
do do
if test -f $cf_utmp_path/$cf_utmp_file if test -f $cf_utmp_path/$cf_utmp_file
skipping to change at line 7987 skipping to change at line 7996
cf_cv_utmp_group=$cf_grp; cf_cv_utmp_group=$cf_grp;
fi fi
fi fi
break break
fi fi
done done
test -n "$cf_cv_utmp_group" && break test -n "$cf_cv_utmp_group" && break
done done
fi fi
echo "$as_me:7987: result: $cf_cv_utmp_group" >&5 echo "$as_me:7996: result: $cf_cv_utmp_group" >&5
echo "${ECHO_T}$cf_cv_utmp_group" >&6 echo "${ECHO_T}$cf_cv_utmp_group" >&6
else else
{ { echo "$as_me:7990: error: cannot find utmp group" >&5 { { echo "$as_me:7999: error: cannot find utmp group" >&5
echo "$as_me: error: cannot find utmp group" >&2;} echo "$as_me: error: cannot find utmp group" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
else else
cf_cv_utmp_group=$use_utmp_setgid cf_cv_utmp_group=$use_utmp_setgid
fi fi
if test "$cf_cv_posix_saved_ids" != yes ; then if test "$cf_cv_posix_saved_ids" != yes ; then
{ { echo "$as_me:7999: error: Your system does not support POSIX saved-ids" >&5 { { echo "$as_me:8008: error: Your system does not support POSIX saved-ids" >&5
echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_UTMP_SETGID 1 #define USE_UTMP_SETGID 1
EOF EOF
SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
fi fi
echo "$as_me:8011: checking if you want to link with utempter" >&5 echo "$as_me:8020: checking if you want to link with utempter" >&5
echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
# Check whether --with-utempter or --without-utempter was given. # Check whether --with-utempter or --without-utempter was given.
if test "${with_utempter+set}" = set; then if test "${with_utempter+set}" = set; then
withval="$with_utempter" withval="$with_utempter"
use_utempter=$withval use_utempter=$withval
else else
use_utempter=no use_utempter=no
fi; fi;
echo "$as_me:8021: result: $use_utempter" >&5 echo "$as_me:8030: result: $use_utempter" >&5
echo "${ECHO_T}$use_utempter" >&6 echo "${ECHO_T}$use_utempter" >&6
if test "$use_utempter" = yes ; then if test "$use_utempter" = yes ; then
echo "$as_me:8026: checking if we can link with utempter library" >&5 echo "$as_me:8035: checking if we can link with utempter library" >&5
echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
if test "${cf_cv_have_utempter+set}" = set; then if test "${cf_cv_have_utempter+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_save_LIBS="$LIBS" cf_save_LIBS="$LIBS"
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
skipping to change at line 8051 skipping to change at line 8060
if test "x$cf_add_1lib" = "x$cf_add_2lib"; then if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
cf_add_1lib= cf_add_1lib=
break break
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8051 "configure" #line 8060 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <utempter.h> #include <utempter.h>
int int
main (void) main (void)
{ {
addToUtmp("/dev/tty", 0, 1); addToUtmp("/dev/tty", 0, 1);
removeFromUtmp(); removeFromUtmp();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8068: \"$ac_link\"") >&5 if { (eval echo "$as_me:8077: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8071: \$? = $ac_status" >&5 echo "$as_me:8080: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8074: \"$ac_try\"") >&5 { (eval echo "$as_me:8083: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8077: \$? = $ac_status" >&5 echo "$as_me:8086: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utempter=yes cf_cv_have_utempter=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utempter=no cf_cv_have_utempter=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS="$cf_save_LIBS" LIBS="$cf_save_LIBS"
fi fi
echo "$as_me:8091: result: $cf_cv_have_utempter" >&5 echo "$as_me:8100: result: $cf_cv_have_utempter" >&5
echo "${ECHO_T}$cf_cv_have_utempter" >&6 echo "${ECHO_T}$cf_cv_have_utempter" >&6
if test "$cf_cv_have_utempter" = yes ; then if test "$cf_cv_have_utempter" = yes ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_UTEMPTER 1 #define USE_UTEMPTER 1
EOF EOF
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
skipping to change at line 8129 skipping to change at line 8138
use_utempter=no use_utempter=no
fi fi
# Some configurations permit (or require) either setuid or setgid mode. # Some configurations permit (or require) either setuid or setgid mode.
# Let the user decide. # Let the user decide.
if test "$use_utempter" = yes ; then if test "$use_utempter" = yes ; then
if test "${enable_setuid+set}" != set ; then if test "${enable_setuid+set}" != set ; then
disable_setuid=yes disable_setuid=yes
test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
echo "${as_me:-configure}:8129: testing No --disable-setuid option given, force to yes ..." 1>&5 echo "${as_me:-configure}:8138: testing No --disable-setuid option given, force to yes ..." 1>&5
fi fi
fi fi
### checks for external data ### checks for external data
echo "$as_me:8136: checking if external errno is declared" >&5 echo "$as_me:8145: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then if test "${cf_cv_dcl_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8143 "configure" #line 8152 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
int int
main (void) main (void)
{ {
int x = (int) errno; (void)x int x = (int) errno; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:8161: \"$ac_compile\"") >&5 if { (eval echo "$as_me:8170: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8164: \$? = $ac_status" >&5 echo "$as_me:8173: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:8167: \"$ac_try\"") >&5 { (eval echo "$as_me:8176: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8170: \$? = $ac_status" >&5 echo "$as_me:8179: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_dcl_errno=yes cf_cv_dcl_errno=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_dcl_errno=no cf_cv_dcl_errno=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:8181: result: $cf_cv_dcl_errno" >&5 echo "$as_me:8190: result: $cf_cv_dcl_errno" >&5
echo "${ECHO_T}$cf_cv_dcl_errno" >&6 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
if test "$cf_cv_dcl_errno" = no ; then if test "$cf_cv_dcl_errno" = no ; then
cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%` cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
# It's possible (for near-UNIX clones) that the data doesn't exist # It's possible (for near-UNIX clones) that the data doesn't exist
echo "$as_me:8196: checking if external errno exists" >&5 echo "$as_me:8205: checking if external errno exists" >&5
echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
if test "${cf_cv_have_errno+set}" = set; then if test "${cf_cv_have_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8203 "configure" #line 8212 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef errno #undef errno
extern int errno; extern int errno;
int int
main (void) main (void)
{ {
errno = 2 errno = 2
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8218: \"$ac_link\"") >&5 if { (eval echo "$as_me:8227: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8221: \$? = $ac_status" >&5 echo "$as_me:8230: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8224: \"$ac_try\"") >&5 { (eval echo "$as_me:8233: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8227: \$? = $ac_status" >&5 echo "$as_me:8236: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_errno=yes cf_cv_have_errno=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_errno=no cf_cv_have_errno=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:8238: result: $cf_cv_have_errno" >&5 echo "$as_me:8247: result: $cf_cv_have_errno" >&5
echo "${ECHO_T}$cf_cv_have_errno" >&6 echo "${ECHO_T}$cf_cv_have_errno" >&6
if test "$cf_cv_have_errno" = yes ; then if test "$cf_cv_have_errno" = yes ; then
cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%` cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
echo "$as_me:8251: checking for explicit tty group name" >&5 echo "$as_me:8260: checking for explicit tty group name" >&5
echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
# Check whether --with-tty-group or --without-tty-group was given. # Check whether --with-tty-group or --without-tty-group was given.
if test "${with_tty_group+set}" = set; then if test "${with_tty_group+set}" = set; then
withval="$with_tty_group" withval="$with_tty_group"
cf_tty_group=$withval cf_tty_group=$withval
else else
cf_tty_group=auto... cf_tty_group=auto...
fi; fi;
test -z "$cf_tty_group" && cf_tty_group=auto... test -z "$cf_tty_group" && cf_tty_group=auto...
test "$cf_tty_group" = yes && cf_tty_group=auto... test "$cf_tty_group" = yes && cf_tty_group=auto...
echo "$as_me:8263: result: $cf_tty_group" >&5 echo "$as_me:8272: result: $cf_tty_group" >&5
echo "${ECHO_T}$cf_tty_group" >&6 echo "${ECHO_T}$cf_tty_group" >&6
if test "$cf_tty_group" = "auto..." ; then if test "$cf_tty_group" = "auto..." ; then
echo "$as_me:8267: checking for tty group name" >&5 echo "$as_me:8276: checking for tty group name" >&5
echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
if test "${cf_cv_tty_group_name+set}" = set; then if test "${cf_cv_tty_group_name+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
# If we are configuring as root, it is hard to get a clue about the tty group. # If we are configuring as root, it is hard to get a clue about the tty group.
# But we'll guess based on how our connection is set up - assuming it is done # But we'll guess based on how our connection is set up - assuming it is done
# properly. # properly.
cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`" cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`"
skipping to change at line 8320 skipping to change at line 8329
(*) (*)
cf_cv_tty_group_name="unknown" cf_cv_tty_group_name="unknown"
if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
cf_cv_tty_group_name="tty" cf_cv_tty_group_name="tty"
fi fi
;; ;;
esac esac
fi fi
fi fi
echo "$as_me:8320: result: $cf_cv_tty_group_name" >&5 echo "$as_me:8329: result: $cf_cv_tty_group_name" >&5
echo "${ECHO_T}$cf_cv_tty_group_name" >&6 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
cf_tty_group="$cf_cv_tty_group_name" cf_tty_group="$cf_cv_tty_group_name"
else else
# if configure option, always do this # if configure option, always do this
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TTY_GROUP 1 #define USE_TTY_GROUP 1
EOF EOF
fi fi
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define TTY_GROUP_NAME "$cf_tty_group" #define TTY_GROUP_NAME "$cf_tty_group"
EOF EOF
# This is only a double-check that the group-name we obtained above really # This is only a double-check that the group-name we obtained above really
# does apply to the device. We cannot perform this test if we are in batch # does apply to the device. We cannot perform this test if we are in batch
# mode, or if we are cross-compiling. # mode, or if we are cross-compiling.
echo "$as_me:8340: checking if we may use the $cf_tty_group group" >&5 echo "$as_me:8349: checking if we may use the $cf_tty_group group" >&5
echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
if test "${cf_cv_tty_group+set}" = set; then if test "${cf_cv_tty_group+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_tty_name="`tty`" cf_tty_name="`tty`"
if test "$cf_tty_name" != "not a tty" if test "$cf_tty_name" != "not a tty"
then then
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
cf_cv_tty_group=unknown cf_cv_tty_group=unknown
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8353 "configure" #line 8362 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <grp.h> #include <grp.h>
int main(void) int main(void)
{ {
struct stat sb; struct stat sb;
struct group *ttygrp; struct group *ttygrp;
skipping to change at line 8389 skipping to change at line 8398
&& stat(name, &sb) == 0 && stat(name, &sb) == 0
&& sb.st_gid != getgid() && sb.st_gid != getgid()
&& sb.st_gid == ttygrp->gr_gid) { && sb.st_gid == ttygrp->gr_gid) {
${cf_cv_main_return:-return} (0); ${cf_cv_main_return:-return} (0);
} }
${cf_cv_main_return:-return} (1); ${cf_cv_main_return:-return} (1);
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:8389: \"$ac_link\"") >&5 if { (eval echo "$as_me:8398: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8392: \$? = $ac_status" >&5 echo "$as_me:8401: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:8394: \"$ac_try\"") >&5 { (eval echo "$as_me:8403: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8397: \$? = $ac_status" >&5 echo "$as_me:8406: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_tty_group=yes cf_cv_tty_group=yes
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_tty_group=no cf_cv_tty_group=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
elif test "$cross_compiling" = yes; then elif test "$cross_compiling" = yes; then
cf_cv_tty_group=unknown cf_cv_tty_group=unknown
else else
cf_cv_tty_group=yes cf_cv_tty_group=yes
fi fi
fi fi
echo "$as_me:8415: result: $cf_cv_tty_group" >&5 echo "$as_me:8424: result: $cf_cv_tty_group" >&5
echo "${ECHO_T}$cf_cv_tty_group" >&6 echo "${ECHO_T}$cf_cv_tty_group" >&6
if test $cf_cv_tty_group = no ; then if test $cf_cv_tty_group = no ; then
{ echo "$as_me:8419: WARNING: Cannot use $cf_tty_group group" >&5 { echo "$as_me:8428: WARNING: Cannot use $cf_tty_group group" >&5
echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
else else
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TTY_GROUP 1 #define USE_TTY_GROUP 1
EOF EOF
fi fi
### checks for system services and user specified options ### checks for system services and user specified options
echo "$as_me:8430: checking for X" >&5 echo "$as_me:8439: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6 echo $ECHO_N "checking for X... $ECHO_C" >&6
# Check whether --with-x or --without-x was given. # Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then if test "${with_x+set}" = set; then
withval="$with_x" withval="$with_x"
fi; fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then if test "x$with_x" = xno; then
# The user explicitly disabled X. # The user explicitly disabled X.
skipping to change at line 8534 skipping to change at line 8543
/usr/local/x11r5/include /usr/local/x11r5/include
/usr/lpp/Xamples/include /usr/lpp/Xamples/include
/usr/openwin/include /usr/openwin/include
/usr/openwin/share/include' /usr/openwin/share/include'
if test "$ac_x_includes" = no; then if test "$ac_x_includes" = no; then
# Guess where to find include files, by looking for Intrinsic.h. # Guess where to find include files, by looking for Intrinsic.h.
# First, try using that file with no special directory specified. # First, try using that file with no special directory specified.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8534 "configure" #line 8543 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:8538: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:8547: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:8544: \$? = $ac_status" >&5 echo "$as_me:8553: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 8577 skipping to change at line 8586
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi # $ac_x_includes = no fi # $ac_x_includes = no
if test "$ac_x_libraries" = no; then if test "$ac_x_libraries" = no; then
# Check for the libraries. # Check for the libraries.
# See if we find them without any special options. # See if we find them without any special options.
# Don't add to $LIBS permanently. # Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS ac_save_LIBS=$LIBS
LIBS="-lXt $LIBS" LIBS="-lXt $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8577 "configure" #line 8586 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
int int
main (void) main (void)
{ {
XtMalloc (0) XtMalloc (0)
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8589: \"$ac_link\"") >&5 if { (eval echo "$as_me:8598: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8592: \$? = $ac_status" >&5 echo "$as_me:8601: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8595: \"$ac_try\"") >&5 { (eval echo "$as_me:8604: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8598: \$? = $ac_status" >&5 echo "$as_me:8607: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
LIBS=$ac_save_LIBS LIBS=$ac_save_LIBS
# We can link X programs with no special library path. # We can link X programs with no special library path.
ac_x_libraries= ac_x_libraries=
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
LIBS=$ac_save_LIBS LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do do
skipping to change at line 8636 skipping to change at line 8645
ac_cv_have_x="have_x=yes \ ac_cv_have_x="have_x=yes \
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi fi
fi fi
fi fi
eval "$ac_cv_have_x" eval "$ac_cv_have_x"
fi # $with_x != no fi # $with_x != no
if test "$have_x" != yes; then if test "$have_x" != yes; then
echo "$as_me:8636: result: $have_x" >&5 echo "$as_me:8645: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6 echo "${ECHO_T}$have_x" >&6
no_x=yes no_x=yes
else else
# If each of the values was on the command line, it overrides each guess. # If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values. # Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes \ ac_cv_have_x="have_x=yes \
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
echo "$as_me:8646: result: libraries $x_libraries, headers $x_includes" >&5 echo "$as_me:8655: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi fi
if test "$no_x" = yes; then if test "$no_x" = yes; then
# Not all programs may use this symbol, but it does not hurt to define it. # Not all programs may use this symbol, but it does not hurt to define it.
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1 #define X_DISPLAY_MISSING 1
EOF EOF
skipping to change at line 8673 skipping to change at line 8682
X_CFLAGS="$X_CFLAGS -I$x_includes" X_CFLAGS="$X_CFLAGS -I$x_includes"
fi fi
# It would also be nice to do this for all -L options, not just this one. # It would also be nice to do this for all -L options, not just this one.
if test -n "$x_libraries"; then if test -n "$x_libraries"; then
X_LIBS="$X_LIBS -L$x_libraries" X_LIBS="$X_LIBS -L$x_libraries"
# For Solaris; some versions of Sun CC require a space after -R and # For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . . # others require no space. Words are not sufficient . . . .
case `(uname -sr) 2>/dev/null` in case `(uname -sr) 2>/dev/null` in
"SunOS 5"*) "SunOS 5"*)
echo "$as_me:8673: checking whether -R must be followed by a space" >&5 echo "$as_me:8682: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8677 "configure" #line 8686 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8689: \"$ac_link\"") >&5 if { (eval echo "$as_me:8698: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8692: \$? = $ac_status" >&5 echo "$as_me:8701: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8695: \"$ac_try\"") >&5 { (eval echo "$as_me:8704: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8698: \$? = $ac_status" >&5 echo "$as_me:8707: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_R_nospace=yes ac_R_nospace=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_R_nospace=no ac_R_nospace=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
if test $ac_R_nospace = yes; then if test $ac_R_nospace = yes; then
echo "$as_me:8708: result: no" >&5 echo "$as_me:8717: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
X_LIBS="$X_LIBS -R$x_libraries" X_LIBS="$X_LIBS -R$x_libraries"
else else
LIBS="$ac_xsave_LIBS -R $x_libraries" LIBS="$ac_xsave_LIBS -R $x_libraries"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8714 "configure" #line 8723 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8726: \"$ac_link\"") >&5 if { (eval echo "$as_me:8735: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8729: \$? = $ac_status" >&5 echo "$as_me:8738: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8732: \"$ac_try\"") >&5 { (eval echo "$as_me:8741: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8735: \$? = $ac_status" >&5 echo "$as_me:8744: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_R_space=yes ac_R_space=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_R_space=no ac_R_space=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
if test $ac_R_space = yes; then if test $ac_R_space = yes; then
echo "$as_me:8745: result: yes" >&5 echo "$as_me:8754: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
X_LIBS="$X_LIBS -R $x_libraries" X_LIBS="$X_LIBS -R $x_libraries"
else else
echo "$as_me:8749: result: neither works" >&5 echo "$as_me:8758: result: neither works" >&5
echo "${ECHO_T}neither works" >&6 echo "${ECHO_T}neither works" >&6
fi fi
fi fi
LIBS=$ac_xsave_LIBS LIBS=$ac_xsave_LIBS
esac esac
fi fi
# Check for system-dependent libraries X programs must link with. # Check for system-dependent libraries X programs must link with.
# Do this before checking for the system-independent R6 libraries # Do this before checking for the system-independent R6 libraries
# (-lICE), since we may need -lsocket or whatever for X linking. # (-lICE), since we may need -lsocket or whatever for X linking.
if test "$ISC" = yes; then if test "$ISC" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
else else
# Martyn Johnson says this is needed for Ultrix, if the X # Martyn Johnson says this is needed for Ultrix, if the X
# libraries were built with DECnet support. And Karl Berry says # libraries were built with DECnet support. And Karl Berry says
# the Alpha needs dnet_stub (dnet does not exist). # the Alpha needs dnet_stub (dnet does not exist).
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8769 "configure" #line 8778 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XOpenDisplay (); char XOpenDisplay ();
int int
main (void) main (void)
{ {
XOpenDisplay (); XOpenDisplay ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8788: \"$ac_link\"") >&5 if { (eval echo "$as_me:8797: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8791: \$? = $ac_status" >&5 echo "$as_me:8800: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8794: \"$ac_try\"") >&5 { (eval echo "$as_me:8803: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8797: \$? = $ac_status" >&5 echo "$as_me:8806: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
echo "$as_me:8803: checking for dnet_ntoa in -ldnet" >&5 echo "$as_me:8812: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet $LIBS" LIBS="-ldnet $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8811 "configure" #line 8820 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char dnet_ntoa (); char dnet_ntoa ();
int int
main (void) main (void)
{ {
dnet_ntoa (); dnet_ntoa ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8830: \"$ac_link\"") >&5 if { (eval echo "$as_me:8839: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8833: \$? = $ac_status" >&5 echo "$as_me:8842: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8836: \"$ac_try\"") >&5 { (eval echo "$as_me:8845: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8839: \$? = $ac_status" >&5 echo "$as_me:8848: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_dnet_dnet_ntoa=yes ac_cv_lib_dnet_dnet_ntoa=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_dnet_dnet_ntoa=no ac_cv_lib_dnet_dnet_ntoa=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:8850: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 echo "$as_me:8859: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi fi
if test $ac_cv_lib_dnet_dnet_ntoa = no; then if test $ac_cv_lib_dnet_dnet_ntoa = no; then
echo "$as_me:8857: checking for dnet_ntoa in -ldnet_stub" >&5 echo "$as_me:8866: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub $LIBS" LIBS="-ldnet_stub $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8865 "configure" #line 8874 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char dnet_ntoa (); char dnet_ntoa ();
int int
main (void) main (void)
{ {
dnet_ntoa (); dnet_ntoa ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8884: \"$ac_link\"") >&5 if { (eval echo "$as_me:8893: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8887: \$? = $ac_status" >&5 echo "$as_me:8896: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8890: \"$ac_try\"") >&5 { (eval echo "$as_me:8899: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8893: \$? = $ac_status" >&5 echo "$as_me:8902: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_dnet_stub_dnet_ntoa=yes ac_cv_lib_dnet_stub_dnet_ntoa=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no ac_cv_lib_dnet_stub_dnet_ntoa=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:8904: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 echo "$as_me:8913: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi fi
fi fi
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS="$ac_xsave_LIBS" LIBS="$ac_xsave_LIBS"
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions. # to get the SysV transport functions.
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
# needs -lnsl. # needs -lnsl.
# The nsl library prevents programs from opening the X display # The nsl library prevents programs from opening the X display
# on Irix 5.2, according to T.E. Dickey. # on Irix 5.2, according to T.E. Dickey.
# The functions gethostbyname, getservbyname, and inet_addr are # The functions gethostbyname, getservbyname, and inet_addr are
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
echo "$as_me:8923: checking for gethostbyname" >&5 echo "$as_me:8932: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then if test "${ac_cv_func_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8929 "configure" #line 8938 "configure"
#include "confdefs.h" #include "confdefs.h"
#define gethostbyname autoconf_temporary #define gethostbyname autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef gethostbyname #undef gethostbyname
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 8960 skipping to change at line 8969
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
#error found stub for gethostbyname #error found stub for gethostbyname
#endif #endif
return gethostbyname (); return gethostbyname ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8960: \"$ac_link\"") >&5 if { (eval echo "$as_me:8969: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8963: \$? = $ac_status" >&5 echo "$as_me:8972: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8966: \"$ac_try\"") >&5 { (eval echo "$as_me:8975: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8969: \$? = $ac_status" >&5 echo "$as_me:8978: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_gethostbyname=yes ac_cv_func_gethostbyname=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_gethostbyname=no ac_cv_func_gethostbyname=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:8979: result: $ac_cv_func_gethostbyname" >&5 echo "$as_me:8988: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
if test $ac_cv_func_gethostbyname = no; then if test $ac_cv_func_gethostbyname = no; then
echo "$as_me:8983: checking for gethostbyname in -lnsl" >&5 echo "$as_me:8992: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl $LIBS" LIBS="-lnsl $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8991 "configure" #line 9000 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gethostbyname (); char gethostbyname ();
int int
main (void) main (void)
{ {
gethostbyname (); gethostbyname ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9010: \"$ac_link\"") >&5 if { (eval echo "$as_me:9019: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9013: \$? = $ac_status" >&5 echo "$as_me:9022: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9016: \"$ac_try\"") >&5 { (eval echo "$as_me:9025: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9019: \$? = $ac_status" >&5 echo "$as_me:9028: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_nsl_gethostbyname=yes ac_cv_lib_nsl_gethostbyname=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_nsl_gethostbyname=no ac_cv_lib_nsl_gethostbyname=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9030: result: $ac_cv_lib_nsl_gethostbyname" >&5 echo "$as_me:9039: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test "$ac_cv_lib_nsl_gethostbyname" = yes; then if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi fi
if test $ac_cv_lib_nsl_gethostbyname = no; then if test $ac_cv_lib_nsl_gethostbyname = no; then
echo "$as_me:9037: checking for gethostbyname in -lbsd" >&5 echo "$as_me:9046: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd $LIBS" LIBS="-lbsd $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9045 "configure" #line 9054 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gethostbyname (); char gethostbyname ();
int int
main (void) main (void)
{ {
gethostbyname (); gethostbyname ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9064: \"$ac_link\"") >&5 if { (eval echo "$as_me:9073: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9067: \$? = $ac_status" >&5 echo "$as_me:9076: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9070: \"$ac_try\"") >&5 { (eval echo "$as_me:9079: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9073: \$? = $ac_status" >&5 echo "$as_me:9082: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_bsd_gethostbyname=yes ac_cv_lib_bsd_gethostbyname=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_bsd_gethostbyname=no ac_cv_lib_bsd_gethostbyname=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9084: result: $ac_cv_lib_bsd_gethostbyname" >&5 echo "$as_me:9093: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test "$ac_cv_lib_bsd_gethostbyname" = yes; then if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi fi
fi fi
fi fi
# lieder@skyler.mavd.honeywell.com says without -lsocket, # lieder@skyler.mavd.honeywell.com says without -lsocket,
# socket/setsockopt and other routines are undefined under SCO ODT # socket/setsockopt and other routines are undefined under SCO ODT
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
# on later versions), says Simon Leinen: it contains gethostby* # on later versions), says Simon Leinen: it contains gethostby*
# variants that don't use the nameserver (or something). -lsocket # variants that don't use the nameserver (or something). -lsocket
# must be given before -lnsl if both are needed. We assume that # must be given before -lnsl if both are needed. We assume that
# if connect needs -lnsl, so does gethostbyname. # if connect needs -lnsl, so does gethostbyname.
echo "$as_me:9100: checking for connect" >&5 echo "$as_me:9109: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6 echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then if test "${ac_cv_func_connect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9106 "configure" #line 9115 "configure"
#include "confdefs.h" #include "confdefs.h"
#define connect autoconf_temporary #define connect autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef connect #undef connect
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 9137 skipping to change at line 9146
#if defined (__stub_connect) || defined (__stub___connect) #if defined (__stub_connect) || defined (__stub___connect)
#error found stub for connect #error found stub for connect
#endif #endif
return connect (); return connect ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9137: \"$ac_link\"") >&5 if { (eval echo "$as_me:9146: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9140: \$? = $ac_status" >&5 echo "$as_me:9149: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9143: \"$ac_try\"") >&5 { (eval echo "$as_me:9152: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9146: \$? = $ac_status" >&5 echo "$as_me:9155: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_connect=yes ac_cv_func_connect=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_connect=no ac_cv_func_connect=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9156: result: $ac_cv_func_connect" >&5 echo "$as_me:9165: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6 echo "${ECHO_T}$ac_cv_func_connect" >&6
if test $ac_cv_func_connect = no; then if test $ac_cv_func_connect = no; then
echo "$as_me:9160: checking for connect in -lsocket" >&5 echo "$as_me:9169: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then if test "${ac_cv_lib_socket_connect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9168 "configure" #line 9177 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char connect (); char connect ();
int int
main (void) main (void)
{ {
connect (); connect ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9187: \"$ac_link\"") >&5 if { (eval echo "$as_me:9196: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9190: \$? = $ac_status" >&5 echo "$as_me:9199: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9193: \"$ac_try\"") >&5 { (eval echo "$as_me:9202: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9196: \$? = $ac_status" >&5 echo "$as_me:9205: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_socket_connect=yes ac_cv_lib_socket_connect=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_socket_connect=no ac_cv_lib_socket_connect=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9207: result: $ac_cv_lib_socket_connect" >&5 echo "$as_me:9216: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test "$ac_cv_lib_socket_connect" = yes; then if test "$ac_cv_lib_socket_connect" = yes; then
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi fi
fi fi
# Guillermo Gomez says -lposix is necessary on A/UX. # Guillermo Gomez says -lposix is necessary on A/UX.
echo "$as_me:9216: checking for remove" >&5 echo "$as_me:9225: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6 echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then if test "${ac_cv_func_remove+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9222 "configure" #line 9231 "configure"
#include "confdefs.h" #include "confdefs.h"
#define remove autoconf_temporary #define remove autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef remove #undef remove
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 9253 skipping to change at line 9262
#if defined (__stub_remove) || defined (__stub___remove) #if defined (__stub_remove) || defined (__stub___remove)
#error found stub for remove #error found stub for remove
#endif #endif
return remove (); return remove ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9253: \"$ac_link\"") >&5 if { (eval echo "$as_me:9262: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9256: \$? = $ac_status" >&5 echo "$as_me:9265: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9259: \"$ac_try\"") >&5 { (eval echo "$as_me:9268: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9262: \$? = $ac_status" >&5 echo "$as_me:9271: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_remove=yes ac_cv_func_remove=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_remove=no ac_cv_func_remove=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9272: result: $ac_cv_func_remove" >&5 echo "$as_me:9281: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6 echo "${ECHO_T}$ac_cv_func_remove" >&6
if test $ac_cv_func_remove = no; then if test $ac_cv_func_remove = no; then
echo "$as_me:9276: checking for remove in -lposix" >&5 echo "$as_me:9285: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then if test "${ac_cv_lib_posix_remove+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix $LIBS" LIBS="-lposix $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9284 "configure" #line 9293 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char remove (); char remove ();
int int
main (void) main (void)
{ {
remove (); remove ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9303: \"$ac_link\"") >&5 if { (eval echo "$as_me:9312: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9306: \$? = $ac_status" >&5 echo "$as_me:9315: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9309: \"$ac_try\"") >&5 { (eval echo "$as_me:9318: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9312: \$? = $ac_status" >&5 echo "$as_me:9321: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_posix_remove=yes ac_cv_lib_posix_remove=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_posix_remove=no ac_cv_lib_posix_remove=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9323: result: $ac_cv_lib_posix_remove" >&5 echo "$as_me:9332: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test "$ac_cv_lib_posix_remove" = yes; then if test "$ac_cv_lib_posix_remove" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi fi
fi fi
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
echo "$as_me:9332: checking for shmat" >&5 echo "$as_me:9341: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then if test "${ac_cv_func_shmat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9338 "configure" #line 9347 "configure"
#include "confdefs.h" #include "confdefs.h"
#define shmat autoconf_temporary #define shmat autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef shmat #undef shmat
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 9369 skipping to change at line 9378
#if defined (__stub_shmat) || defined (__stub___shmat) #if defined (__stub_shmat) || defined (__stub___shmat)
#error found stub for shmat #error found stub for shmat
#endif #endif
return shmat (); return shmat ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9369: \"$ac_link\"") >&5 if { (eval echo "$as_me:9378: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9372: \$? = $ac_status" >&5 echo "$as_me:9381: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9375: \"$ac_try\"") >&5 { (eval echo "$as_me:9384: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9378: \$? = $ac_status" >&5 echo "$as_me:9387: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_shmat=yes ac_cv_func_shmat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_shmat=no ac_cv_func_shmat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9388: result: $ac_cv_func_shmat" >&5 echo "$as_me:9397: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6 echo "${ECHO_T}$ac_cv_func_shmat" >&6
if test $ac_cv_func_shmat = no; then if test $ac_cv_func_shmat = no; then
echo "$as_me:9392: checking for shmat in -lipc" >&5 echo "$as_me:9401: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then if test "${ac_cv_lib_ipc_shmat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc $LIBS" LIBS="-lipc $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9400 "configure" #line 9409 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char shmat (); char shmat ();
int int
main (void) main (void)
{ {
shmat (); shmat ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9419: \"$ac_link\"") >&5 if { (eval echo "$as_me:9428: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9422: \$? = $ac_status" >&5 echo "$as_me:9431: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9425: \"$ac_try\"") >&5 { (eval echo "$as_me:9434: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9428: \$? = $ac_status" >&5 echo "$as_me:9437: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_ipc_shmat=yes ac_cv_lib_ipc_shmat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_ipc_shmat=no ac_cv_lib_ipc_shmat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9439: result: $ac_cv_lib_ipc_shmat" >&5 echo "$as_me:9448: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test "$ac_cv_lib_ipc_shmat" = yes; then if test "$ac_cv_lib_ipc_shmat" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi fi
fi fi
fi fi
# Check for libraries that X11R6 Xt/Xaw programs need. # Check for libraries that X11R6 Xt/Xaw programs need.
ac_save_LDFLAGS=$LDFLAGS ac_save_LDFLAGS=$LDFLAGS
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
# check for ICE first), but we must link in the order -lSM -lICE or # check for ICE first), but we must link in the order -lSM -lICE or
# we get undefined symbols. So assume we have SM if we have ICE. # we get undefined symbols. So assume we have SM if we have ICE.
# These have to be linked with before -lX11, unlike the other # These have to be linked with before -lX11, unlike the other
# libraries we check for below, so use a different variable. # libraries we check for below, so use a different variable.
# John Interrante, Karl Berry # John Interrante, Karl Berry
echo "$as_me:9457: checking for IceConnectionNumber in -lICE" >&5 echo "$as_me:9466: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS" LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9465 "configure" #line 9474 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char IceConnectionNumber (); char IceConnectionNumber ();
int int
main (void) main (void)
{ {
IceConnectionNumber (); IceConnectionNumber ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9484: \"$ac_link\"") >&5 if { (eval echo "$as_me:9493: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9487: \$? = $ac_status" >&5 echo "$as_me:9496: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9490: \"$ac_try\"") >&5 { (eval echo "$as_me:9499: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9493: \$? = $ac_status" >&5 echo "$as_me:9502: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_ICE_IceConnectionNumber=yes ac_cv_lib_ICE_IceConnectionNumber=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_ICE_IceConnectionNumber=no ac_cv_lib_ICE_IceConnectionNumber=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9504: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 echo "$as_me:9513: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi fi
LDFLAGS=$ac_save_LDFLAGS LDFLAGS=$ac_save_LDFLAGS
fi fi
echo "$as_me:9514: checking for sys/wait.h that is POSIX.1 compatible" >&5 echo "$as_me:9523: checking for sys/wait.h that is POSIX.1 compatible" >&5
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
if test "${ac_cv_header_sys_wait_h+set}" = set; then if test "${ac_cv_header_sys_wait_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9520 "configure" #line 9529 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#ifndef WEXITSTATUS #ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif #endif
#ifndef WIFEXITED #ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif #endif
skipping to change at line 9542 skipping to change at line 9551
main (void) main (void)
{ {
int s; int s;
wait (&s); wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9542: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9551: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9545: \$? = $ac_status" >&5 echo "$as_me:9554: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:9548: \"$ac_try\"") >&5 { (eval echo "$as_me:9557: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9551: \$? = $ac_status" >&5 echo "$as_me:9560: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_header_sys_wait_h=yes ac_cv_header_sys_wait_h=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_sys_wait_h=no ac_cv_header_sys_wait_h=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:9561: result: $ac_cv_header_sys_wait_h" >&5 echo "$as_me:9570: result: $ac_cv_header_sys_wait_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
if test $ac_cv_header_sys_wait_h = yes; then if test $ac_cv_header_sys_wait_h = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1 #define HAVE_SYS_WAIT_H 1
EOF EOF
fi fi
echo "$as_me:9571: checking for POSIX wait functions" >&5 echo "$as_me:9580: checking for POSIX wait functions" >&5
echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
if test "${cf_cv_posix_wait+set}" = set; then if test "${cf_cv_posix_wait+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9578 "configure" #line 9587 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
int int
skipping to change at line 9603 skipping to change at line 9612
pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
pid_t pid2 = wait(&stat_loc); pid_t pid2 = wait(&stat_loc);
(void)pid; (void)pid;
(void)pid2; (void)pid2;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9603: \"$ac_link\"") >&5 if { (eval echo "$as_me:9612: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9606: \$? = $ac_status" >&5 echo "$as_me:9615: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9609: \"$ac_try\"") >&5 { (eval echo "$as_me:9618: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9612: \$? = $ac_status" >&5 echo "$as_me:9621: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_wait=yes cf_cv_posix_wait=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_wait=no cf_cv_posix_wait=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9623: result: $cf_cv_posix_wait" >&5 echo "$as_me:9632: result: $cf_cv_posix_wait" >&5
echo "${ECHO_T}$cf_cv_posix_wait" >&6 echo "${ECHO_T}$cf_cv_posix_wait" >&6
test "$cf_cv_posix_wait" = yes && test "$cf_cv_posix_wait" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_POSIX_WAIT 1 #define USE_POSIX_WAIT 1
EOF EOF
echo "$as_me:9630: checking if external sys_nerr is declared" >&5 echo "$as_me:9639: checking if external sys_nerr is declared" >&5
echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_sys_nerr+set}" = set; then if test "${cf_cv_dcl_sys_nerr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9637 "configure" #line 9646 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
int int
main (void) main (void)
{ {
int x = (int) sys_nerr; (void)x int x = (int) sys_nerr; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9655: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9664: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9658: \$? = $ac_status" >&5 echo "$as_me:9667: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:9661: \"$ac_try\"") >&5 { (eval echo "$as_me:9670: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9664: \$? = $ac_status" >&5 echo "$as_me:9673: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_dcl_sys_nerr=yes cf_cv_dcl_sys_nerr=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_dcl_sys_nerr=no cf_cv_dcl_sys_nerr=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:9675: result: $cf_cv_dcl_sys_nerr" >&5 echo "$as_me:9684: result: $cf_cv_dcl_sys_nerr" >&5
echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
if test "$cf_cv_dcl_sys_nerr" = no ; then if test "$cf_cv_dcl_sys_nerr" = no ; then
cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%` cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
# It's possible (for near-UNIX clones) that the data doesn't exist # It's possible (for near-UNIX clones) that the data doesn't exist
echo "$as_me:9690: checking if external sys_nerr exists" >&5 echo "$as_me:9699: checking if external sys_nerr exists" >&5
echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
if test "${cf_cv_have_sys_nerr+set}" = set; then if test "${cf_cv_have_sys_nerr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9697 "configure" #line 9706 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef sys_nerr #undef sys_nerr
extern int sys_nerr; extern int sys_nerr;
int int
main (void) main (void)
{ {
sys_nerr = 2 sys_nerr = 2
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9712: \"$ac_link\"") >&5 if { (eval echo "$as_me:9721: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9715: \$? = $ac_status" >&5 echo "$as_me:9724: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9718: \"$ac_try\"") >&5 { (eval echo "$as_me:9727: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9721: \$? = $ac_status" >&5 echo "$as_me:9730: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_sys_nerr=yes cf_cv_have_sys_nerr=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_sys_nerr=no cf_cv_have_sys_nerr=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9732: result: $cf_cv_have_sys_nerr" >&5 echo "$as_me:9741: result: $cf_cv_have_sys_nerr" >&5
echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
if test "$cf_cv_have_sys_nerr" = yes ; then if test "$cf_cv_have_sys_nerr" = yes ; then
cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%` cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
echo "$as_me:9745: checking if external sys_errlist is declared" >&5 echo "$as_me:9754: checking if external sys_errlist is declared" >&5
echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_sys_errlist+set}" = set; then if test "${cf_cv_dcl_sys_errlist+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9752 "configure" #line 9761 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
int int
main (void) main (void)
{ {
int x = (int) sys_errlist; (void)x int x = (int) sys_errlist; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9770: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9779: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9773: \$? = $ac_status" >&5 echo "$as_me:9782: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:9776: \"$ac_try\"") >&5 { (eval echo "$as_me:9785: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9779: \$? = $ac_status" >&5 echo "$as_me:9788: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_dcl_sys_errlist=yes cf_cv_dcl_sys_errlist=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_dcl_sys_errlist=no cf_cv_dcl_sys_errlist=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:9790: result: $cf_cv_dcl_sys_errlist" >&5 echo "$as_me:9799: result: $cf_cv_dcl_sys_errlist" >&5
echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
if test "$cf_cv_dcl_sys_errlist" = no ; then if test "$cf_cv_dcl_sys_errlist" = no ; then
cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFG HIJKLMNOPQRSTUVWXYZ___%` cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFG HIJKLMNOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
# It's possible (for near-UNIX clones) that the data doesn't exist # It's possible (for near-UNIX clones) that the data doesn't exist
echo "$as_me:9805: checking if external sys_errlist exists" >&5 echo "$as_me:9814: checking if external sys_errlist exists" >&5
echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
if test "${cf_cv_have_sys_errlist+set}" = set; then if test "${cf_cv_have_sys_errlist+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9812 "configure" #line 9821 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef sys_errlist #undef sys_errlist
extern int sys_errlist; extern int sys_errlist;
int int
main (void) main (void)
{ {
sys_errlist = 2 sys_errlist = 2
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9827: \"$ac_link\"") >&5 if { (eval echo "$as_me:9836: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9830: \$? = $ac_status" >&5 echo "$as_me:9839: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9833: \"$ac_try\"") >&5 { (eval echo "$as_me:9842: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9836: \$? = $ac_status" >&5 echo "$as_me:9845: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_sys_errlist=yes cf_cv_have_sys_errlist=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_sys_errlist=no cf_cv_have_sys_errlist=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9847: result: $cf_cv_have_sys_errlist" >&5 echo "$as_me:9856: result: $cf_cv_have_sys_errlist" >&5
echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
if test "$cf_cv_have_sys_errlist" = yes ; then if test "$cf_cv_have_sys_errlist" = yes ; then
cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFG HIJKLMNOPQRSTUVWXYZ___%` cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFG HIJKLMNOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
skipping to change at line 9883 skipping to change at line 9892
esac esac
done done
for ac_header in \ for ac_header in \
termios.h \ termios.h \
stdlib.h \ stdlib.h \
X11/Intrinsic.h \ X11/Intrinsic.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:9883: checking for $ac_header" >&5 echo "$as_me:9892: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9889 "configure" #line 9898 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:9893: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:9902: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:9899: \$? = $ac_status" >&5 echo "$as_me:9908: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:9918: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:9927: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:9928: checking if we should define SYSV" >&5 echo "$as_me:9937: checking if we should define SYSV" >&5
echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
if test "${cf_cv_sysv+set}" = set; then if test "${cf_cv_sysv+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9935 "configure" #line 9944 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef SYSV #undef SYSV
#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> /* look for wchar_t */ #include <stdlib.h> /* look for wchar_t */
#endif #endif
#ifdef HAVE_X11_INTRINSIC_H #ifdef HAVE_X11_INTRINSIC_H
#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
#endif #endif
skipping to change at line 9979 skipping to change at line 9988
d_tio.c_cc[VTIME] = 0; d_tio.c_cc[VTIME] = 0;
#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
sys_errlist[0] = ""; /* Cygwin mis-declares this */ sys_errlist[0] = ""; /* Cygwin mis-declares this */
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9979: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9988: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9982: \$? = $ac_status" >&5 echo "$as_me:9991: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:9985: \"$ac_try\"") >&5 { (eval echo "$as_me:9994: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9988: \$? = $ac_status" >&5 echo "$as_me:9997: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_sysv=yes cf_cv_sysv=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_sysv=no cf_cv_sysv=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:9999: result: $cf_cv_sysv" >&5 echo "$as_me:10008: result: $cf_cv_sysv" >&5
echo "${ECHO_T}$cf_cv_sysv" >&6 echo "${ECHO_T}$cf_cv_sysv" >&6
test "$cf_cv_sysv" = yes && test "$cf_cv_sysv" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define SYSV 1 #define SYSV 1
EOF EOF
LIBS="$cf_save_LIBS_CF_SYSV" LIBS="$cf_save_LIBS_CF_SYSV"
CFLAGS="$cf_save_CFLAGS_CF_SYSV" CFLAGS="$cf_save_CFLAGS_CF_SYSV"
CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV" CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV"
echo "$as_me:10010: checking for elf_begin in -lelf" >&5 echo "$as_me:10019: checking for elf_begin in -lelf" >&5
echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
if test "${ac_cv_lib_elf_elf_begin+set}" = set; then if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lelf $LIBS" LIBS="-lelf $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 10018 "configure" #line 10027 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char elf_begin (); char elf_begin ();
int int
main (void) main (void)
{ {
elf_begin (); elf_begin ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:10037: \"$ac_link\"") >&5 if { (eval echo "$as_me:10046: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:10040: \$? = $ac_status" >&5 echo "$as_me:10049: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:10043: \"$ac_try\"") >&5 { (eval echo "$as_me:10052: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:10046: \$? = $ac_status" >&5 echo "$as_me:10055: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_elf_elf_begin=yes ac_cv_lib_elf_elf_begin=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_elf_elf_begin=no ac_cv_lib_elf_elf_begin=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:10057: result: $ac_cv_lib_elf_elf_begin" >&5 echo "$as_me:10066: result: $ac_cv_lib_elf_elf_begin" >&5
echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
if test "$ac_cv_lib_elf_elf_begin" = yes; then if test "$ac_cv_lib_elf_elf_begin" = yes; then
echo "$as_me:10061: checking if this is an SVR4 system" >&5 echo "$as_me:10070: checking if this is an SVR4 system" >&5
echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
if test "${cf_cv_svr4+set}" = set; then if test "${cf_cv_svr4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 10068 "configure" #line 10077 "configure"
#include "confdefs.h" #include "confdefs.h"
#if defined(__CYGWIN__) #if defined(__CYGWIN__)
make an error make an error
#endif #endif
#include <elf.h> #include <elf.h>
#include <sys/termio.h> #include <sys/termio.h>
int int
main (void) main (void)
skipping to change at line 10097 skipping to change at line 10106
d_tio.c_cc[VEOL] = 0; d_tio.c_cc[VEOL] = 0;
d_tio.c_cc[VMIN] = 0; d_tio.c_cc[VMIN] = 0;
d_tio.c_cc[VTIME] = 0; d_tio.c_cc[VTIME] = 0;
d_tio.c_cc[VLNEXT] = 0; d_tio.c_cc[VLNEXT] = 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:10097: \"$ac_compile\"") >&5 if { (eval echo "$as_me:10106: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:10100: \$? = $ac_status" >&5 echo "$as_me:10109: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:10103: \"$ac_try\"") >&5 { (eval echo "$as_me:10112: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:10106: \$? = $ac_status" >&5 echo "$as_me:10115: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_svr4=yes cf_cv_svr4=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_svr4=no cf_cv_svr4=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:10117: result: $cf_cv_svr4" >&5 echo "$as_me:10126: result: $cf_cv_svr4" >&5
echo "${ECHO_T}$cf_cv_svr4" >&6 echo "${ECHO_T}$cf_cv_svr4" >&6
fi fi
test "$cf_cv_svr4" = yes && test "$cf_cv_svr4" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define SVR4 1 #define SVR4 1
EOF EOF
echo "$as_me:10127: checking if you want to use pkg-config" >&5 echo "$as_me:10136: checking if you want to use pkg-config" >&5
echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
# Check whether --with-pkg-config or --without-pkg-config was given. # Check whether --with-pkg-config or --without-pkg-config was given.
if test "${with_pkg_config+set}" = set; then if test "${with_pkg_config+set}" = set; then
withval="$with_pkg_config" withval="$with_pkg_config"
cf_pkg_config=$withval cf_pkg_config=$withval
else else
cf_pkg_config=yes cf_pkg_config=yes
fi; fi;
echo "$as_me:10137: result: $cf_pkg_config" >&5 echo "$as_me:10146: result: $cf_pkg_config" >&5
echo "${ECHO_T}$cf_pkg_config" >&6 echo "${ECHO_T}$cf_pkg_config" >&6
case "$cf_pkg_config" in case "$cf_pkg_config" in
(no) (no)
PKG_CONFIG=none PKG_CONFIG=none
;; ;;
(yes) (yes)
if test -n "$ac_tool_prefix"; then if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a prog ram name with args. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a prog ram name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
echo "$as_me:10149: checking for $ac_word" >&5 echo "$as_me:10158: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
case $PKG_CONFIG in case $PKG_CONFIG in
[\\/]* | ?:[\\/]*) [\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a pa th. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a pa th.
;; ;;
*) *)
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
echo "$as_me:10166: found $ac_dir/$ac_word" >&5 echo "$as_me:10175: found $ac_dir/$ac_word" >&5
break break
fi fi
done done
;; ;;
esac esac
fi fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG"; then
echo "$as_me:10177: result: $PKG_CONFIG" >&5 echo "$as_me:10186: result: $PKG_CONFIG" >&5
echo "${ECHO_T}$PKG_CONFIG" >&6 echo "${ECHO_T}$PKG_CONFIG" >&6
else else
echo "$as_me:10180: result: no" >&5 echo "$as_me:10189: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
fi fi
if test -z "$ac_cv_path_PKG_CONFIG"; then if test -z "$ac_cv_path_PKG_CONFIG"; then
ac_pt_PKG_CONFIG=$PKG_CONFIG ac_pt_PKG_CONFIG=$PKG_CONFIG
# Extract the first word of "pkg-config", so it can be a program name with arg s. # Extract the first word of "pkg-config", so it can be a program name with arg s.
set dummy pkg-config; ac_word=$2 set dummy pkg-config; ac_word=$2
echo "$as_me:10189: checking for $ac_word" >&5 echo "$as_me:10198: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
case $ac_pt_PKG_CONFIG in case $ac_pt_PKG_CONFIG in
[\\/]* | ?:[\\/]*) [\\/]* | ?:[\\/]*)
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the te st with a path. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the te st with a path.
;; ;;
*) *)
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
echo "$as_me:10206: found $ac_dir/$ac_word" >&5 echo "$as_me:10215: found $ac_dir/$ac_word" >&5
break break
fi fi
done done
test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
;; ;;
esac esac
fi fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then if test -n "$ac_pt_PKG_CONFIG"; then
echo "$as_me:10218: result: $ac_pt_PKG_CONFIG" >&5 echo "$as_me:10227: result: $ac_pt_PKG_CONFIG" >&5
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
else else
echo "$as_me:10221: result: no" >&5 echo "$as_me:10230: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
PKG_CONFIG=$ac_pt_PKG_CONFIG PKG_CONFIG=$ac_pt_PKG_CONFIG
else else
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi fi
;; ;;
(*) (*)
skipping to change at line 10264 skipping to change at line 10273
case ".$PKG_CONFIG" in case ".$PKG_CONFIG" in
(.NONE/*) (.NONE/*)
PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:10264: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 { { echo "$as_me:10273: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
elif test "x$cf_pkg_config" != xno ; then elif test "x$cf_pkg_config" != xno ; then
{ echo "$as_me:10271: WARNING: pkg-config is not installed" >&5 { echo "$as_me:10280: WARNING: pkg-config is not installed" >&5
echo "$as_me: WARNING: pkg-config is not installed" >&2;} echo "$as_me: WARNING: pkg-config is not installed" >&2;}
fi fi
# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
# in some cases has installed dummy files in the former, other cases replaced # in some cases has installed dummy files in the former, other cases replaced
# it with a link to the new location). This complicates the configure script. # it with a link to the new location). This complicates the configure script.
# Check for that pitfall, and recover using pkg-config # Check for that pitfall, and recover using pkg-config
# #
# If none of these are set, the configuration is almost certainly broken. # If none of these are set, the configuration is almost certainly broken.
if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
then then
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
test -n "$verbose" && echo " found package x11" 1>&6 test -n "$verbose" && echo " found package x11" 1>&6
echo "${as_me:-configure}:10287: testing found package x11 ..." 1>&5 echo "${as_me:-configure}:10296: testing found package x11 ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:10293: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:10302: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:10297: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:10306: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 10417 skipping to change at line 10426
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:10417: WARNING: unable to find X11 library" >&5 { echo "$as_me:10426: WARNING: unable to find X11 library" >&5
echo "$as_me: WARNING: unable to find X11 library" >&2;} echo "$as_me: WARNING: unable to find X11 library" >&2;}
fi fi
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
test -n "$verbose" && echo " found package ice" 1>&6 test -n "$verbose" && echo " found package ice" 1>&6
echo "${as_me:-configure}:10424: testing found package ice ..." 1>&5 echo "${as_me:-configure}:10433: testing found package ice ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:10430: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:10439: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:10434: testing package ice LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:10443: testing package ice LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 10554 skipping to change at line 10563
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:10554: WARNING: unable to find ICE library" >&5 { echo "$as_me:10563: WARNING: unable to find ICE library" >&5
echo "$as_me: WARNING: unable to find ICE library" >&2;} echo "$as_me: WARNING: unable to find ICE library" >&2;}
fi fi
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
test -n "$verbose" && echo " found package sm" 1>&6 test -n "$verbose" && echo " found package sm" 1>&6
echo "${as_me:-configure}:10561: testing found package sm ..." 1>&5 echo "${as_me:-configure}:10570: testing found package sm ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:10567: testing package sm CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:10576: testing package sm CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:10571: testing package sm LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:10580: testing package sm LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 10691 skipping to change at line 10700
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:10691: WARNING: unable to find SM library" >&5 { echo "$as_me:10700: WARNING: unable to find SM library" >&5
echo "$as_me: WARNING: unable to find SM library" >&2;} echo "$as_me: WARNING: unable to find SM library" >&2;}
fi fi
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
test -n "$verbose" && echo " found package xt" 1>&6 test -n "$verbose" && echo " found package xt" 1>&6
echo "${as_me:-configure}:10698: testing found package xt ..." 1>&5 echo "${as_me:-configure}:10707: testing found package xt ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:10704: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:10713: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:10708: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:10717: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 10828 skipping to change at line 10837
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:10828: WARNING: unable to find Xt library" >&5 { echo "$as_me:10837: WARNING: unable to find Xt library" >&5
echo "$as_me: WARNING: unable to find Xt library" >&2;} echo "$as_me: WARNING: unable to find Xt library" >&2;}
fi fi
else else
LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
fi fi
cf_have_X_LIBS=no cf_have_X_LIBS=no
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
test -n "$verbose" && echo " found package xt" 1>&6 test -n "$verbose" && echo " found package xt" 1>&6
echo "${as_me:-configure}:10841: testing found package xt ..." 1>&5 echo "${as_me:-configure}:10850: testing found package xt ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:10847: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:10856: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:10851: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:10860: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 10972 skipping to change at line 10981
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
case "x$LIBS" in case "x$LIBS" in
(*-lX11*) (*-lX11*)
;; ;;
(*) (*)
# we have an "xt" package, but it may omit Xt's dependency on X11 # we have an "xt" package, but it may omit Xt's dependency on X11
echo "$as_me:10972: checking for usable X dependency" >&5 echo "$as_me:10981: checking for usable X dependency" >&5
echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
if test "${cf_cv_xt_x11_compat+set}" = set; then if test "${cf_cv_xt_x11_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 10979 "configure" #line 10988 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Xlib.h> #include <X11/Xlib.h>
int int
main (void) main (void)
{ {
int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
int rc2 = XClearWindow((Display*) 0, (Window) 0); int rc2 = XClearWindow((Display*) 0, (Window) 0);
int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:10998: \"$ac_link\"") >&5 if { (eval echo "$as_me:11007: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11001: \$? = $ac_status" >&5 echo "$as_me:11010: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11004: \"$ac_try\"") >&5 { (eval echo "$as_me:11013: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11007: \$? = $ac_status" >&5 echo "$as_me:11016: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xt_x11_compat=yes cf_cv_xt_x11_compat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xt_x11_compat=no cf_cv_xt_x11_compat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:11017: result: $cf_cv_xt_x11_compat" >&5 echo "$as_me:11026: result: $cf_cv_xt_x11_compat" >&5
echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
if test "$cf_cv_xt_x11_compat" = no if test "$cf_cv_xt_x11_compat" = no
then then
test -n "$verbose" && echo " work around broken X11 de pendency" 1>&6 test -n "$verbose" && echo " work around broken X11 de pendency" 1>&6
echo "${as_me:-configure}:11023: testing work around broken X11 dependency ..." 1>&5 echo "${as_me:-configure}:11032: testing work around broken X11 dependency ..." 1>&5
# 2010/11/19 - good enough until a working Xt on Xcb is d elivered. # 2010/11/19 - good enough until a working Xt on Xcb is d elivered.
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
test -n "$verbose" && echo " found package x11" 1>&6 test -n "$verbose" && echo " found package x11" 1>&6
echo "${as_me:-configure}:11030: testing found package x11 ..." 1>&5 echo "${as_me:-configure}:11039: testing found package x11 ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:11036: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:11045: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:11040: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:11049: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 11163 skipping to change at line 11172
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
test -n "$verbose" && echo " ...before $LIBS" 1>&6 test -n "$verbose" && echo " ...before $LIBS" 1>&6
echo "${as_me:-configure}:11163: testing ...before $LIBS ..." 1>&5 echo "${as_me:-configure}:11172: testing ...before $LIBS ..." 1>&5
LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
test -n "$verbose" && echo " ...after $LIBS" 1>&6 test -n "$verbose" && echo " ...after $LIBS" 1>&6
echo "${as_me:-configure}:11168: testing ...after $LIBS ..." 1>&5 echo "${as_me:-configure}:11177: testing ...after $LIBS ..." 1>&5
fi fi
fi fi
;; ;;
esac esac
echo "$as_me:11176: checking for usable X Toolkit package" >&5 echo "$as_me:11185: checking for usable X Toolkit package" >&5
echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
if test "${cf_cv_xt_ice_compat+set}" = set; then if test "${cf_cv_xt_ice_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11183 "configure" #line 11192 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Shell.h> #include <X11/Shell.h>
int int
main (void) main (void)
{ {
int num = IceConnectionNumber(0); (void) num int num = IceConnectionNumber(0); (void) num
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:11198: \"$ac_link\"") >&5 if { (eval echo "$as_me:11207: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11201: \$? = $ac_status" >&5 echo "$as_me:11210: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11204: \"$ac_try\"") >&5 { (eval echo "$as_me:11213: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11207: \$? = $ac_status" >&5 echo "$as_me:11216: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xt_ice_compat=yes cf_cv_xt_ice_compat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xt_ice_compat=no cf_cv_xt_ice_compat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:11217: result: $cf_cv_xt_ice_compat" >&5 echo "$as_me:11226: result: $cf_cv_xt_ice_compat" >&5
echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
if test "$cf_cv_xt_ice_compat" = no if test "$cf_cv_xt_ice_compat" = no
then then
# workaround for broken ".pc" files used for X Toolkit. # workaround for broken ".pc" files used for X Toolkit.
case "x$X_PRE_LIBS" in case "x$X_PRE_LIBS" in
(*-lICE*) (*-lICE*)
case "x$LIBS" in case "x$LIBS" in
(*-lICE*) (*-lICE*)
;; ;;
(*) (*)
test -n "$verbose" && echo " work around broke n ICE dependency" 1>&6 test -n "$verbose" && echo " work around broke n ICE dependency" 1>&6
echo "${as_me:-configure}:11231: testing work around broken ICE dependency ..." 1>&5 echo "${as_me:-configure}:11240: testing work around broken ICE dependency ..." 1>&5
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
test -n "$verbose" && echo " found package ice" 1>&6 test -n "$verbose" && echo " found package ice" 1>&6
echo "${as_me:-configure}:11236: testing found package ice ..." 1>&5 echo "${as_me:-configure}:11245: testing found package ice ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:11242: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:11251: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:11246: testing package ice LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:11255: testing package ice LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 11365 skipping to change at line 11374
break break
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
test -n "$verbose" && echo " found package sm" 1>&6 test -n "$verbose" && echo " found package sm" 1>&6
echo "${as_me:-configure}:11365: testing found package sm ..." 1>&5 echo "${as_me:-configure}:11374: testing found package sm ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:11371: testing package sm CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:11380: testing package sm CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:11375: testing package sm LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:11384: testing package sm LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 11504 skipping to change at line 11513
cf_pkgconfig_libs= cf_pkgconfig_libs=
: :
fi fi
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
test -n "$verbose" && echo " ...before $LIBS" 1>&6 test -n "$verbose" && echo " ...before $LIBS" 1>&6
echo "${as_me:-configure}:11504: testing ...before $LIBS ..." 1>&5 echo "${as_me:-configure}:11513: testing ...before $LIBS ..." 1>&5
LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_L IBS %" -e 's% % %g'` LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_L IBS %" -e 's% % %g'`
test -n "$verbose" && echo " ...after $LIBS" 1>&6 test -n "$verbose" && echo " ...after $LIBS" 1>&6
echo "${as_me:-configure}:11509: testing ...after $LIBS ..." 1>&5 echo "${as_me:-configure}:11518: testing ...after $LIBS ..." 1>&5
fi fi
;; ;;
esac esac
;; ;;
esac esac
fi fi
cf_have_X_LIBS=yes cf_have_X_LIBS=yes
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
LDFLAGS="$X_LIBS $LDFLAGS" LDFLAGS="$X_LIBS $LDFLAGS"
test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
echo "${as_me:-configure}:11529: testing checking additions to CFLAGS ..." 1>&5 echo "${as_me:-configure}:11538: testing checking additions to CFLAGS ..." 1>&5
cf_check_cflags="$CFLAGS" cf_check_cflags="$CFLAGS"
cf_check_cppflags="$CPPFLAGS" cf_check_cppflags="$CPPFLAGS"
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $X_CFLAGS for cf_add_cflags in $X_CFLAGS
skipping to change at line 11614 skipping to change at line 11623
test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
&& test -z "${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \
&& cf_fix_cppflags=no && cf_fix_cppflags=no
;; ;;
esac esac
done done
if test -n "$cf_new_cflags" ; then if test -n "$cf_new_cflags" ; then
test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
echo "${as_me:-configure}:11614: testing add to \$CFLAGS $cf_new_cflags ..." 1>& 5 echo "${as_me:-configure}:11623: testing add to \$CFLAGS $cf_new_cflags ..." 1>& 5
test -n "$CFLAGS" && CFLAGS="$CFLAGS " test -n "$CFLAGS" && CFLAGS="$CFLAGS "
CFLAGS="${CFLAGS}$cf_new_cflags" CFLAGS="${CFLAGS}$cf_new_cflags"
fi fi
if test -n "$cf_new_cppflags" ; then if test -n "$cf_new_cppflags" ; then
test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
echo "${as_me:-configure}:11624: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 echo "${as_me:-configure}:11633: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
fi fi
if test -n "$cf_new_extra_cppflags" ; then if test -n "$cf_new_extra_cppflags" ; then
test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cpp flags" 1>&6 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cpp flags" 1>&6
echo "${as_me:-configure}:11634: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_c ppflags ..." 1>&5 echo "${as_me:-configure}:11643: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_c ppflags ..." 1>&5
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
if test "x$cf_check_cflags" != "x$CFLAGS" ; then if test "x$cf_check_cflags" != "x$CFLAGS" ; then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11643 "configure" #line 11652 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
int int
main (void) main (void)
{ {
printf("Hello world"); printf("Hello world");
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:11655: \"$ac_link\"") >&5 if { (eval echo "$as_me:11664: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11658: \$? = $ac_status" >&5 echo "$as_me:11667: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11661: \"$ac_try\"") >&5 { (eval echo "$as_me:11670: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11664: \$? = $ac_status" >&5 echo "$as_me:11673: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
echo "${as_me:-configure}:11672: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 echo "${as_me:-configure}:11681: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
echo "${as_me:-configure}:11677: testing but keeping change to \$CPPFLAGS ..." 1 >&5 echo "${as_me:-configure}:11686: testing but keeping change to \$CPPFLAGS ..." 1 >&5
fi fi
CFLAGS="$cf_check_cflags" CFLAGS="$cf_check_cflags"
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:11685: checking for XOpenDisplay" >&5 echo "$as_me:11694: checking for XOpenDisplay" >&5
echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
if test "${ac_cv_func_XOpenDisplay+set}" = set; then if test "${ac_cv_func_XOpenDisplay+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11691 "configure" #line 11700 "configure"
#include "confdefs.h" #include "confdefs.h"
#define XOpenDisplay autoconf_temporary #define XOpenDisplay autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef XOpenDisplay #undef XOpenDisplay
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 11722 skipping to change at line 11731
#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
#error found stub for XOpenDisplay #error found stub for XOpenDisplay
#endif #endif
return XOpenDisplay (); return XOpenDisplay ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:11722: \"$ac_link\"") >&5 if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11725: \$? = $ac_status" >&5 echo "$as_me:11734: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11728: \"$ac_try\"") >&5 { (eval echo "$as_me:11737: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11731: \$? = $ac_status" >&5 echo "$as_me:11740: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_XOpenDisplay=yes ac_cv_func_XOpenDisplay=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_XOpenDisplay=no ac_cv_func_XOpenDisplay=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:11741: result: $ac_cv_func_XOpenDisplay" >&5 echo "$as_me:11750: result: $ac_cv_func_XOpenDisplay" >&5
echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
if test "$ac_cv_func_XOpenDisplay" = yes; then if test "$ac_cv_func_XOpenDisplay" = yes; then
: :
else else
echo "$as_me:11747: checking for XOpenDisplay in -lX11" >&5 echo "$as_me:11756: checking for XOpenDisplay in -lX11" >&5
echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 $LIBS" LIBS="-lX11 $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11755 "configure" #line 11764 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XOpenDisplay (); char XOpenDisplay ();
int int
main (void) main (void)
{ {
XOpenDisplay (); XOpenDisplay ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:11774: \"$ac_link\"") >&5 if { (eval echo "$as_me:11783: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11777: \$? = $ac_status" >&5 echo "$as_me:11786: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11780: \"$ac_try\"") >&5 { (eval echo "$as_me:11789: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11783: \$? = $ac_status" >&5 echo "$as_me:11792: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_X11_XOpenDisplay=yes ac_cv_lib_X11_XOpenDisplay=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_X11_XOpenDisplay=no ac_cv_lib_X11_XOpenDisplay=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:11794: result: $ac_cv_lib_X11_XOpenDisplay" >&5 echo "$as_me:11803: result: $ac_cv_lib_X11_XOpenDisplay" >&5
echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
# filter duplicates # filter duplicates
for cf_add_1lib in $cf_add_0lib; do for cf_add_1lib in $cf_add_0lib; do
for cf_add_2lib in $cf_add_libs; do for cf_add_2lib in $cf_add_libs; do
skipping to change at line 11818 skipping to change at line 11827
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
fi fi
fi fi
echo "$as_me:11818: checking for XtAppInitialize" >&5 echo "$as_me:11827: checking for XtAppInitialize" >&5
echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
if test "${ac_cv_func_XtAppInitialize+set}" = set; then if test "${ac_cv_func_XtAppInitialize+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11824 "configure" #line 11833 "configure"
#include "confdefs.h" #include "confdefs.h"
#define XtAppInitialize autoconf_temporary #define XtAppInitialize autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef XtAppInitialize #undef XtAppInitialize
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 11855 skipping to change at line 11864
#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
#error found stub for XtAppInitialize #error found stub for XtAppInitialize
#endif #endif
return XtAppInitialize (); return XtAppInitialize ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:11855: \"$ac_link\"") >&5 if { (eval echo "$as_me:11864: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11858: \$? = $ac_status" >&5 echo "$as_me:11867: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11861: \"$ac_try\"") >&5 { (eval echo "$as_me:11870: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11864: \$? = $ac_status" >&5 echo "$as_me:11873: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_XtAppInitialize=yes ac_cv_func_XtAppInitialize=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_XtAppInitialize=no ac_cv_func_XtAppInitialize=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:11874: result: $ac_cv_func_XtAppInitialize" >&5 echo "$as_me:11883: result: $ac_cv_func_XtAppInitialize" >&5
echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
if test "$ac_cv_func_XtAppInitialize" = yes; then if test "$ac_cv_func_XtAppInitialize" = yes; then
: :
else else
echo "$as_me:11880: checking for XtAppInitialize in -lXt" >&5 echo "$as_me:11889: checking for XtAppInitialize in -lXt" >&5
echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lXt $LIBS" LIBS="-lXt $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11888 "configure" #line 11897 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XtAppInitialize (); char XtAppInitialize ();
int int
main (void) main (void)
{ {
XtAppInitialize (); XtAppInitialize ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:11907: \"$ac_link\"") >&5 if { (eval echo "$as_me:11916: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11910: \$? = $ac_status" >&5 echo "$as_me:11919: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:11913: \"$ac_try\"") >&5 { (eval echo "$as_me:11922: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:11916: \$? = $ac_status" >&5 echo "$as_me:11925: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_Xt_XtAppInitialize=yes ac_cv_lib_Xt_XtAppInitialize=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_Xt_XtAppInitialize=no ac_cv_lib_Xt_XtAppInitialize=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:11927: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 echo "$as_me:11936: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_LIBXT 1 #define HAVE_LIBXT 1
EOF EOF
cf_have_X_LIBS=Xt cf_have_X_LIBS=Xt
LIBS="-lXt $LIBS" LIBS="-lXt $LIBS"
fi fi
fi fi
fi fi
if test "$cf_have_X_LIBS" = no ; then if test "$cf_have_X_LIBS" = no ; then
{ echo "$as_me:11944: WARNING: Unable to successfully link X Toolkit libr ary (-lXt) with { echo "$as_me:11953: WARNING: Unable to successfully link X Toolkit libr ary (-lXt) with
test program. You will have to check and add the proper libraries by hand test program. You will have to check and add the proper libraries by hand
to makefile." >&5 to makefile." >&5
echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
test program. You will have to check and add the proper libraries by hand test program. You will have to check and add the proper libraries by hand
to makefile." >&2;} to makefile." >&2;}
fi fi
for ac_header in \ for ac_header in \
X11/DECkeysym.h \ X11/DECkeysym.h \
X11/Sunkeysym.h \ X11/Sunkeysym.h \
X11/XF86keysym.h \ X11/XF86keysym.h \
X11/XKBlib.h \ X11/XKBlib.h \
X11/TranslateI.h \ X11/TranslateI.h \
X11/Xpoll.h \ X11/Xpoll.h \
X11/extensions/XKB.h \ X11/extensions/XKB.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:11963: checking for $ac_header" >&5 echo "$as_me:11972: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 11969 "configure" #line 11978 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:11973: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:11982: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:11979: \$? = $ac_status" >&5 echo "$as_me:11988: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:11998: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:12007: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
ICON_SUFFIX=.xbm ICON_SUFFIX=.xbm
cf_save_cppflags="${CPPFLAGS}" cf_save_cppflags="${CPPFLAGS}"
cf_save_ldflags="${LDFLAGS}" cf_save_ldflags="${LDFLAGS}"
echo "$as_me:12013: checking if you want to use the Xpm library for colored icon " >&5 echo "$as_me:12022: checking if you want to use the Xpm library for colored icon " >&5
echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $E CHO_C" >&6 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $E CHO_C" >&6
# Check whether --with-xpm or --without-xpm was given. # Check whether --with-xpm or --without-xpm was given.
if test "${with_xpm+set}" = set; then if test "${with_xpm+set}" = set; then
withval="$with_xpm" withval="$with_xpm"
cf_Xpm_library="$withval" cf_Xpm_library="$withval"
else else
cf_Xpm_library=yes cf_Xpm_library=yes
fi; fi;
echo "$as_me:12023: result: $cf_Xpm_library" >&5 echo "$as_me:12032: result: $cf_Xpm_library" >&5
echo "${ECHO_T}$cf_Xpm_library" >&6 echo "${ECHO_T}$cf_Xpm_library" >&6
if test "$cf_Xpm_library" != no ; then if test "$cf_Xpm_library" != no ; then
if test "$cf_Xpm_library" != yes ; then if test "$cf_Xpm_library" != yes ; then
CPPFLAGS="$CPPFLAGS -I$withval/include" CPPFLAGS="$CPPFLAGS -I$withval/include"
LDFLAGS="$LDFLAGS -L$withval/lib" LDFLAGS="$LDFLAGS -L$withval/lib"
fi fi
echo "$as_me:12031: checking for X11/xpm.h" >&5 echo "$as_me:12040: checking for X11/xpm.h" >&5
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
if test "${ac_cv_header_X11_xpm_h+set}" = set; then if test "${ac_cv_header_X11_xpm_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 12037 "configure" #line 12046 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/xpm.h> #include <X11/xpm.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:12041: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:12050: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:12047: \$? = $ac_status" >&5 echo "$as_me:12056: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
ac_cv_header_X11_xpm_h=yes ac_cv_header_X11_xpm_h=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_X11_xpm_h=no ac_cv_header_X11_xpm_h=no
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:12066: result: $ac_cv_header_X11_xpm_h" >&5 echo "$as_me:12075: result: $ac_cv_header_X11_xpm_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
if test "$ac_cv_header_X11_xpm_h" = yes; then if test "$ac_cv_header_X11_xpm_h" = yes; then
echo "$as_me:12070: checking for XpmCreatePixmapFromData in -lXpm" >&5 echo "$as_me:12079: checking for XpmCreatePixmapFromData in -lXpm" >&5
echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lXpm -lX11 $X_LIBS $LIBS" LIBS="-lXpm -lX11 $X_LIBS $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 12078 "configure" #line 12087 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XpmCreatePixmapFromData (); char XpmCreatePixmapFromData ();
int int
main (void) main (void)
{ {
XpmCreatePixmapFromData (); XpmCreatePixmapFromData ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:12097: \"$ac_link\"") >&5 if { (eval echo "$as_me:12106: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:12100: \$? = $ac_status" >&5 echo "$as_me:12109: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:12103: \"$ac_try\"") >&5 { (eval echo "$as_me:12112: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:12106: \$? = $ac_status" >&5 echo "$as_me:12115: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_Xpm_XpmCreatePixmapFromData=no ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:12117: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 echo "$as_me:12126: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_LIBXPM 1 #define HAVE_LIBXPM 1
EOF EOF
ICON_SUFFIX=.xpm ICON_SUFFIX=.xpm
LIBS="-lXpm $LIBS" LIBS="-lXpm $LIBS"
else else
CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
fi fi
else else
CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
fi fi
fi fi
echo "$as_me:12137: checking if you want to use the Xinerama extension" >&5 echo "$as_me:12146: checking if you want to use the Xinerama extension" >&5
echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6
# Check whether --with-xinerama or --without-xinerama was given. # Check whether --with-xinerama or --without-xinerama was given.
if test "${with_xinerama+set}" = set; then if test "${with_xinerama+set}" = set; then
withval="$with_xinerama" withval="$with_xinerama"
cf_with_xinerama="$withval" cf_with_xinerama="$withval"
else else
cf_with_xinerama=yes cf_with_xinerama=yes
fi; fi;
echo "$as_me:12147: result: $cf_with_xinerama" >&5 echo "$as_me:12156: result: $cf_with_xinerama" >&5
echo "${ECHO_T}$cf_with_xinerama" >&6 echo "${ECHO_T}$cf_with_xinerama" >&6
if test "$cf_with_xinerama" = yes; then if test "$cf_with_xinerama" = yes; then
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then
test -n "$verbose" && echo " found package xinerama" 1>&6 test -n "$verbose" && echo " found package xinerama" 1>&6
echo "${as_me:-configure}:12154: testing found package xinerama ..." 1>&5 echo "${as_me:-configure}:12163: testing found package xinerama ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`"
test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_in cs" 1>&6 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_in cs" 1>&6
echo "${as_me:-configure}:12160: testing package xinerama CFLAGS: $cf_pkgconfig_ incs ..." 1>&5 echo "${as_me:-configure}:12169: testing package xinerama CFLAGS: $cf_pkgconfig_ incs ..." 1>&5
test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs " 1>&6 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs " 1>&6
echo "${as_me:-configure}:12164: testing package xinerama LIBS: $cf_pkgconfig_li bs ..." 1>&5 echo "${as_me:-configure}:12173: testing package xinerama LIBS: $cf_pkgconfig_li bs ..." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 12288 skipping to change at line 12297
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
EOF EOF
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
echo "$as_me:12288: checking for XineramaQueryScreens in -lXinerama" >&5 echo "$as_me:12297: checking for XineramaQueryScreens in -lXinerama" >&5
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lXinerama $LIBS" LIBS="-lXinerama $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 12296 "configure" #line 12305 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XineramaQueryScreens (); char XineramaQueryScreens ();
int int
main (void) main (void)
{ {
XineramaQueryScreens (); XineramaQueryScreens ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:12315: \"$ac_link\"") >&5 if { (eval echo "$as_me:12324: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:12318: \$? = $ac_status" >&5 echo "$as_me:12327: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:12321: \"$ac_try\"") >&5 { (eval echo "$as_me:12330: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:12324: \$? = $ac_status" >&5 echo "$as_me:12333: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_Xinerama_XineramaQueryScreens=yes ac_cv_lib_Xinerama_XineramaQueryScreens=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_Xinerama_XineramaQueryScreens=no ac_cv_lib_Xinerama_XineramaQueryScreens=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:12335: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 echo "$as_me:12344: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
# filter duplicates # filter duplicates
for cf_add_1lib in $cf_add_0lib; do for cf_add_1lib in $cf_add_0lib; do
for cf_add_2lib in $cf_add_libs; do for cf_add_2lib in $cf_add_libs; do
skipping to change at line 12360 skipping to change at line 12369
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
for ac_header in \ for ac_header in \
X11/extensions/Xinerama.h \ X11/extensions/Xinerama.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:12360: checking for $ac_header" >&5 echo "$as_me:12369: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 12366 "configure" #line 12375 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:12370: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:12379: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:12376: \$? = $ac_status" >&5 echo "$as_me:12385: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:12395: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:12404: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
fi fi
fi fi
fi fi
cf_x_athena=${cf_x_athena:-Xaw} cf_x_athena=${cf_x_athena:-Xaw}
echo "$as_me:12413: checking if you want to link with Xaw 3d library" >&5 echo "$as_me:12422: checking if you want to link with Xaw 3d library" >&5
echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
withval= withval=
# Check whether --with-Xaw3d or --without-Xaw3d was given. # Check whether --with-Xaw3d or --without-Xaw3d was given.
if test "${with_Xaw3d+set}" = set; then if test "${with_Xaw3d+set}" = set; then
withval="$with_Xaw3d" withval="$with_Xaw3d"
fi; fi;
if test "$withval" = yes ; then if test "$withval" = yes ; then
cf_x_athena=Xaw3d cf_x_athena=Xaw3d
echo "$as_me:12424: result: yes" >&5 echo "$as_me:12433: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
else else
echo "$as_me:12427: result: no" >&5 echo "$as_me:12436: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
echo "$as_me:12431: checking if you want to link with Xaw 3d xft library" >&5 echo "$as_me:12440: checking if you want to link with Xaw 3d xft library" >&5
echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" > &6 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" > &6
withval= withval=
# Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
if test "${with_Xaw3dxft+set}" = set; then if test "${with_Xaw3dxft+set}" = set; then
withval="$with_Xaw3dxft" withval="$with_Xaw3dxft"
fi; fi;
if test "$withval" = yes ; then if test "$withval" = yes ; then
cf_x_athena=Xaw3dxft cf_x_athena=Xaw3dxft
echo "$as_me:12442: result: yes" >&5 echo "$as_me:12451: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
else else
echo "$as_me:12445: result: no" >&5 echo "$as_me:12454: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
echo "$as_me:12449: checking if you want to link with neXT Athena library" >&5 echo "$as_me:12458: checking if you want to link with neXT Athena library" >&5
echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
withval= withval=
# Check whether --with-neXtaw or --without-neXtaw was given. # Check whether --with-neXtaw or --without-neXtaw was given.
if test "${with_neXtaw+set}" = set; then if test "${with_neXtaw+set}" = set; then
withval="$with_neXtaw" withval="$with_neXtaw"
fi; fi;
if test "$withval" = yes ; then if test "$withval" = yes ; then
cf_x_athena=neXtaw cf_x_athena=neXtaw
echo "$as_me:12460: result: yes" >&5 echo "$as_me:12469: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
else else
echo "$as_me:12463: result: no" >&5 echo "$as_me:12472: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
echo "$as_me:12467: checking if you want to link with Athena-Plus library" >&5 echo "$as_me:12476: checking if you want to link with Athena-Plus library" >&5
echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
withval= withval=
# Check whether --with-XawPlus or --without-XawPlus was given. # Check whether --with-XawPlus or --without-XawPlus was given.
if test "${with_XawPlus+set}" = set; then if test "${with_XawPlus+set}" = set; then
withval="$with_XawPlus" withval="$with_XawPlus"
fi; fi;
if test "$withval" = yes ; then if test "$withval" = yes ; then
cf_x_athena=XawPlus cf_x_athena=XawPlus
echo "$as_me:12478: result: yes" >&5 echo "$as_me:12487: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
else else
echo "$as_me:12481: result: no" >&5 echo "$as_me:12490: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
cf_x_athena_lib="" cf_x_athena_lib=""
if test "$PKG_CONFIG" != none ; then if test "$PKG_CONFIG" != none ; then
cf_athena_list= cf_athena_list=
test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
for cf_athena_pkg in \ for cf_athena_pkg in \
$cf_athena_list \ $cf_athena_list \
${cf_x_athena} \ ${cf_x_athena} \
${cf_x_athena}-devel \ ${cf_x_athena}-devel \
lib${cf_x_athena} \ lib${cf_x_athena} \
lib${cf_x_athena}-devel lib${cf_x_athena}-devel
do do
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
echo "${as_me:-configure}:12501: testing found package $cf_athena_pkg ..." 1>&5 echo "${as_me:-configure}:12510: testing found package $cf_athena_pkg ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`"
test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgcon fig_incs" 1>&6 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgcon fig_incs" 1>&6
echo "${as_me:-configure}:12507: testing package $cf_athena_pkg CFLAGS: $cf_pkgc onfig_incs ..." 1>&5 echo "${as_me:-configure}:12516: testing package $cf_athena_pkg CFLAGS: $cf_pkgc onfig_incs ..." 1>&5
test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfi g_libs" 1>&6 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfi g_libs" 1>&6
echo "${as_me:-configure}:12511: testing package $cf_athena_pkg LIBS: $cf_pkgcon fig_libs ..." 1>&5 echo "${as_me:-configure}:12520: testing package $cf_athena_pkg LIBS: $cf_pkgcon fig_libs ..." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 12642 skipping to change at line 12651
#define $cf_x_athena_LIBS 1 #define $cf_x_athena_LIBS 1
EOF EOF
for cf_trim_lib in Xmu Xt X11 for cf_trim_lib in Xmu Xt X11
do do
case "$LIBS" in case "$LIBS" in
(*-l$cf_trim_lib\ *-l$cf_trim_lib*) (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_tri m_lib"' %%' -e 's/ $//'` LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_tri m_lib"' %%' -e 's/ $//'`
test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
echo "${as_me:-configure}:12642: testing ..trimmed $LIBS ..." 1>&5 echo "${as_me:-configure}:12651: testing ..trimmed $LIBS ..." 1>&5
;; ;;
esac esac
done done
echo "$as_me:12648: checking for usable $cf_x_athena/Xmu package" >&5 echo "$as_me:12657: checking for usable $cf_x_athena/Xmu package" >&5
echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
if test "${cf_cv_xaw_compat+set}" = set; then if test "${cf_cv_xaw_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 12655 "configure" #line 12664 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Xmu/CharSet.h> #include <X11/Xmu/CharSet.h>
int int
main (void) main (void)
{ {
int check = XmuCompareISOLatin1("big", "small"); int check = XmuCompareISOLatin1("big", "small");
(void)check; (void)check;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:12672: \"$ac_link\"") >&5 if { (eval echo "$as_me:12681: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:12675: \$? = $ac_status" >&5 echo "$as_me:12684: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:12678: \"$ac_try\"") >&5 { (eval echo "$as_me:12687: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:12681: \$? = $ac_status" >&5 echo "$as_me:12690: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xaw_compat=yes cf_cv_xaw_compat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xaw_compat=no cf_cv_xaw_compat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:12691: result: $cf_cv_xaw_compat" >&5 echo "$as_me:12700: result: $cf_cv_xaw_compat" >&5
echo "${ECHO_T}$cf_cv_xaw_compat" >&6 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
if test "$cf_cv_xaw_compat" = no if test "$cf_cv_xaw_compat" = no
then then
# workaround for broken ".pc" files... # workaround for broken ".pc" files...
case "$cf_x_athena_lib" in case "$cf_x_athena_lib" in
(*-lXmu*) (*-lXmu*)
;; ;;
(*) (*)
test -n "$verbose" && echo " work arou nd broken package" 1>&6 test -n "$verbose" && echo " work arou nd broken package" 1>&6
echo "${as_me:-configure}:12703: testing work around broken package ..." 1>&5 echo "${as_me:-configure}:12712: testing work around broken package ..." 1>&5
cf_save_xmu="$LIBS" cf_save_xmu="$LIBS"
cf_first_lib=`echo "$cf_save_xmu" | sed - e 's/^ *//' -e 's/ .*//'` cf_first_lib=`echo "$cf_save_xmu" | sed - e 's/^ *//' -e 's/ .*//'`
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
test -n "$verbose" && echo " found package xmu" 1>&6 test -n "$verbose" && echo " found package xmu" 1>&6
echo "${as_me:-configure}:12711: testing found package xmu ..." 1>&5 echo "${as_me:-configure}:12720: testing found package xmu ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`"
test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:12717: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:12726: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:12721: testing package xmu LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:12730: testing package xmu LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 12841 skipping to change at line 12850
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
LIBS="$cf_save_xmu" LIBS="$cf_save_xmu"
test -n "$verbose" && echo " ...before $LIBS" 1>&6 test -n "$verbose" && echo " ...before $LIBS" 1>&6
echo "${as_me:-configure}:12841: testing ...before $LIBS ..." 1>&5 echo "${as_me:-configure}:12850: testing ...before $LIBS ..." 1>&5
LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_ first_lib $cf_pkgconfig_libs %" -e 's% % %g'` LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_ first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
test -n "$verbose" && echo " ...after $LIBS" 1>&6 test -n "$verbose" && echo " ...after $LIBS" 1>&6
echo "${as_me:-configure}:12846: testing ...after $LIBS ..." 1>&5 echo "${as_me:-configure}:12855: testing ...after $LIBS ..." 1>&5
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
test -n "$verbose" && echo " ...before $LIBS" 1>&6 test -n "$verbose" && echo " ...before $LIBS" 1>&6
echo "${as_me:-configure}:12854: testing ...before $LIBS ..." 1>&5 echo "${as_me:-configure}:12863: testing ...before $LIBS ..." 1>&5
LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_ first_lib -lXmu %" -e 's% % %g'` LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_ first_lib -lXmu %" -e 's% % %g'`
test -n "$verbose" && echo " ...after $LIBS" 1>&6 test -n "$verbose" && echo " ...after $LIBS" 1>&6
echo "${as_me:-configure}:12859: testing ...after $LIBS ..." 1>&5 echo "${as_me:-configure}:12868: testing ...after $LIBS ..." 1>&5
fi fi
for cf_trim_lib in Xmu Xt X11 for cf_trim_lib in Xmu Xt X11
do do
case "$LIBS" in case "$LIBS" in
(*-l$cf_trim_lib\ *-l$cf_trim_lib*) (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_tri m_lib"' %%' -e 's/ $//'` LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_tri m_lib"' %%' -e 's/ $//'`
test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
echo "${as_me:-configure}:12870: testing ..trimmed $LIBS ..." 1>&5 echo "${as_me:-configure}:12879: testing ..trimmed $LIBS ..." 1>&5
;; ;;
esac esac
done done
;; ;;
esac esac
fi fi
break break
skipping to change at line 12895 skipping to change at line 12904
fi fi
done done
fi fi
if test -z "$cf_x_athena_lib" ; then if test -z "$cf_x_athena_lib" ; then
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
test -n "$verbose" && echo " found package Xext" 1>&6 test -n "$verbose" && echo " found package Xext" 1>&6
echo "${as_me:-configure}:12895: testing found package Xext ..." 1>&5 echo "${as_me:-configure}:12904: testing found package Xext ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
echo "${as_me:-configure}:12901: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:12910: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1> &6 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1> &6
echo "${as_me:-configure}:12905: testing package Xext LIBS: $cf_pkgconfig_libs . .." 1>&5 echo "${as_me:-configure}:12914: testing package Xext LIBS: $cf_pkgconfig_libs . .." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 13026 skipping to change at line 13035
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
echo "$as_me:13026: checking for XextCreateExtension in -lXext" >&5 echo "$as_me:13035: checking for XextCreateExtension in -lXext" >&5
echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lXext $LIBS" LIBS="-lXext $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 13034 "configure" #line 13043 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XextCreateExtension (); char XextCreateExtension ();
int int
main (void) main (void)
{ {
XextCreateExtension (); XextCreateExtension ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:13053: \"$ac_link\"") >&5 if { (eval echo "$as_me:13062: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:13056: \$? = $ac_status" >&5 echo "$as_me:13065: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:13059: \"$ac_try\"") >&5 { (eval echo "$as_me:13068: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:13062: \$? = $ac_status" >&5 echo "$as_me:13071: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_Xext_XextCreateExtension=yes ac_cv_lib_Xext_XextCreateExtension=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_Xext_XextCreateExtension=no ac_cv_lib_Xext_XextCreateExtension=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:13073: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 echo "$as_me:13082: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
# filter duplicates # filter duplicates
for cf_add_1lib in $cf_add_0lib; do for cf_add_1lib in $cf_add_0lib; do
for cf_add_2lib in $cf_add_libs; do for cf_add_2lib in $cf_add_libs; do
skipping to change at line 13109 skipping to change at line 13118
# it with a link to the new location). This complicates the configure script. # it with a link to the new location). This complicates the configure script.
# Check for that pitfall, and recover using pkg-config # Check for that pitfall, and recover using pkg-config
# #
# If none of these are set, the configuration is almost certainly broken. # If none of these are set, the configuration is almost certainly broken.
if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
then then
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
test -n "$verbose" && echo " found package x11" 1>&6 test -n "$verbose" && echo " found package x11" 1>&6
echo "${as_me:-configure}:13109: testing found package x11 ..." 1>&5 echo "${as_me:-configure}:13118: testing found package x11 ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:13115: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:13124: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:13119: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:13128: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 13239 skipping to change at line 13248
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:13239: WARNING: unable to find X11 library" >&5 { echo "$as_me:13248: WARNING: unable to find X11 library" >&5
echo "$as_me: WARNING: unable to find X11 library" >&2;} echo "$as_me: WARNING: unable to find X11 library" >&2;}
fi fi
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
test -n "$verbose" && echo " found package ice" 1>&6 test -n "$verbose" && echo " found package ice" 1>&6
echo "${as_me:-configure}:13246: testing found package ice ..." 1>&5 echo "${as_me:-configure}:13255: testing found package ice ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:13252: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:13261: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:13256: testing package ice LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:13265: testing package ice LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 13376 skipping to change at line 13385
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:13376: WARNING: unable to find ICE library" >&5 { echo "$as_me:13385: WARNING: unable to find ICE library" >&5
echo "$as_me: WARNING: unable to find ICE library" >&2;} echo "$as_me: WARNING: unable to find ICE library" >&2;}
fi fi
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
test -n "$verbose" && echo " found package sm" 1>&6 test -n "$verbose" && echo " found package sm" 1>&6
echo "${as_me:-configure}:13383: testing found package sm ..." 1>&5 echo "${as_me:-configure}:13392: testing found package sm ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:13389: testing package sm CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:13398: testing package sm CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:13393: testing package sm LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:13402: testing package sm LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 13513 skipping to change at line 13522
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:13513: WARNING: unable to find SM library" >&5 { echo "$as_me:13522: WARNING: unable to find SM library" >&5
echo "$as_me: WARNING: unable to find SM library" >&2;} echo "$as_me: WARNING: unable to find SM library" >&2;}
fi fi
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
test -n "$verbose" && echo " found package xt" 1>&6 test -n "$verbose" && echo " found package xt" 1>&6
echo "${as_me:-configure}:13520: testing found package xt ..." 1>&5 echo "${as_me:-configure}:13529: testing found package xt ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:13526: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:13535: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:13530: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:13539: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 13650 skipping to change at line 13659
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
: :
else else
cf_pkgconfig_incs= cf_pkgconfig_incs=
cf_pkgconfig_libs= cf_pkgconfig_libs=
{ echo "$as_me:13650: WARNING: unable to find Xt library" >&5 { echo "$as_me:13659: WARNING: unable to find Xt library" >&5
echo "$as_me: WARNING: unable to find Xt library" >&2;} echo "$as_me: WARNING: unable to find Xt library" >&2;}
fi fi
else else
LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
fi fi
cf_have_X_LIBS=no cf_have_X_LIBS=no
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
test -n "$verbose" && echo " found package xt" 1>&6 test -n "$verbose" && echo " found package xt" 1>&6
echo "${as_me:-configure}:13663: testing found package xt ..." 1>&5 echo "${as_me:-configure}:13672: testing found package xt ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1> &6
echo "${as_me:-configure}:13669: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5 echo "${as_me:-configure}:13678: testing package xt CFLAGS: $cf_pkgconfig_incs . .." 1>&5
test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
echo "${as_me:-configure}:13673: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5 echo "${as_me:-configure}:13682: testing package xt LIBS: $cf_pkgconfig_libs ... " 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $cf_pkgconfig_incs for cf_add_cflags in $cf_pkgconfig_incs
do do
case "$cf_fix_cppflags" in case "$cf_fix_cppflags" in
(no) (no)
skipping to change at line 13794 skipping to change at line 13803
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
case "x$LIBS" in case "x$LIBS" in
(*-lX11*) (*-lX11*)
;; ;;
(*) (*)
# we have an "xt" package, but it may omit Xt's dependency on X11 # we have an "xt" package, but it may omit Xt's dependency on X11
echo "$as_me:13794: checking for usable X dependency" >&5 echo "$as_me:13803: checking for usable X dependency" >&5
echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
if test "${cf_cv_xt_x11_compat+set}" = set; then if test "${cf_cv_xt_x11_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 13801 "configure" #line 13810 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Xlib.h> #include <X11/Xlib.h>
int int
main (void) main (void)
{ {
int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
int rc2 = XClearWindow((Display*) 0, (Window) 0); int rc2 = XClearWindow((Display*) 0, (Window) 0);
int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:13820: \"$ac_link\"") >&5 if { (eval echo "$as_me:13829: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:13823: \$? = $ac_status" >&5 echo "$as_me:13832: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:13826: \"$ac_try\"") >&5 { (eval echo "$as_me:13835: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:13829: \$? = $ac_status" >&5 echo "$as_me:13838: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xt_x11_compat=yes cf_cv_xt_x11_compat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xt_x11_compat=no cf_cv_xt_x11_compat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:13839: result: $cf_cv_xt_x11_compat" >&5 echo "$as_me:13848: result: $cf_cv_xt_x11_compat" >&5
echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
if test "$cf_cv_xt_x11_compat" = no if test "$cf_cv_xt_x11_compat" = no
then then
test -n "$verbose" && echo " work around broken X11 de pendency" 1>&6 test -n "$verbose" && echo " work around broken X11 de pendency" 1>&6
echo "${as_me:-configure}:13845: testing work around broken X11 dependency ..." 1>&5 echo "${as_me:-configure}:13854: testing work around broken X11 dependency ..." 1>&5
# 2010/11/19 - good enough until a working Xt on Xcb is d elivered. # 2010/11/19 - good enough until a working Xt on Xcb is d elivered.
if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
test -n "$verbose" && echo " found package x11" 1>&6 test -n "$verbose" && echo " found package x11" 1>&6
echo "${as_me:-configure}:13852: testing found package x11 ..." 1>&5 echo "${as_me:-configure}:13861: testing found package x11 ..." 1>&5
cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1 >&6
echo "${as_me:-configure}:13858: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 echo "${as_me:-configure}:13867: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>& 6
echo "${as_me:-configure}:13862: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5 echo "${as_me:-configure}:13871: testing package x11 LIBS: $cf_pkgconfig_libs .. ." 1>&5
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
c