projects
/
deliverable
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Include config.h globally trough DEFAULT_INCLUDES
[deliverable/babeltrace.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index a4dde9e00e214650f96d0ba14ce24ce2ebf5b28f..17a0e5e60af47dd43cc6b00f682672a0e88583ac 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-95,6
+95,7
@@
AC_CHECK_FUNCS([ \
gettimeofday munmap strtoul ftruncate gethostbyname \
localtime_r memset mkdir rmdir setenv socket \
strchr strdup strerror strndup strrchr strtoull tzset \
gettimeofday munmap strtoul ftruncate gethostbyname \
localtime_r memset mkdir rmdir setenv socket \
strchr strdup strerror strndup strrchr strtoull tzset \
+ strnlen mkdtemp dirfd \
])
# Check for MinGW32.
])
# Check for MinGW32.
@@
-154,11
+155,17
@@
AC_CHECK_LIB([c], [posix_fallocate],
]
)
]
)
+# Check for faccessat
+AC_CHECK_LIB([c], [faccessat],
+[
+ AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_FACCESSAT], 1, [Has faccessat support.])
+]
+)
+
AC_CHECK_LIB([popt], [poptGetContext], [],
[AC_MSG_ERROR([Cannot find popt.])]
)
AC_CHECK_LIB([popt], [poptGetContext], [],
[AC_MSG_ERROR([Cannot find popt.])]
)
-
# For Python
# SWIG version needed or newer:
swig_version=2.0.0
# For Python
# SWIG version needed or newer:
swig_version=2.0.0
@@
-222,9
+229,12
@@
PKG_CHECK_MODULES(GMODULE, [$pkg_modules])
AC_SUBST(PACKAGE_LIBS)
LIBS="$LIBS $GMODULE_LIBS"
AC_SUBST(PACKAGE_LIBS)
LIBS="$LIBS $GMODULE_LIBS"
-PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat
-include config.h
"
+PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat"
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_CFLAGS)
+DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_builddir)/include -include config.h"
+AC_SUBST(DEFAULT_INCLUDES)
+
babeltraceincludedir="${includedir}/babeltrace"
AC_SUBST(babeltraceincludedir)
babeltraceincludedir="${includedir}/babeltrace"
AC_SUBST(babeltraceincludedir)
This page took
0.025432 seconds
and
5
git commands to generate.