From: Monty Taylor Date: Wed, 16 Sep 2009 18:36:35 +0000 (-0700) Subject: pandora-build v0.61 X-Git-Tag: 0.34~16^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d6db1d64eaa5644a4fe19d2accc4fb012f27ee0a;p=m6w6%2Flibmemcached pandora-build v0.61 --- diff --git a/m4/pandora_64bit.m4 b/m4/pandora_64bit.m4 index c1812f40..ed123d2b 100644 --- a/m4/pandora_64bit.m4 +++ b/m4/pandora_64bit.m4 @@ -23,7 +23,7 @@ AC_DEFUN([PANDORA_64BIT],[ AS_IF([test "$isainfo_b" != "x"],[ isainfo_k=`${ISAINFO} -k` - DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_k}" + DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_b}" AS_IF([test "x$ac_enable_64bit" = "xyes"],[ diff --git a/m4/pandora_canonical.m4 b/m4/pandora_canonical.m4 index 5bf12598..0fcaca14 100644 --- a/m4/pandora_canonical.m4 +++ b/m4/pandora_canonical.m4 @@ -4,7 +4,7 @@ dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Which version of the canonical setup we're using -AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.57]) +AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.61]) AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ dnl Force dependency tracking on for Sun Studio builds diff --git a/m4/pandora_enable_dtrace.m4 b/m4/pandora_enable_dtrace.m4 index e1f82da0..18c2d648 100644 --- a/m4/pandora_enable_dtrace.m4 +++ b/m4/pandora_enable_dtrace.m4 @@ -17,6 +17,7 @@ AC_DEFUN([PANDORA_ENABLE_DTRACE],[ AC_CHECK_PROGS([DTRACE], [dtrace]) AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace"],[ AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support]) + AC_MSG_CHECKING([if dtrace should instrument object files]) dnl DTrace on MacOSX does not use -G option cat >conftest.d <<_ACEOF provider Example { @@ -24,9 +25,10 @@ provider Example { }; _ACEOF $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero - AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes]) + AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes], + [ac_cv_dtrace_needs_objects=no]) rm -f conftest.d.o conftest.d - + AC_MSG_RESULT($ac_cv_dtrace_needs_objects) AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX ac_cv_have_dtrace=yes ])]) diff --git a/m4/pandora_plugins.m4 b/m4/pandora_plugins.m4 index 40c789fc..75e37329 100644 --- a/m4/pandora_plugins.m4 +++ b/m4/pandora_plugins.m4 @@ -18,11 +18,11 @@ AC_DEFUN([PANDORA_PLUGINS],[ pandora_builtin_list=`echo $pandora_builtin_list | sed 's/, *$//'` AS_IF([test "x$pandora_builtin_list" = "x"], pandora_builtin_list="NULL") AC_SUBST([PANDORA_BUILTIN_LIST],[$pandora_builtin_list]) - m4_ifblank($1,[ + m4_ifval(m4_normalize([$1]),[ + AC_CONFIG_FILES($*) + ],[ AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],[$pandora_builtin_list], [List of plugins to be built in]) - ],[ - AC_CONFIG_FILES($*) ]) diff --git a/m4/pandora_vc_build.m4 b/m4/pandora_vc_build.m4 index fa54986a..d84b9676 100644 --- a/m4/pandora_vc_build.m4 +++ b/m4/pandora_vc_build.m4 @@ -40,10 +40,10 @@ AC_DEFUN([PANDORA_BUILDING_FROM_VC],[ dnl Takes one argument which is the prefix to append AC_DEFUN([PANDORA_EXPORT_BZR_INFO],[ - m4_ifnblank($1,[ - m4_define([PEBI_PREFIX],m4_toupper(m4_normalize($1))[_]) - ],[ + m4_ifval(m4_normalize([$1]),[ m4_define([PEBI_PREFIX],[]) + ],[ + m4_define([PEBI_PREFIX],m4_toupper(m4_normalize($1))[_]) ]) AC_DEFINE(PEBI_PREFIX[BZR_REVID], ["BZR_REVID"], [bzr revision ID]) diff --git a/m4/pandora_warnings.m4 b/m4/pandora_warnings.m4 index 9ccb95bd..7241ba7c 100644 --- a/m4/pandora_warnings.m4 +++ b/m4/pandora_warnings.m4 @@ -204,10 +204,49 @@ template <> void C::foo(); AS_IF([test "$ac_cv_safe_to_use_Wredundant_decls_" = "yes"], [CXX_WARNINGS="${CXX_WARNINGS} -Wredundant-decls"], [CXX_WARNINGS="${CXX_WARNINGS} -Wno-redundant-decls"]) + + AC_CACHE_CHECK([whether it is safe to use -Wattributes from C++], + [ac_cv_safe_to_use_Wattributes_], + [AC_LANG_PUSH(C++) + save_CXXFLAGS="${CXXFLAGS}" + CXXFLAGS="${W_FAIL} -pedantic -Wattributes -fvisibility=hidden ${AM_CXXFLAGS}" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([ +#include +#include + + +const ::google::protobuf::EnumDescriptor* Table_TableOptions_RowType_descriptor(); +enum Table_TableOptions_RowType { + Table_TableOptions_RowType_ROW_TYPE_DEFAULT = 0, + Table_TableOptions_RowType_ROW_TYPE_FIXED = 1, + Table_TableOptions_RowType_ROW_TYPE_DYNAMIC = 2, + Table_TableOptions_RowType_ROW_TYPE_COMPRESSED = 3, + Table_TableOptions_RowType_ROW_TYPE_REDUNDANT = 4, + Table_TableOptions_RowType_ROW_TYPE_COMPACT = 5, + Table_TableOptions_RowType_ROW_TYPE_PAGE = 6 +}; + +namespace google { +namespace protobuf { +template <> +inline const EnumDescriptor* GetEnumDescriptor() { + return Table_TableOptions_RowType_descriptor(); +} +} +} + ])], + [ac_cv_safe_to_use_Wattributes_=yes], + [ac_cv_safe_to_use_Wattributes_=no]) + CXXFLAGS="${save_CXXFLAGS}" + AC_LANG_POP()]) + AS_IF([test "$ac_cv_safe_to_use_Wattributes_" = "yes"], + [], + [CXX_WARNINGS="${CXX_WARNINGS} -Wno-attributes"]) NO_REDUNDANT_DECLS="-Wno-redundant-decls" dnl TODO: Figure out a better way to deal with this: - PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow -Wno-missing-braces" + PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow -Wno-missing-braces -Wno-attributes" NO_WERROR="-Wno-error" INNOBASE_SKIP_WARNINGS="-Wno-shadow -Wno-cast-align"