#
AC_DEFUN([LDISKFS_AC_PATCH_PROGRAM], [
AC_ARG_ENABLE([quilt],
- [AC_HELP_STRING([--disable-quilt],
+ [AS_HELP_STRING([--disable-quilt],
[disable use of quilt for ldiskfs])],
[AS_IF([test "x$enableval" = xno],
[use_quilt=no],
AC_DEFUN([LB_DEFINE_E2FSPROGS_NAMES], [
AC_MSG_CHECKING([whether to use alternate names for e2fsprogs])
AC_ARG_WITH([ldiskfsprogs],
- AC_HELP_STRING([--with-ldiskfsprogs],
+ AS_HELP_STRING([--with-ldiskfsprogs],
[use alternate names for ldiskfs-enabled e2fsprogs]),
[], [withval="no"])
AC_MSG_CHECKING([for Linux kernel module package directory])
AC_ARG_WITH([kmp-moddir],
- AC_HELP_STRING([--with-kmp-moddir=string],
+ AS_HELP_STRING([--with-kmp-moddir=string],
[set the kmod updates or extra directory]),
[KMP_MODDIR=$withval
IN_KERNEL=''],[
AC_MSG_CHECKING([for Linux sources])
AC_ARG_WITH([linux],
- AC_HELP_STRING([--with-linux=path],
+ AS_HELP_STRING([--with-linux=path],
[set path to Linux source (default=/lib/modules/$(uname -r)/{source,build},/usr/src/linux)]),
[LB_ARG_CANON_PATH([linux], [LINUX])
DEFAULT_LINUX_OBJ=$LINUX],
# -------- linux objects (for 2.6) --
AC_MSG_CHECKING([for Linux objects])
AC_ARG_WITH([linux-obj],
- AC_HELP_STRING([--with-linux-obj=path],
+ AS_HELP_STRING([--with-linux-obj=path],
[set path to Linux objects (default=/lib/modules/$(uname -r)/build,/usr/src/linux)]),
[LB_ARG_CANON_PATH([linux-obj], [LINUX_OBJ])],
[LINUX_OBJ=$DEFAULT_LINUX_OBJ])
# -------- check for .config --------
AC_ARG_WITH([linux-config],
- [AC_HELP_STRING([--with-linux-config=path],
+ [AS_HELP_STRING([--with-linux-config=path],
[set path to Linux .conf (default=$LINUX_OBJ/.config)])],
[LB_ARG_CANON_PATH([linux-config], [LINUX_CONFIG])],
[LINUX_CONFIG=$LINUX_OBJ/.config])
[KERNEL_SOURCE_HEADER='/var/adm/running-kernel.h'])])
AC_ARG_WITH([kernel-source-header],
- AC_HELP_STRING([--with-kernel-source-header=path],
+ AS_HELP_STRING([--with-kernel-source-header=path],
[Use a different kernel version header.]),
[LB_ARG_CANON_PATH([kernel-source-header], [KERNEL_SOURCE_HEADER])])
lb_pathvar="m4_bpatsubst([$2], -, _)"
AC_MSG_CHECKING([for $1])
AC_ARG_WITH([$2],
- AC_HELP_STRING([--with-$2=path],
+ AS_HELP_STRING([--with-$2=path],
[path to $1]),
[], [withval=$4])
AS_IF([test "x$withval" = xyes],
AS_IF([test "x${!lb_pathvar}" != x -a "x${!lb_pathvar}" != xno], [
AC_MSG_CHECKING([for $1 includes])
AC_ARG_WITH([$2-includes],
- AC_HELP_STRING([--with-$2-includes=path],
+ AS_HELP_STRING([--with-$2-includes=path],
[path to $1 includes]),
[], [withval="yes"])
AC_MSG_CHECKING([for $1 libs])
AC_ARG_WITH([$2-libs],
- AC_HELP_STRING([--with-$2-libs=path],
+ AS_HELP_STRING([--with-$2-libs=path],
[path to $1 libs]),
[], [withval="yes"])
AC_DEFUN([LB_PATH_LUSTREIOKIT], [
AC_MSG_CHECKING([whether to build iokit])
AC_ARG_ENABLE([iokit],
- AC_HELP_STRING([--disable-iokit],
+ AS_HELP_STRING([--disable-iokit],
[disable iokit (default is enable)]),
[], [enable_iokit="yes"])
AC_MSG_RESULT([$enable_iokit])
AC_DEFUN([LB_CONFIG_MODULES], [
AC_MSG_CHECKING([whether to build Linux kernel modules])
AC_ARG_ENABLE([modules],
- AC_HELP_STRING([--disable-modules],
+ AS_HELP_STRING([--disable-modules],
[disable building of Lustre kernel modules]),
[ AC_DEFINE(HAVE_NATIVE_LINUX_CLIENT, 1, [support native Linux client])], [
LC_TARGET_SUPPORTED([enable_modules="yes"],
AC_DEFUN([LB_CONFIG_UTILS], [
AC_MSG_CHECKING([whether to build Lustre utilities])
AC_ARG_ENABLE([utils],
- AC_HELP_STRING([--disable-utils],
+ AS_HELP_STRING([--disable-utils],
[disable building of Lustre utility programs]),
[], [enable_utils="yes"])
AC_MSG_RESULT([$enable_utils])
AC_DEFUN([LB_CONFIG_TESTS], [
AC_MSG_CHECKING([whether to build Lustre tests])
AC_ARG_ENABLE([tests],
- AC_HELP_STRING([--disable-tests],
+ AS_HELP_STRING([--disable-tests],
[disable building of Lustre tests]),
[], [enable_tests="yes"])
AC_DEFUN([LB_CONFIG_DIST], [
AC_MSG_CHECKING([whether to configure just enough for make dist])
AC_ARG_ENABLE([dist],
- AC_HELP_STRING([--enable-dist],
+ AS_HELP_STRING([--enable-dist],
[only configure enough for make dist]),
[], [enable_dist="no"])
AC_MSG_RESULT([$enable_dist])
AC_DEFUN([LB_CONFIG_DOCS], [
AC_MSG_CHECKING([whether to build Lustre docs])
AC_ARG_ENABLE([doc],
- AC_HELP_STRING([--disable-doc],
+ AS_HELP_STRING([--disable-doc],
[skip creation of pdf documentation]),
[], [enable_doc="no"])
AC_MSG_RESULT([$enable_doc])
AC_DEFUN([LB_CONFIG_MANPAGES], [
AC_MSG_CHECKING([whether to build Lustre manpages])
AC_ARG_ENABLE([manpages],
- AC_HELP_STRING([--disable-manpages],
+ AS_HELP_STRING([--disable-manpages],
[skip creation and inclusion of man pages (default is enable)]),
[], [enable_manpages="yes"])
AC_MSG_RESULT([$enable_manpages])
#
AC_DEFUN([LB_CONFIG_SERVERS], [
AC_ARG_ENABLE([server],
- AC_HELP_STRING([--disable-server],
+ AS_HELP_STRING([--disable-server],
[disable Lustre server support]), [
AS_IF([test x$enable_server != xyes -a x$enable_server != xno],
[AC_MSG_ERROR([server valid options are "yes" or "no"])])
AC_PREREQ([2.57])
-AC_INIT([Lustre], m4_esyscmd([sh -c "./LUSTRE-VERSION-GEN | tr -d '\n'"]),
+AC_INIT([Lustre], m4_esyscmd_s([./LUSTRE-VERSION-GEN]),
[https://jira.whamcloud.com/], [lustre])
AC_CONFIG_AUX_DIR([config])
LC_CONFIG_SRCDIR
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.10 tar-pax -Wno-portability subdir-objects])
AM_MAINTAINER_MODE([enable])
AC_PROG_CC
-AC_PROG_LIBTOOL
+LT_INIT
AC_PROG_MKDIR_P
AM_PROG_AS
AC_DEFUN([LIBCFS_CONFIG_CDEBUG], [
AC_MSG_CHECKING([whether to enable CDEBUG, CWARN])
AC_ARG_ENABLE([libcfs_cdebug],
- AC_HELP_STRING([--disable-libcfs-cdebug],
+ AS_HELP_STRING([--disable-libcfs-cdebug],
[disable libcfs CDEBUG, CWARN]),
[], [enable_libcfs_cdebug="yes"])
AC_MSG_RESULT([$enable_libcfs_cdebug])
AC_MSG_CHECKING([whether to enable ENTRY/EXIT])
AC_ARG_ENABLE([libcfs_trace],
- AC_HELP_STRING([--disable-libcfs-trace],
+ AS_HELP_STRING([--disable-libcfs-trace],
[disable libcfs ENTRY/EXIT]),
[], [enable_libcfs_trace="yes"])
AC_MSG_RESULT([$enable_libcfs_trace])
AC_MSG_CHECKING([whether to enable LASSERT, LASSERTF])
AC_ARG_ENABLE([libcfs_assert],
- AC_HELP_STRING([--disable-libcfs-assert],
+ AS_HELP_STRING([--disable-libcfs-assert],
[disable libcfs LASSERT, LASSERTF]),
[], [enable_libcfs_assert="yes"])
AC_MSG_RESULT([$enable_libcfs_assert])
AC_DEFUN([LIBCFS_CONFIG_PANIC_DUMPLOG], [
AC_MSG_CHECKING([whether to use tunable 'panic_dumplog' support])
AC_ARG_ENABLE([panic_dumplog],
- AC_HELP_STRING([--enable-panic_dumplog],
+ AS_HELP_STRING([--enable-panic_dumplog],
[enable panic_dumplog]),
[], [enable_panic_dumplog="no"])
AC_MSG_RESULT([$enable_panic_dumplog])
AC_MSG_CHECKING([whether to enable readline support])
AC_ARG_ENABLE(readline,
- AC_HELP_STRING([--disable-readline],
+ AS_HELP_STRING([--disable-readline],
[disable readline support]),
[], [enable_readline="yes"])
AC_MSG_RESULT([$enable_readline])
AC_MSG_CHECKING([whether to use libpthread for libcfs library])
AC_ARG_ENABLE([libpthread],
- AC_HELP_STRING([--disable-libpthread],
+ AS_HELP_STRING([--disable-libpthread],
[disable libpthread]),
[], [enable_libpthread="yes"])
AC_MSG_RESULT([$enable_libpthread])
AC_DEFUN([LN_CONFIG_BACKOFF], [
AC_MSG_CHECKING([whether to enable tunable backoff TCP support])
AC_ARG_ENABLE([backoff],
- AC_HELP_STRING([--disable-backoff],
+ AS_HELP_STRING([--disable-backoff],
[disable socknal tunable backoff]),
[], [enable_backoff="yes"])
AC_MSG_RESULT([$enable_backoff])
AC_DEFUN([LN_CONFIG_O2IB], [
AC_MSG_CHECKING([whether to use Compat RDMA])
AC_ARG_WITH([o2ib],
- AC_HELP_STRING([--with-o2ib=[yes|no|<path>]],
+ AS_HELP_STRING([--with-o2ib=[yes|no|<path>]],
[build o2iblnd against path]),
[], [with_o2ib="yes"])
AC_DEFUN([LN_CONFIG_GNILND], [
AC_MSG_CHECKING([whether to enable GNI lnd])
AC_ARG_ENABLE([gni],
- AC_HELP_STRING([--enable-gni],
+ AS_HELP_STRING([--enable-gni],
[enable GNI lnd]),
[], [enable_gni="no"])
AC_MSG_RESULT([$enable_gni])
==============================================================================])
AC_ARG_WITH([cuda],
- AC_HELP_STRING([--with-cuda=path],
+ AS_HELP_STRING([--with-cuda=path],
[Use a CUDA sources.]),
[LB_ARG_CANON_PATH([cuda], [CUDA_PATH])],
[CUDA_PATH=`ls -d1 /usr/src/nvidia-*/nvidia/ | tail -1`]
)
AC_ARG_WITH([gds],
- AC_HELP_STRING([--with-gds=path],
+ AS_HELP_STRING([--with-gds=path],
[Use a gds sources.]),
[LB_ARG_CANON_PATH([gds], [GDS_PATH])],
[GDS_PATH=`ls -d1 /usr/src/nvidia-fs* | tail -1`]
AC_MSG_CHECKING([whether to enable 'efence' debugging support])
AC_ARG_ENABLE(efence,
- AC_HELP_STRING([--enable-efence],
+ AS_HELP_STRING([--enable-efence],
[use efence library]),
[], [enable_efence="no"])
AC_MSG_RESULT([$enable_efence])
AC_DEFUN([AC_KERBEROS_V5],[
AC_MSG_CHECKING(for Kerberos v5)
AC_ARG_WITH(krb5,
- [AC_HELP_STRING([--with-krb5=DIR], [use Kerberos v5 installation in DIR])],
+ [AS_HELP_STRING([--with-krb5=DIR], [use Kerberos v5 installation in DIR])],
[ case "$withval" in
yes|no)
krb5_with=""
AC_DEFUN([LC_MDS_MAX_THREADS], [
AC_MSG_CHECKING([for maximum number of MDS threads])
AC_ARG_WITH([mds_max_threads],
- AC_HELP_STRING([--with-mds-max-threads=count],
+ AS_HELP_STRING([--with-mds-max-threads=count],
[maximum threads available on the MDS: (default=512)]),
[AC_DEFINE_UNQUOTED(MDS_MAX_THREADS, $with_mds_max_threads,
[maximum number of MDS threads])])
AC_DEFUN([LC_CONFIG_PINGER], [
AC_MSG_CHECKING([whether to enable Lustre pinger support])
AC_ARG_ENABLE([pinger],
- AC_HELP_STRING([--disable-pinger],
+ AS_HELP_STRING([--disable-pinger],
[disable recovery pinger support]),
[], [enable_pinger="yes"])
AC_MSG_RESULT([$enable_pinger])
AC_DEFUN([LC_CONFIG_CHECKSUM], [
AC_MSG_CHECKING([whether to enable data checksum support])
AC_ARG_ENABLE([checksum],
- AC_HELP_STRING([--disable-checksum],
+ AS_HELP_STRING([--disable-checksum],
[disable data checksum support]),
[], [enable_checksum="yes"])
AC_MSG_RESULT([$enable_checksum])
AC_DEFUN([LC_CONFIG_FLOCK], [
AC_MSG_CHECKING([whether to enable flock by default])
AC_ARG_ENABLE([flock],
- AC_HELP_STRING([--disable-flock],
+ AS_HELP_STRING([--disable-flock],
[disable flock by default]),
[], [enable_flock="yes"])
AC_MSG_RESULT([$enable_flock])
AC_DEFUN([LC_CONFIG_HEALTH_CHECK_WRITE], [
AC_MSG_CHECKING([whether to enable a write with the health check])
AC_ARG_ENABLE([health_write],
- AC_HELP_STRING([--enable-health_write],
+ AS_HELP_STRING([--enable-health_write],
[enable disk writes when doing health check]),
[], [enable_health_write="no"])
AC_MSG_RESULT([$enable_health_write])
AC_DEFUN([LC_CONFIG_LRU_RESIZE], [
AC_MSG_CHECKING([whether to enable lru self-adjusting])
AC_ARG_ENABLE([lru_resize],
- AC_HELP_STRING([--enable-lru-resize],
+ AS_HELP_STRING([--enable-lru-resize],
[enable lru resize support]),
[], [enable_lru_resize="yes"])
AC_MSG_RESULT([$enable_lru_resize])
AC_DEFUN([LC_CONFIG_GSS_KEYRING], [
AC_MSG_CHECKING([whether to enable gss keyring backend])
AC_ARG_ENABLE([gss_keyring],
- [AC_HELP_STRING([--disable-gss-keyring],
+ [AS_HELP_STRING([--disable-gss-keyring],
[disable gss keyring backend])],
[], [AS_IF([test "x$enable_gss" != xno], [
enable_gss_keyring="yes"], [
AC_DEFUN([LC_CONFIG_GSS], [
AC_MSG_CHECKING([whether to enable gss support])
AC_ARG_ENABLE([gss],
- [AC_HELP_STRING([--enable-gss], [enable gss support])],
+ [AS_HELP_STRING([--enable-gss], [enable gss support])],
[], [enable_gss="auto"])
AC_MSG_RESULT([$enable_gss])
AC_DEFUN([LC_CONFIG_CLIENT], [
AC_MSG_CHECKING([whether to build Lustre client support])
AC_ARG_ENABLE([client],
- AC_HELP_STRING([--disable-client],
+ AS_HELP_STRING([--disable-client],
[disable Lustre client support]),
[], [enable_client="yes"])
AC_MSG_RESULT([$enable_client])
#
AC_DEFUN([LB_CONFIG_MPITESTS], [
AC_ARG_ENABLE([mpitests],
- AC_HELP_STRING([--enable-mpitests=<yes|no|mpicc wrapper>],
+ AS_HELP_STRING([--enable-mpitests=<yes|no|mpicc wrapper>],
[include mpi tests]), [
enable_mpitests="yes"
case $enableval in
AC_DEFUN([LC_CONFIG_QUOTA], [
AC_MSG_CHECKING([whether to enable quota support global control])
AC_ARG_ENABLE([quota],
- AC_HELP_STRING([--enable-quota],
+ AS_HELP_STRING([--enable-quota],
[enable quota support]),
[], [enable_quota="yes"])
AS_IF([test "x$enable_quota" = xyes],
AC_DEFUN([LC_OSD_ADDON], [
AC_MSG_CHECKING([whether to use OSD addon])
AC_ARG_WITH([osd],
- AC_HELP_STRING([--with-osd=path],
+ AS_HELP_STRING([--with-osd=path],
[set path to optional osd]),
[
case "$with_osd" in
AC_DEFUN([LC_CONFIG_CRYPTO], [
AC_MSG_CHECKING([whether to enable Lustre client crypto])
AC_ARG_ENABLE([crypto],
- AC_HELP_STRING([--enable-crypto=yes|no|in-kernel],
+ AS_HELP_STRING([--enable-crypto=yes|no|in-kernel],
[enable Lustre client crypto (default is yes), use 'in-kernel' to force use of in-kernel fscrypt instead of embedded llcrypt]),
[], [enable_crypto="auto"])
AS_IF([test "x$enable_crypto" != xno -a "x$enable_dist" = xno], [
# Super safe df
AC_MSG_CHECKING([whether to report minimum OST free space])
AC_ARG_ENABLE([mindf],
- AC_HELP_STRING([--enable-mindf],
+ AS_HELP_STRING([--enable-mindf],
[Make statfs report the minimum available space on any single OST instead of the sum of free space on all OSTs]),
[], [enable_mindf="no"])
AC_MSG_RESULT([$enable_mindf])
AC_MSG_CHECKING([whether to randomly failing memory alloc])
AC_ARG_ENABLE([fail_alloc],
- AC_HELP_STRING([--disable-fail-alloc],
+ AS_HELP_STRING([--disable-fail-alloc],
[disable randomly alloc failure]),
[], [enable_fail_alloc="yes"])
AC_MSG_RESULT([$enable_fail_alloc])
AC_MSG_CHECKING([whether to check invariants (expensive cpu-wise)])
AC_ARG_ENABLE([invariants],
- AC_HELP_STRING([--enable-invariants],
+ AS_HELP_STRING([--enable-invariants],
[enable invariant checking (cpu intensive)]),
[], [enable_invariants="no"])
AC_MSG_RESULT([$enable_invariants])
AC_MSG_CHECKING([whether to track references with lu_ref])
AC_ARG_ENABLE([lu_ref],
- AC_HELP_STRING([--enable-lu_ref],
+ AS_HELP_STRING([--enable-lu_ref],
[enable lu_ref reference tracking code]),
[], [enable_lu_ref="no"])
AC_MSG_RESULT([$enable_lu_ref])
AC_MSG_CHECKING([whether to enable page state tracking])
AC_ARG_ENABLE([pgstate-track],
- AC_HELP_STRING([--enable-pgstate-track],
+ AS_HELP_STRING([--enable-pgstate-track],
[enable page state tracking]),
[], [enable_pgstat_track="no"])
AC_MSG_RESULT([$enable_pgstat_track])
AC_DEFUN([LS_CONFIGURE], [
AC_MSG_CHECKING([whether to try to build SNMP support])
AC_ARG_ENABLE([snmp],
- AC_HELP_STRING([--enable-snmp],
+ AS_HELP_STRING([--enable-snmp],
[require SNMP support (default=auto)]),
[], [enable_snmp="auto"])
AC_MSG_RESULT([$enable_snmp])