[libgtop] Drop --with-libgtop-smp. No code uses this switch.



commit aa7f9df00eace40efcb5b2f7e8fb2f5f4ce5d43b
Author: Benoît Dejean <bdejean gmail com>
Date:   Thu Mar 5 23:43:29 2015 +0100

    Drop --with-libgtop-smp.
    No code uses this switch.

 configure.ac       |    4 ----
 examples/second.c  |    4 ----
 libgtop-sysdeps.m4 |   27 ---------------------------
 3 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bbdda0f..6d2370f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -278,10 +278,6 @@ if test x$libgtop_use_machine_h = xyes ; then
   LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
 fi
 
-if test x$libgtop_smp = xyes ; then
-  LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SMP"
-fi
-
 if test x$libgtop_have_sysinfo = xyes ; then
   LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
 fi
diff --git a/examples/second.c b/examples/second.c
index cd85e5b..5cb2d1a 100644
--- a/examples/second.c
+++ b/examples/second.c
@@ -42,14 +42,12 @@ output (pid_t pid)
        char *args;
        unsigned i;
 
-#if HAVE_LIBGTOP_SMP
        unsigned long total;
        double p_total, p_utime, p_stime;
        double b_total, b_utime, b_stime;
        double s_total, s_utime, s_stime;
        double my_utime, my_stime;
        unsigned int ncpu;
-#endif
 
        printf ("\n");
 
@@ -158,7 +156,6 @@ output (pid_t pid)
 
        printf ("\n");
 
-#if HAVE_LIBGTOP_SMP
        ncpu = glibtop_global_server->ncpu;
 
        glibtop_get_proc_time (&data.proc_time, pid);
@@ -231,7 +228,6 @@ output (pid_t pid)
                s_utime * 100.0 / my_utime, s_stime * 100.0 / my_stime);
 
        printf ("\n");
-#endif
 }
 
 int
diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4
index 747fc88..8967f9a 100644
--- a/libgtop-sysdeps.m4
+++ b/libgtop-sysdeps.m4
@@ -31,33 +31,6 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
 
        AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
 
-       AC_ARG_WITH(libgtop-smp,
-       AS_HELP_STRING([--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)
-         case "$host_os" in
-         linux*)
-           libgtop_smp=yes
-           ;;
-         aix*)
-           libgtop_smp=yes
-           ;;
-         *)
-           libgtop_smp=no
-           ;;
-         esac
-         AC_MSG_RESULT($libgtop_smp)
-       fi
-
-       if test $libgtop_smp = yes ; then
-         AC_DEFINE(HAVE_LIBGTOP_SMP, 1, [Define if libgtop supports SMP])
-       fi
-
-       AM_CONDITIONAL(LIBGTOP_SMP, test $libgtop_smp = yes)
-
        AC_MSG_CHECKING(for libgtop sysdeps directory)
 
        case "$host_os" in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]