projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: implement posix_fallocate wrapper
[babeltrace.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index f9bb2e033d0a0515b9e750fe0ff508dd10997e34..c4faf6e58d6fbe4040f4d00a80c174f2ab752182 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-37,6
+37,11
@@
AS_IF([test "x$ax_cv___attribute__" = "xyes"],
[:],
[AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
[:],
[AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
+AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
+LIBS="$PTHREAD_LIBS $LIBS"
+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+CC="$PTHREAD_CC"
+
# Check linker option
AX_APPEND_LINK_FLAGS([-Wl,--no-as-needed], [LD_NO_AS_NEEDED])
AC_SUBST([LD_NO_AS_NEEDED])
# Check linker option
AX_APPEND_LINK_FLAGS([-Wl,--no-as-needed], [LD_NO_AS_NEEDED])
AC_SUBST([LD_NO_AS_NEEDED])
@@
-128,6
+133,13
@@
AC_CHECK_LIB([c], [open_memstream],
]
)
]
)
+# Check for posix_fallocate
+AC_CHECK_LIB([c], [posix_fallocate],
+[
+ AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_POSIX_FALLOCATE], 1, [Has posix_fallocate support.])
+]
+)
+
AC_CHECK_LIB([popt], [poptGetContext], [],
[AC_MSG_ERROR([Cannot find popt.])]
)
AC_CHECK_LIB([popt], [poptGetContext], [],
[AC_MSG_ERROR([Cannot find popt.])]
)
This page took
0.025087 seconds
and
4
git commands to generate.