(trunk) autoconf's "debug mode" should base its default value on whether this is a branded release or an unofficial build.
This commit is contained in:
parent
e4178e8f09
commit
fc8ac40bfc
|
@ -22,6 +22,9 @@ AC_PROG_LIBTOOL
|
||||||
if test m4_substr(peer_id_prefix,6,1) = "Z"; then
|
if test m4_substr(peer_id_prefix,6,1) = "Z"; then
|
||||||
AC_DEFINE(TR_UNSTABLE, 1, [Define to 1 if this is an unstable version of Transmission])
|
AC_DEFINE(TR_UNSTABLE, 1, [Define to 1 if this is an unstable version of Transmission])
|
||||||
TR_UNSTABLE=yes
|
TR_UNSTABLE=yes
|
||||||
|
enable_debug=yes
|
||||||
|
else
|
||||||
|
enable_debug=no
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(TR_UNSTABLE, test "x$TR_UNSTABLE" = "xyes")
|
AM_CONDITIONAL(TR_UNSTABLE, test "x$TR_UNSTABLE" = "xyes")
|
||||||
|
|
||||||
|
@ -91,9 +94,7 @@ AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
|
||||||
dnl ----------------------------------------------------------------------------
|
dnl ----------------------------------------------------------------------------
|
||||||
dnl
|
dnl
|
||||||
dnl debugging support
|
dnl debugging support
|
||||||
AC_ARG_ENABLE([debug],
|
AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug],[build with debugging support]),,,)
|
||||||
AS_HELP_STRING([--enable-debug],[build with debugging support]),,
|
|
||||||
[enable_debug=no])
|
|
||||||
if test "x$enable_debug" = "xyes" ; then
|
if test "x$enable_debug" = "xyes" ; then
|
||||||
CFLAGS+=" -g "
|
CFLAGS+=" -g "
|
||||||
CXXFLAGS+=" -g "
|
CXXFLAGS+=" -g "
|
||||||
|
|
Loading…
Reference in New Issue