You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/10/27 22:36:59 UTC

[34/50] [abbrv] git commit: TS-2291: Disable remap_stats plugin compile on platforms that do not have a reentrant hsearch implementation

TS-2291: Disable remap_stats plugin compile on platforms that do
not have a reentrant hsearch implementation

This means this plugin will not build on FreeBSD or OmniOS.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/a2809d18
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/a2809d18
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/a2809d18

Branch: refs/heads/5.0.x
Commit: a2809d1874ea69a78e44e2fdf916217db1d37100
Parents: e265ff8
Author: Phil Sorber <so...@apache.org>
Authored: Tue Oct 22 19:30:06 2013 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Tue Oct 22 19:31:58 2013 -0600

----------------------------------------------------------------------
 configure.ac                                 | 8 ++++++++
 plugins/experimental/remap_stats/Makefile.am | 4 ++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a2809d18/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 439a6e1..bb23933 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1786,6 +1786,14 @@ AC_CHECK_TYPE([struct tcp_info],
 )
 AM_CONDITIONAL([BUILD_TCPINFO_PLUGIN], [ test "x${enable_tcpinfo_plugin}" != "xno" ])
 
+AC_SEARCH_LIBS([hcreate_r],
+  [],
+  [enable_remap_stats_plugin=yes],
+  [enable_remap_stats_plugin=no],
+  []
+)
+AM_CONDITIONAL([BUILD_REMAP_STATS_PLUGIN], [ test "x${enable_remap_stats_plugin}" != "xno" ])
+
 #
 # use modular IOCORE
 #

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a2809d18/plugins/experimental/remap_stats/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/experimental/remap_stats/Makefile.am b/plugins/experimental/remap_stats/Makefile.am
index 4033fa4..a817bb8 100644
--- a/plugins/experimental/remap_stats/Makefile.am
+++ b/plugins/experimental/remap_stats/Makefile.am
@@ -16,6 +16,10 @@
 
 include $(top_srcdir)/build/plugins.mk
 
+if BUILD_REMAP_STATS_PLUGIN
+
 pkglib_LTLIBRARIES = remap_stats.la
 remap_stats_la_SOURCES = remap_stats.c
 remap_stats_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS)
+
+endif