|
Lines 985-990
Link Here
|
| 985 |
AS_HELP_STRING([--disable-ooenv], |
985 |
AS_HELP_STRING([--disable-ooenv], |
| 986 |
[Disable ooenv for the instdir installation.])) |
986 |
[Disable ooenv for the instdir installation.])) |
| 987 |
|
987 |
|
|
|
988 |
AC_ARG_ENABLE(valgrind, |
| 989 |
AS_HELP_STRING([--enable-valgrind], |
| 990 |
[Enable valgrind support.])) |
| 991 |
|
| 988 |
AC_ARG_ENABLE(lto, |
992 |
AC_ARG_ENABLE(lto, |
| 989 |
AS_HELP_STRING([--enable-lto], |
993 |
AS_HELP_STRING([--enable-lto], |
| 990 |
[Enable link-time optimization. Suitable for (optimised) product builds. Building might take |
994 |
[Enable link-time optimization. Suitable for (optimised) product builds. Building might take |
|
Lines 5751-5760
Link Here
|
| 5751 |
AC_SUBST([ENABLE_RUNTIME_OPTIMIZATIONS]) |
5755 |
AC_SUBST([ENABLE_RUNTIME_OPTIMIZATIONS]) |
| 5752 |
|
5756 |
|
| 5753 |
dnl =================================================================== |
5757 |
dnl =================================================================== |
| 5754 |
dnl Check if valgrind headers are available |
5758 |
dnl Check whether to enable valgrind support and if headers available |
| 5755 |
dnl =================================================================== |
5759 |
dnl =================================================================== |
| 5756 |
ENABLE_VALGRIND= |
5760 |
ENABLE_VALGRIND= |
| 5757 |
if test "$cross_compiling" != yes; then |
5761 |
AC_MSG_CHECKING([whether to enable valgrind support]) |
|
|
5762 |
if test "$enable_valgrind" = yes -a "$cross_compiling" != yes; then |
| 5763 |
AC_MSG_RESULT([yes]) |
| 5758 |
prev_cppflags=$CPPFLAGS |
5764 |
prev_cppflags=$CPPFLAGS |
| 5759 |
# Is VALGRIND_CFLAGS something one is supposed to have in the environment, |
5765 |
# Is VALGRIND_CFLAGS something one is supposed to have in the environment, |
| 5760 |
# or where does it come from? |
5766 |
# or where does it come from? |
|
Lines 5762-5767
Link Here
|
| 5762 |
AC_CHECK_HEADER([valgrind/valgrind.h], |
5768 |
AC_CHECK_HEADER([valgrind/valgrind.h], |
| 5763 |
[ENABLE_VALGRIND=TRUE]) |
5769 |
[ENABLE_VALGRIND=TRUE]) |
| 5764 |
CPPFLAGS=$prev_cppflags |
5770 |
CPPFLAGS=$prev_cppflags |
|
|
5771 |
if test -z "$ENABLE_VALGRIND"; then |
| 5772 |
AC_MSG_ERROR([Could not find valgrind/valgrind.h, but valgrind support was requested.]) |
| 5773 |
fi |
| 5774 |
else |
| 5775 |
AC_MSG_RESULT([no]) |
| 5765 |
fi |
5776 |
fi |
| 5766 |
AC_SUBST([ENABLE_VALGRIND]) |
5777 |
AC_SUBST([ENABLE_VALGRIND]) |
| 5767 |
if test -z "$ENABLE_VALGRIND"; then |
5778 |
if test -z "$ENABLE_VALGRIND"; then |