diff --git a/configure.ac b/configure.ac index bbdda0f2..6d2370f7 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 cd85e5bc..5cb2d1a4 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 747fc88b..8967f9af 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