Commit 718cf8f0 authored by Luc Verhaegen's avatar Luc Verhaegen Committed by Siarhei Siamashka
Browse files

configure: check for ump/ump.h



And disable building ump when it is not there.
Signed-off-by: default avatarLuc Verhaegen <libv@skynet.be>
parent fed3148b
...@@ -88,13 +88,19 @@ fi ...@@ -88,13 +88,19 @@ fi
save_CFLAGS="$CFLAGS" save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -pthread" CFLAGS="$CFLAGS -pthread"
AC_CHECK_LIB([UMP], [ump_open], AC_CHECK_HEADER([ump/ump.h], [have_libump=yes], [have_libump=no])
[have_libump=yes
if test "x$have_libump" = xyes; then
AC_CHECK_LIB([UMP], [ump_open], [have_libump=yes], [have_libump=no])
fi
if test "x$have_libump" = xyes; then
LIBS="$LIBS -lUMP" LIBS="$LIBS -lUMP"
AC_DEFINE(HAVE_LIBUMP,[1],[libUMP library])], AC_DEFINE(HAVE_LIBUMP,[1],[libUMP library])
[have_libump=no]) AC_CHECK_LIB([UMP], [ump_cache_operations_control],
AC_CHECK_LIB([UMP], [ump_cache_operations_control],
[AC_DEFINE(HAVE_LIBUMP_CACHE_CONTROL,[1],[UMP cache control])]) [AC_DEFINE(HAVE_LIBUMP_CACHE_CONTROL,[1],[UMP cache control])])
fi
AM_CONDITIONAL([HAVE_LIBUMP], [test x$have_libump = xyes]) AM_CONDITIONAL([HAVE_LIBUMP], [test x$have_libump = xyes])
# revert back to the original CFLAGS if not messing with libUMP # revert back to the original CFLAGS if not messing with libUMP
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment