mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
Added test for X Session Management (HAVE_X_SM).
This commit is contained in:
parent
d873ec96b5
commit
f21fadcce4
15
configure.in
15
configure.in
@ -1935,6 +1935,21 @@ if test "${HAVE_X11}" = "yes"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
### Use session management (-lSM -lICE) if available
|
||||
HAVE_X_SM=no
|
||||
if test "${HAVE_X11}" = "yes"; then
|
||||
AC_CHECK_HEADER(X11/SM/SMlib.h,
|
||||
AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, -lICE))
|
||||
|
||||
if test "${HAVE_X_SM}" = "yes"; then
|
||||
AC_DEFINE(HAVE_X_SM)
|
||||
case "$LIBS" in
|
||||
*-lSM*) ;;
|
||||
*) LIBS="-lSM -lICE $LIBS" ;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
# If netdb.h doesn't declare h_errno, we must declare it by hand.
|
||||
AC_CACHE_CHECK(whether netdb declares h_errno,
|
||||
emacs_cv_netdb_declares_h_errno,
|
||||
|
Loading…
Reference in New Issue
Block a user