aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-03-03 06:34:42 +0800
committerTom Tromey <tromey@src.gnome.org>1998-03-03 06:34:42 +0800
commitc8ee176b4cedecc774afd0500e76099395f2b91c (patch)
tree5004d95f2273afb3e0b477a7bd4d634c383403bc /macros
parent5dcf5150564b8c6be67c90388c0210f22c6817bc (diff)
downloadgsoc2013-evolution-c8ee176b4cedecc774afd0500e76099395f2b91c.tar.gz
gsoc2013-evolution-c8ee176b4cedecc774afd0500e76099395f2b91c.tar.zst
gsoc2013-evolution-c8ee176b4cedecc774afd0500e76099395f2b91c.zip
Also check for SMlib.h; some Solaris systems have -lSM but not SMlib.h.
Mon Mar 2 15:27:44 1998 Tom Tromey <tromey@cygnus.com> * gnome-x-checks.m4 (GNOME_X_CHECKS): Also check for SMlib.h; some Solaris systems have -lSM but not SMlib.h. svn path=/trunk/; revision=57
Diffstat (limited to 'macros')
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/gnome-x-checks.m417
2 files changed, 18 insertions, 4 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index ea227b34a5..e4ded3d763 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+Mon Mar 2 15:27:44 1998 Tom Tromey <tromey@cygnus.com>
+
+ * gnome-x-checks.m4 (GNOME_X_CHECKS): Also check for SMlib.h; some
+ Solaris systems have -lSM but not SMlib.h.
+
Sun Mar 1 17:49:42 1998 Tom Tromey <tromey@cygnus.com>
* gnome.m4 (GNOME_INIT): Changed spacing so --help output looks
diff --git a/macros/gnome-x-checks.m4 b/macros/gnome-x-checks.m4
index 2af8add65a..d5df4ea384 100644
--- a/macros/gnome-x-checks.m4
+++ b/macros/gnome-x-checks.m4
@@ -7,7 +7,10 @@ dnl X_{CFLAGS,LIBS} From AC_PATH_XTRA
dnl X_{PRE,EXTRA}_LIBS - do -
dnl x_libs Essentially $X_PRE_LIBS -lX11 -Xext $X_EXTRA_LIBS
dnl CPPFLAGS Will include $X_CFLAGS
-dnl GNOME_HAVE_SM `true' or `false' depending of if -lSM is present
+dnl GNOME_HAVE_SM `true' or `false' depending on whether session
+dnl management is available. It is available if
+dnl both -lSM and X11/SM/SMlib.h exist. (Some
+dnl Solaris boxes have the library but not the header)
dnl
dnl The following configure cache variables are defined (but not used):
dnl gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS}
@@ -51,17 +54,23 @@ AC_DEFUN([GNOME_X_CHECKS],
case "$x_libs" in
*-lSM*)
dnl Already found it.
- AC_DEFINE(HAVE_LIBSM)
;;
*)
dnl Assume that if we have -lSM then we also have -lICE.
AC_CHECK_LIB(SM, SmcSaveYourselfDone,
- [AC_DEFINE(HAVE_LIBSM)
- x_libs="$x_libs -lSM -lICE"],GNOME_HAVE_SM=false,
+ [x_libs="$x_libs -lSM -lICE"],GNOME_HAVE_SM=false,
$x_libs -lICE)
;;
esac
+ if test "$GNOME_HAVE_SM" = true; then
+ AC_CHECK_HEADERS(X11/SM/SMlib.h,,GNOME_HAVE_SM=false)
+ fi
+
+ if test "$GNOME_HAVE_SM" = true; then
+ AC_DEFINE(HAVE_LIBSM)
+ fi
+
AC_CHECK_LIB(gtk, gdk_pixmap_unref,
GTK_LIBS="-lgtk -lgdk -lglib -lm",
[AC_MSG_ERROR(Can not find a Gtk 0.99.1, probably you have an older version?)],