Commit 6ccd092e authored by Niels Möller's avatar Niels Möller

(AC_PATH_X): Check not only $no_x, also check if

$x_includes and $x_libraries are empty before adding new flags.

Rev: configure.ac:1.24
parent 9d4ebcb5
......@@ -404,12 +404,17 @@ fi
# X11 stuff. We only need libXau.
# FIXME: Use AC_PATH_XTRA instead?
AC_PATH_X
if test -z "$no_x" ; then
if test -n "$x_includes"" ; then
CPPFLAGS="$CPPFLAGS -I$x_includes"
fi
if test -n "$x_libraries"" ; then
LDFLAGS="$LDFLAGS -L$x_libraries"
LSH_RPATH_ADD($x_libraries)
fi
fi
AC_CHECK_HEADERS(X11/Xauth.h)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment