Merge lp:~mordred/gearmand/pandora-build into lp:gearmand/1.0

Proposed by Monty Taylor
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mordred/gearmand/pandora-build
Merge into: lp:gearmand/1.0
Diff against target: 191 lines (+104/-3)
7 files modified
m4/pandora_canonical.m4 (+12/-1)
m4/pandora_have_better_malloc.m4 (+2/-1)
m4/pandora_have_libdl.m4 (+1/-1)
m4/pandora_have_libmemcached.m4 (+19/-0)
m4/pandora_platform.m4 (+8/-0)
m4/pandora_print_callstack.m4 (+61/-0)
m4/pandora_visibility.m4 (+1/-0)
To merge this branch: bzr merge lp:~mordred/gearmand/pandora-build
Reviewer Review Type Date Requested Status
Brian Aker Pending
Review via email: mp+17284@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Monty Taylor (mordred) wrote :

Latest pandora.

lp:~mordred/gearmand/pandora-build updated
314. By Brian Aker <brian@gaz>

Merge Monty

315. By Brian Aker <brian@gaz>

Merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'm4/pandora_canonical.m4'
--- m4/pandora_canonical.m4 2009-12-30 18:08:00 +0000
+++ m4/pandora_canonical.m4 2010-01-13 10:51:14 +0000
@@ -4,13 +4,23 @@
4dnl with or without modifications, as long as this notice is preserved.4dnl with or without modifications, as long as this notice is preserved.
55
6dnl Which version of the canonical setup we're using6dnl Which version of the canonical setup we're using
7AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.91])7AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.95])
88
9AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[9AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10 AC_ARG_ENABLE([fat-binaries],
11 [AS_HELP_STRING([--enable-fat-binaries],
12 [Enable fat binary support on OSX @<:@default=off@:>@])],
13 [ac_enable_fat_binaries="$enableval"],
14 [ac_enable_fat_binaries="no"])
15
10 dnl Force dependency tracking on for Sun Studio builds16 dnl Force dependency tracking on for Sun Studio builds
11 AS_IF([test "x${enable_dependency_tracking}" = "x"],[17 AS_IF([test "x${enable_dependency_tracking}" = "x"],[
12 enable_dependency_tracking=yes18 enable_dependency_tracking=yes
13 ])19 ])
20 dnl If we're building OSX Fat Binaries, we have to turn off -M options
21 AS_IF([test "x${ac_enable_fat_binaries}" = "xyes"],[
22 enable_dependency_tracking=no
23 ])
14])24])
1525
16dnl The standard setup for how we build Pandora projects26dnl The standard setup for how we build Pandora projects
@@ -232,5 +242,6 @@
232 AC_SUBST([AM_CFLAGS])242 AC_SUBST([AM_CFLAGS])
233 AC_SUBST([AM_CXXFLAGS])243 AC_SUBST([AM_CXXFLAGS])
234 AC_SUBST([AM_CPPFLAGS])244 AC_SUBST([AM_CPPFLAGS])
245 AC_SUBST([AM_LDFLAGS])
235246
236])247])
237248
=== modified file 'm4/pandora_have_better_malloc.m4'
--- m4/pandora_have_better_malloc.m4 2009-12-18 19:25:00 +0000
+++ m4/pandora_have_better_malloc.m4 2010-01-13 10:51:14 +0000
@@ -64,4 +64,5 @@
64AC_DEFUN([PANDORA_USE_BETTER_MALLOC],[64AC_DEFUN([PANDORA_USE_BETTER_MALLOC],[
65 AC_REQUIRE([PANDORA_HAVE_BETTER_MALLOC])65 AC_REQUIRE([PANDORA_HAVE_BETTER_MALLOC])
66 LIBS="${LIBS} ${BETTER_MALLOC_LIBS}"66 LIBS="${LIBS} ${BETTER_MALLOC_LIBS}"
67])
68\ No newline at end of file67\ No newline at end of file
68])
69
6970
=== modified file 'm4/pandora_have_libdl.m4'
--- m4/pandora_have_libdl.m4 2009-12-18 18:02:39 +0000
+++ m4/pandora_have_libdl.m4 2010-01-13 10:51:14 +0000
@@ -15,7 +15,7 @@
15 AC_CHECK_LIB(dl,dlopen)15 AC_CHECK_LIB(dl,dlopen)
16 AC_CHECK_FUNCS(dlopen)16 AC_CHECK_FUNCS(dlopen)
17 LIBDL_LIBS="$LIBS"17 LIBDL_LIBS="$LIBS"
18 LIBS="$my_save_LIBS"18 LIBS="${save_LIBS}"
19 AC_SUBST(LIBDL_LIBS)19 AC_SUBST(LIBDL_LIBS)
2020
21 AM_CONDITIONAL(HAVE_LIBDL, [test "x${ac_cv_func_dlopen}" = "xyes"])21 AM_CONDITIONAL(HAVE_LIBDL, [test "x${ac_cv_func_dlopen}" = "xyes"])
2222
=== modified file 'm4/pandora_have_libmemcached.m4'
--- m4/pandora_have_libmemcached.m4 2009-12-18 19:25:00 +0000
+++ m4/pandora_have_libmemcached.m4 2010-01-13 10:51:14 +0000
@@ -24,10 +24,28 @@
24 memcached_dump_func *df;24 memcached_dump_func *df;
25 memcached_lib_version();25 memcached_lib_version();
26 ])26 ])
27 AC_LIB_HAVE_LINKFLAGS(memcachedprotocol,,[
28 #include <libmemcached/protocol_handler.h>
29 ],[
30 struct memcached_protocol_st *protocol_handle;
31 protocol_handle= memcached_protocol_create_instance();
32 ])
27 ],[33 ],[
28 ac_cv_libmemcached="no"34 ac_cv_libmemcached="no"
29 ])35 ])
30 36
37 AC_CACHE_CHECK([if libmemcached has memcached_server_fn],
38 [pandora_cv_libmemcached_server_fn],
39 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
40#include <libmemcached/memcached.h>
41memcached_server_fn callbacks[1];
42 ]])],
43 [pandora_cv_libmemcached_server_fn=yes],
44 [pandora_cv_libmemcached_server_fn=no])])
45 AS_IF([test "x$pandora_cv_libmemcached_server_fn" = "xyes"],[
46 AC_DEFINE([HAVE_MEMCACHED_SERVER_FN],[1],[If we have the new memcached_server_fn typedef])
47 ])
48
31 AM_CONDITIONAL(HAVE_LIBMEMCACHED, [test "x${ac_cv_libmemcached}" = "xyes"])49 AM_CONDITIONAL(HAVE_LIBMEMCACHED, [test "x${ac_cv_libmemcached}" = "xyes"])
32 50
33])51])
@@ -41,3 +59,4 @@
41 AS_IF([test x$ac_cv_libmemcached = xno],59 AS_IF([test x$ac_cv_libmemcached = xno],
42 AC_MSG_ERROR([libmemcached is required for ${PACKAGE}]))60 AC_MSG_ERROR([libmemcached is required for ${PACKAGE}]))
43])61])
62
4463
=== modified file 'm4/pandora_platform.m4'
--- m4/pandora_platform.m4 2009-09-29 04:30:01 +0000
+++ m4/pandora_platform.m4 2010-01-13 10:51:14 +0000
@@ -74,4 +74,12 @@
74 [Cause Sun Studio to not be quite so strict with standards conflicts])74 [Cause Sun Studio to not be quite so strict with standards conflicts])
75 ])75 ])
7676
77 AS_IF([test "x$TARGET_OSX" = "xtrue"],[
78 AS_IF([test "x$ac_enable_fat_binaries" = "xyes"],[
79 AM_CFLAGS="-arch i386 -arch x86_64 -arch ppc"
80 AM_CXXFLAGS="-arch i386 -arch x86_64 -arch ppc"
81 AM_LDFLAGS="-arch i386 -arch x86_64 -arch ppc"
82 ])
83 ])
84
77])85])
7886
=== added file 'm4/pandora_print_callstack.m4'
--- m4/pandora_print_callstack.m4 1970-01-01 00:00:00 +0000
+++ m4/pandora_print_callstack.m4 2010-01-13 10:51:14 +0000
@@ -0,0 +1,61 @@
1dnl Copyright (C) 2009 Sun Microsystems
2dnl This file is free software; Sun Microsystems
3dnl gives unlimited permission to copy and/or distribute it,
4dnl with or without modifications, as long as this notice is preserved.
5
6dnl Try to define a macro to dump the current callstack.
7AC_DEFUN([PANDORA_PRINT_CALLSTACK],[
8 AC_CHECK_HEADERS([ucontext.h])
9 AS_IF([test "x$ac_cv_header_ucontext_h" = "xyes"],
10 [ AC_CHECK_FUNCS([printstack]) ])
11
12
13 AS_IF([ test "x$ac_cv_func_printstack" != "xyes"],
14 [ AC_CHECK_HEADERS([dlfcn.h])
15 AC_CHECK_HEADERS([execinfo.h])
16 AC_CHECK_FUNCS([backtrace])
17 AC_CHECK_FUNCS([backtrace_symbols_fd]) ])
18
19 AH_BOTTOM([
20#ifdef __cplusplus
21#include <cstdio>
22#define PANDORA_PRINTSTACK_STD_PREFIX std::
23#else
24#include <stdio.h>
25#define PANDORA_PRINTSTACK_STD_PREFIX
26#endif
27
28#if defined(HAVE_UCONTEXT_H) && defined(HAVE_PRINTSTACK)
29#include <ucontext.h>
30#define pandora_print_callstack(a) \
31printstack(PANDORA_PRINTSTACK_STD_PREFIX fileno(a))
32#elif defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS_FD)
33
34#include <execinfo.h>
35
36#define pandora_print_callstack(a) \
37{ \
38 void *stack[100]; \
39 int depth = backtrace(stack, 100); \
40 backtrace_symbols_fd(stack, depth, PANDORA_PRINTSTACK_STD_PREFIX fileno(a)); \
41}
42#elif defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS) && !defined(HAVE_BACKTRACE_SYMBOLS_FD)
43
44#include <execinfo.h>
45
46#define pandora_print_callstack(a) \
47{ \
48 void *stack[100]; \
49 int depth= backtrace(stack, 100); \
50 char **symbol= backtrace_symbols(stack, depth); \
51 for (int x= 0; x < size; ++x) \
52 PANDORA_PRINTSTACK_STD_PREFIX fprintf(a, "%s\n", symbol[x]); \
53}
54#else
55#define pandora_print_callstack(a) \
56 PANDORA_PRINTSTACK_STD_PREFIX fprintf(a, \
57 "Stackdump not supported for this platform\n");
58#endif
59 ])
60
61])
062
=== modified file 'm4/pandora_visibility.m4'
--- m4/pandora_visibility.m4 2009-12-30 08:42:51 +0000
+++ m4/pandora_visibility.m4 2010-01-13 10:51:14 +0000
@@ -1,4 +1,5 @@
1dnl Copyright (C) 2005, 2008 Free Software Foundation, Inc.1dnl Copyright (C) 2005, 2008 Free Software Foundation, Inc.
2dnl Copyright (C) 2009 Monty Taylor
2dnl This file is free software; the Free Software Foundation3dnl This file is free software; the Free Software Foundation
3dnl gives unlimited permission to copy and/or distribute it,4dnl gives unlimited permission to copy and/or distribute it,
4dnl with or without modifications, as long as this notice is preserved.5dnl with or without modifications, as long as this notice is preserved.

Subscribers

People subscribed via source and target branches