Drop --with-libgtop-smp.
No code uses this switch.
This commit is contained in:
@@ -278,10 +278,6 @@ if test x$libgtop_use_machine_h = xyes ; then
|
|||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
|
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$libgtop_smp = xyes ; then
|
|
||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SMP"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$libgtop_have_sysinfo = xyes ; then
|
if test x$libgtop_have_sysinfo = xyes ; then
|
||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
|
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
|
||||||
fi
|
fi
|
||||||
|
@@ -42,14 +42,12 @@ output (pid_t pid)
|
|||||||
char *args;
|
char *args;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
#if HAVE_LIBGTOP_SMP
|
|
||||||
unsigned long total;
|
unsigned long total;
|
||||||
double p_total, p_utime, p_stime;
|
double p_total, p_utime, p_stime;
|
||||||
double b_total, b_utime, b_stime;
|
double b_total, b_utime, b_stime;
|
||||||
double s_total, s_utime, s_stime;
|
double s_total, s_utime, s_stime;
|
||||||
double my_utime, my_stime;
|
double my_utime, my_stime;
|
||||||
unsigned int ncpu;
|
unsigned int ncpu;
|
||||||
#endif
|
|
||||||
|
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
|
||||||
@@ -158,7 +156,6 @@ output (pid_t pid)
|
|||||||
|
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
|
||||||
#if HAVE_LIBGTOP_SMP
|
|
||||||
ncpu = glibtop_global_server->ncpu;
|
ncpu = glibtop_global_server->ncpu;
|
||||||
|
|
||||||
glibtop_get_proc_time (&data.proc_time, pid);
|
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);
|
s_utime * 100.0 / my_utime, s_stime * 100.0 / my_stime);
|
||||||
|
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@@ -31,33 +31,6 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
|
|
||||||
AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
|
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)
|
AC_MSG_CHECKING(for libgtop sysdeps directory)
|
||||||
|
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
|
Reference in New Issue
Block a user