XFSQA test 144 fails again on tot linux_xfs
[xfstests-dev.git] / dmapi / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(src/common/cmd/read_invis.c)
3
4 AM_INIT_AUTOMAKE(dmapi_tests, 1.1)
5
6 AC_PROG_CC
7
8 AM_PROG_LIBTOOL
9
10 AC_PREFIX_DEFAULT(/usr/local/dmapi_tests)
11
12 dnl Checks for programs.
13
14 dnl Checks for libraries.
15 AC_CHECK_LIB(dm,dm_init_service)
16
17 dnl Checks for header files.
18 AC_CHECK_HEADERS(xfs/dmapi.h,have_xfs_dmapi_h=1)
19 AC_CHECK_HEADERS(sys/dmi.h)
20
21 CPPFLAGS="-I\$(top_srcdir)/src/common"
22 if test "$have_xfs_dmapi_h" = 1; then
23 CPPFLAGS="$CPPFLAGS -I/usr/include/xfs"
24 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE"
25 fi
26
27 AC_SUBST(CPPFLAGS)
28
29
30 AC_OUTPUT( \
31 Makefile \
32 src/Makefile \
33 src/common/Makefile \
34 src/common/cmd/Makefile \
35 src/common/lib/Makefile \
36 src/suite1/Makefile \
37 src/suite1/cmd/Makefile \
38 src/sample_hsm/Makefile \
39 src/simple/Makefile \
40 src/suite2/Makefile \
41 src/suite2/src/Makefile \
42 )