From 15d96eb9a131792f22267d1a15d397d1d41ac038 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Thu, 21 May 1998 20:25:21 +0000 Subject: [PATCH] define 'GLIBTOP_NAMES' when building libgtop and a new conditional * acinclude.m4 (AC_LC_SYSDEPS): define 'GLIBTOP_NAMES' when building libgtop and a new conditional 'GLIBTOP_NAMES'; added new parameter '--without-examples'; define 'GLIBTOP_EXAMPLES' and conditional 'GLIBTOP_EXAMPLES'. --- acinclude.m4 | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 601f9dd1..25cfa00a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -99,6 +99,12 @@ AC_DEFUN([AC_LC_SYSDEPS],[ AC_MSG_RESULT($ac_cv_want_names) + if test x$ac_cv_want_names = xyes ; then + AC_DEFINE(GLIBTOP_NAMES) + fi + + AM_CONDITIONAL(GLIBTOP_NAMES, test x$ac_cv_want_names = xyes) + AC_MSG_CHECKING(whether building of the guile interface is requested) AC_ARG_ENABLE(libgtop-guile, @@ -111,11 +117,23 @@ AC_DEFUN([AC_LC_SYSDEPS],[ AC_MSG_RESULT($ac_cv_want_guile) - if test x$ac_cv_want_names = xyes ; then - AC_DEFINE(GLIBTOP_NAMES) + AC_MSG_CHECKING(whether building of the examples is requested) + + AC_ARG_WITH(libgtop-examples, + [ --without-examples disable building of the examples], + [if test "x$withval" = "xyes" ; then + ac_cv_want_examples=yes + else + ac_cv_want_examples=$withval + fi],[ac_cv_want_examples=yes]) + + AC_MSG_RESULT($ac_cv_want_examples) + + if test x$ac_cv_want_examples = xyes ; then + AC_DEFINE(GLIBTOP_EXAMPLES) fi - AM_CONDITIONAL(GLIBTOP_NAMES, test x$ac_cv_want_names = xyes) + AM_CONDITIONAL(GLIBTOP_EXAMPLES, test x$ac_cv_want_examples = xyes) if test x$use_glibtop_machine_h = xyes ; then machine_incs="-I\$(top_srcdir)/sysdeps/$sysdeps_dir"