2001-09-21 12:37:43 +00:00
##
## Copyright 1999-2000 Sistina Software, Inc.
##
## This is free software released under the GNU General Public License.
## There is no warranty for this software. See the file COPYING for
## details.
##
## See the file CONTRIBUTORS for a list of contributors.
##
## This file is maintained by:
## AJ Lewis <lewis@sistina.com>
##
## File name: configure.in
##
## Description: Input file for autoconf. Generates the configure script
## that tries to keep everything nice and portable. It also
## simplifies distribution package building considerably.
################################################################################
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Process this file with autoconf to produce a configure script.
2001-10-10 10:11:25 +00:00
AC_INIT(lib/device/dev-cache.h)
2001-09-21 12:37:43 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- setup the directory where autoconf has auxilary files
2001-09-21 12:37:43 +00:00
AC_CONFIG_AUX_DIR(autoconf)
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Get system type
2003-04-15 13:24:42 +00:00
AC_CANONICAL_SYSTEM
case "$host_os" in
linux*)
2004-06-28 14:01:24 +00:00
CFLAGS="$CFLAGS"
2004-06-29 13:29:25 +00:00
COPTIMISE_FLAG="-O2"
2004-06-28 14:01:24 +00:00
CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2004-03-26 14:17:14 +00:00
CLDWHOLEARCHIVE="-Wl,-whole-archive"
CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2004-06-28 14:01:24 +00:00
LDDEPS="$LDDEPS .export.sym"
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2004-03-26 14:17:14 +00:00
SOFLAG="-shared"
DEVMAPPER=yes
2004-06-15 17:23:49 +00:00
ODIRECT=yes
2004-06-28 14:01:24 +00:00
SELINUX=yes
2004-06-24 08:02:38 +00:00
CLUSTER=internal
2004-06-20 13:38:54 +00:00
FSADM=no ;;
2004-03-26 14:17:14 +00:00
darwin*)
2004-06-28 14:01:24 +00:00
CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2004-06-29 13:29:25 +00:00
COPTIMISE_FLAG="-O2"
2004-06-28 14:01:24 +00:00
CLDFLAGS="$CLDFLAGS"
2004-03-26 14:17:14 +00:00
CLDWHOLEARCHIVE="-all_load"
CLDNOWHOLEARCHIVE=
2004-06-28 14:01:24 +00:00
LDDEPS="$LDDEPS"
LDFLAGS="$LDFLAGS"
2004-03-26 14:17:14 +00:00
SOFLAG="-dynamiclib"
DEVMAPPER=no
2004-06-15 17:23:49 +00:00
ODIRECT=no
2004-06-28 14:01:24 +00:00
SELINUX=no
2004-06-24 08:02:38 +00:00
CLUSTER=none
2004-06-15 17:23:49 +00:00
FSADM=no ;;
2003-04-15 13:24:42 +00:00
esac
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
################################################################################
dnl -- Checks for header files.
2004-06-28 14:01:24 +00:00
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h malloc.h sys/ioctl.h unistd.h)
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Checks for typedefs, structures, and compiler characteristics.
2004-06-28 14:01:24 +00:00
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_STRUCT_ST_RDEV
AC_HEADER_TIME
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Prefix is /usr by default, the exec_prefix default is setup later
2001-09-21 12:37:43 +00:00
AC_PREFIX_DEFAULT(/usr)
2004-06-28 14:01:24 +00:00
################################################################################
dnl -- Parallel make jobs?
AC_ARG_ENABLE(jobs, [ --enable-jobs=NUM Number of jobs to run simultaneously], JOBS=-j$enableval, JOBS=-j2)
2004-04-19 13:10:06 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Setup the ownership of the files
2004-06-28 14:01:24 +00:00
echo $ac_n "Setting file owner to""... $ac_c" 1>&6
OWNER="root"
2001-09-21 12:37:43 +00:00
AC_ARG_WITH(user,
[ --with-user=USER Set the owner of installed files ],
2004-04-19 13:10:06 +00:00
[ OWNER="$withval" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$OWNER" 1>&6
2004-04-19 13:10:06 +00:00
if test x$OWNER != x; then
OWNER="-o $OWNER"
fi
2001-09-21 12:37:43 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Setup the group ownership of the files
2004-06-28 14:01:24 +00:00
echo $ac_n "Setting group owner to""... $ac_c" 1>&6
GROUP="root"
2001-09-21 12:37:43 +00:00
AC_ARG_WITH(group,
[ --with-group=GROUP Set the group owner of installed files ],
2004-04-19 13:10:06 +00:00
[ GROUP="$withval" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$GROUP" 1>&6
2004-04-19 13:10:06 +00:00
if test x$GROUP != x; then
GROUP="-g $GROUP"
fi
2001-09-21 12:37:43 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-04-08 15:23:23 +00:00
dnl -- LVM1 tool fallback option
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to enable lvm1 fallback""... $ac_c" 1>&6
2004-04-08 15:23:23 +00:00
AC_ARG_ENABLE(lvm1_fallback, [ --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
device-mapper is missing from the kernel], LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no)
2004-06-28 14:01:24 +00:00
echo "$ac_t""$LVM1_FALLBACK" 1>&6
2004-04-08 15:23:23 +00:00
if test x$LVM1_FALLBACK = xyes; then
CFLAGS="$CFLAGS -DLVM1_FALLBACK"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2002-11-18 14:04:08 +00:00
dnl -- format1 inclusion type
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to include support for lvm1 metadata""... $ac_c" 1>&6
2002-11-18 14:04:08 +00:00
AC_ARG_WITH(lvm1,
[ --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
[TYPE=internal] ],
[ LVM1="$withval" ],
[ LVM1="internal" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$LVM1" 1>&6
2002-11-18 14:04:08 +00:00
if [[ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]];
then AC_MSG_ERROR(
--with-lvm1 parameter invalid
)
exit
fi;
2003-04-15 13:24:42 +00:00
if test x$LVM1 = xinternal; then
CFLAGS="$CFLAGS -DLVM1_INTERNAL"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-07 19:10:21 +00:00
dnl -- format_pool inclusion type
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to include support for GFS pool metadata""... $ac_c" 1>&6
2004-06-07 19:10:21 +00:00
AC_ARG_WITH(pool,
2004-06-07 19:26:13 +00:00
[ --with-pool=TYPE GFS pool read-only support: internal/shared/none
2004-06-07 19:10:21 +00:00
[TYPE=internal] ],
[ POOL="$withval" ],
[ POOL="internal" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$POOL" 1>&6
2004-06-07 19:10:21 +00:00
if [[ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]];
then AC_MSG_ERROR(
--with-pool parameter invalid
)
exit
fi;
if test x$POOL = xinternal; then
CFLAGS="$CFLAGS -DPOOL_INTERNAL"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-24 08:02:38 +00:00
dnl -- cluster_locking inclusion type
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to include support for cluster locking""... $ac_c" 1>&6
2004-06-24 08:02:38 +00:00
AC_ARG_WITH(cluster,
[ --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
[TYPE=internal] ],
[ CLUSTER="$withval" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$CLUSTER" 1>&6
2004-06-24 08:02:38 +00:00
if [[ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]];
then AC_MSG_ERROR(
--with-cluster parameter invalid
)
exit
fi;
if test x$CLUSTER = xinternal; then
CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL"
fi
2004-06-07 19:10:21 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-05-04 21:25:57 +00:00
dnl -- snapshots inclusion type
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to include snapshots""... $ac_c" 1>&6
2004-05-04 21:25:57 +00:00
AC_ARG_WITH(snapshots,
[ --with-snapshots=TYPE Snapshot support: internal/shared/none
[TYPE=internal] ],
[ SNAPSHOTS="$withval" ],
[ SNAPSHOTS="internal" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$SNAPSHOTS" 1>&6
2004-05-04 21:25:57 +00:00
if [[ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]];
then AC_MSG_ERROR(
--with-snapshots parameter invalid
)
exit
fi;
if test x$SNAPSHOTS = xinternal; then
CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-05-04 21:25:57 +00:00
dnl -- mirrors inclusion type
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to include mirrors""... $ac_c" 1>&6
2004-05-04 21:25:57 +00:00
AC_ARG_WITH(mirrors,
[ --with-mirrors=TYPE Mirror support: internal/shared/none
[TYPE=internal] ],
[ MIRRORS="$withval" ],
[ MIRRORS="internal" ])
2004-06-28 14:01:24 +00:00
echo "$ac_t""$MIRRORS" 1>&6
2004-05-04 21:25:57 +00:00
if [[ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]];
then AC_MSG_ERROR(
--with-mirrors parameter invalid
)
exit
fi;
if test x$MIRRORS = xinternal; then
CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Enables staticly-linked tools
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to use static linking""... $ac_c" 1>&6
2004-03-26 14:17:14 +00:00
AC_ARG_ENABLE(static_link, [ --enable-static_link Use this to link the tools to their libraries
2001-09-21 12:37:43 +00:00
statically. Default is dynamic linking], STATIC_LINK=$enableval, STATIC_LINK=no)
2004-06-28 14:01:24 +00:00
echo "$ac_t""$STATIC_LINK" 1>&6
2001-09-21 12:37:43 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Enable readline
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to enable readline""... $ac_c" 1>&6
2002-11-18 14:04:08 +00:00
AC_ARG_ENABLE(readline, [ --enable-readline Enable readline support], \
READLINE=$enableval, READLINE=no)
2004-06-28 14:01:24 +00:00
echo "$ac_t""$READLINE" 1>&6
2001-09-21 12:37:43 +00:00
2003-04-15 13:24:42 +00:00
if test x$READLINE = xyes; then
CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Disable selinux
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to enable selinux support""... $ac_c" 1>&6
AC_ARG_ENABLE(selinux, [ --disable-selinux Disable selinux support], \
SELINUX=$enableval)
echo "$ac_t""$SELINUX" 1>&6
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Build cluster LVM daemon
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to build cluster LVM daemon""... $ac_c" 1>&6
2004-06-24 08:02:38 +00:00
AC_ARG_WITH(clvmd, [ --with-clvmd Build cluster LVM Daemon], \
CLVMD=$withval, CLVMD=no)
2004-06-28 14:01:24 +00:00
echo "$ac_t""$CLVMD" 1>&6
2004-06-29 13:29:25 +00:00
dnl -- If clvmd enabled without cluster locking, automagically include it
2004-06-24 08:02:38 +00:00
if test x$CLVMD = xyes && test x$CLUSTER = xnone; then
CLUSTER=internal
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Enable debugging
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
2002-12-19 23:25:55 +00:00
AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging], \
DEBUG=yes, DEBUG=no)
2004-02-13 22:56:45 +00:00
echo "$ac_t""$DEBUG" 1>&6
2002-12-19 23:25:55 +00:00
2004-06-29 13:29:25 +00:00
dnl -- Normally turn off optimisation for debug builds
if test x$DEBUG = xyes; then
COPTIMISE_FLAG=
fi
################################################################################
dnl -- Override optimisation
echo $ac_n "checking for C optimisation flag""... $ac_c" 1>&6
AC_ARG_WITH(optimisation,
[ --with-optimisation=OPT C optimisation flag [OPT=-O2] ],
[ COPTIMISE_FLAG="$withval" ])
echo "$ac_t""$COPTIMISE_FLAG" 1>&6
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Disable devmapper
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to use device-mapper""... $ac_c" 1>&6
2003-01-08 22:44:07 +00:00
AC_ARG_ENABLE(devmapper, [ --disable-devmapper Disable device-mapper interaction], \
2004-03-26 14:17:14 +00:00
DEVMAPPER=no)
2004-02-13 22:56:45 +00:00
echo "$ac_t""$DEVMAPPER" 1>&6
2003-01-08 22:44:07 +00:00
2003-04-15 13:24:42 +00:00
if test x$DEVMAPPER = xyes; then
CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Disable O_DIRECT
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6
2003-11-06 17:14:06 +00:00
AC_ARG_ENABLE(o_direct, [ --disable-o_direct Disable O_DIRECT], \
2004-03-26 14:17:14 +00:00
ODIRECT=no)
2004-02-13 22:56:45 +00:00
echo "$ac_t""$ODIRECT" 1>&6
2003-11-06 17:14:06 +00:00
if test x$ODIRECT = xyes; then
CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Enable cmdlib
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6
2004-03-26 14:17:14 +00:00
AC_ARG_ENABLE(cmdlib, [ --enable-cmdlib Build shared command library], \
CMDLIB=yes, CMDLIB=no)
echo "$ac_t""$CMDLIB" 1>&6
if test x$CMDLIB = xyes; then
CFLAGS="$CFLAGS -DCMDLIB"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Enable fsadm
2004-06-28 14:01:24 +00:00
echo $ac_n "checking whether to build fsadm""... $ac_c" 1>&6
2004-06-20 13:38:54 +00:00
AC_ARG_ENABLE(fsadm, [ --enable-fsadm Enable fsadm], FSADM=yes)
echo "$ac_t""$FSADM" 1>&6
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Mess with default exec_prefix
2001-09-21 12:37:43 +00:00
if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]];
then exec_prefix="";
fi;
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Checks for library functions.
2001-09-21 12:37:43 +00:00
AC_PROG_GCC_TRADITIONAL
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(mkdir rmdir uname)
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Check for termcap (Shamelessly copied from parted 1.4.17)
2001-09-21 12:37:43 +00:00
if test x$READLINE = xyes; then
AC_SEARCH_LIBS(tgetent, ncurses curses termcap termlib, ,
AC_MSG_ERROR(
termcap could not be found which is required for the
--enable-readline option (which is enabled by default). Either disable readline
support with --disable-readline or download and install termcap from:
ftp.gnu.org/gnu/termcap
Note: if you are using precompiled packages you will also need the development
package as well (which may be called termcap-devel or something similar).
Note: (n)curses also seems to work as a substitute for termcap. This was
not found either - but you could try installing that as well.
)
exit
)
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Check for dlopen
2003-03-24 18:08:53 +00:00
AC_CHECK_LIB(dl, dlopen, HAVE_LIBDL=yes, HAVE_LIBDL=no)
2004-05-04 12:14:20 +00:00
if [[ "x$HAVE_LIBDL" = xyes -a "x$STATIC_LINK" = xno ]]; then
2003-04-15 13:24:42 +00:00
CFLAGS="$CFLAGS -DHAVE_LIBDL"
2003-03-24 18:08:53 +00:00
LIBS="-ldl $LIBS"
2004-04-05 16:29:37 +00:00
else
HAVE_LIBDL=no
2003-03-24 18:08:53 +00:00
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Check for shared/static conflicts
2004-06-28 14:01:24 +00:00
if [[ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
-o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
2004-05-04 21:25:57 +00:00
\) -a "x$STATIC_LINK" = xyes ]];
2004-04-05 16:29:37 +00:00
then AC_MSG_ERROR(
2004-04-07 14:08:22 +00:00
Features cannot be 'shared' when building statically
2004-04-05 16:29:37 +00:00
)
exit
2004-04-07 14:08:22 +00:00
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Check for is_selinux_enabled
2004-06-28 14:01:24 +00:00
if test x$SELINUX = xyes; then
AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no)
if test x$HAVE_SELINUX = xyes; then
CFLAGS="$CFLAGS -DHAVE_SELINUX"
LIBS="-lselinux $LIBS"
else
echo "Disabling selinux" 1>&6
fi
2004-04-07 14:08:22 +00:00
fi
2004-04-05 16:29:37 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Check for getopt
2003-04-15 13:24:42 +00:00
AC_CHECK_HEADERS(getopt.h, CFLAGS="$CFLAGS -DHAVE_GETOPTLONG")
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Check for readline (Shamelessly copied from parted 1.4.17)
2001-09-21 12:37:43 +00:00
if test x$READLINE = xyes; then
AC_CHECK_LIB(readline, readline, ,
AC_MSG_ERROR(
GNU Readline could not be found which is required for the
--enable-readline option (which is enabled by default). Either disable readline
support with --disable-readline or download and install readline from:
ftp.gnu.org/gnu/readline
Note: if you are using precompiled packages you will also need the development
package as well (which may be called readline-devel or something similar).
)
exit
)
2003-04-15 13:24:42 +00:00
AC_CHECK_FUNC(rl_completion_matches, CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES")
2001-09-21 12:37:43 +00:00
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- Internationalisation stuff
2004-02-13 22:56:45 +00:00
echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6
AC_ARG_ENABLE(nls, [ --enable-nls Enable Native Language Support],\
INTL=yes, INTL=no)
echo "$ac_t""$INTL" 1>&6
if test x$INTL = xyes; then
INTL_PACKAGE="lvm2"
AC_PATH_PROG(MSGFMT, msgfmt)
if [[ "x$MSGFMT" == x ]];
then AC_MSG_ERROR(
msgfmt not found in path $PATH
)
exit
fi;
AC_ARG_WITH(localedir,
[ --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]],
[ LOCALEDIR="$withval" ],
[ LOCALEDIR='${prefix}/share/locale' ])
fi
2004-06-28 14:01:24 +00:00
################################################################################
2004-04-14 17:39:55 +00:00
AC_ARG_WITH(confdir,
2004-04-14 18:00:23 +00:00
[ --with-confdir=DIR Configuration files in DIR [/etc]],
2004-04-14 17:39:55 +00:00
[ CONFDIR="$withval" ],
2004-04-14 18:00:23 +00:00
[ CONFDIR='/etc' ])
AC_ARG_WITH(staticdir,
[ --with-staticdir=DIR Static binary in DIR [EXEC_PREFIX/sbin]],
[ STATICDIR="$withval" ],
[ STATICDIR='${exec_prefix}/sbin' ])
2004-04-14 17:39:55 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2002-01-17 16:39:24 +00:00
if test "-f VERSION"; then
LVM_VERSION="\"`cat VERSION`\""
else
LVM_VERSION="Unknown"
fi
2004-06-28 14:01:24 +00:00
################################################################################
2001-09-21 12:37:43 +00:00
AC_SUBST(JOBS)
AC_SUBST(STATIC_LINK)
2002-11-18 14:04:08 +00:00
AC_SUBST(LVM1)
2004-06-07 19:10:21 +00:00
AC_SUBST(POOL)
2004-05-04 21:25:57 +00:00
AC_SUBST(SNAPSHOTS)
AC_SUBST(MIRRORS)
2001-09-21 12:37:43 +00:00
AC_SUBST(OWNER)
AC_SUBST(GROUP)
2003-04-15 13:24:42 +00:00
AC_SUBST(CFLAGS)
2004-06-29 13:29:25 +00:00
AC_SUBST(COPTIMISE_FLAG)
2004-03-26 14:17:14 +00:00
AC_SUBST(CLDFLAGS)
AC_SUBST(CLDWHOLEARCHIVE)
AC_SUBST(CLDNOWHOLEARCHIVE)
2004-06-28 14:01:24 +00:00
AC_SUBST(LDDEPS)
AC_SUBST(LDFLAGS)
2004-03-26 14:17:14 +00:00
AC_SUBST(SOFLAG)
2001-11-16 10:40:16 +00:00
AC_SUBST(LIBS)
2002-01-17 16:39:24 +00:00
AC_SUBST(LVM_VERSION)
2004-04-08 15:23:23 +00:00
AC_SUBST(LVM1_FALLBACK)
2002-12-19 23:25:55 +00:00
AC_SUBST(DEBUG)
2003-01-08 22:44:07 +00:00
AC_SUBST(DEVMAPPER)
2003-03-24 18:08:53 +00:00
AC_SUBST(HAVE_LIBDL)
2004-04-07 14:08:22 +00:00
AC_SUBST(HAVE_SELINUX)
2004-03-26 14:17:14 +00:00
AC_SUBST(CMDLIB)
2004-02-13 22:56:45 +00:00
AC_SUBST(MSGFMT)
AC_SUBST(LOCALEDIR)
2004-04-14 17:39:55 +00:00
AC_SUBST(CONFDIR)
2004-04-14 18:00:23 +00:00
AC_SUBST(STATICDIR)
2004-02-13 22:56:45 +00:00
AC_SUBST(INTL_PACKAGE)
AC_SUBST(INTL)
2004-06-24 08:02:38 +00:00
AC_SUBST(CLVMD)
AC_SUBST(CLUSTER)
2004-06-15 17:23:49 +00:00
AC_SUBST(FSADM)
2004-03-26 14:17:14 +00:00
2004-06-28 14:01:24 +00:00
################################################################################
2004-06-29 13:29:25 +00:00
dnl -- First and last lines should not contain files to generate in order to
dnl -- keep utility scripts running properly
2001-09-21 12:37:43 +00:00
AC_OUTPUT( \
Makefile \
2004-06-28 14:01:24 +00:00
make.tmpl \
2004-06-24 08:02:38 +00:00
daemons/Makefile \
daemons/clvmd/Makefile \
2004-04-14 17:39:55 +00:00
doc/Makefile \
2001-10-01 13:36:54 +00:00
include/Makefile \
2001-09-21 12:37:43 +00:00
lib/Makefile \
2002-11-18 14:04:08 +00:00
lib/format1/Makefile \
2004-06-07 19:10:21 +00:00
lib/format_pool/Makefile \
2004-06-24 08:02:38 +00:00
lib/locking/Makefile \
2004-05-04 21:25:57 +00:00
lib/mirror/Makefile \
lib/snapshot/Makefile \
2001-09-21 12:37:43 +00:00
man/Makefile \
2004-02-13 22:56:45 +00:00
po/Makefile \
2001-09-21 12:37:43 +00:00
tools/Makefile \
2002-01-17 16:39:24 +00:00
tools/version.h \
2004-06-15 17:23:49 +00:00
tools/fsadm/Makefile \
2001-10-04 10:13:07 +00:00
test/mm/Makefile \
2001-10-08 13:58:52 +00:00
test/device/Makefile \
2001-10-08 09:50:00 +00:00
test/format1/Makefile \
2001-10-19 14:36:57 +00:00
test/regex/Makefile \
o Filter for the dev cache that takes values from config file:
devices {
# first match is final, eg. /dev/ide/cdrom
# get's rejected due to the first pattern
filter=["r/cdrom/", # don't touch the music !
"a/hd[a-d][0-9]+/",
"a/ide/",
"a/sd/",
"a/md/",
"a|loop/[0-9]+|", # accept devfs style loop back
"r/loop/", # and reject old style
"a/dasd/",
"a/dac960/",
"a/nbd/",
"a/ida/",
"a/cciss/",
"a/ubd/",
"r/.*/"] # reject all others
}
Alasdair this is ready to roll into the tools now.
2001-10-19 18:20:37 +00:00
test/filters/Makefile \
2001-09-21 12:37:43 +00:00
)
2003-11-06 17:14:06 +00:00
if test x$ODIRECT != xyes; then
echo
echo Warning: O_DIRECT disabled.
echo Use of pvmove may cause machine to lock up under low memory conditions.
echo
fi
2004-06-20 13:38:54 +00:00
if test x$FSADM == xyes; then
echo
echo Warning: fsadm support is untested.
echo
fi