From 0afb34b0c15bb7ed37fb20c2dbee5e93ca6b289e Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 11 Nov 1998 20:25:54 +0000 Subject: [PATCH] Fixed Xauth check; don't rely upon a $window_system variable to be set and use correct X_CFLAGS in the check for the X11/Xauth.h header file. --- configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 23ca64cd..8e351a49 100644 --- a/configure.in +++ b/configure.in @@ -207,7 +207,8 @@ $1="$T" dnl Autodetect Xauth dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs -test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no +saved_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $X_CFLAGS" test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) } test -z "$with_xauth" && { AC_CHECK_LIB(Xau, XauGetAuthByAddr,[:],with_xauth=no, $X_LIBS) } test -z "$with_xauth" && with_xauth=yes @@ -215,6 +216,7 @@ if test "$with_xauth" = "yes"; then AC_DEFINE(HAVE_XAUTH) XE_SPACE(libs_xauth, $X_LIBS -lXau) fi +CPPFLAGS="$saved_CPPFLAGS" AC_SUBST(libs_xauth) dnl For diskusage stuff