aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Baulig <baulig@merkur.uni-trier.de>1998-09-09 20:23:22 +0800
committerMartin Baulig <martin@src.gnome.org>1998-09-09 20:23:22 +0800
commit83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42 (patch)
treec993dc0259482875f71fa885b8e9c967affadb31
parentf69617a3d90ac64aaa0cdfeaffea83bf59f35f7f (diff)
downloadgsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.tar
gsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.tar.gz
gsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.tar.bz2
gsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.tar.lz
gsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.tar.xz
gsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.tar.zst
gsoc2013-evolution-83fe9208ccf2bfd4d5eaaf8b69c8b0df20700f42.zip
Added check for SMP support. (--with-libgtop-smp): New parameter, default
1998-09-09 Martin Baulig <baulig@merkur.uni-trier.de> * gnome-libgtop-sysdeps.m4: Added check for SMP support. (--with-libgtop-smp): New parameter, default is to enable it only if you're running configure on a SMP system. Added (AC_DEFINE): `HAVE_LIBGTOP_SMP' if enabled. (LIBGTOP_SMP): New automake conditional. svn path=/trunk/; revision=369
-rw-r--r--macros/ChangeLog8
-rw-r--r--macros/gnome-libgtop-sysdeps.m429
2 files changed, 37 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index e43cd36cf8..ceeac81a19 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,11 @@
+1998-09-09 Martin Baulig <baulig@merkur.uni-trier.de>
+
+ * gnome-libgtop-sysdeps.m4: Added check for SMP support.
+ (--with-libgtop-smp): New parameter, default is to enable
+ it only if you're running configure on a SMP system.
+ Added (AC_DEFINE): `HAVE_LIBGTOP_SMP' if enabled.
+ (LIBGTOP_SMP): New automake conditional.
+
1998-09-02 Raja R Harinath <harinath@cs.umn.edu>
* gnome-support.m4: Remove check for `canonicalize_file_name'.
diff --git a/macros/gnome-libgtop-sysdeps.m4 b/macros/gnome-libgtop-sysdeps.m4
index a3b8b413b1..1320f0cf5c 100644
--- a/macros/gnome-libgtop-sysdeps.m4
+++ b/macros/gnome-libgtop-sysdeps.m4
@@ -66,6 +66,35 @@ main (void)
AM_CONDITIONAL(LINUX_TABLE, test $linux_table = yes)
+ AC_ARG_WITH(libgtop-smp,
+ [ --with-libgtop-smp Enable SMP support (default-auto)],[
+ libgtop_smp="$withval"],[libgtop_smp=auto])
+
+ if test $libgtop_smp = auto ; then
+ AC_MSG_CHECKING(whether to enable SMP support)
+ AC_TRY_RUN([
+#include <sys/utsname.h>
+#include <string.h>
+
+int
+main (void)
+{
+ struct utsname name;
+
+ if (uname (&name)) exit (1);
+
+ exit (strstr (name.version, "SMP") ? 0 : 1);
+}
+], libgtop_smp=yes, libgtop_smp=no, libgtop_smp=no)
+ AC_MSG_RESULT($libgtop_smp)
+ fi
+
+ if test $libgtop_smp = yes ; then
+ AC_DEFINE(HAVE_LIBGTOP_SMP)
+ fi
+
+ AM_CONDITIONAL(LIBGTOP_SMP, test $libgtop_smp = yes)
+
AC_MSG_CHECKING(for libgtop sysdeps directory)
case "$host_os" in