From f97a3bc695234474bb52d4595d44a7e481a44446 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sat, 23 Jan 1999 18:29:06 +0000 Subject: New macro. This checks whether you have the LibGTop documentation 1999-01-23 Martin Baulig * gnome-libgtop-checks.m4 (GNOME_LIBGTOP_DOCU): New macro. This checks whether you have the LibGTop documentation installed and defines `HAVE_LIBGTOP_DOCU' if appropriate. Also provides automake conditional. svn path=/trunk/; revision=591 --- macros/ChangeLog | 7 +++++++ macros/gnome-libgtop-check.m4 | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/macros/ChangeLog b/macros/ChangeLog index f660ba69..546d0dd9 100644 --- a/macros/ChangeLog +++ b/macros/ChangeLog @@ -1,3 +1,10 @@ +1999-01-23 Martin Baulig + + * gnome-libgtop-checks.m4 (GNOME_LIBGTOP_DOCU): New macro. This + checks whether you have the LibGTop documentation installed and + defines `HAVE_LIBGTOP_DOCU' if appropriate. Also provides automake + conditional. + 1999-01-20 Martin Baulig * acinclude.m4 (ac_result): Unset CATOBJEXT so diff --git a/macros/gnome-libgtop-check.m4 b/macros/gnome-libgtop-check.m4 index e3198498..610119ac 100644 --- a/macros/gnome-libgtop-check.m4 +++ b/macros/gnome-libgtop-check.m4 @@ -153,3 +153,30 @@ AC_DEFUN([GNOME_LIBGTOP_HOOK], AC_DEFUN([GNOME_INIT_LIBGTOP],[ GNOME_LIBGTOP_HOOK($1,[ifelse([$3], [], :, [$3])],$2) ]) + +dnl +dnl GNOME_LIBGTOP_DOCU +dnl +dnl checks whether the documentation of LibGTop is installed +dnl + +AC_DEFUN([GNOME_LIBGTOP_DOCU], +[ + AC_REQUIRE([GNOME_LIBGTOP_HOOK]) + + helpdir="$LIBGTOP_DATADIR/gnome/help/libgtop" + + AC_MSG_CHECKING(whether you have the LibGTop Documentation) + + if test -f "$helpdir/C/topic.dat" ; then + have_libgtop_docu=yes + AC_DEFINE(HAVE_LIBGTOP_DOCU) + else + have_libgtop_docu=no + fi + + AC_MSG_RESULT($have_libgtop_docu) + + AM_CONDITIONAL(HAVE_LIBGTOP_DOCU, test x$have_libgtop_docu = xyes) +]) + -- cgit v1.2.1