aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-x-checks.m4
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-02-14 16:21:12 +0800
committerTom Tromey <tromey@src.gnome.org>1998-02-14 16:21:12 +0800
commite8169294d967f86e3ef7503e1f7b1d8579cc8b52 (patch)
tree7e99dc81e908bd0e12cd8f6088a5f1e5b2f50d01 /macros/gnome-x-checks.m4
parentcdd17595d71e31a5649615b4677db02b623bb95d (diff)
downloadgsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.tar
gsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.tar.gz
gsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.tar.bz2
gsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.tar.lz
gsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.tar.xz
gsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.tar.zst
gsoc2013-evolution-e8169294d967f86e3ef7503e1f7b1d8579cc8b52.zip
Only check for -lSM if not already in x_libs.
Sat Feb 14 01:09:37 1998 Tom Tromey <tromey@cygnus.com> * gnome-x-checks.m4: Only check for -lSM if not already in x_libs. svn path=/trunk/; revision=30
Diffstat (limited to 'macros/gnome-x-checks.m4')
-rw-r--r--macros/gnome-x-checks.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/macros/gnome-x-checks.m4 b/macros/gnome-x-checks.m4
index 4ffe519fe9..fef8a8fec8 100644
--- a/macros/gnome-x-checks.m4
+++ b/macros/gnome-x-checks.m4
@@ -29,12 +29,19 @@ AC_DEFUN([GNOME_X_CHECKS],
LDFLAGS="$saved_ldflags $X_LDFLAGS $X_LIBS"
dnl Assume that if we have -lSM then we also have -lICE.
- AC_CHECK_LIB(SM, SmcSaveYourselfDone,
+ case "$x_libs" in
+ *-lSM*)
+ # Already found it.
+ ;;
+ *)
+ AC_CHECK_LIB(SM, SmcSaveYourselfDone,
[AC_DEFINE(HAVE_LIBSM)
x_libs="$x_libs -lSM -lICE"], ,
$x_libs -lICE)
AM_CONDITIONAL(ENABLE_GSM,
test "x$ac_cv_lib_SM_SmcSaveYourselfDone" = "xyes")
+ ;;
+ esac
AC_CHECK_LIB(gtk, gdk_pixmap_unref,
GTK_LIBS="-lgtk -lgdk -lglib -lm",