]>
Commit | Line | Data |
---|---|---|
d0191583 | 1 | ############################################################################### |
ad6254c5 | 2 | ## Copyright (C) 2000-2004 Sistina Software, Inc. All rights reserved. |
ec6a6fbe | 3 | ## Copyright (C) 2004-2009 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 | ||
7a197a62 | 14 | AC_PREREQ(2.57) |
80992638 | 15 | ################################################################################ |
8ce0cbda | 16 | dnl -- Process this file with autoconf to produce a configure script. |
7a197a62 AK |
17 | AC_INIT |
18 | AC_CONFIG_SRCDIR([lib/device/dev-cache.h]) | |
d0191583 | 19 | AC_CONFIG_HEADERS([lib/misc/configure.h]) |
72b2cb61 | 20 | |
80992638 | 21 | ################################################################################ |
ad6254c5 | 22 | dnl -- Setup the directory where autoconf has auxilary files |
d3a356b4 | 23 | AC_CONFIG_AUX_DIR(autoconf) |
795ca3e5 | 24 | |
80992638 | 25 | ################################################################################ |
8ce0cbda | 26 | dnl -- Get system type |
7a197a62 | 27 | AC_CANONICAL_TARGET([]) |
b896caa1 AK |
28 | |
29 | case "$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 |
8b1a3214 | 43 | REALTIME=yes |
d3c8211f | 44 | CLUSTER=internal |
f6fc418d | 45 | FSADM=yes |
d0191583 | 46 | ;; |
8106cdd5 | 47 | darwin*) |
80992638 | 48 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" |
8ce0cbda | 49 | COPTIMISE_FLAG="-O2" |
80992638 | 50 | CLDFLAGS="$CLDFLAGS" |
8106cdd5 AK |
51 | CLDWHOLEARCHIVE="-all_load" |
52 | CLDNOWHOLEARCHIVE= | |
d0191583 | 53 | LIB_SUFFIX=dylib |
a653923f | 54 | DEVMAPPER=yes |
1a9ea74d | 55 | ODIRECT=no |
d0191583 | 56 | DM_IOCTLS=no |
80992638 | 57 | SELINUX=no |
8b1a3214 | 58 | REALTIME=no |
d3c8211f | 59 | CLUSTER=none |
d0191583 JM |
60 | FSADM=no |
61 | ;; | |
b896caa1 AK |
62 | esac |
63 | ||
80992638 | 64 | ################################################################################ |
8ce0cbda | 65 | dnl -- Checks for programs. |
5951ef33 | 66 | AC_PROG_SED |
8ce0cbda AK |
67 | AC_PROG_AWK |
68 | AC_PROG_CC | |
d0191583 JM |
69 | |
70 | dnl probably no longer needed in 2008, but... | |
71 | AC_PROG_GCC_TRADITIONAL | |
8ce0cbda AK |
72 | AC_PROG_INSTALL |
73 | AC_PROG_LN_S | |
74 | AC_PROG_MAKE_SET | |
fddafd51 | 75 | AC_PROG_MKDIR_P |
5556819a | 76 | AC_PROG_RANLIB |
8a2fc586 AK |
77 | AC_PATH_PROG(CFLOW_CMD, cflow) |
78 | AC_PATH_PROG(CSCOPE_CMD, cscope) | |
8ce0cbda AK |
79 | |
80 | ################################################################################ | |
d0191583 | 81 | dnl -- Check for header files. |
80992638 AK |
82 | AC_HEADER_DIRENT |
83 | AC_HEADER_STDC | |
ad6254c5 AK |
84 | AC_HEADER_SYS_WAIT |
85 | AC_HEADER_TIME | |
86 | ||
d0191583 JM |
87 | AC_CHECK_HEADERS([locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ |
88 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h], , | |
89 | [AC_MSG_ERROR(bailing out)]) | |
ad6254c5 AK |
90 | |
91 | case "$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)) ;; | |
96 | esac | |
80992638 | 97 | |
d0191583 JM |
98 | AC_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)]) | |
101 | AC_CHECK_HEADERS(termios.h sys/statvfs.h) | |
102 | ||
80992638 | 103 | ################################################################################ |
d0191583 | 104 | dnl -- Check for typedefs, structures, and compiler characteristics. |
80992638 AK |
105 | AC_C_CONST |
106 | AC_C_INLINE | |
d0191583 | 107 | AC_CHECK_MEMBERS([struct stat.st_rdev]) |
80992638 AK |
108 | AC_TYPE_OFF_T |
109 | AC_TYPE_PID_T | |
d0191583 | 110 | AC_TYPE_SIGNAL |
80992638 | 111 | AC_TYPE_SIZE_T |
ad6254c5 | 112 | AC_TYPE_MODE_T |
7a197a62 | 113 | AC_CHECK_MEMBERS([struct stat.st_rdev]) |
ad6254c5 AK |
114 | AC_STRUCT_TM |
115 | ||
116 | ################################################################################ | |
117 | dnl -- Check for functions | |
d0191583 JM |
118 | AC_CHECK_FUNCS([gethostname getpagesize memset mkdir rmdir munmap setlocale \ |
119 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
120 | uname], , [AC_MSG_ERROR(bailing out)]) | |
ad6254c5 AK |
121 | AC_FUNC_ALLOCA |
122 | AC_FUNC_CLOSEDIR_VOID | |
123 | AC_FUNC_FORK | |
124 | AC_FUNC_LSTAT | |
125 | AC_FUNC_MALLOC | |
126 | AC_FUNC_MEMCMP | |
127 | AC_FUNC_MMAP | |
128 | AC_FUNC_STAT | |
129 | AC_FUNC_STRTOD | |
d0191583 | 130 | AC_FUNC_VPRINTF |
80992638 | 131 | |
9c961554 MB |
132 | ################################################################################ |
133 | dnl -- Enables statically-linked tools | |
134 | AC_MSG_CHECKING(whether to use static linking) | |
135 | AC_ARG_ENABLE(static_link, | |
136 | [ --enable-static_link Use this to link the tools to their libraries | |
137 | statically. Default is dynamic linking], | |
138 | STATIC_LINK=$enableval, STATIC_LINK=no) | |
139 | AC_MSG_RESULT($STATIC_LINK) | |
140 | ||
80992638 | 141 | ################################################################################ |
8ce0cbda | 142 | dnl -- Prefix is /usr by default, the exec_prefix default is setup later |
795ca3e5 AK |
143 | AC_PREFIX_DEFAULT(/usr) |
144 | ||
80992638 | 145 | ################################################################################ |
8ce0cbda | 146 | dnl -- Setup the ownership of the files |
ad6254c5 | 147 | AC_MSG_CHECKING(file owner) |
80992638 AK |
148 | OWNER="root" |
149 | ||
795ca3e5 | 150 | AC_ARG_WITH(user, |
d0191583 | 151 | [ --with-user=USER Set the owner of installed files [[USER=root]] ], |
a38df97f | 152 | [ OWNER="$withval" ]) |
ad6254c5 | 153 | AC_MSG_RESULT($OWNER) |
a38df97f AK |
154 | |
155 | if test x$OWNER != x; then | |
156 | OWNER="-o $OWNER" | |
157 | fi | |
795ca3e5 | 158 | |
80992638 | 159 | ################################################################################ |
8ce0cbda | 160 | dnl -- Setup the group ownership of the files |
ad6254c5 | 161 | AC_MSG_CHECKING(group owner) |
80992638 | 162 | GROUP="root" |
795ca3e5 | 163 | AC_ARG_WITH(group, |
d0191583 | 164 | [ --with-group=GROUP Set the group owner of installed files [[GROUP=root]] ], |
a38df97f | 165 | [ GROUP="$withval" ]) |
ad6254c5 | 166 | AC_MSG_RESULT($GROUP) |
a38df97f AK |
167 | |
168 | if test x$GROUP != x; then | |
169 | GROUP="-g $GROUP" | |
170 | fi | |
795ca3e5 | 171 | |
0782ad50 AK |
172 | ################################################################################ |
173 | dnl -- Setup device node ownership | |
174 | AC_MSG_CHECKING(device node uid) | |
175 | ||
176 | AC_ARG_WITH(device-uid, | |
177 | [ --with-device-uid=UID Set the owner used for new device nodes [[UID=0]] ], | |
178 | [ DM_DEVICE_UID="$withval" ], [ DM_DEVICE_UID="0" ] ) | |
179 | AC_MSG_RESULT($DM_DEVICE_UID) | |
180 | ||
181 | ################################################################################ | |
182 | dnl -- Setup device group ownership | |
183 | AC_MSG_CHECKING(device node gid) | |
184 | ||
185 | AC_ARG_WITH(device-gid, | |
186 | [ --with-device-gid=UID Set the group used for new device nodes [[GID=0]] ], | |
187 | [ DM_DEVICE_GID="$withval" ], [ DM_DEVICE_GID="0" ] ) | |
188 | AC_MSG_RESULT($DM_DEVICE_GID) | |
189 | ||
f6fc418d AK |
190 | ################################################################################ |
191 | dnl -- Setup device mode | |
192 | AC_MSG_CHECKING(device node mode) | |
193 | ||
194 | AC_ARG_WITH(device-mode, | |
195 | [ --with-device-mode=MODE Set the mode used for new device nodes [[MODE=0600]] ], | |
196 | [ DM_DEVICE_MODE="$withval" ], [ DM_DEVICE_MODE="0600" ] ) | |
197 | AC_MSG_RESULT($DM_DEVICE_MODE) | |
198 | ||
80992638 | 199 | ################################################################################ |
7d1552c9 | 200 | dnl -- LVM1 tool fallback option |
ad6254c5 | 201 | AC_MSG_CHECKING(whether to enable lvm1 fallback) |
7d1552c9 AK |
202 | AC_ARG_ENABLE(lvm1_fallback, [ --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
203 | device-mapper is missing from the kernel], LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no) | |
ad6254c5 | 204 | AC_MSG_RESULT($LVM1_FALLBACK) |
7d1552c9 AK |
205 | |
206 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 | 207 | 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 |
208 | fi |
209 | ||
80992638 | 210 | ################################################################################ |
5a52dca9 | 211 | dnl -- format1 inclusion type |
ad6254c5 | 212 | AC_MSG_CHECKING(whether to include support for lvm1 metadata) |
5a52dca9 AK |
213 | AC_ARG_WITH(lvm1, |
214 | [ --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
215 | [TYPE=internal] ], | |
216 | [ LVM1="$withval" ], | |
217 | [ LVM1="internal" ]) | |
ad6254c5 | 218 | AC_MSG_RESULT($LVM1) |
5a52dca9 AK |
219 | |
220 | if [[ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]]; | |
221 | then AC_MSG_ERROR( | |
222 | --with-lvm1 parameter invalid | |
223 | ) | |
5a52dca9 AK |
224 | fi; |
225 | ||
b896caa1 | 226 | if test x$LVM1 = xinternal; then |
72b2cb61 | 227 | AC_DEFINE([LVM1_INTERNAL], 1, [Define to 1 to include built-in support for LVM1 metadata.]) |
b896caa1 AK |
228 | fi |
229 | ||
80992638 | 230 | ################################################################################ |
d8ac0fbc | 231 | dnl -- format_pool inclusion type |
ad6254c5 | 232 | AC_MSG_CHECKING(whether to include support for GFS pool metadata) |
d8ac0fbc | 233 | AC_ARG_WITH(pool, |
60329273 | 234 | [ --with-pool=TYPE GFS pool read-only support: internal/shared/none |
d8ac0fbc AK |
235 | [TYPE=internal] ], |
236 | [ POOL="$withval" ], | |
237 | [ POOL="internal" ]) | |
ad6254c5 | 238 | AC_MSG_RESULT($POOL) |
d8ac0fbc AK |
239 | |
240 | if [[ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]]; | |
241 | then AC_MSG_ERROR( | |
242 | --with-pool parameter invalid | |
243 | ) | |
d8ac0fbc AK |
244 | fi; |
245 | ||
246 | if test x$POOL = xinternal; then | |
72b2cb61 | 247 | AC_DEFINE([POOL_INTERNAL], 1, [Define to 1 to include built-in support for GFS pool metadata.]) |
d8ac0fbc AK |
248 | fi |
249 | ||
80992638 | 250 | ################################################################################ |
d3c8211f | 251 | dnl -- cluster_locking inclusion type |
ad6254c5 | 252 | AC_MSG_CHECKING(whether to include support for cluster locking) |
d3c8211f AK |
253 | AC_ARG_WITH(cluster, |
254 | [ --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
255 | [TYPE=internal] ], | |
256 | [ CLUSTER="$withval" ]) | |
ad6254c5 | 257 | AC_MSG_RESULT($CLUSTER) |
d3c8211f AK |
258 | |
259 | if [[ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]]; | |
260 | then AC_MSG_ERROR( | |
261 | --with-cluster parameter invalid | |
262 | ) | |
d3c8211f AK |
263 | fi; |
264 | ||
265 | if test x$CLUSTER = xinternal; then | |
72b2cb61 | 266 | AC_DEFINE([CLUSTER_LOCKING_INTERNAL], 1, [Define to 1 to include built-in support for clustered LVM locking.]) |
d3c8211f | 267 | fi |
d8ac0fbc | 268 | |
80992638 | 269 | ################################################################################ |
4922197a | 270 | dnl -- snapshots inclusion type |
ad6254c5 | 271 | AC_MSG_CHECKING(whether to include snapshots) |
4922197a AK |
272 | AC_ARG_WITH(snapshots, |
273 | [ --with-snapshots=TYPE Snapshot support: internal/shared/none | |
274 | [TYPE=internal] ], | |
275 | [ SNAPSHOTS="$withval" ], | |
276 | [ SNAPSHOTS="internal" ]) | |
ad6254c5 | 277 | AC_MSG_RESULT($SNAPSHOTS) |
4922197a AK |
278 | |
279 | if [[ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]]; | |
280 | then AC_MSG_ERROR( | |
281 | --with-snapshots parameter invalid | |
282 | ) | |
4922197a AK |
283 | fi; |
284 | ||
285 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 | 286 | AC_DEFINE([SNAPSHOT_INTERNAL], 1, [Define to 1 to include built-in support for snapshots.]) |
4922197a AK |
287 | fi |
288 | ||
80992638 | 289 | ################################################################################ |
4922197a | 290 | dnl -- mirrors inclusion type |
ad6254c5 | 291 | AC_MSG_CHECKING(whether to include mirrors) |
4922197a AK |
292 | AC_ARG_WITH(mirrors, |
293 | [ --with-mirrors=TYPE Mirror support: internal/shared/none | |
294 | [TYPE=internal] ], | |
295 | [ MIRRORS="$withval" ], | |
296 | [ MIRRORS="internal" ]) | |
ad6254c5 | 297 | AC_MSG_RESULT($MIRRORS) |
4922197a AK |
298 | |
299 | if [[ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]]; | |
300 | then AC_MSG_ERROR( | |
301 | --with-mirrors parameter invalid | |
302 | ) | |
4922197a AK |
303 | fi; |
304 | ||
305 | if test x$MIRRORS = xinternal; then | |
72b2cb61 | 306 | AC_DEFINE([MIRRORED_INTERNAL], 1, [Define to 1 to include built-in support for mirrors.]) |
4922197a AK |
307 | fi |
308 | ||
80992638 | 309 | ################################################################################ |
1b523347 | 310 | dnl -- Disable readline |
ad6254c5 | 311 | AC_MSG_CHECKING(whether to enable readline) |
2c189a57 | 312 | AC_ARG_ENABLE([readline], |
1b523347 | 313 | [ --disable-readline Disable readline support], |
ea7cfb00 | 314 | [READLINE=$enableval], [READLINE=maybe]) |
ad6254c5 | 315 | AC_MSG_RESULT($READLINE) |
795ca3e5 | 316 | |
8b1a3214 AK |
317 | ################################################################################ |
318 | dnl -- Disable realtime clock support | |
319 | AC_MSG_CHECKING(whether to enable realtime support) | |
3d978351 | 320 | AC_ARG_ENABLE(realtime, [ --disable-realtime Disable realtime clock support], |
8b1a3214 AK |
321 | REALTIME=$enableval) |
322 | AC_MSG_RESULT($REALTIME) | |
323 | ||
80992638 | 324 | ################################################################################ |
8ce0cbda | 325 | dnl -- Build cluster LVM daemon |
ad6254c5 | 326 | AC_MSG_CHECKING(whether to build cluster LVM daemon) |
a266258f | 327 | AC_ARG_WITH(clvmd, |
4ff2b4ee | 328 | [ --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f AK |
329 | [TYPE=none] ], |
330 | [ CLVMD="$withval" ], | |
331 | [ CLVMD="none" ]) | |
332 | if test x$CLVMD = xyes; then | |
5c7fc7c4 | 333 | CLVMD=all |
b1098701 | 334 | fi |
ad6254c5 | 335 | AC_MSG_RESULT($CLVMD) |
80992638 | 336 | |
8ce0cbda | 337 | dnl -- If clvmd enabled without cluster locking, automagically include it |
a266258f | 338 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
d3c8211f AK |
339 | CLUSTER=internal |
340 | fi | |
d3c8211f | 341 | |
edf47283 AK |
342 | dnl -- Look for corosync libraries if required. |
343 | if [[ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]]; then | |
344 | PKG_CHECK_MODULES(QUORUM, libquorum, [], | |
345 | [AC_MSG_RESULT([no pkg for quorum library, using -lquorum]); | |
346 | QUORUM_LIBS="-lquorum"]) | |
347 | PKG_CHECK_MODULES(CONFDB, libconfdb, [], | |
348 | [AC_MSG_RESULT([no pkg for confdb library, using -lconfdb]); | |
349 | CONFDB_LIBS="-lconfdb"]) | |
350 | PKG_CHECK_MODULES(CPG, libcpg, [], | |
351 | [AC_MSG_RESULT([no pkg for libcpg library, using -lcpg]); | |
352 | CPG_LIBS="-lcpg"]) | |
353 | fi | |
354 | ||
80992638 | 355 | ################################################################################ |
8ce0cbda | 356 | dnl -- Enable debugging |
ad6254c5 AK |
357 | AC_MSG_CHECKING(whether to enable debugging) |
358 | AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging], | |
d0191583 | 359 | DEBUG=$enableval, DEBUG=no) |
ad6254c5 | 360 | AC_MSG_RESULT($DEBUG) |
8ef2b021 | 361 | |
8ce0cbda AK |
362 | dnl -- Normally turn off optimisation for debug builds |
363 | if test x$DEBUG = xyes; then | |
364 | COPTIMISE_FLAG= | |
8a2fc586 AK |
365 | else |
366 | CSCOPE_CMD= | |
8ce0cbda AK |
367 | fi |
368 | ||
369 | ################################################################################ | |
370 | dnl -- Override optimisation | |
ad6254c5 | 371 | AC_MSG_CHECKING(for C optimisation flag) |
8ce0cbda | 372 | AC_ARG_WITH(optimisation, |
d0191583 | 373 | [ --with-optimisation=OPT C optimisation flag [[OPT=-O2]] ], |
8ce0cbda | 374 | [ COPTIMISE_FLAG="$withval" ]) |
ad6254c5 | 375 | AC_MSG_RESULT($COPTIMISE_FLAG) |
8ce0cbda | 376 | |
fddafd51 ZK |
377 | ################################################################################ |
378 | dnl -- Enable profiling | |
5556819a | 379 | AC_MSG_CHECKING(whether to gather gcov profiling data) |
fddafd51 | 380 | AC_ARG_ENABLE(profiling, |
5556819a AK |
381 | AC_HELP_STRING(--enable-profiling, [Gather gcov profiling data]), |
382 | PROFILING=$enableval, PROFILING=no) | |
383 | AC_MSG_RESULT($PROFILING) | |
384 | ||
385 | if test "x$PROFILING" = xyes; then | |
386 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
b145d876 ZK |
387 | AC_PATH_PROG(LCOV, lcov, no) |
388 | AC_PATH_PROG(GENHTML, genhtml, no) | |
389 | if test "$LCOV" = no -o "$GENHTML" = no ; then | |
390 | AC_MSG_ERROR([lcov and genhtml are required for profiling]) | |
391 | fi | |
5556819a | 392 | fi |
fddafd51 | 393 | |
80992638 | 394 | ################################################################################ |
8ce0cbda | 395 | dnl -- Disable devmapper |
ad6254c5 | 396 | AC_MSG_CHECKING(whether to use device-mapper) |
f6fc418d | 397 | AC_ARG_ENABLE(devmapper, [ --disable-devmapper Disable LVM2 device-mapper interaction], |
ad6254c5 AK |
398 | DEVMAPPER=$enableval) |
399 | AC_MSG_RESULT($DEVMAPPER) | |
199e490e | 400 | |
b896caa1 | 401 | if test x$DEVMAPPER = xyes; then |
f6fc418d | 402 | AC_DEFINE([DEVMAPPER_SUPPORT], 1, [Define to 1 to enable LVM2 device-mapper interaction.]) |
b896caa1 AK |
403 | fi |
404 | ||
f6fc418d AK |
405 | ################################################################################ |
406 | dnl -- Compatibility mode | |
407 | AC_ARG_ENABLE(compat, [ --enable-compat Enable support for old device-mapper versions], | |
408 | DM_COMPAT=$enableval, DM_COMPAT=no) | |
409 | ||
410 | ################################################################################ | |
411 | dnl -- Disable ioctl | |
412 | AC_ARG_ENABLE(ioctl, [ --disable-driver Disable calls to device-mapper in the kernel], | |
413 | DM_IOCTLS=$enableval) | |
414 | ||
80992638 | 415 | ################################################################################ |
8ce0cbda | 416 | dnl -- Disable O_DIRECT |
ad6254c5 AK |
417 | AC_MSG_CHECKING(whether to enable O_DIRECT) |
418 | AC_ARG_ENABLE(o_direct, [ --disable-o_direct Disable O_DIRECT], | |
419 | ODIRECT=$enableval) | |
420 | AC_MSG_RESULT($ODIRECT) | |
2dc95e1c AK |
421 | |
422 | if test x$ODIRECT = xyes; then | |
72b2cb61 | 423 | AC_DEFINE([O_DIRECT_SUPPORT], 1, [Define to 1 to enable O_DIRECT support.]) |
2dc95e1c AK |
424 | fi |
425 | ||
572fefeb AK |
426 | ################################################################################ |
427 | dnl -- Enable liblvm2app.so | |
428 | AC_MSG_CHECKING(whether to build liblvm2app.so application library) | |
429 | AC_ARG_ENABLE(applib, | |
430 | [ --enable-applib Build application library], | |
431 | APPLIB=$enableval, APPLIB=no) | |
432 | AC_MSG_RESULT($APPLIB) | |
433 | AC_SUBST([LVM2APP_LIB]) | |
434 | test x$APPLIB = xyes \ | |
435 | && LVM2APP_LIB=-llvm2app \ | |
436 | || LVM2APP_LIB= | |
437 | ||
80992638 | 438 | ################################################################################ |
8ce0cbda | 439 | dnl -- Enable cmdlib |
ad6254c5 AK |
440 | AC_MSG_CHECKING(whether to compile liblvm2cmd.so) |
441 | AC_ARG_ENABLE(cmdlib, [ --enable-cmdlib Build shared command library], | |
442 | CMDLIB=$enableval, CMDLIB=no) | |
443 | AC_MSG_RESULT($CMDLIB) | |
aa4d1e31 | 444 | AC_SUBST([LVM2CMD_LIB]) |
2a9a80c9 | 445 | test x$CMDLIB = xyes \ |
aa4d1e31 JM |
446 | && LVM2CMD_LIB=-llvm2cmd \ |
447 | || LVM2CMD_LIB= | |
8106cdd5 | 448 | |
f6fc418d AK |
449 | ################################################################################ |
450 | dnl -- Enable pkg-config | |
451 | AC_ARG_ENABLE(pkgconfig, [ --enable-pkgconfig Install pkgconfig support], | |
452 | PKGCONFIG=$enableval, PKGCONFIG=no) | |
2a9a80c9 | 453 | |
80992638 | 454 | ################################################################################ |
8ce0cbda | 455 | dnl -- Enable fsadm |
1995c9ff | 456 | AC_MSG_CHECKING(whether to install fsadm) |
ad6254c5 AK |
457 | AC_ARG_ENABLE(fsadm, [ --enable-fsadm Enable fsadm], |
458 | FSADM=$enableval) | |
459 | AC_MSG_RESULT($FSADM) | |
809fae91 | 460 | |
06f62ad1 AK |
461 | ################################################################################ |
462 | dnl -- enable dmeventd handling | |
463 | AC_MSG_CHECKING(whether to use dmeventd) | |
464 | AC_ARG_ENABLE(dmeventd, [ --enable-dmeventd Enable the device-mapper event daemon], | |
465 | DMEVENTD=$enableval) | |
466 | AC_MSG_RESULT($DMEVENTD) | |
467 | ||
f6fc418d AK |
468 | BUILD_DMEVENTD=$DMEVENTD |
469 | ||
06f62ad1 | 470 | dnl -- dmeventd currently requires internal mirror support |
2a9a80c9 PR |
471 | if test x$DMEVENTD = xyes; then |
472 | if test x$MIRRORS != xinternal; then | |
473 | AC_MSG_ERROR( | |
474 | --enable-dmeventd currently requires --with-mirrors=internal | |
475 | ) | |
476 | fi | |
477 | if test x$CMDLIB = xno; then | |
478 | AC_MSG_ERROR( | |
479 | --enable-dmeventd requires --enable-cmdlib to be used as well | |
480 | ) | |
481 | fi | |
06f62ad1 AK |
482 | fi |
483 | ||
15d91f5a | 484 | if test x$DMEVENTD = xyes; then |
72b2cb61 | 485 | AC_DEFINE([DMEVENTD], 1, [Define to 1 to enable the device-mapper event daemon.]) |
15d91f5a | 486 | fi |
f6fc418d AK |
487 | |
488 | ################################################################################ | |
489 | dnl -- getline included in recent libc | |
490 | ||
491 | AC_CHECK_LIB(c, getline, AC_DEFINE([HAVE_GETLINE], 1, | |
492 | [Define to 1 if getline is available.])) | |
493 | ||
494 | ################################################################################ | |
495 | dnl -- canonicalize_file_name included in recent libc | |
496 | ||
497 | AC_CHECK_LIB(c, canonicalize_file_name, | |
498 | AC_DEFINE([HAVE_CANONICALIZE_FILE_NAME], 1, | |
499 | [Define to 1 if canonicalize_file_name is available.])) | |
500 | ||
80992638 | 501 | ################################################################################ |
d0191583 | 502 | dnl -- Clear default exec_prefix - install into /sbin rather than /usr/sbin |
795ca3e5 AK |
503 | if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]]; |
504 | then exec_prefix=""; | |
505 | fi; | |
506 | ||
80992638 | 507 | ################################################################################ |
8ce0cbda | 508 | dnl -- Check for termcap (Shamelessly copied from parted 1.4.17) |
ea7cfb00 | 509 | if test x$READLINE != xno; then |
18dcfb69 | 510 | AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib], |
ea7cfb00 JM |
511 | [tg_found=yes], [tg_found=no]) |
512 | test x$READLINE:$tg_found = xyes:no && | |
513 | AC_MSG_ERROR( | |
795ca3e5 AK |
514 | termcap could not be found which is required for the |
515 | --enable-readline option (which is enabled by default). Either disable readline | |
516 | support with --disable-readline or download and install termcap from: | |
517 | ftp.gnu.org/gnu/termcap | |
518 | Note: if you are using precompiled packages you will also need the development | |
519 | package as well (which may be called termcap-devel or something similar). | |
520 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
521 | not found either - but you could try installing that as well. | |
522 | ) | |
795ca3e5 AK |
523 | fi |
524 | ||
80992638 | 525 | ################################################################################ |
8ce0cbda | 526 | dnl -- Check for dlopen |
26e7f2e0 AK |
527 | AC_CHECK_LIB(dl, dlopen, HAVE_LIBDL=yes, HAVE_LIBDL=no) |
528 | ||
7e9e9502 | 529 | if [[ "x$HAVE_LIBDL" = xyes ]]; then |
72b2cb61 | 530 | AC_DEFINE([HAVE_LIBDL], 1, [Define to 1 if dynamic libraries are available.]) |
26e7f2e0 | 531 | LIBS="-ldl $LIBS" |
d68a82ec AK |
532 | else |
533 | HAVE_LIBDL=no | |
26e7f2e0 AK |
534 | fi |
535 | ||
80992638 | 536 | ################################################################################ |
8ce0cbda | 537 | dnl -- Check for shared/static conflicts |
80992638 AK |
538 | if [[ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ |
539 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
4922197a | 540 | \) -a "x$STATIC_LINK" = xyes ]]; |
d68a82ec | 541 | then AC_MSG_ERROR( |
036f273a | 542 | Features cannot be 'shared' when building statically |
d68a82ec | 543 | ) |
036f273a AK |
544 | fi |
545 | ||
d0191583 JM |
546 | ################################################################################ |
547 | dnl -- Disable selinux | |
548 | AC_MSG_CHECKING(whether to enable selinux support) | |
549 | AC_ARG_ENABLE(selinux, [ --disable-selinux Disable selinux support], | |
550 | SELINUX=$enableval) | |
551 | AC_MSG_RESULT($SELINUX) | |
552 | ||
80992638 | 553 | ################################################################################ |
8a2fc586 | 554 | dnl -- Check for selinux |
80992638 | 555 | if test x$SELINUX = xyes; then |
8a2fc586 | 556 | AC_CHECK_LIB(sepol, sepol_check_context, HAVE_SEPOL=yes, HAVE_SEPOL=no) |
8a2fc586 AK |
557 | |
558 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
559 | AC_DEFINE([HAVE_SEPOL], 1, |
560 | [Define to 1 if sepol_check_context is available.]) | |
8a2fc586 AK |
561 | LIBS="-lsepol $LIBS" |
562 | fi | |
563 | ||
80992638 AK |
564 | AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no) |
565 | ||
566 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 | 567 | AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
80992638 AK |
568 | LIBS="-lselinux $LIBS" |
569 | else | |
ad6254c5 | 570 | AC_MSG_WARN(Disabling selinux) |
80992638 | 571 | fi |
66e941e8 | 572 | |
d0191583 | 573 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
574 | # fails on at least Debian unstable due to unsatisfied references |
575 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
576 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
577 | lvm_saved_libs=$LIBS | |
578 | LIBS="$LIBS -static" | |
579 | AC_SEARCH_LIBS([pthread_mutex_lock], [pthread], | |
580 | [test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
581 | LIB_PTHREAD=-lpthread]) | |
582 | LIBS=$lvm_saved_libs | |
583 | fi | |
036f273a | 584 | fi |
d68a82ec | 585 | |
8b1a3214 AK |
586 | ################################################################################ |
587 | dnl -- Check for realtime clock support | |
588 | if test x$REALTIME = xyes; then | |
8b1a3214 | 589 | AC_CHECK_LIB(rt, clock_gettime, HAVE_REALTIME=yes, HAVE_REALTIME=no) |
8b1a3214 AK |
590 | |
591 | if test x$HAVE_REALTIME = xyes; then | |
592 | AC_DEFINE([HAVE_REALTIME], 1, [Define to 1 to include support for realtime clock.]) | |
593 | LIBS="-lrt $LIBS" | |
594 | else | |
595 | AC_MSG_WARN(Disabling realtime clock) | |
596 | fi | |
597 | fi | |
598 | ||
80992638 | 599 | ################################################################################ |
8ce0cbda | 600 | dnl -- Check for getopt |
d0191583 | 601 | AC_CHECK_HEADERS(getopt.h, AC_DEFINE([HAVE_GETOPTLONG], 1, [Define to 1 if getopt_long is available.])) |
b896caa1 | 602 | |
80992638 | 603 | ################################################################################ |
8ce0cbda | 604 | dnl -- Check for readline (Shamelessly copied from parted 1.4.17) |
ea7cfb00 | 605 | if test x$READLINE != xno; then |
0ad6b7e2 JM |
606 | rl_found=yes |
607 | AC_CHECK_LIB([readline], [readline], , [rl_found=no]) | |
ea7cfb00 JM |
608 | test x$READLINE:$rl_found = xyes:no && |
609 | AC_MSG_ERROR( | |
795ca3e5 AK |
610 | GNU Readline could not be found which is required for the |
611 | --enable-readline option (which is enabled by default). Either disable readline | |
612 | support with --disable-readline or download and install readline from: | |
613 | ftp.gnu.org/gnu/readline | |
614 | Note: if you are using precompiled packages you will also need the development | |
615 | package as well (which may be called readline-devel or something similar). | |
616 | ) | |
ea7cfb00 | 617 | if test $rl_found = yes; then |
0ad6b7e2 | 618 | AC_CHECK_FUNCS([rl_completion_matches]) |
ea7cfb00 JM |
619 | AC_DEFINE([READLINE_SUPPORT], 1, |
620 | [Define to 1 to include the LVM readline shell.]) | |
621 | fi | |
795ca3e5 AK |
622 | fi |
623 | ||
80992638 | 624 | ################################################################################ |
8ce0cbda | 625 | dnl -- Internationalisation stuff |
ad6254c5 AK |
626 | AC_MSG_CHECKING(whether to enable internationalisation) |
627 | AC_ARG_ENABLE(nls, [ --enable-nls Enable Native Language Support], | |
628 | INTL=$enableval, INTL=no) | |
629 | AC_MSG_RESULT($INTL) | |
69792976 AK |
630 | |
631 | if test x$INTL = xyes; then | |
f6fc418d | 632 | # FIXME - Move this - can be device-mapper too |
69792976 AK |
633 | INTL_PACKAGE="lvm2" |
634 | AC_PATH_PROG(MSGFMT, msgfmt) | |
635 | if [[ "x$MSGFMT" == x ]]; | |
636 | then AC_MSG_ERROR( | |
637 | msgfmt not found in path $PATH | |
638 | ) | |
69792976 AK |
639 | fi; |
640 | ||
641 | AC_ARG_WITH(localedir, | |
d0191583 JM |
642 | [ --with-localedir=DIR Translation files in DIR [[PREFIX/share/locale]] ], |
643 | [ LOCALEDIR="$withval" ], | |
644 | [ LOCALEDIR='${prefix}/share/locale' ]) | |
69792976 AK |
645 | fi |
646 | ||
80992638 | 647 | ################################################################################ |
4a7f3eb2 | 648 | AC_ARG_WITH(confdir, |
0a62c911 | 649 | [ --with-confdir=DIR Configuration files in DIR [/etc]], |
d0191583 JM |
650 | [ CONFDIR="$withval" ], |
651 | [ CONFDIR='/etc' ]) | |
0a62c911 AK |
652 | |
653 | AC_ARG_WITH(staticdir, | |
654 | [ --with-staticdir=DIR Static binary in DIR [EXEC_PREFIX/sbin]], | |
d0191583 JM |
655 | [ STATICDIR="$withval" ], |
656 | [ STATICDIR='${exec_prefix}/sbin' ]) | |
0a62c911 | 657 | |
68f2de6d AK |
658 | AC_ARG_WITH(usrlibdir, |
659 | [ --with-usrlibdir=DIR], | |
660 | [ usrlibdir="$withval"], | |
661 | [ usrlibdir='${prefix}/lib' ]) | |
662 | ||
663 | AC_ARG_WITH(usrsbindir, | |
664 | [ --with-usrsbindir=DIR], | |
665 | [ usrsbindir="$withval"], | |
666 | [ usrsbindir='${prefix}/sbin' ]) | |
667 | ||
ad6254c5 AK |
668 | ################################################################################ |
669 | dnl -- Ensure additional headers required | |
670 | if test x$READLINE = xyes; then | |
671 | AC_CHECK_HEADERS(readline/readline.h readline/history.h,,AC_MSG_ERROR(bailing out)) | |
672 | fi | |
673 | ||
5c7fc7c4 | 674 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
675 | 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)) |
676 | AC_CHECK_FUNCS(dup2 getmntent memmove select socket,,AC_MSG_ERROR(bailing out)) | |
677 | AC_FUNC_GETMNTENT | |
678 | # AC_FUNC_REALLOC | |
679 | AC_FUNC_SELECT_ARGTYPES | |
680 | fi | |
681 | ||
ad6254c5 AK |
682 | if test x$CLUSTER != xnone; then |
683 | AC_CHECK_HEADERS(sys/socket.h sys/un.h,,AC_MSG_ERROR(bailing out)) | |
684 | AC_CHECK_FUNCS(socket,,AC_MSG_ERROR(bailing out)) | |
685 | fi | |
686 | ||
687 | if test x$HAVE_LIBDL = xyes; then | |
688 | AC_CHECK_HEADERS(dlfcn.h,,AC_MSG_ERROR(bailing out)) | |
689 | fi | |
690 | ||
691 | if test x$INTL = xyes; then | |
692 | AC_CHECK_HEADERS(libintl.h,,AC_MSG_ERROR(bailing out)) | |
693 | fi | |
694 | ||
ad6254c5 AK |
695 | if test x$HAVE_SELINUX = xyes; then |
696 | AC_CHECK_HEADERS(selinux/selinux.h,,AC_MSG_ERROR(bailing out)) | |
697 | fi | |
4a7f3eb2 | 698 | |
a653923f AK |
699 | ################################################################################ |
700 | AC_PATH_PROG(MODPROBE_CMD, modprobe) | |
701 | ||
702 | if test x$MODPROBE_CMD != x; then | |
72b2cb61 | 703 | AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.]) |
a653923f AK |
704 | fi |
705 | ||
80992638 | 706 | ################################################################################ |
f6fc418d AK |
707 | dnl -- dmeventd pidfile and executable path |
708 | AH_TEMPLATE(DMEVENTD_PIDFILE, [Path to dmeventd pidfile.]) | |
709 | if test "$BUILD_DMEVENTD" = yes; then | |
710 | AC_ARG_WITH(dmeventd-pidfile, | |
711 | [ --with-dmeventd-pidfile=PATH dmeventd pidfile [[/var/run/dmeventd.pid]] ], | |
712 | [ AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE,"$withval") ], | |
713 | [ AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE,"/var/run/dmeventd.pid") ]) | |
714 | fi | |
715 | ||
716 | AH_TEMPLATE(DMEVENTD_PATH, [Path to dmeventd binary.]) | |
717 | if test "$BUILD_DMEVENTD" = yes; then | |
718 | dmeventd_prefix="$exec_prefix" | |
719 | if test "x$dmeventd_prefix" = "xNONE"; then | |
720 | dmeventd_prefix="$prefix" | |
721 | fi | |
722 | if test "x$dmeventd_prefix" = "xNONE"; then | |
723 | dmeventd_prefix="" | |
724 | fi | |
725 | AC_ARG_WITH(dmeventd-path, | |
726 | [ --with-dmeventd-path=PATH dmeventd path [[${exec_prefix}/sbin/dmeventd]] ], | |
727 | [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$withval") ], | |
728 | [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$dmeventd_prefix/sbin/dmeventd") ]) | |
729 | fi | |
730 | ||
731 | ################################################################################ | |
732 | dnl -- which kernel interface to use (ioctl only) | |
733 | AC_MSG_CHECKING(for kernel interface choice) | |
734 | AC_ARG_WITH(interface, | |
735 | [ --with-interface=IFACE Choose kernel interface (ioctl) [[ioctl]] ], | |
736 | [ interface="$withval" ], | |
737 | [ interface=ioctl ]) | |
738 | if [[ "x$interface" != xioctl ]]; | |
739 | then | |
740 | AC_MSG_ERROR(--with-interface=ioctl required. fs no longer supported.) | |
741 | fi | |
742 | AC_MSG_RESULT($interface) | |
743 | ||
744 | ################################################################################ | |
2c44337b | 745 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
f58b35b5 AK |
746 | AC_DEFINE_UNQUOTED(DM_LIB_VERSION, $DM_LIB_VERSION, [Library version]) |
747 | ||
ec6a6fbe | 748 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[[-. ]]' '{printf "%s.%s.%s",$1,$2,$3}'` |
597c3f8e | 749 | |
d0191583 | 750 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 751 | |
ec6a6fbe AK |
752 | VER=`cat VERSION` |
753 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\"" | |
754 | VER=`echo "$VER" | $AWK '{print $1}'` | |
755 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
756 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
757 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
758 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
759 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'` | |
760 | ||
80992638 | 761 | ################################################################################ |
572fefeb | 762 | AC_SUBST(APPLIB) |
d0191583 | 763 | AC_SUBST(BUILD_DMEVENTD) |
b896caa1 | 764 | AC_SUBST(CFLAGS) |
d0191583 | 765 | AC_SUBST(CFLOW_CMD) |
8106cdd5 | 766 | AC_SUBST(CLDFLAGS) |
8106cdd5 | 767 | AC_SUBST(CLDNOWHOLEARCHIVE) |
d0191583 JM |
768 | AC_SUBST(CLDWHOLEARCHIVE) |
769 | AC_SUBST(CLUSTER) | |
770 | AC_SUBST(CLVMD) | |
771 | AC_SUBST(CMDLIB) | |
edf47283 AK |
772 | AC_SUBST(CONFDB_CFLAGS) |
773 | AC_SUBST(CONFDB_LIBS) | |
774 | AC_SUBST(CONFDIR) | |
d0191583 | 775 | AC_SUBST(COPTIMISE_FLAG) |
edf47283 AK |
776 | AC_SUBST(CPG_CFLAGS) |
777 | AC_SUBST(CPG_LIBS) | |
d0191583 | 778 | AC_SUBST(CSCOPE_CMD) |
8ef2b021 | 779 | AC_SUBST(DEBUG) |
199e490e | 780 | AC_SUBST(DEVMAPPER) |
d0191583 JM |
781 | AC_SUBST(DMEVENTD) |
782 | AC_SUBST(DM_COMPAT) | |
783 | AC_SUBST(DM_DEVICE_GID) | |
784 | AC_SUBST(DM_DEVICE_MODE) | |
785 | AC_SUBST(DM_DEVICE_UID) | |
786 | AC_SUBST(DM_IOCTLS) | |
787 | AC_SUBST(DM_LIB_VERSION) | |
597c3f8e | 788 | AC_SUBST(DM_LIB_PATCHLEVEL) |
d0191583 JM |
789 | AC_SUBST(FSADM) |
790 | AC_SUBST(GROUP) | |
26e7f2e0 | 791 | AC_SUBST(HAVE_LIBDL) |
8b1a3214 | 792 | AC_SUBST(HAVE_REALTIME) |
d0191583 JM |
793 | AC_SUBST(HAVE_SELINUX) |
794 | AC_SUBST(INTL) | |
795 | AC_SUBST(INTL_PACKAGE) | |
796 | AC_SUBST(JOBS) | |
797 | AC_SUBST(LDDEPS) | |
798 | AC_SUBST(LIBS) | |
799 | AC_SUBST(LIB_SUFFIX) | |
69792976 | 800 | AC_SUBST(LOCALEDIR) |
d0191583 JM |
801 | AC_SUBST(LVM1) |
802 | AC_SUBST(LVM1_FALLBACK) | |
d0191583 | 803 | AC_SUBST(LVM_VERSION) |
ec6a6fbe AK |
804 | AC_SUBST(LVM_MAJOR) |
805 | AC_SUBST(LVM_MINOR) | |
806 | AC_SUBST(LVM_PATCHLEVEL) | |
807 | AC_SUBST(LVM_RELEASE) | |
808 | AC_SUBST(LVM_RELEASE_DATE) | |
d0191583 JM |
809 | AC_SUBST(MIRRORS) |
810 | AC_SUBST(MSGFMT) | |
811 | AC_SUBST(OWNER) | |
812 | AC_SUBST(PKGCONFIG) | |
813 | AC_SUBST(POOL) | |
edf47283 AK |
814 | AC_SUBST(QUORUM_CFLAGS) |
815 | AC_SUBST(QUORUM_LIBS) | |
d0191583 | 816 | AC_SUBST(SNAPSHOTS) |
0a62c911 | 817 | AC_SUBST(STATICDIR) |
d0191583 | 818 | AC_SUBST(STATIC_LINK) |
66e941e8 | 819 | AC_SUBST([LIB_PTHREAD]) |
f6fc418d AK |
820 | AC_SUBST(interface) |
821 | AC_SUBST(kerneldir) | |
822 | AC_SUBST(missingkernel) | |
823 | AC_SUBST(kernelvsn) | |
824 | AC_SUBST(tmpdir) | |
68f2de6d AK |
825 | AC_SUBST(usrlibdir) |
826 | AC_SUBST(usrsbindir) | |
8106cdd5 | 827 | |
80992638 | 828 | ################################################################################ |
d3a356b4 | 829 | dnl -- First and last lines should not contain files to generate in order to |
8ce0cbda | 830 | dnl -- keep utility scripts running properly |
d3a356b4 JM |
831 | AC_CONFIG_FILES([ |
832 | Makefile | |
833 | make.tmpl | |
834 | daemons/Makefile | |
835 | daemons/clvmd/Makefile | |
f6fc418d AK |
836 | daemons/dmeventd/Makefile |
837 | daemons/dmeventd/libdevmapper-event.pc | |
b7edb5bf | 838 | daemons/dmeventd/plugins/Makefile |
f6fc418d AK |
839 | daemons/dmeventd/plugins/mirror/Makefile |
840 | daemons/dmeventd/plugins/snapshot/Makefile | |
d3a356b4 | 841 | doc/Makefile |
f6fc418d AK |
842 | include/Makefile |
843 | lib/Makefile | |
d3a356b4 JM |
844 | lib/format1/Makefile |
845 | lib/format_pool/Makefile | |
846 | lib/locking/Makefile | |
847 | lib/mirror/Makefile | |
ec6a6fbe | 848 | lib/misc/lvm-version.h |
d3a356b4 | 849 | lib/snapshot/Makefile |
f6fc418d AK |
850 | libdm/Makefile |
851 | libdm/libdevmapper.pc | |
e0c64c6c | 852 | liblvm/Makefile |
f6fc418d AK |
853 | man/Makefile |
854 | po/Makefile | |
2de38033 | 855 | scripts/clvmd_init_red_hat |
d3a356b4 | 856 | scripts/Makefile |
f6fc418d | 857 | test/Makefile |
c7e363f9 | 858 | test/api/Makefile |
d3a356b4 | 859 | tools/Makefile |
7a197a62 AK |
860 | ]) |
861 | AC_OUTPUT | |
2dc95e1c AK |
862 | |
863 | if test x$ODIRECT != xyes; then | |
ad6254c5 | 864 | AC_MSG_WARN(Warning: O_DIRECT disabled: low-memory pvmove may lock up) |
2dc95e1c | 865 | fi |