diff --git a/configure.ac b/configure.ac index 3e18f4a7..5a5887ac 100644 --- a/configure.ac +++ b/configure.ac @@ -1281,6 +1281,9 @@ AC_ARG_ENABLE([prof-libunwind], enable_prof_libunwind="0" else enable_prof_libunwind="1" + if test "x$enable_prof" = "x0" ; then + AC_MSG_ERROR([--enable-prof-libunwind should only be used with --enable-prof]) + fi fi ], [enable_prof_libunwind="0"]