set MR bits on newly-created files.
[xfstests-dev.git] / dmapi / configure.in
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 dnl support for cross-compiling
7 AC_ARG_PROGRAM
8
9 AC_PROG_CC
10
11 AM_PROG_LIBTOOL
12
13 AC_PREFIX_DEFAULT(/usr/local/dmapi_tests)
14
15 dnl Checks for programs.
16
17 dnl Checks for libraries.
18 AC_CHECK_LIB(dm,dm_init_service)
19
20 dnl Checks for header files.
21 AC_CHECK_HEADERS(xfs/dmapi.h,have_xfs_dmapi_h=1)
22 AC_CHECK_HEADERS(sys/dmi.h)
23
24 CPPFLAGS="-I\$(top_srcdir)/src/common"
25 if test "$have_xfs_dmapi_h" = 1; then
26 CPPFLAGS="$CPPFLAGS -I/usr/include/xfs"
27 fi
28
29 AC_SUBST(CPPFLAGS)
30
31
32 AC_OUTPUT( \
33 Makefile \
34 src/Makefile \
35 src/common/Makefile \
36 src/common/cmd/Makefile \
37 src/common/lib/Makefile \
38 src/suite1/Makefile \
39 src/suite1/cmd/Makefile \
40 src/sample_hsm/Makefile \
41 src/simple/Makefile \
42 src/suite2/Makefile \
43 src/suite2/src/Makefile \
44 )