summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e9931d8)
raw | patch | inline | side by side (parent: e9931d8)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 19 Dec 2005 12:28:55 +0000 (12:28 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 19 Dec 2005 12:28:55 +0000 (12:28 +0000) |
program/bindings/tcl/Makefile.am | patch | blob | history | |
program/bindings/tcl/tclrrd.c | patch | blob | history | |
program/configure.ac | patch | blob | history |
index 22d661df0306d5651329184f9ec3bf405cae678a..d4ea2102f95024452c055adbaba03177c318ce60 100644 (file)
LIBDIRS = -L$(top_builddir)/src/.libs -L$(top_builddir)/src -L$(libdir)
LIB_RUNTIME_DIR = $(libdir)
+if BUILD_TCL_SITE
pkglibdir = @TCL_PACKAGE_DIR@
+endif
# Automake doen't like `tclrrd$(VERSION)$(TCL_SHLIB_SUFFIX)' as
# library name. So we build and install this library `by hand'.
pkglib_SCRIPTS = ifOctets.tcl
$(TCL_RRD_LIB): tclrrd.o
- $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LIBS)
+ $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS)
tclrrd.o: tclrrd.c
$(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) -c $< -DVERSION=\"$(VERSION)\"
index 5d4e9b7e7190eead0d6cc01f26a12baa0dd01aa4..6a5250c66632cb92f1ce62bd07937cb8dd6ee9e3 100644 (file)
#include <rrd_tool.h>
#include <rrd_format.h>
+/* support pre-8.4 tcl */
+
+#ifndef CONST84
+# define CONST84
+#endif
+
extern int Tclrrd_Init(Tcl_Interp *interp);
extern int Tclrrd_SafeInit(Tcl_Interp *interp);
diff --git a/program/configure.ac b/program/configure.ac
index ddff204f1041b2de913752f4bc0c16bb14fd75ad..eb3e53170ee36f38467608e15eefc3c075872a4b 100644 (file)
--- a/program/configure.ac
+++ b/program/configure.ac
AC_SUBST(COMP_PERL)
AC_SUBST(PERL_VERSION)
+enable_tcl_site=no
+
AC_ARG_ENABLE(tcl,[ --disable-tcl do not build the tcl modules],
[],[enable_tcl=yes])
. $tcl_config
TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
fi
+ AC_ARG_ENABLE(tcl,[ --enable-tcl-site install the tcl extension in the tcl tree],
+ [],[enable_tcl_site=yes])
+
fi
AM_CONDITIONAL(BUILD_TCL, test "$enable_tcl" = "yes" )
+AM_CONDITIONAL(BUILD_TCL_SITE, test "$enable_tcl_site" = "yes" )
AC_SUBST(TCL_PREFIX)
AC_SUBST(TCL_SHLIB_CFLAGS)