Modern autoconf tools request configure scripts to be more
strict in style, some fixes to improve autoconf usage.
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I954c0fc7be34d84ec279883debc44e7a543ebbe5
Reviewed-on: http://review.whamcloud.com/7490
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hudson
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
esac
# We have to configure even if we don't build here for make dist to work
esac
# We have to configure even if we don't build here for make dist to work
-AC_CONFIG_SUBDIRS(libsysio)
+AC_CONFIG_SUBDIRS([libsysio])
esac
AC_SUBST(LUSTREIOKIT_SUBDIR)
# We have to configure even if we don't build here for make dist to work
esac
AC_SUBST(LUSTREIOKIT_SUBDIR)
# We have to configure even if we don't build here for make dist to work
-AC_CONFIG_SUBDIRS(lustre-iokit)
+AC_CONFIG_SUBDIRS([lustre-iokit])
AM_CONDITIONAL(BUILD_LUSTREIOKIT, [test "x$with_lustre_iokit" != xno])
])
AM_CONDITIONAL(BUILD_LUSTREIOKIT, [test "x$with_lustre_iokit" != xno])
])
AC_HELP_STRING([--with-automount@<:@=<automount-file-name>@:>@],
[with automounts @<:@<automount-file-name>=.mount@:>@]),
[ if test x${withval} = xyes; then
AC_HELP_STRING([--with-automount@<:@=<automount-file-name>@:>@],
[with automounts @<:@<automount-file-name>=.mount@:>@]),
[ if test x${withval} = xyes; then
- AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\".mount\\\""
+ AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\".mount\\\""
elif test x${withval} != x; then
AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\""
fi])
elif test x${withval} != x; then
AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\""
fi])
AC_ARG_WITH(cplant_yod,
AC_HELP_STRING([--with-cplant-yod],[build cplant yod I/O driver]),
AC_ARG_WITH(cplant_yod,
AC_HELP_STRING([--with-cplant-yod],[build cplant yod I/O driver]),
yes) if test x${with_stdfd_dev} != xyes; then
with_stdfd_dev=yes
AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes)
yes) if test x${with_stdfd_dev} != xyes; then
with_stdfd_dev=yes
AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes)
yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);;
no) with_cplant_tests=no;;
*) CC=${withval}
yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);;
no) with_cplant_tests=no;;
*) CC=${withval}
CPP="${CC} -E"
AC_CHECK_FILE(${CC},
[ if test x${with_cplant_yod} != xyes; then
CPP="${CC} -E"
AC_CHECK_FILE(${CC},
[ if test x${with_cplant_yod} != xyes; then
AC_DEFINE(_LARGEFILE64_SOURCE)
fi
AC_DEFINE(_LARGEFILE64_SOURCE)
fi
-# Alpha linux defines
-#
+# Alpha linux defines
+#
AC_MSG_CHECKING(for alpha linux)
alpha_linux_env=no
if test `expr ${machine} : "alpha"` = 5 && \
AC_MSG_CHECKING(for alpha linux)
alpha_linux_env=no
if test `expr ${machine} : "alpha"` = 5 && \
AC_MSG_RESULT($alpha_linux_env)
AM_CONDITIONAL(TEST_ALPHA_ARG, test x$alpha_linux_env = xyes)
AC_MSG_RESULT($alpha_linux_env)
AM_CONDITIONAL(TEST_ALPHA_ARG, test x$alpha_linux_env = xyes)
#
AC_MSG_CHECKING(for __st_ino)
AC_TRY_COMPILE([
#
AC_MSG_CHECKING(for __st_ino)
AC_TRY_COMPILE([
AC_DEFINE(HAVE__ST_INO)
fi
AC_DEFINE(HAVE__ST_INO)
fi
#
AC_MSG_CHECKING(for st_gen)
AC_TRY_COMPILE([
#
AC_MSG_CHECKING(for st_gen)
AC_TRY_COMPILE([
],[
], [
AC_DEFINE(HAVE_POSIX2008_SCANDIR, 1, [POSIX 2008 scandir])
],[
], [
AC_DEFINE(HAVE_POSIX2008_SCANDIR, 1, [POSIX 2008 scandir])
],[
], [
AC_DEFINE(HAVE_POSIX2008_SCANDIR, 1, [POSIX 2008 scandir])
],[
], [
AC_DEFINE(HAVE_POSIX2008_SCANDIR, 1, [POSIX 2008 scandir])
+AC_PREREQ([2.57])
+AC_INIT([lustre-iokit],[2.3.65], [http://bugs.hpdd.intel.com/])
-AM_INIT_AUTOMAKE(lustre-iokit,1.4.0)
AC_PATH_PROGS(BASH, bash)
AC_PATH_PROGS(PERL, perl)
RELEASE="1"
AC_PATH_PROGS(BASH, bash)
AC_PATH_PROGS(PERL, perl)
RELEASE="1"
[#check global
LC_CONFIG_QUOTA
#check for utils
[#check global
LC_CONFIG_QUOTA
#check for utils
+if test x$enable_quota != xno -a x$enable_utils != xno; then
AC_CHECK_HEADER(sys/quota.h,
[AC_DEFINE(HAVE_SYS_QUOTA_H, 1, [Define to 1 if you have <sys/quota.h>.])],
[AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
AC_CHECK_HEADER(sys/quota.h,
[AC_DEFINE(HAVE_SYS_QUOTA_H, 1, [Define to 1 if you have <sys/quota.h>.])],
[AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
DIST_SUBDIRS = linux darwin
if LIBLUSTRE
DIST_SUBDIRS = linux darwin
if LIBLUSTRE
-INCLUDES = -I$(SYSIO)/include
noinst_LIBRARIES = liblustreclass.a
liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c mea.c uuid.c
liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
noinst_LIBRARIES = liblustreclass.a
liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c mea.c uuid.c
liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
liblustreclass_a_SOURCES += lu_object.c cl_object.c lu_ref.c
liblustreclass_a_SOURCES += cl_page.c cl_lock.c cl_io.c
liblustreclass_a_SOURCES += #llog_ioctl.c rbtree.c
liblustreclass_a_SOURCES += lu_object.c cl_object.c lu_ref.c
liblustreclass_a_SOURCES += cl_page.c cl_lock.c cl_io.c
liblustreclass_a_SOURCES += #llog_ioctl.c rbtree.c
-liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS)
-liblustreclass_a_CFLAGS = $(LLCFLAGS)
+liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -I$(SYSIO)/include
+liblustreclass_a_CFLAGS = $(LLCFLAGS) -I$(SYSIO)/include
bin_PROGRAMS = lfs req_layout
bin_SCRIPTS = $(bin_scripts)
sbin_SCRIPTS = $(sbin_scripts)
bin_PROGRAMS = lfs req_layout
bin_SCRIPTS = $(bin_scripts)
sbin_SCRIPTS = $(sbin_scripts)
lib_LIBRARIES = liblustreapi.a
if LDISKFS_ENABLED
lib_LIBRARIES = liblustreapi.a
if LDISKFS_ENABLED
libiam_a_SOURCES = libiam.c
endif
libiam_a_SOURCES = libiam.c
endif
-wirecheck_SOURCES = wirecheck.c
-wirecheck_CPPFLAGS = -DCC="\"$(CC)\""
-
-wiretest_SOURCES = wiretest.c
-
obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
req_layout_SOURCES = req-layout.c
obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
req_layout_SOURCES = req-layout.c
l_getidentity_DEPENDENCIES := $(LIBPTLCTL)
ltrack_stats_SOURCES = ltrack_stats.c
l_getidentity_DEPENDENCIES := $(LIBPTLCTL)
ltrack_stats_SOURCES = ltrack_stats.c
+endif # UTILS
+
+wirecheck_SOURCES = wirecheck.c
+wirecheck_CPPFLAGS = -DCC="\"$(CC)\""
+
+wiretest_SOURCES = wiretest.c
lhsmtool_posix_SOURCES = lhsmtool_posix.c
lhsmtool_posix_LDADD := liblustreapi.a $(PTHREAD_LIBS)
lhsmtool_posix_SOURCES = lhsmtool_posix.c
lhsmtool_posix_LDADD := liblustreapi.a $(PTHREAD_LIBS)