mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 12:15:19 +00:00
Add --enable-poisoning option, and make it default to off in normal releases, on in ./autogen.sh configuration. Add ...
Original commit message from CVS: Add --enable-poisoning option, and make it default to off in normal releases, on in ./autogen.sh configuration. Add automake17 as a possible automake name.
This commit is contained in:
parent
2491e23c46
commit
0bdeb40920
2 changed files with 16 additions and 2 deletions
|
@ -19,7 +19,7 @@ then
|
||||||
fi
|
fi
|
||||||
. common/gst-autogen.sh
|
. common/gst-autogen.sh
|
||||||
|
|
||||||
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-failing-tests'
|
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-failing-tests --enable-poisoning'
|
||||||
|
|
||||||
autogen_options $@
|
autogen_options $@
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ echo -n "+ check for build tools"
|
||||||
if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
|
if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
|
||||||
version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53 autoconf-2.52" \
|
version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53 autoconf-2.52" \
|
||||||
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 52 || DIE=1
|
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 52 || DIE=1
|
||||||
version_check "automake" "$AUTOMAKE automake automake-1.7 automake-1.6" \
|
version_check "automake" "$AUTOMAKE automake automake-1.7 automake17 automake-1.6" \
|
||||||
"ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE=1
|
"ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE=1
|
||||||
version_check "libtoolize" "libtoolize libtoolize14" \
|
version_check "libtoolize" "libtoolize libtoolize14" \
|
||||||
"ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 0 || DIE=1
|
"ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 0 || DIE=1
|
||||||
|
|
14
configure.ac
14
configure.ac
|
@ -336,6 +336,16 @@ esac],
|
||||||
[BUILD_EXAMPLES=yes]) dnl Default value
|
[BUILD_EXAMPLES=yes]) dnl Default value
|
||||||
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes")
|
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes")
|
||||||
|
|
||||||
|
dnl poison destroyed objects
|
||||||
|
AC_ARG_ENABLE(poisoning,
|
||||||
|
AC_HELP_STRING([--enable-poisoning],[enable poisoning of deallocated objects]),
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) USE_POISONING=yes ;;
|
||||||
|
no) USE_POISONING=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-poisoning) ;;
|
||||||
|
esac],
|
||||||
|
[USE_POISONING=no]) dnl Default value
|
||||||
|
|
||||||
dnl Next, check for the optional components:
|
dnl Next, check for the optional components:
|
||||||
dnl ========================================
|
dnl ========================================
|
||||||
|
|
||||||
|
@ -394,6 +404,10 @@ if test "x$USE_FAST_STACK_TRASH" = xyes; then
|
||||||
AC_DEFINE(USE_FAST_STACK_TRASH, 1, [Define if we should use i586 optimized stack functions])
|
AC_DEFINE(USE_FAST_STACK_TRASH, 1, [Define if we should use i586 optimized stack functions])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "x$USE_POISONING" = xyes; then
|
||||||
|
AC_DEFINE(USE_POISONING, 1, [Define if we should poison deallocated memory])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl test if we have pthread_attr_setstack; if not use the older calls
|
dnl test if we have pthread_attr_setstack; if not use the older calls
|
||||||
AC_CHECK_LIB(pthread, pthread_attr_setstack,
|
AC_CHECK_LIB(pthread, pthread_attr_setstack,
|
||||||
AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACK, 1,
|
AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACK, 1,
|
||||||
|
|
Loading…
Reference in a new issue