X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=a7f9a7398c7d18eb27d6d0dcb89c46f265b0b78b;hb=769d015768372ce7f68ff12bbc55aa339c3a6bcd;hp=075fe521bff11761c206b291e43e024025601b77;hpb=6cb88bc04f67ebc3264d3832f4ce5cca2c642ab4;p=ust.git diff --git a/configure.ac b/configure.ac index 075fe52..a7f9a73 100644 --- a/configure.ac +++ b/configure.ac @@ -49,8 +49,10 @@ AC_C_INLINE AC_FUNC_MALLOC AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol]) -AC_ARG_WITH(urcu, [ --with-urcu path Path to userspace RCU source], URCU_PATH="$withval", AC_MSG_ERROR([Must specify urcu path.])) -AC_ARG_WITH(kcompat, [ --with-kcompat path Path to userspace kcompat source], KCOMPAT_PATH="$withval", AC_MSG_ERROR([Must specify kcompat path.])) +AC_ARG_WITH(urcu, [ --with-urcu=path Path to userspace RCU library source], URCU_PATH="$withval", AC_MSG_ERROR([Must specify liburcu path.])) +AC_CHECK_FILE("$URCU_PATH/urcu.h", , AC_MSG_ERROR([Cannot find urcu.h in liburcu directory])) +AC_ARG_WITH(kcompat, [ --with-kcompat=path Path to libkcompat source], KCOMPAT_PATH="$withval", AC_MSG_ERROR([Must specify libkcompat path.])) +AC_CHECK_FILE("$KCOMPAT_PATH/kcompat.h", , AC_MSG_ERROR([Cannot find kcompat.h in libkcompat directory])) AC_SUBST(URCU_PATH) AC_SUBST(KCOMPAT_PATH) @@ -63,5 +65,5 @@ AC_SUBST(KCOMPAT_PATH) # ust/Makefile # ustd/Makefile]) -AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile]) +AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile ust/Makefile]) AC_OUTPUT