]> sourceware.org Git - lvm2.git/blame - configure.in
.
[lvm2.git] / configure.in
CommitLineData
d0191583 1###############################################################################
ad6254c5 2## Copyright (C) 2000-2004 Sistina Software, Inc. All rights reserved.
3041b72f 3## Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
795ca3e5 4##
ad6254c5
AK
5## This copyrighted material is made available to anyone wishing to use,
6## modify, copy, or redistribute it subject to the terms and conditions
7## of the GNU General Public License v.2.
795ca3e5 8##
ad6254c5
AK
9## You should have received a copy of the GNU General Public License
10## along with this program; if not, write to the Free Software Foundation,
11## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
795ca3e5
AK
12################################################################################
13
e24fb506 14AC_PREREQ(2.61)
80992638 15################################################################################
8ce0cbda 16dnl -- Process this file with autoconf to produce a configure script.
7a197a62
AK
17AC_INIT
18AC_CONFIG_SRCDIR([lib/device/dev-cache.h])
d0191583 19AC_CONFIG_HEADERS([lib/misc/configure.h])
72b2cb61 20
80992638 21################################################################################
ad6254c5 22dnl -- Setup the directory where autoconf has auxilary files
d3a356b4 23AC_CONFIG_AUX_DIR(autoconf)
795ca3e5 24
80992638 25################################################################################
8ce0cbda 26dnl -- Get system type
7a197a62 27AC_CANONICAL_TARGET([])
b896caa1
AK
28
29case "$host_os" in
30 linux*)
7f54ef36 31 CFLAGS="$CFLAGS"
8ce0cbda 32 COPTIMISE_FLAG="-O2"
80992638 33 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
8106cdd5
AK
34 CLDWHOLEARCHIVE="-Wl,-whole-archive"
35 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
80992638
AK
36 LDDEPS="$LDDEPS .export.sym"
37 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 38 LIB_SUFFIX=so
8106cdd5 39 DEVMAPPER=yes
1a9ea74d 40 ODIRECT=yes
d0191583 41 DM_IOCTLS=yes
80992638 42 SELINUX=yes
d3c8211f 43 CLUSTER=internal
f6fc418d 44 FSADM=yes
d0191583 45 ;;
8106cdd5 46 darwin*)
80992638 47 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
8ce0cbda 48 COPTIMISE_FLAG="-O2"
80992638 49 CLDFLAGS="$CLDFLAGS"
8106cdd5
AK
50 CLDWHOLEARCHIVE="-all_load"
51 CLDNOWHOLEARCHIVE=
d0191583 52 LIB_SUFFIX=dylib
a653923f 53 DEVMAPPER=yes
1a9ea74d 54 ODIRECT=no
d0191583 55 DM_IOCTLS=no
80992638 56 SELINUX=no
d3c8211f 57 CLUSTER=none
d0191583
JM
58 FSADM=no
59 ;;
b896caa1
AK
60esac
61
80992638 62################################################################################
8ce0cbda 63dnl -- Checks for programs.
162aefe8 64AC_PROG_SED
8ce0cbda
AK
65AC_PROG_AWK
66AC_PROG_CC
d0191583
JM
67
68dnl probably no longer needed in 2008, but...
69AC_PROG_GCC_TRADITIONAL
8ce0cbda
AK
70AC_PROG_INSTALL
71AC_PROG_LN_S
72AC_PROG_MAKE_SET
162aefe8 73AC_PROG_MKDIR_P
5556819a 74AC_PROG_RANLIB
8a2fc586
AK
75AC_PATH_PROG(CFLOW_CMD, cflow)
76AC_PATH_PROG(CSCOPE_CMD, cscope)
8ce0cbda
AK
77
78################################################################################
d0191583 79dnl -- Check for header files.
80992638 80AC_HEADER_DIRENT
d911ec67 81AC_HEADER_MAJOR
80992638 82AC_HEADER_STDC
ad6254c5
AK
83AC_HEADER_SYS_WAIT
84AC_HEADER_TIME
85
d0191583 86AC_CHECK_HEADERS([locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
d911ec67
AK
87 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
88 sys/wait.h time.h], ,
d0191583 89 [AC_MSG_ERROR(bailing out)])
ad6254c5
AK
90
91case "$host_os" in
92 linux*)
93 AC_CHECK_HEADERS(asm/byteorder.h linux/fs.h malloc.h,,AC_MSG_ERROR(bailing out)) ;;
94 darwin*)
95 AC_CHECK_HEADERS(machine/endian.h sys/disk.h,,AC_MSG_ERROR(bailing out)) ;;
96esac
80992638 97
d0191583
JM
98AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
99 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
100 sys/types.h unistd.h], , [AC_MSG_ERROR(bailing out)])
101AC_CHECK_HEADERS(termios.h sys/statvfs.h)
102
80992638 103################################################################################
d0191583 104dnl -- Check for typedefs, structures, and compiler characteristics.
80992638
AK
105AC_C_CONST
106AC_C_INLINE
d0191583 107AC_CHECK_MEMBERS([struct stat.st_rdev])
80992638
AK
108AC_TYPE_OFF_T
109AC_TYPE_PID_T
d0191583 110AC_TYPE_SIGNAL
80992638 111AC_TYPE_SIZE_T
ad6254c5 112AC_TYPE_MODE_T
d911ec67
AK
113AC_TYPE_INT8_T
114AC_TYPE_INT16_T
115AC_TYPE_INT32_T
116AC_TYPE_INT64_T
117AC_TYPE_SSIZE_T
118AC_TYPE_UID_T
119AC_TYPE_UINT8_T
120AC_TYPE_UINT16_T
121AC_TYPE_UINT32_T
122AC_TYPE_UINT64_T
7a197a62 123AC_CHECK_MEMBERS([struct stat.st_rdev])
ad6254c5
AK
124AC_STRUCT_TM
125
126################################################################################
127dnl -- Check for functions
7c9fd3ea 128AC_CHECK_FUNCS([ftruncate gethostname getpagesize \
d911ec67
AK
129 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
130 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
131 strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)])
a0f9708e 132AC_CHECK_FUNCS(siginterrupt)
ad6254c5
AK
133AC_FUNC_ALLOCA
134AC_FUNC_CLOSEDIR_VOID
d911ec67 135AC_FUNC_CHOWN
ad6254c5
AK
136AC_FUNC_FORK
137AC_FUNC_LSTAT
138AC_FUNC_MALLOC
139AC_FUNC_MEMCMP
140AC_FUNC_MMAP
d911ec67 141AC_FUNC_REALLOC
ad6254c5
AK
142AC_FUNC_STAT
143AC_FUNC_STRTOD
d0191583 144AC_FUNC_VPRINTF
80992638 145
9c961554
MB
146################################################################################
147dnl -- Enables statically-linked tools
148AC_MSG_CHECKING(whether to use static linking)
149AC_ARG_ENABLE(static_link,
71082be4
ZK
150 AC_HELP_STRING([--enable-static_link],
151 [use this to link the tools to their libraries
152 statically (default is dynamic linking]),
153 STATIC_LINK=$enableval, STATIC_LINK=no)
9c961554
MB
154AC_MSG_RESULT($STATIC_LINK)
155
80992638 156################################################################################
8ce0cbda 157dnl -- Prefix is /usr by default, the exec_prefix default is setup later
795ca3e5
AK
158AC_PREFIX_DEFAULT(/usr)
159
80992638 160################################################################################
8ce0cbda 161dnl -- Setup the ownership of the files
ad6254c5 162AC_MSG_CHECKING(file owner)
795ca3e5 163AC_ARG_WITH(user,
71082be4
ZK
164 AC_HELP_STRING([--with-user=USER],
165 [set the owner of installed files [[USER=]]]),
166 OWNER=$withval)
ad6254c5 167AC_MSG_RESULT($OWNER)
a38df97f
AK
168
169if test x$OWNER != x; then
23b059e7 170 INSTALL="$INSTALL -o $OWNER"
a38df97f 171fi
795ca3e5 172
80992638 173################################################################################
8ce0cbda 174dnl -- Setup the group ownership of the files
ad6254c5 175AC_MSG_CHECKING(group owner)
795ca3e5 176AC_ARG_WITH(group,
71082be4
ZK
177 AC_HELP_STRING([--with-group=GROUP],
178 [set the group owner of installed files [[GROUP=]]]),
179 GROUP=$withval)
ad6254c5 180AC_MSG_RESULT($GROUP)
a38df97f
AK
181
182if test x$GROUP != x; then
23b059e7 183 INSTALL="$INSTALL -g $GROUP"
a38df97f 184fi
795ca3e5 185
0782ad50
AK
186################################################################################
187dnl -- Setup device node ownership
188AC_MSG_CHECKING(device node uid)
189
190AC_ARG_WITH(device-uid,
71082be4
ZK
191 AC_HELP_STRING([--with-device-uid=UID],
192 [set the owner used for new device nodes [[UID=0]]]),
193 DM_DEVICE_UID=$withval, DM_DEVICE_UID=0)
0782ad50
AK
194AC_MSG_RESULT($DM_DEVICE_UID)
195
196################################################################################
197dnl -- Setup device group ownership
198AC_MSG_CHECKING(device node gid)
199
200AC_ARG_WITH(device-gid,
71082be4
ZK
201 AC_HELP_STRING([--with-device-gid=GID],
202 [set the group used for new device nodes [[GID=0]]]),
203 DM_DEVICE_GID=$withval, DM_DEVICE_GID=0)
0782ad50
AK
204AC_MSG_RESULT($DM_DEVICE_GID)
205
f6fc418d
AK
206################################################################################
207dnl -- Setup device mode
208AC_MSG_CHECKING(device node mode)
209
210AC_ARG_WITH(device-mode,
71082be4
ZK
211 AC_HELP_STRING([--with-device-mode=MODE],
212 [set the mode used for new device nodes [[MODE=0600]]]),
213 DM_DEVICE_MODE=$withval, DM_DEVICE_MODE=0600)
f6fc418d
AK
214AC_MSG_RESULT($DM_DEVICE_MODE)
215
d0df875d
ZK
216AC_MSG_CHECKING(when to create device nodes)
217AC_ARG_WITH(device-nodes-on,
218 AC_HELP_STRING([--with-device-nodes-on=ON],
219 [create nodes on resume or create [[ON=resume]]]),
220 ADD_NODE=$withval, ADD_NODE=resume)
221case "$ADD_NODE" in
222 resume) add_on=DM_ADD_NODE_ON_RESUME;;
223 create) add_on=DM_ADD_NODE_ON_CREATE;;
224 *) AC_MSG_ERROR([--with-device-nodes-on parameter invalid]);;
225esac
226AC_MSG_RESULT(on $ADD_NODE)
227AC_DEFINE_UNQUOTED([DEFAULT_DM_ADD_NODE], $add_on, [Define default node creation behavior with dmsetup create])
228
80992638 229################################################################################
7d1552c9 230dnl -- LVM1 tool fallback option
ad6254c5 231AC_MSG_CHECKING(whether to enable lvm1 fallback)
71082be4
ZK
232AC_ARG_ENABLE(lvm1_fallback,
233 AC_HELP_STRING([--enable-lvm1_fallback],
234 [use this to fall back and use LVM1 binaries if
235 device-mapper is missing from the kernel]),
236 LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no)
ad6254c5 237AC_MSG_RESULT($LVM1_FALLBACK)
7d1552c9
AK
238
239if test x$LVM1_FALLBACK = xyes; then
72b2cb61 240 AC_DEFINE([LVM1_FALLBACK], 1, [Define to 1 if 'lvm' should fall back to using LVM1 binaries if device-mapper is missing from the kernel])
7d1552c9
AK
241fi
242
80992638 243################################################################################
5a52dca9 244dnl -- format1 inclusion type
ad6254c5 245AC_MSG_CHECKING(whether to include support for lvm1 metadata)
5a52dca9 246AC_ARG_WITH(lvm1,
71082be4
ZK
247 AC_HELP_STRING([--with-lvm1=TYPE],
248 [LVM1 metadata support: internal/shared/none
249 [[TYPE=internal]]]),
250 LVM1=$withval, LVM1=internal)
ad6254c5 251AC_MSG_RESULT($LVM1)
5a52dca9
AK
252
253if [[ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]];
254 then AC_MSG_ERROR(
255--with-lvm1 parameter invalid
256)
5a52dca9
AK
257fi;
258
b896caa1 259if test x$LVM1 = xinternal; then
72b2cb61 260 AC_DEFINE([LVM1_INTERNAL], 1, [Define to 1 to include built-in support for LVM1 metadata.])
b896caa1
AK
261fi
262
80992638 263################################################################################
d8ac0fbc 264dnl -- format_pool inclusion type
ad6254c5 265AC_MSG_CHECKING(whether to include support for GFS pool metadata)
d8ac0fbc 266AC_ARG_WITH(pool,
71082be4
ZK
267 AC_HELP_STRING([--with-pool=TYPE],
268 [GFS pool read-only support: internal/shared/none
269 [[TYPE=internal]]]),
270 POOL=$withval, POOL=internal)
ad6254c5 271AC_MSG_RESULT($POOL)
d8ac0fbc
AK
272
273if [[ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]];
274 then AC_MSG_ERROR(
275--with-pool parameter invalid
276)
d8ac0fbc
AK
277fi;
278
279if test x$POOL = xinternal; then
72b2cb61 280 AC_DEFINE([POOL_INTERNAL], 1, [Define to 1 to include built-in support for GFS pool metadata.])
d8ac0fbc
AK
281fi
282
80992638 283################################################################################
d3c8211f 284dnl -- cluster_locking inclusion type
ad6254c5 285AC_MSG_CHECKING(whether to include support for cluster locking)
d3c8211f 286AC_ARG_WITH(cluster,
71082be4
ZK
287 AC_HELP_STRING([--with-cluster=TYPE],
288 [cluster LVM locking support: internal/shared/none
289 [[TYPE=internal]]]),
290 CLUSTER=$withval)
ad6254c5 291AC_MSG_RESULT($CLUSTER)
d3c8211f
AK
292
293if [[ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]];
294 then AC_MSG_ERROR(
295--with-cluster parameter invalid
296)
d3c8211f
AK
297fi;
298
299if test x$CLUSTER = xinternal; then
72b2cb61 300 AC_DEFINE([CLUSTER_LOCKING_INTERNAL], 1, [Define to 1 to include built-in support for clustered LVM locking.])
d3c8211f 301fi
d8ac0fbc 302
80992638 303################################################################################
4922197a 304dnl -- snapshots inclusion type
ad6254c5 305AC_MSG_CHECKING(whether to include snapshots)
4922197a 306AC_ARG_WITH(snapshots,
71082be4
ZK
307 AC_HELP_STRING([--with-snapshots=TYPE],
308 [snapshot support: internal/shared/none
309 [[TYPE=internal]]]),
310 SNAPSHOTS=$withval, SNAPSHOTS=internal)
ad6254c5 311AC_MSG_RESULT($SNAPSHOTS)
4922197a
AK
312
313if [[ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]];
314 then AC_MSG_ERROR(
315--with-snapshots parameter invalid
316)
4922197a
AK
317fi;
318
319if test x$SNAPSHOTS = xinternal; then
72b2cb61 320 AC_DEFINE([SNAPSHOT_INTERNAL], 1, [Define to 1 to include built-in support for snapshots.])
4922197a
AK
321fi
322
80992638 323################################################################################
4922197a 324dnl -- mirrors inclusion type
ad6254c5 325AC_MSG_CHECKING(whether to include mirrors)
4922197a 326AC_ARG_WITH(mirrors,
71082be4
ZK
327 AC_HELP_STRING([--with-mirrors=TYPE],
328 [mirror support: internal/shared/none
329 [[TYPE=internal]]]),
330 MIRRORS=$withval, MIRRORS=internal)
ad6254c5 331AC_MSG_RESULT($MIRRORS)
4922197a
AK
332
333if [[ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]];
334 then AC_MSG_ERROR(
335--with-mirrors parameter invalid
336)
4922197a
AK
337fi;
338
339if test x$MIRRORS = xinternal; then
72b2cb61 340 AC_DEFINE([MIRRORED_INTERNAL], 1, [Define to 1 to include built-in support for mirrors.])
4922197a
AK
341fi
342
cac52ca4
JEB
343################################################################################
344dnl -- raid inclusion type
345AC_MSG_CHECKING(whether to include raid)
346AC_ARG_WITH(raid,
347 AC_HELP_STRING([--with-raid=TYPE],
348 [mirror support: internal/shared/none
349 [[TYPE=internal]]]),
350 RAID=$withval, RAID=internal)
351AC_MSG_RESULT($RAID)
352
353if [[ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]];
354 then AC_MSG_ERROR(
355--with-raid parameter invalid
356)
357fi;
358
359if test x$RAID = xinternal; then
360 AC_DEFINE([RAID_INTERNAL], 1, [Define to 1 to include built-in support for raid.])
361fi
362
8fea97b7
ZK
363################################################################################
364dnl -- asynchronous volume replicator inclusion type
365AC_MSG_CHECKING(whether to include replicators)
71082be4
ZK
366AC_ARG_WITH(replicators,
367 AC_HELP_STRING([--with-replicators=TYPE],
368 [replicator support: internal/shared/none
369 [[TYPE=none]]]),
370 REPLICATORS=$withval, REPLICATORS=none)
8fea97b7
ZK
371AC_MSG_RESULT($REPLICATORS)
372
373case "$REPLICATORS" in
374 none|shared) ;;
375 internal) AC_DEFINE([REPLICATOR_INTERNAL], 1,
376 [Define to 1 to include built-in support for replicators.]) ;;
377 *) AC_MSG_ERROR([--with-replicators parameter invalid ($REPLICATORS)]) ;;
378esac
379
80992638 380################################################################################
1b523347 381dnl -- Disable readline
ad6254c5 382AC_MSG_CHECKING(whether to enable readline)
2c189a57 383AC_ARG_ENABLE([readline],
71082be4
ZK
384 AC_HELP_STRING([--disable-readline], [disable readline support]),
385 READLINE=$enableval, READLINE=maybe)
ad6254c5 386AC_MSG_RESULT($READLINE)
795ca3e5 387
8b1a3214
AK
388################################################################################
389dnl -- Disable realtime clock support
390AC_MSG_CHECKING(whether to enable realtime support)
71082be4
ZK
391AC_ARG_ENABLE(realtime,
392 AC_HELP_STRING([--enable-realtime], [enable realtime clock support]),
393 REALTIME=$enableval)
8b1a3214
AK
394AC_MSG_RESULT($REALTIME)
395
e40d44be
ZK
396################################################################################
397dnl -- disable OCF resource agents
398AC_MSG_CHECKING(whether to enable OCF resource agents)
399AC_ARG_ENABLE(ocf,
400 AC_HELP_STRING([--enable-ocf],
401 [enable Open Cluster Framework (OCF) compliant resource agents]),
402 OCF=$enableval, OCF=no)
403AC_MSG_RESULT($OCF)
349da06c
ZK
404AC_ARG_WITH(ocfdir,
405 AC_HELP_STRING([--with-ocfdir=DIR],
406 [install OCF files in DIR [[PREFIX/lib/ocf/resource.d/lvm2]]]),
407 OCFDIR=$withval, OCFDIR='${prefix}/lib/ocf/resource.d/lvm2')
e40d44be 408
90c80887
AK
409################################################################################
410dnl -- Init pkg-config with dummy invokation:
411dnl -- this is required because PKG_CHECK_MODULES macro is expanded
412dnl -- to initialize the pkg-config environment only at the first invokation,
413dnl -- that would be conditional in this configure.in.
414pkg_config_init() {
415 PKG_CHECK_MODULES(PKGCONFIGINIT, pkgconfiginit, [],
416 [AC_MSG_RESULT([pkg-config initialized])])
417 PKGCONFIG_INIT=1
418}
419
80992638 420################################################################################
8ce0cbda 421dnl -- Build cluster LVM daemon
ad6254c5 422AC_MSG_CHECKING(whether to build cluster LVM daemon)
a266258f 423AC_ARG_WITH(clvmd,
71082be4 424 [ --with-clvmd=TYPE build cluster LVM Daemon
8c222979 425 The following cluster manager combinations are valid:
a946372e
AK
426 * cman (RHEL5 or equivalent)
427 * cman,corosync,openais (or selection of them)
649c4507 428 * singlenode (localhost only)
a946372e
AK
429 * all (autodetect)
430 * none (disable build)
71082be4
ZK
431 [[TYPE=none]]],
432 CLVMD=$withval, CLVMD=none)
a266258f 433if test x$CLVMD = xyes; then
5c7fc7c4 434 CLVMD=all
b1098701 435fi
ad6254c5 436AC_MSG_RESULT($CLVMD)
80992638 437
8ce0cbda 438dnl -- If clvmd enabled without cluster locking, automagically include it
a266258f 439if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
d3c8211f
AK
440 CLUSTER=internal
441fi
d3c8211f 442
90c80887 443dnl -- init pkgconfig if required
34b6075d 444if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
90c80887
AK
445 pkg_config_init
446fi
447
34b6075d
FDN
448dnl -- Express clvmd init script Required-Start / Required-Stop
449CLVMD_CMANAGERS=""
450dnl -- On RHEL4/RHEL5, qdiskd is started from a separate init script.
7cf60770 451dnl -- Enable if we are build for cman.
34b6075d 452CLVMD_NEEDS_QDISKD=no
90c80887 453
a946372e
AK
454dnl -- define build types
455if [[ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]]; then
7cf60770 456 AC_MSG_ERROR([Since version 2.02.87 GULM locking is no longer supported.]);
34b6075d
FDN
457fi
458if [[ `expr x"$CLVMD" : '.*cman.*'` != 0 ]]; then
459 BUILDCMAN=yes
460 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
461 CLVMD_NEEDS_QDISKD=yes
a946372e
AK
462fi
463if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
464 BUILDCOROSYNC=yes
34b6075d 465 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
a946372e
AK
466fi
467if [[ `expr x"$CLVMD" : '.*openais.*'` != 0 ]]; then
468 BUILDOPENAIS=yes
34b6075d 469 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
a946372e 470fi
34b6075d
FDN
471if test x$CLVMD_NEEDS_QDISKD != xno; then
472 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
a946372e
AK
473fi
474
a946372e
AK
475dnl -- define a soft bailout if we are autodetecting
476soft_bailout() {
477 NOTFOUND=1
478}
479
480hard_bailout() {
481 AC_MSG_ERROR([bailing out])
482}
483
484dnl -- if clvmd=all then set soft_bailout (we don't want to error)
485dnl -- and set all builds to yes. We need to do this here
7cf60770 486dnl -- to skip the openais|corosync sanity check above.
a946372e
AK
487if test x$CLVMD = xall; then
488 bailout=soft_bailout
a946372e
AK
489 BUILDCMAN=yes
490 BUILDCOROSYNC=yes
491 BUILDOPENAIS=yes
492else
493 bailout=hard_bailout
494fi
495
496dnl -- helper macro to check libs without adding them to LIBS
497check_lib_no_libs() {
498 lib_no_libs_arg1=$1
499 shift
500 lib_no_libs_arg2=$1
501 shift
502 lib_no_libs_args=$@
503 AC_CHECK_LIB([$lib_no_libs_arg1],
504 [$lib_no_libs_arg2],,
505 [$bailout],
506 [$lib_no_libs_args])
507 LIBS=$ac_check_lib_save_LIBS
508}
509
a946372e
AK
510dnl -- Look for cman libraries if required.
511if test x$BUILDCMAN = xyes; then
512 PKG_CHECK_MODULES(CMAN, libcman, [HAVE_CMAN=yes],
513 [NOTFOUND=0
514 AC_CHECK_HEADERS(libcman.h,,$bailout)
515 check_lib_no_libs cman cman_init
516 if test $NOTFOUND = 0; then
517 AC_MSG_RESULT([no pkg for libcman, using -lcman])
518 CMAN_LIBS="-lcman"
519 HAVE_CMAN=yes
520 fi])
521 CHECKCONFDB=yes
522 CHECKDLM=yes
523fi
524
525dnl -- Look for corosync that's required also for openais build
526dnl -- only enough recent version of corosync ship pkg-config files.
527dnl -- We can safely rely on that to detect the correct bits.
528if test x$BUILDCOROSYNC = xyes || \
529 test x$BUILDOPENAIS = xyes; then
530 PKG_CHECK_MODULES(COROSYNC, corosync, [HAVE_COROSYNC=yes], $bailout)
531 CHECKCONFDB=yes
532fi
533
edf47283 534dnl -- Look for corosync libraries if required.
a946372e
AK
535if test x$BUILDCOROSYNC = xyes; then
536 PKG_CHECK_MODULES(QUORUM, libquorum, [HAVE_QUORUM=yes], $bailout)
537 CHECKCPG=yes
538 CHECKDLM=yes
539fi
540
541dnl -- Look for openais libraries if required.
542if test x$BUILDOPENAIS = xyes; then
543 PKG_CHECK_MODULES(SALCK, libSaLck, [HAVE_SALCK=yes], $bailout)
544 CHECKCPG=yes
545fi
546
547dnl -- Below are checks for libraries common to more than one build.
548
549dnl -- Check confdb library.
550dnl -- mandatory for corosync build.
551dnl -- optional for openais/cman build.
552
553if test x$CHECKCONFDB = xyes; then
554 PKG_CHECK_MODULES(CONFDB, libconfdb,
555 [HAVE_CONFDB=yes],
556 [HAVE_CONFDB=no])
557
558 AC_CHECK_HEADERS(corosync/confdb.h,
559 [HAVE_CONFDB_H=yes],
560 [HAVE_CONFDB_H=no])
561
562 if test x$HAVE_CONFDB != xyes && \
563 test x$HAVE_CONFDB_H = xyes; then
564 check_lib_no_libs confdb confdb_initialize
565 AC_MSG_RESULT([no pkg for confdb, using -lconfdb])
566 CONFDB_LIBS="-lconfdb"
567 HAVE_CONFDB=yes
568 fi
569
570 if test x$BUILDCOROSYNC = xyes && \
571 test x$HAVE_CONFDB != xyes &&
572 test x$CLVMD != xall; then
573 AC_MSG_ERROR([bailing out... confdb library is required])
574 fi
575fi
576
577dnl -- Check cpg library.
578if test x$CHECKCPG = xyes; then
579 PKG_CHECK_MODULES(CPG, libcpg, [HAVE_CPG=yes], $bailout)
580fi
581
582dnl -- Check dlm library.
583if test x$CHECKDLM = xyes; then
584 PKG_CHECK_MODULES(DLM, libdlm, [HAVE_DLM=yes],
585 [NOTFOUND=0
586 AC_CHECK_HEADERS(libdlm.h,,$bailout)
587 check_lib_no_libs dlm dlm_lock -lpthread
588 if test $NOTFOUND = 0; then
589 AC_MSG_RESULT([no pkg for libdlm, using -ldlm])
590 DLM_LIBS="-ldlm -lpthread"
591 HAVE_DLM=yes
592 fi])
593fi
594
595dnl -- If we are autodetecting, we need to re-create
34b6075d
FDN
596dnl -- the depedencies checks and set a proper CLVMD,
597dnl -- together with init script Required-Start/Stop entries.
a946372e 598if test x$CLVMD = xall; then
8c222979 599 CLVMD=none
34b6075d
FDN
600 CLVMD_CMANAGERS=""
601 CLVMD_NEEDS_QDISKD=no
a946372e
AK
602 if test x$HAVE_CMAN = xyes && \
603 test x$HAVE_DLM = xyes; then
8c222979
FDN
604 AC_MSG_RESULT([Enabling clvmd cman cluster manager])
605 CLVMD="$CLVMD,cman"
34b6075d
FDN
606 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
607 CLVMD_NEEDS_QDISKD=yes
a946372e
AK
608 fi
609 if test x$HAVE_COROSYNC = xyes && \
610 test x$HAVE_QUORUM = xyes && \
611 test x$HAVE_CPG = xyes && \
612 test x$HAVE_DLM = xyes && \
613 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
614 AC_MSG_RESULT([Enabling clvmd corosync cluster manager])
615 CLVMD="$CLVMD,corosync"
34b6075d 616 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
a946372e
AK
617 fi
618 if test x$HAVE_COROSYNC = xyes && \
619 test x$HAVE_CPG = xyes && \
620 test x$HAVE_SALCK = xyes; then
8c222979
FDN
621 AC_MSG_RESULT([Enabling clvmd openais cluster manager])
622 CLVMD="$CLVMD,openais"
34b6075d
FDN
623 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
624 fi
625 if test x$CLVMD_NEEDS_QDISKD != xno; then
626 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8c222979
FDN
627 fi
628 if test x$CLVMD = xnone; then
629 AC_MSG_RESULT([Disabling clvmd build. No cluster manager detected.])
a946372e 630 fi
edf47283
AK
631fi
632
8c4e8a18
FDN
633################################################################################
634dnl -- clvmd pidfile
635if test "x$CLVMD" != xnone; then
636 AC_ARG_WITH(clvmd-pidfile,
637 AC_HELP_STRING([--with-clvmd-pidfile=PATH],
638 [clvmd pidfile [[/var/run/clvmd.pid]]]),
639 CLVMD_PIDFILE=$withval,
640 CLVMD_PIDFILE="/var/run/clvmd.pid")
641 AC_DEFINE_UNQUOTED(CLVMD_PIDFILE, ["$CLVMD_PIDFILE"],
642 [Path to clvmd pidfile.])
643fi
644
3c14bcca 645################################################################################
66fd4529
AK
646dnl -- Build cluster mirror log daemon
647AC_MSG_CHECKING(whether to build cluster mirror log daemon)
71082be4
ZK
648AC_ARG_ENABLE(cmirrord,
649 AC_HELP_STRING([--enable-cmirrord],
650 [enable the cluster mirror log daemon]),
651 CMIRRORD=$enableval, CMIRRORD=no)
66fd4529 652AC_MSG_RESULT($CMIRRORD)
3c14bcca 653
66fd4529
AK
654BUILD_CMIRRORD=$CMIRRORD
655
656################################################################################
657dnl -- cmirrord pidfile
66fd4529
AK
658if test "x$BUILD_CMIRRORD" = xyes; then
659 AC_ARG_WITH(cmirrord-pidfile,
71082be4
ZK
660 AC_HELP_STRING([--with-cmirrord-pidfile=PATH],
661 [cmirrord pidfile [[/var/run/cmirrord.pid]]]),
662 CMIRRORD_PIDFILE=$withval,
663 CMIRRORD_PIDFILE="/var/run/cmirrord.pid")
664 AC_DEFINE_UNQUOTED(CMIRRORD_PIDFILE, ["$CMIRRORD_PIDFILE"],
665 [Path to cmirrord pidfile.])
66fd4529
AK
666fi
667
668################################################################################
3c14bcca 669dnl -- Look for corosync libraries if required.
66fd4529 670if [[ "x$BUILD_CMIRRORD" = xyes ]]; then
90c80887
AK
671 dnl -- init pkgconfig if required
672 if test x$PKGCONFIG_INIT != x1; then
673 pkg_config_init
674 fi
675 PKG_CHECK_MODULES(SACKPT, libSaCkpt)
676 if test x$HAVE_CPG != xyes; then
677 PKG_CHECK_MODULES(CPG, libcpg)
678 fi
3c14bcca
JEB
679fi
680
80992638 681################################################################################
8ce0cbda 682dnl -- Enable debugging
ad6254c5 683AC_MSG_CHECKING(whether to enable debugging)
71082be4
ZK
684AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable debugging]),
685 DEBUG=$enableval, DEBUG=no)
ad6254c5 686AC_MSG_RESULT($DEBUG)
8ef2b021 687
8ce0cbda
AK
688dnl -- Normally turn off optimisation for debug builds
689if test x$DEBUG = xyes; then
690 COPTIMISE_FLAG=
8a2fc586
AK
691else
692 CSCOPE_CMD=
8ce0cbda
AK
693fi
694
695################################################################################
696dnl -- Override optimisation
ad6254c5 697AC_MSG_CHECKING(for C optimisation flag)
8ce0cbda 698AC_ARG_WITH(optimisation,
71082be4
ZK
699 AC_HELP_STRING([--with-optimisation=OPT],
700 [C optimisation flag [[OPT=-O2]]]),
701 COPTIMISE_FLAG=$withval)
ad6254c5 702AC_MSG_RESULT($COPTIMISE_FLAG)
8ce0cbda 703
fddafd51
ZK
704################################################################################
705dnl -- Enable profiling
5556819a 706AC_MSG_CHECKING(whether to gather gcov profiling data)
fddafd51 707AC_ARG_ENABLE(profiling,
71082be4
ZK
708 AC_HELP_STRING(--enable-profiling, [gather gcov profiling data]),
709 PROFILING=$enableval, PROFILING=no)
5556819a
AK
710AC_MSG_RESULT($PROFILING)
711
712if test "x$PROFILING" = xyes; then
713 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
fd4728e1
ZK
714 AC_PATH_PROG(LCOV, lcov)
715 AC_PATH_PROG(GENHTML, genhtml)
716 if test -z "$LCOV" -o -z "$GENHTML"; then
b145d876
ZK
717 AC_MSG_ERROR([lcov and genhtml are required for profiling])
718 fi
fd4728e1
ZK
719 AC_PATH_PROG(GENPNG, genpng)
720 if test -n "$GENPNG"; then
721 AC_MSG_CHECKING([whether $GENPNG has all required modules])
722 if $GENPNG --help > /dev/null 2>&1 ; then
723 AC_MSG_RESULT(ok)
724 GENHTML="$GENHTML --frames"
725 else
726 AC_MSG_RESULT(not supported)
727 AC_MSG_WARN([GD.pm perl module is not installed])
728 GENPNG=
729 fi
730 fi
5556819a 731fi
fddafd51 732
1033d120
JT
733################################################################################
734dnl -- Enable testing
735AC_MSG_CHECKING(whether to enable unit testing)
736AC_ARG_ENABLE(testing,
737 AC_HELP_STRING(--enable-testing, [enable testing targets in the makefile]),
738 TESTING=$enableval, TESTING=no)
739AC_MSG_RESULT($TESTING)
740
741if test "$TESTING" = yes; then
742 AC_PATH_PROG(RUBY19, ruby1.9)
743 AC_PATH_PROG(VALGRIND, valgrind)
744 if test -z "$RUBY19" -o -z "$VALGRIND"; then
745 AC_MSG_ERROR([ruby1.9 and valgrind are required for testing])
746 fi
747fi
748
52e1564f
JT
749################################################################################
750dnl -- Enable valgrind awareness of memory pools
751AC_MSG_CHECKING(whether to enable valgrind awareness of pools)
752AC_ARG_ENABLE(valgrind_pool,
753 AC_HELP_STRING(--enable-valgrind-pool, [enable valgrind awareness of pools]),
754 VALGRIND_POOL=$enableval, VALGRIND_POOL=no)
755AC_MSG_RESULT($VALGRIND_POOL)
756
757if test "$VALGRIND_POOL" = yes; then
758 AC_CHECK_HEADERS([valgrind/memcheck.h], , [AC_MSG_ERROR(bailing out)])
759 AC_DEFINE([VALGRIND_POOL], 1, [Enable a valgrind aware build of pool])
760fi
761
80992638 762################################################################################
8ce0cbda 763dnl -- Disable devmapper
ad6254c5 764AC_MSG_CHECKING(whether to use device-mapper)
71082be4
ZK
765AC_ARG_ENABLE(devmapper,
766 AC_HELP_STRING([--disable-devmapper],
767 [disable LVM2 device-mapper interaction]),
768 DEVMAPPER=$enableval)
ad6254c5 769AC_MSG_RESULT($DEVMAPPER)
199e490e 770
b896caa1 771if test x$DEVMAPPER = xyes; then
f6fc418d 772 AC_DEFINE([DEVMAPPER_SUPPORT], 1, [Define to 1 to enable LVM2 device-mapper interaction.])
b896caa1
AK
773fi
774
5d518f1f
AK
775################################################################################
776dnl -- Enable udev synchronisation
777AC_MSG_CHECKING(whether to enable synchronisation with udev processing)
71082be4
ZK
778AC_ARG_ENABLE(udev_sync,
779 AC_HELP_STRING([--enable-udev_sync],
780 [enable synchronisation with udev processing]),
781 UDEV_SYNC=$enableval, UDEV_SYNC=no)
5d518f1f
AK
782AC_MSG_RESULT($UDEV_SYNC)
783
784if test x$UDEV_SYNC = xyes; then
86ba564a
AK
785 dnl -- init pkgconfig if required
786 if test x$PKGCONFIG_INIT != x1; then
787 pkg_config_init
788 fi
71b29ddc 789 PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"])
5d518f1f
AK
790 AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
791fi
792
793dnl -- Enable udev rules
794AC_MSG_CHECKING(whether to enable installation of udev rules required for synchronisation)
71082be4
ZK
795AC_ARG_ENABLE(udev_rules,
796 AC_HELP_STRING([--enable-udev_rules],
797 [install rule files needed for udev synchronisation]),
798 UDEV_RULES=$enableval, UDEV_RULES=$UDEV_SYNC)
5d518f1f
AK
799AC_MSG_RESULT($UDEV_RULES)
800
f6fc418d
AK
801################################################################################
802dnl -- Compatibility mode
71082be4
ZK
803AC_ARG_ENABLE(compat,
804 AC_HELP_STRING([--enable-compat],
805 [enable support for old device-mapper versions]),
806 DM_COMPAT=$enableval, DM_COMPAT=no)
f6fc418d 807
2061c0ec
AK
808if test x$DM_COMPAT = xyes; then
809 AC_MSG_ERROR(
810 [--enable-compat is not currently supported.
811Since device-mapper version 1.02.66, only one version (4) of the device-mapper
812ioctl protocol is supported.]
813 )
814fi
815
95eaa683
AK
816################################################################################
817dnl -- Compatible units suffix mode
818AC_ARG_ENABLE(units-compat,
71082be4
ZK
819 AC_HELP_STRING([--enable-units-compat],
820 [enable output compatibility with old versions that
821 that do not use KiB-style unit suffixes]),
822 UNITS_COMPAT=$enableval, UNITS_COMPAT=no)
95eaa683
AK
823
824if test x$UNITS_COMPAT = xyes; then
825 AC_DEFINE([DEFAULT_SI_UNIT_CONSISTENCY], 0, [Define to 0 to reinstate the pre-2.02.54 handling of unit suffixes.])
826fi
827
f6fc418d
AK
828################################################################################
829dnl -- Disable ioctl
71082be4
ZK
830AC_ARG_ENABLE(ioctl,
831 AC_HELP_STRING([--disable-driver],
832 [disable calls to device-mapper in the kernel]),
833 DM_IOCTLS=$enableval)
f6fc418d 834
80992638 835################################################################################
8ce0cbda 836dnl -- Disable O_DIRECT
ad6254c5 837AC_MSG_CHECKING(whether to enable O_DIRECT)
71082be4
ZK
838AC_ARG_ENABLE(o_direct,
839 AC_HELP_STRING([--disable-o_direct], [disable O_DIRECT]),
840 ODIRECT=$enableval)
ad6254c5 841AC_MSG_RESULT($ODIRECT)
2dc95e1c
AK
842
843if test x$ODIRECT = xyes; then
72b2cb61 844 AC_DEFINE([O_DIRECT_SUPPORT], 1, [Define to 1 to enable O_DIRECT support.])
2dc95e1c
AK
845fi
846
572fefeb
AK
847################################################################################
848dnl -- Enable liblvm2app.so
849AC_MSG_CHECKING(whether to build liblvm2app.so application library)
850AC_ARG_ENABLE(applib,
71082be4
ZK
851 AC_HELP_STRING([--enable-applib], [build application library]),
852 APPLIB=$enableval, APPLIB=no)
572fefeb
AK
853AC_MSG_RESULT($APPLIB)
854AC_SUBST([LVM2APP_LIB])
855test x$APPLIB = xyes \
856 && LVM2APP_LIB=-llvm2app \
857 || LVM2APP_LIB=
858
80992638 859################################################################################
8ce0cbda 860dnl -- Enable cmdlib
ad6254c5 861AC_MSG_CHECKING(whether to compile liblvm2cmd.so)
71082be4
ZK
862AC_ARG_ENABLE(cmdlib,
863 AC_HELP_STRING([--enable-cmdlib], [build shared command library]),
864 CMDLIB=$enableval, CMDLIB=no)
ad6254c5 865AC_MSG_RESULT($CMDLIB)
aa4d1e31 866AC_SUBST([LVM2CMD_LIB])
2a9a80c9 867test x$CMDLIB = xyes \
aa4d1e31
JM
868 && LVM2CMD_LIB=-llvm2cmd \
869 || LVM2CMD_LIB=
8106cdd5 870
f6fc418d
AK
871################################################################################
872dnl -- Enable pkg-config
71082be4
ZK
873AC_ARG_ENABLE(pkgconfig,
874 AC_HELP_STRING([--enable-pkgconfig], [install pkgconfig support]),
875 PKGCONFIG=$enableval, PKGCONFIG=no)
2a9a80c9 876
23b059e7
ZK
877################################################################################
878dnl -- Enable installation of writable files by user
71082be4
ZK
879AC_ARG_ENABLE(write_install,
880 AC_HELP_STRING([--enable-write_install],
881 [install user writable files]),
882 WRITE_INSTALL=$enableval, WRITE_INSTALL=no)
23b059e7 883
80992638 884################################################################################
8ce0cbda 885dnl -- Enable fsadm
1995c9ff 886AC_MSG_CHECKING(whether to install fsadm)
71082be4
ZK
887AC_ARG_ENABLE(fsadm, AC_HELP_STRING([--disable-fsadm], [disable fsadm]),
888 FSADM=$enableval)
ad6254c5 889AC_MSG_RESULT($FSADM)
809fae91 890
06f62ad1
AK
891################################################################################
892dnl -- enable dmeventd handling
893AC_MSG_CHECKING(whether to use dmeventd)
71082be4
ZK
894AC_ARG_ENABLE(dmeventd, AC_HELP_STRING([--enable-dmeventd],
895 [enable the device-mapper event daemon]),
896 DMEVENTD=$enableval)
06f62ad1
AK
897AC_MSG_RESULT($DMEVENTD)
898
f6fc418d
AK
899BUILD_DMEVENTD=$DMEVENTD
900
06f62ad1 901dnl -- dmeventd currently requires internal mirror support
2a9a80c9
PR
902if test x$DMEVENTD = xyes; then
903 if test x$MIRRORS != xinternal; then
904 AC_MSG_ERROR(
905 --enable-dmeventd currently requires --with-mirrors=internal
906 )
907 fi
908 if test x$CMDLIB = xno; then
909 AC_MSG_ERROR(
910 --enable-dmeventd requires --enable-cmdlib to be used as well
911 )
912 fi
06f62ad1
AK
913fi
914
15d91f5a 915if test x$DMEVENTD = xyes; then
72b2cb61 916 AC_DEFINE([DMEVENTD], 1, [Define to 1 to enable the device-mapper event daemon.])
15d91f5a 917fi
f6fc418d
AK
918
919################################################################################
920dnl -- getline included in recent libc
921
922AC_CHECK_LIB(c, getline, AC_DEFINE([HAVE_GETLINE], 1,
923 [Define to 1 if getline is available.]))
924
925################################################################################
926dnl -- canonicalize_file_name included in recent libc
927
928AC_CHECK_LIB(c, canonicalize_file_name,
929 AC_DEFINE([HAVE_CANONICALIZE_FILE_NAME], 1,
930 [Define to 1 if canonicalize_file_name is available.]))
931
80992638 932################################################################################
d0191583 933dnl -- Clear default exec_prefix - install into /sbin rather than /usr/sbin
795ca3e5
AK
934if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]];
935 then exec_prefix="";
936fi;
937
80992638 938################################################################################
8ce0cbda 939dnl -- Check for dlopen
19a2c6e0 940AC_CHECK_LIB(dl, dlopen, [
72b2cb61 941 AC_DEFINE([HAVE_LIBDL], 1, [Define to 1 if dynamic libraries are available.])
19a2c6e0
ZK
942 DL_LIBS="-ldl"
943 HAVE_LIBDL=yes ], [
944 DL_LIBS=
945 HAVE_LIBDL=no ])
26e7f2e0 946
80992638 947################################################################################
8ce0cbda 948dnl -- Check for shared/static conflicts
80992638
AK
949if [[ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
950 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 951 -o "x$RAID" = xshared \
4922197a 952 \) -a "x$STATIC_LINK" = xyes ]];
d68a82ec 953 then AC_MSG_ERROR(
036f273a 954Features cannot be 'shared' when building statically
d68a82ec 955)
036f273a
AK
956fi
957
f30875db
ZK
958################################################################################
959if [[ "$DMEVENTD" = yes -o "$CLVMD" != none ]] ; then
960 AC_CHECK_LIB([pthread], [pthread_mutex_lock],
961 [PTHREAD_LIBS="-lpthread"], hard_bailout)
962fi
963
d0191583
JM
964################################################################################
965dnl -- Disable selinux
966AC_MSG_CHECKING(whether to enable selinux support)
71082be4
ZK
967AC_ARG_ENABLE(selinux,
968 AC_HELP_STRING([--disable-selinux], [disable selinux support]),
969 SELINUX=$enableval)
d0191583
JM
970AC_MSG_RESULT($SELINUX)
971
80992638 972################################################################################
8a2fc586 973dnl -- Check for selinux
80992638 974if test x$SELINUX = xyes; then
f8f6ec92
ZK
975 AC_CHECK_LIB([sepol], [sepol_check_context], [
976 AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.])
977 SELINUX_LIBS="-lsepol"])
8a2fc586 978
f8f6ec92
ZK
979 AC_CHECK_LIB([selinux], [is_selinux_enabled], [
980 AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout)
7dfce0e4 981 AC_CHECK_HEADERS([selinux/label.h])
72b2cb61 982 AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
e1b8a236 983 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 984 SELINUX_PC="libselinux"
f8f6ec92 985 HAVE_SELINUX=yes ], [
ad6254c5 986 AC_MSG_WARN(Disabling selinux)
f8f6ec92 987 SELINUX_LIBS=
f7f0854e 988 SELINUX_PC=
f8f6ec92 989 HAVE_SELINUX=no ])
036f273a 990fi
d68a82ec 991
8b1a3214
AK
992################################################################################
993dnl -- Check for realtime clock support
994if test x$REALTIME = xyes; then
8b1a3214 995 AC_CHECK_LIB(rt, clock_gettime, HAVE_REALTIME=yes, HAVE_REALTIME=no)
8b1a3214
AK
996
997 if test x$HAVE_REALTIME = xyes; then
998 AC_DEFINE([HAVE_REALTIME], 1, [Define to 1 to include support for realtime clock.])
999 LIBS="-lrt $LIBS"
1000 else
1001 AC_MSG_WARN(Disabling realtime clock)
1002 fi
1003fi
1004
80992638 1005################################################################################
8ce0cbda 1006dnl -- Check for getopt
d0191583 1007AC_CHECK_HEADERS(getopt.h, AC_DEFINE([HAVE_GETOPTLONG], 1, [Define to 1 if getopt_long is available.]))
b896caa1 1008
80992638 1009################################################################################
8ce0cbda 1010dnl -- Check for readline (Shamelessly copied from parted 1.4.17)
ea7cfb00 1011if test x$READLINE != xno; then
539f4a77
ZK
1012 lvm_saved_libs=$LIBS
1013 AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib],
1014 READLINE_LIBS=$ac_cv_search_tgetent, [
1015 if test "$READLINE" = yes; then
1016 AC_MSG_ERROR(
1017[termcap could not be found which is required for the
1018--enable-readline option (which is enabled by default). Either disable readline
1019support with --disable-readline or download and install termcap from:
1020 ftp.gnu.org/gnu/termcap
1021Note: if you are using precompiled packages you will also need the development
1022 package as well (which may be called termcap-devel or something similar).
1023Note: (n)curses also seems to work as a substitute for termcap. This was
1024 not found either - but you could try installing that as well.])
1025 fi])
1026 dnl -- Old systems may need extra termcap dependency explicitly in LIBS
1027 AC_CHECK_LIB([readline], [readline], [
1028 AC_DEFINE([READLINE_SUPPORT], 1,
1029 [Define to 1 to include the LVM readline shell.])
1030 dnl -- Try only with -lreadline and check for different symbol
1031 LIBS=$lvm_saved_libs
1032 AC_CHECK_LIB([readline], [rl_line_buffer],
1033 [ READLINE_LIBS="-lreadline" ], [
1034 AC_MSG_RESULT([linking -lreadline with $READLINE_LIBS needed])
1035 READLINE_LIBS="-lreadline $READLINE_LIBS"
1036 ]) ], [
1037 READLINE_LIBS=
1038 if test "$READLINE" = yes; then
1039 AC_MSG_ERROR(
1040[GNU Readline could not be found which is required for the
795ca3e5
AK
1041--enable-readline option (which is enabled by default). Either disable readline
1042support with --disable-readline or download and install readline from:
1043 ftp.gnu.org/gnu/readline
1044Note: if you are using precompiled packages you will also need the development
539f4a77
ZK
1045package as well (which may be called readline-devel or something similar).])
1046 fi ])
1047 LIBS="$READLINE_LIBS $lvm_saved_libs"
1048 AC_CHECK_FUNCS([rl_completion_matches])
1049 LIBS=$lvm_saved_libs
795ca3e5
AK
1050fi
1051
80992638 1052################################################################################
8ce0cbda 1053dnl -- Internationalisation stuff
ad6254c5 1054AC_MSG_CHECKING(whether to enable internationalisation)
71082be4
ZK
1055AC_ARG_ENABLE(nls,
1056 AC_HELP_STRING([--enable-nls], [enable Native Language Support]),
1057 INTL=$enableval, INTL=no)
ad6254c5 1058AC_MSG_RESULT($INTL)
69792976
AK
1059
1060if test x$INTL = xyes; then
f6fc418d 1061# FIXME - Move this - can be device-mapper too
69792976
AK
1062 INTL_PACKAGE="lvm2"
1063 AC_PATH_PROG(MSGFMT, msgfmt)
1064 if [[ "x$MSGFMT" == x ]];
1065 then AC_MSG_ERROR(
1066 msgfmt not found in path $PATH
1067 )
69792976
AK
1068 fi;
1069
1070 AC_ARG_WITH(localedir,
71082be4
ZK
1071 AC_HELP_STRING([--with-localedir=DIR],
1072 [translation files in DIR
1073 [[PREFIX/share/locale]]]),
1074 LOCALEDIR=$withval, LOCALEDIR='${prefix}/share/locale')
69792976
AK
1075fi
1076
80992638 1077################################################################################
4a7f3eb2 1078AC_ARG_WITH(confdir,
71082be4
ZK
1079 AC_HELP_STRING([--with-confdir=DIR],
1080 [configuration files in DIR [[/etc]]]),
1081 CONFDIR=$withval, CONFDIR="/etc")
0a62c911
AK
1082
1083AC_ARG_WITH(staticdir,
71082be4
ZK
1084 AC_HELP_STRING([--with-staticdir=DIR],
1085 [static binaries in DIR [[EPREFIX/sbin]]]),
1086 STATICDIR=$withval, STATICDIR='${exec_prefix}/sbin')
0a62c911 1087
68f2de6d 1088AC_ARG_WITH(usrlibdir,
71082be4
ZK
1089 AC_HELP_STRING([--with-usrlibdir=DIR],
1090 [usrlib in DIR [[PREFIX/lib]]]),
1091 usrlibdir=$withval, usrlibdir='${prefix}/lib')
68f2de6d
AK
1092
1093AC_ARG_WITH(usrsbindir,
71082be4
ZK
1094 AC_HELP_STRING([--with-usrsbindir=DIR],
1095 [usrsbin executables in DIR [[PREFIX/sbin]]]),
1096 usrsbindir=$withval, usrsbindir='${prefix}/sbin')
68f2de6d 1097
5d518f1f
AK
1098################################################################################
1099AC_ARG_WITH(udev_prefix,
71082be4
ZK
1100 AC_HELP_STRING([--with-udev-prefix=UPREFIX],
1101 [install udev rule files in UPREFIX [[EPREFIX]]]),
1102 udev_prefix=$withval, udev_prefix='${exec_prefix}')
5d518f1f 1103
78ce7acc 1104AC_ARG_WITH(udevdir,
71082be4
ZK
1105 AC_HELP_STRING([--with-udevdir=DIR],
1106 [udev rules in DIR [[UPREFIX/lib/udev/rules.d]]]),
1107 udevdir=$withval, udevdir='${udev_prefix}/lib/udev/rules.d')
5d518f1f 1108
ad6254c5
AK
1109################################################################################
1110dnl -- Ensure additional headers required
1111if test x$READLINE = xyes; then
1112 AC_CHECK_HEADERS(readline/readline.h readline/history.h,,AC_MSG_ERROR(bailing out))
1113fi
1114
5c7fc7c4 1115if test x$CLVMD != xnone; then
ad6254c5
AK
1116 AC_CHECK_HEADERS(mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h,,AC_MSG_ERROR(bailing out))
1117 AC_CHECK_FUNCS(dup2 getmntent memmove select socket,,AC_MSG_ERROR(bailing out))
1118 AC_FUNC_GETMNTENT
ad6254c5
AK
1119 AC_FUNC_SELECT_ARGTYPES
1120fi
1121
ad6254c5
AK
1122if test x$CLUSTER != xnone; then
1123 AC_CHECK_HEADERS(sys/socket.h sys/un.h,,AC_MSG_ERROR(bailing out))
1124 AC_CHECK_FUNCS(socket,,AC_MSG_ERROR(bailing out))
1125fi
1126
d911ec67
AK
1127if test x$DMEVENTD = xyes; then
1128 AC_CHECK_HEADERS(arpa/inet.h,,AC_MSG_ERROR(bailing out))
1129fi
1130
ad6254c5
AK
1131if test x$HAVE_LIBDL = xyes; then
1132 AC_CHECK_HEADERS(dlfcn.h,,AC_MSG_ERROR(bailing out))
1133fi
1134
1135if test x$INTL = xyes; then
1136 AC_CHECK_HEADERS(libintl.h,,AC_MSG_ERROR(bailing out))
1137fi
1138
5d518f1f
AK
1139if test x$UDEV_SYNC = xyes; then
1140 AC_CHECK_HEADERS(sys/ipc.h sys/sem.h,,AC_MSG_ERROR(bailing out))
1141fi
1142
a653923f
AK
1143################################################################################
1144AC_PATH_PROG(MODPROBE_CMD, modprobe)
1145
1146if test x$MODPROBE_CMD != x; then
72b2cb61 1147 AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
a653923f
AK
1148fi
1149
a9b601e2
ZK
1150
1151lvm_exec_prefix=$exec_prefix
1152test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
1153test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
1154AC_DEFINE_UNQUOTED(LVM_PATH, ["$lvm_exec_prefix/sbin/lvm"], [Path to lvm binary.])
b5c2529b
ZK
1155
1156if test "$CLVMD" != none; then
1157 clvmd_prefix=$ac_default_prefix
1158 test "$prefix" != NONE && clvmd_prefix=$prefix
71082be4
ZK
1159 AC_DEFINE_UNQUOTED(CLVMD_PATH, ["$clvmd_prefix/sbin/clvmd"],
1160 [Path to clvmd binary.])
b5c2529b
ZK
1161fi
1162
80992638 1163################################################################################
f6fc418d 1164dnl -- dmeventd pidfile and executable path
f6fc418d
AK
1165if test "$BUILD_DMEVENTD" = yes; then
1166 AC_ARG_WITH(dmeventd-pidfile,
71082be4
ZK
1167 AC_HELP_STRING([--with-dmeventd-pidfile=PATH],
1168 [dmeventd pidfile [[/var/run/dmeventd.pid]]]),
1169 DMEVENTD_PIDFILE=$withval,
1170 DMEVENTD_PIDFILE="/var/run/dmeventd.pid")
1171 AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE, ["$DMEVENTD_PIDFILE"],
1172 [Path to dmeventd pidfile.])
f6fc418d
AK
1173fi
1174
f6fc418d 1175if test "$BUILD_DMEVENTD" = yes; then
f6fc418d 1176 AC_ARG_WITH(dmeventd-path,
71082be4
ZK
1177 AC_HELP_STRING([--with-dmeventd-path=PATH],
1178 [dmeventd path [[EPREFIX/sbin/dmeventd]]]),
1179 DMEVENTD_PATH=$withval,
1180 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd")
1181 AC_DEFINE_UNQUOTED(DMEVENTD_PATH, ["$DMEVENTD_PATH"],
1182 [Path to dmeventd binary.])
f6fc418d
AK
1183fi
1184
8bae0a1e
AK
1185AH_TEMPLATE(DEFAULT_RUN_DIR, [Name of default run directory.])
1186AC_ARG_WITH(default-run-dir,
1187 [ --with-default-run-dir=DIR Default run directory [[/var/run/lvm]] ],
1188 [ DEFAULT_RUN_DIR="$withval" ],
1189 [ DEFAULT_RUN_DIR="/var/run/lvm" ])
1190AC_DEFINE_UNQUOTED(DEFAULT_RUN_DIR,["$DEFAULT_RUN_DIR"] )
1191
3399ae32
AK
1192################################################################################
1193dnl -- various defaults
3399ae32 1194AC_ARG_WITH(default-system-dir,
71082be4
ZK
1195 AC_HELP_STRING([--with-default-system-dir=DIR],
1196 [default LVM system directory [[/etc/lvm]]]),
1197 DEFAULT_SYS_DIR=$withval, DEFAULT_SYS_DIR="/etc/lvm")
1198AC_DEFINE_UNQUOTED(DEFAULT_SYS_DIR, ["$DEFAULT_SYS_DIR"],
1199 [Path to LVM system directory.])
3399ae32 1200
3399ae32 1201AC_ARG_WITH(default-archive-subdir,
71082be4
ZK
1202 AC_HELP_STRING([--with-default-archive-subdir=SUBDIR],
1203 [default metadata archive subdir [[archive]]]),
1204 DEFAULT_ARCHIVE_SUBDIR=$withval, DEFAULT_ARCHIVE_SUBDIR=archive)
1205AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE_SUBDIR, ["$DEFAULT_ARCHIVE_SUBDIR"],
1206 [Name of default metadata archive subdirectory.])
3399ae32 1207
3399ae32 1208AC_ARG_WITH(default-backup-subdir,
71082be4
ZK
1209 AC_HELP_STRING([--with-default-backup-subdir=SUBDIR],
1210 [default metadata backup subdir [[backup]]]),
1211 DEFAULT_BACKUP_SUBDIR=$withval, DEFAULT_BACKUP_SUBDIR=backup)
1212AC_DEFINE_UNQUOTED(DEFAULT_BACKUP_SUBDIR, ["$DEFAULT_BACKUP_SUBDIR"],
1213 [Name of default metadata backup subdirectory.])
3399ae32 1214
3399ae32 1215AC_ARG_WITH(default-cache-subdir,
71082be4
ZK
1216 AC_HELP_STRING([--with-default-cache-subdir=SUBDIR],
1217 [default metadata cache subdir [[cache]]]),
1218 DEFAULT_CACHE_SUBDIR=$withval, DEFAULT_CACHE_SUBDIR=cache)
1219AC_DEFINE_UNQUOTED(DEFAULT_CACHE_SUBDIR, ["$DEFAULT_CACHE_SUBDIR"],
1220 [Name of default metadata cache subdirectory.])
3399ae32 1221
3399ae32 1222AC_ARG_WITH(default-locking-dir,
71082be4
ZK
1223 AC_HELP_STRING([--with-default-locking-dir=DIR],
1224 [default locking directory [[/var/lock/lvm]]]),
1225 DEFAULT_LOCK_DIR=$withval, DEFAULT_LOCK_DIR="/var/lock/lvm")
1226AC_DEFINE_UNQUOTED(DEFAULT_LOCK_DIR, ["$DEFAULT_LOCK_DIR"],
1227 [Name of default locking directory.])
3399ae32 1228
7063efe1
MS
1229################################################################################
1230dnl -- Setup default data alignment
1231AC_ARG_WITH(default-data-alignment,
1232 AC_HELP_STRING([--with-default-data-alignment=NUM],
1233 [set the default data alignment in MiB [[1]]]),
1234 DEFAULT_DATA_ALIGNMENT=$withval, DEFAULT_DATA_ALIGNMENT=1)
1235AC_DEFINE_UNQUOTED(DEFAULT_DATA_ALIGNMENT, [$DEFAULT_DATA_ALIGNMENT],
1236 [Default data alignment.])
1237
f6fc418d
AK
1238################################################################################
1239dnl -- which kernel interface to use (ioctl only)
1240AC_MSG_CHECKING(for kernel interface choice)
1241AC_ARG_WITH(interface,
71082be4
ZK
1242 AC_HELP_STRING([--with-interface=IFACE],
1243 [choose kernel interface (ioctl) [[ioctl]]]),
1244 interface=$withval, interface=ioctl)
f6fc418d
AK
1245if [[ "x$interface" != xioctl ]];
1246then
1247 AC_MSG_ERROR(--with-interface=ioctl required. fs no longer supported.)
1248fi
1249AC_MSG_RESULT($interface)
1250
1251################################################################################
db8b5af9 1252DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
f58b35b5
AK
1253AC_DEFINE_UNQUOTED(DM_LIB_VERSION, $DM_LIB_VERSION, [Library version])
1254
db8b5af9 1255DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[[-. ]]' '{printf "%s.%s.%s",$1,$2,$3}'`
597c3f8e 1256
db8b5af9 1257LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 1258
db8b5af9 1259VER=`cat "$srcdir"/VERSION`
bf456146 1260LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
1261VER=`echo "$VER" | $AWK '{print $1}'`
1262LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
1263VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
1264LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
1265LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
1266LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[[(.]]' '{print $3}'`
1267LVM_LIBAPI=`echo "$VER" | $AWK -F '[[()]]' '{print $2}'`
ec6a6fbe 1268
80992638 1269################################################################################
572fefeb 1270AC_SUBST(APPLIB)
aaa2e046 1271AC_SUBST(AWK)
66fd4529 1272AC_SUBST(BUILD_CMIRRORD)
d0191583 1273AC_SUBST(BUILD_DMEVENTD)
b896caa1 1274AC_SUBST(CFLAGS)
d0191583 1275AC_SUBST(CFLOW_CMD)
8106cdd5 1276AC_SUBST(CLDFLAGS)
8106cdd5 1277AC_SUBST(CLDNOWHOLEARCHIVE)
d0191583
JM
1278AC_SUBST(CLDWHOLEARCHIVE)
1279AC_SUBST(CLUSTER)
1280AC_SUBST(CLVMD)
34b6075d 1281AC_SUBST(CLVMD_CMANAGERS)
a946372e
AK
1282AC_SUBST(CMAN_CFLAGS)
1283AC_SUBST(CMAN_LIBS)
d0191583 1284AC_SUBST(CMDLIB)
edf47283
AK
1285AC_SUBST(CONFDB_CFLAGS)
1286AC_SUBST(CONFDB_LIBS)
1287AC_SUBST(CONFDIR)
d0191583 1288AC_SUBST(COPTIMISE_FLAG)
edf47283
AK
1289AC_SUBST(CPG_CFLAGS)
1290AC_SUBST(CPG_LIBS)
d0191583 1291AC_SUBST(CSCOPE_CMD)
8ef2b021 1292AC_SUBST(DEBUG)
3399ae32
AK
1293AC_SUBST(DEFAULT_SYS_DIR)
1294AC_SUBST(DEFAULT_ARCHIVE_SUBDIR)
1295AC_SUBST(DEFAULT_BACKUP_SUBDIR)
1296AC_SUBST(DEFAULT_CACHE_SUBDIR)
7063efe1 1297AC_SUBST(DEFAULT_DATA_ALIGNMENT)
3399ae32 1298AC_SUBST(DEFAULT_LOCK_DIR)
b1f08e51 1299AC_SUBST(DEFAULT_RUN_DIR)
199e490e 1300AC_SUBST(DEVMAPPER)
a946372e
AK
1301AC_SUBST(DLM_CFLAGS)
1302AC_SUBST(DLM_LIBS)
19a2c6e0 1303AC_SUBST(DL_LIBS)
d0191583 1304AC_SUBST(DMEVENTD)
d1e8046f 1305AC_SUBST(DMEVENTD_PATH)
d0191583
JM
1306AC_SUBST(DM_COMPAT)
1307AC_SUBST(DM_DEVICE_GID)
1308AC_SUBST(DM_DEVICE_MODE)
1309AC_SUBST(DM_DEVICE_UID)
1310AC_SUBST(DM_IOCTLS)
1311AC_SUBST(DM_LIB_VERSION)
597c3f8e 1312AC_SUBST(DM_LIB_PATCHLEVEL)
d0191583 1313AC_SUBST(FSADM)
26e7f2e0 1314AC_SUBST(HAVE_LIBDL)
8b1a3214 1315AC_SUBST(HAVE_REALTIME)
d0191583
JM
1316AC_SUBST(INTL)
1317AC_SUBST(INTL_PACKAGE)
1318AC_SUBST(JOBS)
1319AC_SUBST(LDDEPS)
1320AC_SUBST(LIBS)
1321AC_SUBST(LIB_SUFFIX)
69792976 1322AC_SUBST(LOCALEDIR)
d0191583
JM
1323AC_SUBST(LVM1)
1324AC_SUBST(LVM1_FALLBACK)
d0191583 1325AC_SUBST(LVM_VERSION)
bf456146 1326AC_SUBST(LVM_LIBAPI)
ec6a6fbe
AK
1327AC_SUBST(LVM_MAJOR)
1328AC_SUBST(LVM_MINOR)
1329AC_SUBST(LVM_PATCHLEVEL)
1330AC_SUBST(LVM_RELEASE)
1331AC_SUBST(LVM_RELEASE_DATE)
d0191583 1332AC_SUBST(MIRRORS)
cac52ca4 1333AC_SUBST(MSGFMT)
e40d44be 1334AC_SUBST(OCF)
349da06c 1335AC_SUBST(OCFDIR)
d0191583
JM
1336AC_SUBST(PKGCONFIG)
1337AC_SUBST(POOL)
f30875db 1338AC_SUBST(PTHREAD_LIBS)
edf47283
AK
1339AC_SUBST(QUORUM_CFLAGS)
1340AC_SUBST(QUORUM_LIBS)
cac52ca4 1341AC_SUBST(RAID)
539f4a77 1342AC_SUBST(READLINE_LIBS)
cac52ca4 1343AC_SUBST(REPLICATORS)
90c80887
AK
1344AC_SUBST(SACKPT_CFLAGS)
1345AC_SUBST(SACKPT_LIBS)
a946372e
AK
1346AC_SUBST(SALCK_CFLAGS)
1347AC_SUBST(SALCK_LIBS)
e1b8a236 1348AC_SUBST(SELINUX_LIBS)
f7f0854e 1349AC_SUBST(SELINUX_PC)
d0191583 1350AC_SUBST(SNAPSHOTS)
0a62c911 1351AC_SUBST(STATICDIR)
d0191583 1352AC_SUBST(STATIC_LINK)
1033d120 1353AC_SUBST(TESTING)
db724a44 1354AC_SUBST(UDEV_LIBS)
f7f0854e 1355AC_SUBST(UDEV_PC)
5d518f1f 1356AC_SUBST(UDEV_RULES)
4df024c4 1357AC_SUBST(UDEV_SYNC)
23b059e7 1358AC_SUBST(WRITE_INSTALL)
395d204d 1359AC_SUBST(DMEVENTD_PIDFILE)
f6fc418d
AK
1360AC_SUBST(interface)
1361AC_SUBST(kerneldir)
1362AC_SUBST(missingkernel)
1363AC_SUBST(kernelvsn)
1364AC_SUBST(tmpdir)
5d518f1f
AK
1365AC_SUBST(udev_prefix)
1366AC_SUBST(udevdir)
68f2de6d
AK
1367AC_SUBST(usrlibdir)
1368AC_SUBST(usrsbindir)
8106cdd5 1369
80992638 1370################################################################################
d3a356b4 1371dnl -- First and last lines should not contain files to generate in order to
8ce0cbda 1372dnl -- keep utility scripts running properly
d3a356b4
JM
1373AC_CONFIG_FILES([
1374Makefile
1375make.tmpl
1376daemons/Makefile
1377daemons/clvmd/Makefile
5d311afb 1378daemons/cmirrord/Makefile
f6fc418d
AK
1379daemons/dmeventd/Makefile
1380daemons/dmeventd/libdevmapper-event.pc
b7edb5bf 1381daemons/dmeventd/plugins/Makefile
d3d98fdc 1382daemons/dmeventd/plugins/lvm2/Makefile
3041b72f 1383daemons/dmeventd/plugins/raid/Makefile
f6fc418d
AK
1384daemons/dmeventd/plugins/mirror/Makefile
1385daemons/dmeventd/plugins/snapshot/Makefile
d3a356b4 1386doc/Makefile
da05c479 1387doc/example.conf
db8b5af9 1388include/.symlinks
f6fc418d
AK
1389include/Makefile
1390lib/Makefile
d3a356b4
JM
1391lib/format1/Makefile
1392lib/format_pool/Makefile
1393lib/locking/Makefile
1394lib/mirror/Makefile
8fea97b7 1395lib/replicator/Makefile
ec6a6fbe 1396lib/misc/lvm-version.h
40dbaac8 1397lib/raid/Makefile
d3a356b4 1398lib/snapshot/Makefile
f6fc418d
AK
1399libdm/Makefile
1400libdm/libdevmapper.pc
e0c64c6c 1401liblvm/Makefile
70046623 1402liblvm/liblvm2app.pc
f6fc418d
AK
1403man/Makefile
1404po/Makefile
2de38033 1405scripts/clvmd_init_red_hat
81410c8f 1406scripts/cmirrord_init_red_hat
595eaf92 1407scripts/lvm2_monitoring_init_red_hat
395d204d
PR
1408scripts/dm_event_systemd_red_hat.service
1409scripts/lvm2_monitoring_systemd_red_hat.service
d3a356b4 1410scripts/Makefile
f6fc418d 1411test/Makefile
c7e363f9 1412test/api/Makefile
d3a356b4 1413tools/Makefile
5d518f1f 1414udev/Makefile
66392e66 1415unit-tests/datastruct/Makefile
15106c50 1416unit-tests/regex/Makefile
52e1564f 1417unit-tests/mm/Makefile
7a197a62
AK
1418])
1419AC_OUTPUT
2dc95e1c
AK
1420
1421if test x$ODIRECT != xyes; then
ad6254c5 1422 AC_MSG_WARN(Warning: O_DIRECT disabled: low-memory pvmove may lock up)
2dc95e1c 1423fi
This page took 0.317731 seconds and 5 git commands to generate.