mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
configure: Add switches for enabling/disabling libdw and libunwind
https://bugzilla.gnome.org/show_bug.cgi?id=778193
This commit is contained in:
parent
208d500c67
commit
4d25706ff1
1 changed files with 36 additions and 10 deletions
46
configure.ac
46
configure.ac
|
@ -799,19 +799,45 @@ fi
|
||||||
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
|
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
|
||||||
|
|
||||||
dnl libunwind is optionally used by the leaks tracer
|
dnl libunwind is optionally used by the leaks tracer
|
||||||
PKG_CHECK_MODULES(UNWIND, libunwind, HAVE_UNWIND=yes, HAVE_UNWIND=no)
|
AC_ARG_WITH([unwind],[AS_HELP_STRING([--with-unwind=yes|no|auto],[use libunwind])],
|
||||||
if test "x$HAVE_UNWIND" = "xyes"; then
|
[], [with_unwind=auto])
|
||||||
AC_DEFINE(HAVE_UNWIND, 1, [libunwind available])
|
if [ test "x${with_unwind}" != "xno" ]; then
|
||||||
UNWIND_REQUIRE=libunwind
|
PKG_CHECK_MODULES(UNWIND, [libunwind],
|
||||||
AC_SUBST(UNWIND_REQUIRE)
|
[
|
||||||
|
HAVE_UNWIND=yes
|
||||||
|
AC_DEFINE(HAVE_UNWIND, 1, [libunwind available])
|
||||||
|
UNWIND_REQUIRE=libunwind
|
||||||
|
AC_SUBST(UNWIND_REQUIRE)
|
||||||
|
],
|
||||||
|
[
|
||||||
|
HAVE_UNWIND=no
|
||||||
|
if [ test "x${with_unwind}" = "xyes" ]; then
|
||||||
|
AC_MSG_ERROR([could not find libunwind])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
else
|
||||||
|
HAVE_UNWIND=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl libdw is optionally used to add source lines and numbers to backtraces
|
dnl libdw is optionally used to add source lines and numbers to backtraces
|
||||||
PKG_CHECK_MODULES(DW, libdw, HAVE_DW=yes, HAVE_DW=no)
|
AC_ARG_WITH([dw],[AS_HELP_STRING([--with-dw=yes|no|auto],[use libdw])],
|
||||||
if test "x$HAVE_DW" = "xyes"; then
|
[], [with_dw=auto])
|
||||||
AC_DEFINE(HAVE_DW, 1, [libdw available])
|
if [ test "x${with_dw}" != "xno" ]; then
|
||||||
DW_REQUIRE=libdw
|
PKG_CHECK_MODULES(DW, [libdw],
|
||||||
AC_SUBST(DW_REQUIRE)
|
[
|
||||||
|
HAVE_DW=yes
|
||||||
|
AC_DEFINE(HAVE_DW, 1, [libdw available])
|
||||||
|
DW_REQUIRE=libdw
|
||||||
|
AC_SUBST(DW_REQUIRE)
|
||||||
|
],
|
||||||
|
[
|
||||||
|
HAVE_DW=no
|
||||||
|
if [ test "x${with_dw}" = "xyes" ]; then
|
||||||
|
AC_MSG_ERROR([could not find libdw])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
else
|
||||||
|
HAVE_DW=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check for backtrace() from libc
|
dnl Check for backtrace() from libc
|
||||||
|
|
Loading…
Reference in a new issue