summaryrefslogtreecommitdiff
path: root/libgtop-sysdeps.m4
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>2000-01-12 22:46:29 +0000
committerMartin Baulig <martin@src.gnome.org>2000-01-12 22:46:29 +0000
commit20c306fc6d2d6b2a164b78c3a2652e3c70ec5374 (patch)
tree7895deca7a26629aa5960e94aa1d336d9afe553b /libgtop-sysdeps.m4
parent2a86a5de49b23aabfa61b5dde14934d2d7206afe (diff)
downloadlibgtop-20c306fc6d2d6b2a164b78c3a2652e3c70ec5374.tar.gz
Call `_glibtop_open_sysdeps'.
2000-01-12 Martin Baulig <martin@home-of-linux.org> * lib/init.c (glibtop_init_s): Call `_glibtop_open_sysdeps'. * include/glibtop/open.h (_glibtop_open_sysdeps): Declare this when we are _IN_LIBGTOP. * configure.in (sysdeps_name): Define and AC_SUBST this. (sysdeps_init_file): Define and AC_SUBST this to `sysdeps-init-${sysdeps_name}.c'. * libgtop-sysdeps.m4 (GNOME_LIBGTOP_SYSDEPS): Define and AC_SUBST `libgtop_sysdeps_name'.
Diffstat (limited to 'libgtop-sysdeps.m4')
-rw-r--r--libgtop-sysdeps.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4
index 60711180..982a1b0d 100644
--- a/libgtop-sysdeps.m4
+++ b/libgtop-sysdeps.m4
@@ -4,6 +4,7 @@ dnl
dnl It defines the following variables:
dnl
dnl * 'libgtop_sysdeps_dir' - sysdeps dir for libgtop.
+dnl * 'libgtop_sysdeps_name' - name of the sysdeps dir.
dnl * 'libgtop_use_machine_h' - some of system dependend parts of libgtop provide
dnl their own header file. In this case we need to
dnl define 'HAVE_GLIBTOP_MACHINE_H'.
@@ -128,6 +129,7 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
AC_REQUIRE([AC_CANONICAL_HOST])
AC_SUBST(libgtop_sysdeps_dir)
+ AC_SUBST(libgtop_sysdeps_name)
AC_SUBST(libgtop_use_machine_h)
AC_SUBST(libgtop_need_server)
@@ -219,6 +221,10 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
esac
fi
+ AC_MSG_CHECKING(for libgtop sysdeps name)
+ libgtop_sysdeps_name=`echo $libgtop_sysdeps_dir | sed -e 's/_/-/g'`
+ AC_MSG_RESULT($libgtop_sysdeps_name)
+
AC_SUBST(libgtop_sysdeps_dir)
AC_SUBST(libgtop_postinstall)
AC_SUBST(libgtop_have_sysinfo)