|
@@ -12,6 +12,20 @@ AC_CONFIG_MACRO_DIR([m4macros])
|
|
|
# Checks for programs.
|
|
|
AC_PROG_CXX
|
|
|
|
|
|
+# Enable low-performing debugging facilities? This option optionally
|
|
|
+# enables some debugging aids that perform slowly and hence aren't built
|
|
|
+# by default.
|
|
|
+AC_ARG_ENABLE([debug],
|
|
|
+ AS_HELP_STRING([--enable-debug],
|
|
|
+ [enable debugging (default is no)]),
|
|
|
+ [case "${enableval}" in
|
|
|
+ yes) debug_enabled=yes ;;
|
|
|
+ no) debug_enabled=no ;;
|
|
|
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
|
|
|
+ esac],[debug_enabled=no])
|
|
|
+AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug_enabled = xyes])
|
|
|
+AM_COND_IF([DEBUG_ENABLED], [AC_DEFINE([ENABLE_DEBUG], [1], [Enable low-performing debugging facilities?])])
|
|
|
+
|
|
|
# Libtool configuration
|
|
|
#
|
|
|
|
|
@@ -203,6 +217,10 @@ case "$host" in
|
|
|
CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
|
|
|
# "now" binding is necessary to prevent deadlocks in C++ static initialization code
|
|
|
LDFLAGS="$LDFLAGS -z now"
|
|
|
+ # Destroying locked mutexes, condition variables being waited
|
|
|
+ # on, etc. are undefined behavior on Solaris, so we set it as
|
|
|
+ # such here.
|
|
|
+ AC_DEFINE([HAS_UNDEFINED_PTHREAD_BEHAVIOR], [1], [Does this platform have some undefined pthreads behavior?])
|
|
|
;;
|
|
|
*-apple-darwin*)
|
|
|
# Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use
|
|
@@ -1112,6 +1130,7 @@ AC_CONFIG_FILES([Makefile
|
|
|
src/bin/bindctl/Makefile
|
|
|
src/bin/bindctl/tests/Makefile
|
|
|
src/bin/cfgmgr/Makefile
|
|
|
+ src/bin/cfgmgr/local_plugins/Makefile
|
|
|
src/bin/cfgmgr/plugins/Makefile
|
|
|
src/bin/cfgmgr/plugins/tests/Makefile
|
|
|
src/bin/cfgmgr/tests/Makefile
|
|
@@ -1421,6 +1440,7 @@ Features:
|
|
|
$enable_features
|
|
|
|
|
|
Developer:
|
|
|
+ Enable Debugging: $debug_enabled
|
|
|
Google Tests: $enable_gtest
|
|
|
Valgrind: $found_valgrind
|
|
|
C++ Code Coverage: $USE_LCOV
|