]>
Commit | Line | Data |
---|---|---|
795ca3e5 AK |
1 | ## |
2 | ## Copyright 1999-2000 Sistina Software, Inc. | |
3 | ## | |
4 | ## This is free software released under the GNU General Public License. | |
5 | ## There is no warranty for this software. See the file COPYING for | |
6 | ## details. | |
7 | ## | |
8 | ## See the file CONTRIBUTORS for a list of contributors. | |
9 | ## | |
10 | ## This file is maintained by: | |
11 | ## AJ Lewis <lewis@sistina.com> | |
12 | ## | |
13 | ## File name: configure.in | |
14 | ## | |
15 | ## Description: Input file for autoconf. Generates the configure script | |
16 | ## that tries to keep everything nice and portable. It also | |
17 | ## simplifies distribution package building considerably. | |
18 | ################################################################################ | |
19 | ||
80992638 | 20 | ################################################################################ |
795ca3e5 | 21 | dnl Process this file with autoconf to produce a configure script. |
13c7b701 | 22 | AC_INIT(lib/device/dev-cache.h) |
795ca3e5 | 23 | |
80992638 | 24 | ################################################################################ |
795ca3e5 AK |
25 | dnl setup the directory where autoconf has auxilary files |
26 | AC_CONFIG_AUX_DIR(autoconf) | |
27 | ||
80992638 | 28 | ################################################################################ |
795ca3e5 AK |
29 | dnl Checks for programs. |
30 | AC_PROG_AWK | |
31 | AC_PROG_CC | |
32 | AC_PROG_INSTALL | |
33 | AC_PROG_LN_S | |
34 | AC_PROG_MAKE_SET | |
35 | AC_PROG_RANLIB | |
36 | ||
80992638 | 37 | ################################################################################ |
b896caa1 AK |
38 | dnl Get system type |
39 | AC_CANONICAL_SYSTEM | |
40 | ||
41 | case "$host_os" in | |
42 | linux*) | |
80992638 AK |
43 | CFLAGS="$CFLAGS" |
44 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
8106cdd5 AK |
45 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
46 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
80992638 AK |
47 | LDDEPS="$LDDEPS .export.sym" |
48 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
8106cdd5 AK |
49 | SOFLAG="-shared" |
50 | DEVMAPPER=yes | |
1a9ea74d | 51 | ODIRECT=yes |
80992638 | 52 | SELINUX=yes |
d3c8211f | 53 | CLUSTER=internal |
809fae91 | 54 | FSADM=no ;; |
8106cdd5 | 55 | darwin*) |
80992638 AK |
56 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" |
57 | CLDFLAGS="$CLDFLAGS" | |
8106cdd5 AK |
58 | CLDWHOLEARCHIVE="-all_load" |
59 | CLDNOWHOLEARCHIVE= | |
80992638 AK |
60 | LDDEPS="$LDDEPS" |
61 | LDFLAGS="$LDFLAGS" | |
8106cdd5 AK |
62 | SOFLAG="-dynamiclib" |
63 | DEVMAPPER=no | |
1a9ea74d | 64 | ODIRECT=no |
80992638 | 65 | SELINUX=no |
d3c8211f | 66 | CLUSTER=none |
1a9ea74d | 67 | FSADM=no ;; |
b896caa1 AK |
68 | esac |
69 | ||
80992638 AK |
70 | ################################################################################ |
71 | dnl Checks for header files. | |
72 | AC_HEADER_DIRENT | |
73 | AC_HEADER_STDC | |
74 | AC_CHECK_HEADERS(fcntl.h malloc.h sys/ioctl.h unistd.h) | |
75 | ||
76 | ################################################################################ | |
77 | dnl Checks for typedefs, structures, and compiler characteristics. | |
78 | AC_C_CONST | |
79 | AC_C_INLINE | |
80 | AC_TYPE_OFF_T | |
81 | AC_TYPE_PID_T | |
82 | AC_TYPE_SIZE_T | |
83 | AC_STRUCT_ST_RDEV | |
84 | AC_HEADER_TIME | |
85 | ||
86 | ################################################################################ | |
795ca3e5 AK |
87 | dnl -- prefix is /usr by default, the exec_prefix default is setup later |
88 | AC_PREFIX_DEFAULT(/usr) | |
89 | ||
80992638 AK |
90 | ################################################################################ |
91 | dnl -- Parallel make jobs? | |
92 | AC_ARG_ENABLE(jobs, [ --enable-jobs=NUM Number of jobs to run simultaneously], JOBS=-j$enableval, JOBS=-j2) | |
a38df97f | 93 | |
80992638 | 94 | ################################################################################ |
795ca3e5 | 95 | dnl -- setup the ownership of the files |
80992638 AK |
96 | echo $ac_n "Setting file owner to""... $ac_c" 1>&6 |
97 | OWNER="root" | |
98 | ||
795ca3e5 AK |
99 | AC_ARG_WITH(user, |
100 | [ --with-user=USER Set the owner of installed files ], | |
a38df97f | 101 | [ OWNER="$withval" ]) |
80992638 | 102 | echo "$ac_t""$OWNER" 1>&6 |
a38df97f AK |
103 | |
104 | if test x$OWNER != x; then | |
105 | OWNER="-o $OWNER" | |
106 | fi | |
795ca3e5 | 107 | |
80992638 | 108 | ################################################################################ |
795ca3e5 | 109 | dnl -- setup the group ownership of the files |
80992638 AK |
110 | echo $ac_n "Setting group owner to""... $ac_c" 1>&6 |
111 | GROUP="root" | |
795ca3e5 AK |
112 | AC_ARG_WITH(group, |
113 | [ --with-group=GROUP Set the group owner of installed files ], | |
a38df97f | 114 | [ GROUP="$withval" ]) |
80992638 | 115 | echo "$ac_t""$GROUP" 1>&6 |
a38df97f AK |
116 | |
117 | if test x$GROUP != x; then | |
118 | GROUP="-g $GROUP" | |
119 | fi | |
795ca3e5 | 120 | |
80992638 | 121 | ################################################################################ |
7d1552c9 | 122 | dnl -- LVM1 tool fallback option |
80992638 | 123 | echo $ac_n "checking whether to enable lvm1 fallback""... $ac_c" 1>&6 |
7d1552c9 AK |
124 | AC_ARG_ENABLE(lvm1_fallback, [ --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
125 | device-mapper is missing from the kernel], LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no) | |
80992638 | 126 | echo "$ac_t""$LVM1_FALLBACK" 1>&6 |
7d1552c9 AK |
127 | |
128 | if test x$LVM1_FALLBACK = xyes; then | |
129 | CFLAGS="$CFLAGS -DLVM1_FALLBACK" | |
130 | fi | |
131 | ||
80992638 | 132 | ################################################################################ |
5a52dca9 | 133 | dnl -- format1 inclusion type |
80992638 | 134 | echo $ac_n "checking whether to include support for lvm1 metadata""... $ac_c" 1>&6 |
5a52dca9 AK |
135 | AC_ARG_WITH(lvm1, |
136 | [ --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
137 | [TYPE=internal] ], | |
138 | [ LVM1="$withval" ], | |
139 | [ LVM1="internal" ]) | |
80992638 | 140 | echo "$ac_t""$LVM1" 1>&6 |
5a52dca9 AK |
141 | |
142 | if [[ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]]; | |
143 | then AC_MSG_ERROR( | |
144 | --with-lvm1 parameter invalid | |
145 | ) | |
146 | exit | |
147 | fi; | |
148 | ||
b896caa1 AK |
149 | if test x$LVM1 = xinternal; then |
150 | CFLAGS="$CFLAGS -DLVM1_INTERNAL" | |
151 | fi | |
152 | ||
80992638 | 153 | ################################################################################ |
d8ac0fbc | 154 | dnl -- format_pool inclusion type |
80992638 | 155 | echo $ac_n "checking whether to include support for GFS pool metadata""... $ac_c" 1>&6 |
d8ac0fbc | 156 | AC_ARG_WITH(pool, |
60329273 | 157 | [ --with-pool=TYPE GFS pool read-only support: internal/shared/none |
d8ac0fbc AK |
158 | [TYPE=internal] ], |
159 | [ POOL="$withval" ], | |
160 | [ POOL="internal" ]) | |
80992638 | 161 | echo "$ac_t""$POOL" 1>&6 |
d8ac0fbc AK |
162 | |
163 | if [[ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]]; | |
164 | then AC_MSG_ERROR( | |
165 | --with-pool parameter invalid | |
166 | ) | |
167 | exit | |
168 | fi; | |
169 | ||
170 | if test x$POOL = xinternal; then | |
171 | CFLAGS="$CFLAGS -DPOOL_INTERNAL" | |
172 | fi | |
173 | ||
80992638 | 174 | ################################################################################ |
d3c8211f | 175 | dnl -- cluster_locking inclusion type |
80992638 | 176 | echo $ac_n "checking whether to include support for cluster locking""... $ac_c" 1>&6 |
d3c8211f AK |
177 | AC_ARG_WITH(cluster, |
178 | [ --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
179 | [TYPE=internal] ], | |
180 | [ CLUSTER="$withval" ]) | |
80992638 | 181 | echo "$ac_t""$CLUSTER" 1>&6 |
d3c8211f AK |
182 | |
183 | if [[ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]]; | |
184 | then AC_MSG_ERROR( | |
185 | --with-cluster parameter invalid | |
186 | ) | |
187 | exit | |
188 | fi; | |
189 | ||
190 | if test x$CLUSTER = xinternal; then | |
191 | CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL" | |
192 | fi | |
d8ac0fbc | 193 | |
80992638 | 194 | ################################################################################ |
4922197a | 195 | dnl -- snapshots inclusion type |
80992638 | 196 | echo $ac_n "checking whether to include snapshots""... $ac_c" 1>&6 |
4922197a AK |
197 | AC_ARG_WITH(snapshots, |
198 | [ --with-snapshots=TYPE Snapshot support: internal/shared/none | |
199 | [TYPE=internal] ], | |
200 | [ SNAPSHOTS="$withval" ], | |
201 | [ SNAPSHOTS="internal" ]) | |
80992638 | 202 | echo "$ac_t""$SNAPSHOTS" 1>&6 |
4922197a AK |
203 | |
204 | if [[ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]]; | |
205 | then AC_MSG_ERROR( | |
206 | --with-snapshots parameter invalid | |
207 | ) | |
208 | exit | |
209 | fi; | |
210 | ||
211 | if test x$SNAPSHOTS = xinternal; then | |
212 | CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL" | |
213 | fi | |
214 | ||
80992638 | 215 | ################################################################################ |
4922197a | 216 | dnl -- mirrors inclusion type |
80992638 | 217 | echo $ac_n "checking whether to include mirrors""... $ac_c" 1>&6 |
4922197a AK |
218 | AC_ARG_WITH(mirrors, |
219 | [ --with-mirrors=TYPE Mirror support: internal/shared/none | |
220 | [TYPE=internal] ], | |
221 | [ MIRRORS="$withval" ], | |
222 | [ MIRRORS="internal" ]) | |
80992638 | 223 | echo "$ac_t""$MIRRORS" 1>&6 |
4922197a AK |
224 | |
225 | if [[ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]]; | |
226 | then AC_MSG_ERROR( | |
227 | --with-mirrors parameter invalid | |
228 | ) | |
229 | exit | |
230 | fi; | |
231 | ||
232 | if test x$MIRRORS = xinternal; then | |
233 | CFLAGS="$CFLAGS -DMIRRORED_INTERNAL" | |
234 | fi | |
235 | ||
80992638 | 236 | ################################################################################ |
8106cdd5 | 237 | dnl Enables staticly-linked tools |
80992638 | 238 | echo $ac_n "checking whether to use static linking""... $ac_c" 1>&6 |
8106cdd5 | 239 | AC_ARG_ENABLE(static_link, [ --enable-static_link Use this to link the tools to their libraries |
795ca3e5 | 240 | statically. Default is dynamic linking], STATIC_LINK=$enableval, STATIC_LINK=no) |
80992638 | 241 | echo "$ac_t""$STATIC_LINK" 1>&6 |
795ca3e5 | 242 | |
80992638 | 243 | ################################################################################ |
5a52dca9 | 244 | dnl Enable readline |
80992638 | 245 | echo $ac_n "checking whether to enable readline""... $ac_c" 1>&6 |
5a52dca9 AK |
246 | AC_ARG_ENABLE(readline, [ --enable-readline Enable readline support], \ |
247 | READLINE=$enableval, READLINE=no) | |
80992638 | 248 | echo "$ac_t""$READLINE" 1>&6 |
795ca3e5 | 249 | |
b896caa1 AK |
250 | if test x$READLINE = xyes; then |
251 | CFLAGS="$CFLAGS -DREADLINE_SUPPORT" | |
252 | fi | |
253 | ||
80992638 AK |
254 | ################################################################################ |
255 | dnl Disable selinux | |
256 | echo $ac_n "checking whether to enable selinux support""... $ac_c" 1>&6 | |
257 | AC_ARG_ENABLE(selinux, [ --disable-selinux Disable selinux support], \ | |
258 | SELINUX=$enableval) | |
259 | echo "$ac_t""$SELINUX" 1>&6 | |
260 | ||
261 | ################################################################################ | |
d3c8211f | 262 | dnl Build cluster LVM daemon |
80992638 | 263 | echo $ac_n "checking whether to build cluster LVM daemon""... $ac_c" 1>&6 |
d3c8211f AK |
264 | AC_ARG_WITH(clvmd, [ --with-clvmd Build cluster LVM Daemon], \ |
265 | CLVMD=$withval, CLVMD=no) | |
80992638 AK |
266 | echo "$ac_t""$CLVMD" 1>&6 |
267 | ||
d3c8211f AK |
268 | dnl If clvmd enabled and not cluster locking, automgically include the locking. |
269 | if test x$CLVMD = xyes && test x$CLUSTER = xnone; then | |
270 | CLUSTER=internal | |
271 | fi | |
d3c8211f | 272 | |
80992638 | 273 | ################################################################################ |
8ef2b021 | 274 | dnl Enable Debugging |
80992638 | 275 | echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6 |
8ef2b021 AK |
276 | AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging], \ |
277 | DEBUG=yes, DEBUG=no) | |
69792976 | 278 | echo "$ac_t""$DEBUG" 1>&6 |
8ef2b021 | 279 | |
80992638 | 280 | ################################################################################ |
199e490e | 281 | dnl Disable devmapper |
80992638 | 282 | echo $ac_n "checking whether to use device-mapper""... $ac_c" 1>&6 |
199e490e | 283 | AC_ARG_ENABLE(devmapper, [ --disable-devmapper Disable device-mapper interaction], \ |
8106cdd5 | 284 | DEVMAPPER=no) |
69792976 | 285 | echo "$ac_t""$DEVMAPPER" 1>&6 |
199e490e | 286 | |
b896caa1 AK |
287 | if test x$DEVMAPPER = xyes; then |
288 | CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT" | |
289 | fi | |
290 | ||
80992638 | 291 | ################################################################################ |
2dc95e1c | 292 | dnl Disable O_DIRECT |
80992638 | 293 | echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6 |
2dc95e1c | 294 | AC_ARG_ENABLE(o_direct, [ --disable-o_direct Disable O_DIRECT], \ |
8106cdd5 | 295 | ODIRECT=no) |
69792976 | 296 | echo "$ac_t""$ODIRECT" 1>&6 |
2dc95e1c AK |
297 | |
298 | if test x$ODIRECT = xyes; then | |
299 | CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT" | |
300 | fi | |
301 | ||
80992638 | 302 | ################################################################################ |
8106cdd5 | 303 | dnl Enable cmdlib |
80992638 | 304 | echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6 |
8106cdd5 AK |
305 | AC_ARG_ENABLE(cmdlib, [ --enable-cmdlib Build shared command library], \ |
306 | CMDLIB=yes, CMDLIB=no) | |
307 | echo "$ac_t""$CMDLIB" 1>&6 | |
308 | ||
309 | if test x$CMDLIB = xyes; then | |
310 | CFLAGS="$CFLAGS -DCMDLIB" | |
311 | fi | |
312 | ||
80992638 | 313 | ################################################################################ |
809fae91 | 314 | dnl Enable fsadm |
80992638 | 315 | echo $ac_n "checking whether to build fsadm""... $ac_c" 1>&6 |
809fae91 AK |
316 | AC_ARG_ENABLE(fsadm, [ --enable-fsadm Enable fsadm], FSADM=yes) |
317 | echo "$ac_t""$FSADM" 1>&6 | |
318 | ||
80992638 | 319 | ################################################################################ |
795ca3e5 AK |
320 | dnl Mess with default exec_prefix |
321 | if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]]; | |
322 | then exec_prefix=""; | |
323 | fi; | |
324 | ||
80992638 | 325 | ################################################################################ |
795ca3e5 AK |
326 | dnl Checks for library functions. |
327 | AC_PROG_GCC_TRADITIONAL | |
328 | AC_TYPE_SIGNAL | |
329 | AC_FUNC_VPRINTF | |
330 | AC_CHECK_FUNCS(mkdir rmdir uname) | |
331 | ||
80992638 | 332 | ################################################################################ |
795ca3e5 AK |
333 | dnl check for termcap (Shamelessly copied from parted 1.4.17) |
334 | if test x$READLINE = xyes; then | |
335 | AC_SEARCH_LIBS(tgetent, ncurses curses termcap termlib, , | |
336 | AC_MSG_ERROR( | |
337 | termcap could not be found which is required for the | |
338 | --enable-readline option (which is enabled by default). Either disable readline | |
339 | support with --disable-readline or download and install termcap from: | |
340 | ftp.gnu.org/gnu/termcap | |
341 | Note: if you are using precompiled packages you will also need the development | |
342 | package as well (which may be called termcap-devel or something similar). | |
343 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
344 | not found either - but you could try installing that as well. | |
345 | ) | |
346 | exit | |
347 | ) | |
348 | fi | |
349 | ||
80992638 | 350 | ################################################################################ |
26e7f2e0 AK |
351 | dnl Check for dlopen |
352 | AC_CHECK_LIB(dl, dlopen, HAVE_LIBDL=yes, HAVE_LIBDL=no) | |
353 | ||
74583a91 | 354 | if [[ "x$HAVE_LIBDL" = xyes -a "x$STATIC_LINK" = xno ]]; then |
b896caa1 | 355 | CFLAGS="$CFLAGS -DHAVE_LIBDL" |
26e7f2e0 | 356 | LIBS="-ldl $LIBS" |
d68a82ec AK |
357 | else |
358 | HAVE_LIBDL=no | |
26e7f2e0 AK |
359 | fi |
360 | ||
80992638 | 361 | ################################################################################ |
d68a82ec | 362 | dnl Check for shared/static conflicts |
80992638 AK |
363 | if [[ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ |
364 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
4922197a | 365 | \) -a "x$STATIC_LINK" = xyes ]]; |
d68a82ec | 366 | then AC_MSG_ERROR( |
036f273a | 367 | Features cannot be 'shared' when building statically |
d68a82ec AK |
368 | ) |
369 | exit | |
036f273a AK |
370 | fi |
371 | ||
80992638 | 372 | ################################################################################ |
036f273a | 373 | dnl Check for is_selinux_enabled |
80992638 AK |
374 | if test x$SELINUX = xyes; then |
375 | AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no) | |
376 | ||
377 | if test x$HAVE_SELINUX = xyes; then | |
378 | CFLAGS="$CFLAGS -DHAVE_SELINUX" | |
379 | LIBS="-lselinux $LIBS" | |
380 | else | |
381 | echo "Disabling selinux" 1>&6 | |
382 | fi | |
036f273a | 383 | fi |
d68a82ec | 384 | |
80992638 | 385 | ################################################################################ |
b896caa1 AK |
386 | dnl Check for getopt |
387 | AC_CHECK_HEADERS(getopt.h, CFLAGS="$CFLAGS -DHAVE_GETOPTLONG") | |
388 | ||
80992638 | 389 | ################################################################################ |
795ca3e5 AK |
390 | dnl Check for readline (Shamelessly copied from parted 1.4.17) |
391 | if test x$READLINE = xyes; then | |
392 | AC_CHECK_LIB(readline, readline, , | |
393 | AC_MSG_ERROR( | |
394 | GNU Readline could not be found which is required for the | |
395 | --enable-readline option (which is enabled by default). Either disable readline | |
396 | support with --disable-readline or download and install readline from: | |
397 | ftp.gnu.org/gnu/readline | |
398 | Note: if you are using precompiled packages you will also need the development | |
399 | package as well (which may be called readline-devel or something similar). | |
400 | ) | |
401 | exit | |
402 | ) | |
b896caa1 AK |
403 | AC_CHECK_FUNC(rl_completion_matches, CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES") |
404 | ||
795ca3e5 AK |
405 | fi |
406 | ||
80992638 | 407 | ################################################################################ |
69792976 AK |
408 | echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6 |
409 | dnl Internationalisation stuff | |
410 | AC_ARG_ENABLE(nls, [ --enable-nls Enable Native Language Support],\ | |
411 | INTL=yes, INTL=no) | |
412 | echo "$ac_t""$INTL" 1>&6 | |
413 | ||
414 | if test x$INTL = xyes; then | |
415 | INTL_PACKAGE="lvm2" | |
416 | AC_PATH_PROG(MSGFMT, msgfmt) | |
417 | if [[ "x$MSGFMT" == x ]]; | |
418 | then AC_MSG_ERROR( | |
419 | msgfmt not found in path $PATH | |
420 | ) | |
421 | exit | |
422 | fi; | |
423 | ||
424 | AC_ARG_WITH(localedir, | |
425 | [ --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]], | |
426 | [ LOCALEDIR="$withval" ], | |
427 | [ LOCALEDIR='${prefix}/share/locale' ]) | |
428 | fi | |
429 | ||
80992638 | 430 | ################################################################################ |
4a7f3eb2 | 431 | AC_ARG_WITH(confdir, |
0a62c911 | 432 | [ --with-confdir=DIR Configuration files in DIR [/etc]], |
4a7f3eb2 | 433 | [ CONFDIR="$withval" ], |
0a62c911 AK |
434 | [ CONFDIR='/etc' ]) |
435 | ||
436 | AC_ARG_WITH(staticdir, | |
437 | [ --with-staticdir=DIR Static binary in DIR [EXEC_PREFIX/sbin]], | |
438 | [ STATICDIR="$withval" ], | |
439 | [ STATICDIR='${exec_prefix}/sbin' ]) | |
440 | ||
4a7f3eb2 | 441 | |
80992638 | 442 | ################################################################################ |
fae0c576 AK |
443 | if test "-f VERSION"; then |
444 | LVM_VERSION="\"`cat VERSION`\"" | |
445 | else | |
446 | LVM_VERSION="Unknown" | |
447 | fi | |
448 | ||
80992638 | 449 | ################################################################################ |
795ca3e5 AK |
450 | AC_SUBST(JOBS) |
451 | AC_SUBST(STATIC_LINK) | |
5a52dca9 | 452 | AC_SUBST(LVM1) |
d8ac0fbc | 453 | AC_SUBST(POOL) |
4922197a AK |
454 | AC_SUBST(SNAPSHOTS) |
455 | AC_SUBST(MIRRORS) | |
795ca3e5 AK |
456 | AC_SUBST(OWNER) |
457 | AC_SUBST(GROUP) | |
b896caa1 | 458 | AC_SUBST(CFLAGS) |
8106cdd5 AK |
459 | AC_SUBST(CLDFLAGS) |
460 | AC_SUBST(CLDWHOLEARCHIVE) | |
461 | AC_SUBST(CLDNOWHOLEARCHIVE) | |
80992638 AK |
462 | AC_SUBST(LDDEPS) |
463 | AC_SUBST(LDFLAGS) | |
8106cdd5 | 464 | AC_SUBST(SOFLAG) |
5f68d858 | 465 | AC_SUBST(LIBS) |
fae0c576 | 466 | AC_SUBST(LVM_VERSION) |
7d1552c9 | 467 | AC_SUBST(LVM1_FALLBACK) |
8ef2b021 | 468 | AC_SUBST(DEBUG) |
199e490e | 469 | AC_SUBST(DEVMAPPER) |
26e7f2e0 | 470 | AC_SUBST(HAVE_LIBDL) |
036f273a | 471 | AC_SUBST(HAVE_SELINUX) |
8106cdd5 | 472 | AC_SUBST(CMDLIB) |
69792976 AK |
473 | AC_SUBST(MSGFMT) |
474 | AC_SUBST(LOCALEDIR) | |
4a7f3eb2 | 475 | AC_SUBST(CONFDIR) |
0a62c911 | 476 | AC_SUBST(STATICDIR) |
69792976 AK |
477 | AC_SUBST(INTL_PACKAGE) |
478 | AC_SUBST(INTL) | |
d3c8211f AK |
479 | AC_SUBST(CLVMD) |
480 | AC_SUBST(CLUSTER) | |
1a9ea74d | 481 | AC_SUBST(FSADM) |
8106cdd5 | 482 | |
80992638 | 483 | ################################################################################ |
795ca3e5 AK |
484 | dnl First and last lines should not contain files to generate in order to |
485 | dnl keep utility scripts running properly | |
486 | AC_OUTPUT( \ | |
487 | Makefile \ | |
80992638 | 488 | make.tmpl \ |
d3c8211f AK |
489 | daemons/Makefile \ |
490 | daemons/clvmd/Makefile \ | |
4a7f3eb2 | 491 | doc/Makefile \ |
fa42e649 | 492 | include/Makefile \ |
795ca3e5 | 493 | lib/Makefile \ |
5a52dca9 | 494 | lib/format1/Makefile \ |
d8ac0fbc | 495 | lib/format_pool/Makefile \ |
d3c8211f | 496 | lib/locking/Makefile \ |
4922197a AK |
497 | lib/mirror/Makefile \ |
498 | lib/snapshot/Makefile \ | |
795ca3e5 | 499 | man/Makefile \ |
69792976 | 500 | po/Makefile \ |
795ca3e5 | 501 | tools/Makefile \ |
fae0c576 | 502 | tools/version.h \ |
1a9ea74d | 503 | tools/fsadm/Makefile \ |
e6efb2b0 | 504 | test/mm/Makefile \ |
43b7b8cf | 505 | test/device/Makefile \ |
e0304b58 | 506 | test/format1/Makefile \ |
d1b28647 | 507 | test/regex/Makefile \ |
291ec3b6 | 508 | test/filters/Makefile \ |
795ca3e5 | 509 | ) |
2dc95e1c AK |
510 | |
511 | if test x$ODIRECT != xyes; then | |
512 | echo | |
513 | echo Warning: O_DIRECT disabled. | |
514 | echo Use of pvmove may cause machine to lock up under low memory conditions. | |
515 | echo | |
516 | fi | |
809fae91 AK |
517 | |
518 | if test x$FSADM == xyes; then | |
519 | echo | |
520 | echo Warning: fsadm support is untested. | |
521 | echo | |
522 | fi |