Whamcloud - gitweb
LU-11667 tests: Fix sanity test 317 for 64K PAGE_SIZE OST
[fs/lustre-release.git] / configure.ac
index ce1df2a..16e9ee8 100644 (file)
@@ -1,45 +1,24 @@
-sinclude(lustre/version.m4)
+AC_PREREQ([2.57])
+AC_INIT([Lustre], m4_esyscmd([sh -c "./LUSTRE-VERSION-GEN | tr -d '\n'"]),
+        [https://jira.whamcloud.com/], [lustre])
 
-AC_INIT([Lustre], [LUSTRE_VERSION], [http://bugzilla.lustre.org/], [lustre])
+AC_CONFIG_AUX_DIR([config])
+AC_CONFIG_MACRO_DIR([config])
 
-if test "LUSTRE_VERSION" = "LUSTRE""_VERSION" ; then
-       cat >&2 <<-EOF
-       This script was not built with a version number.
+LC_CONFIG_SRCDIR
 
-       This is likely due to an incorrect checkout, or a broken
-       tarball.
+AC_CANONICAL_SYSTEM
 
-       Please see README.lustrecvs, or contact your Lustre vendor.
-       EOF
-       exit 1
-fi
+AM_INIT_AUTOMAKE([1.10 tar-pax -Wno-portability subdir-objects])
+AM_MAINTAINER_MODE([enable])
 
-AC_CONFIG_SRCDIR(lustre/obdclass/obdo.c)
-AM_INIT_AUTOMAKE
-# AM_MAINTAINER_MODE
+AC_PROG_CC
+AC_PROG_LIBTOOL
+AC_PROG_MKDIR_P
+AM_PROG_AS
 
-sinclude(build/build.ac)
-sinclude(portals/portals.ac)
-sinclude(lustre/lustre.ac)
+AC_PATH_PROG(RPMBUILD, rpmbuild)
+AC_CHECK_TOOLS(AR, ar)
 
-AC_CONFIG_HEADERS([config.h])
-
-CPPFLAGS="-include \$(top_builddir)/config.h $CPPFLAGS"
-EXTRA_KCFLAGS="-include $PWD/config.h $EXTRA_KCFLAGS"
-AC_SUBST(EXTRA_KCFLAGS)
-
-AC_OUTPUT([
-Makefile
-autoMakefile
-])
-
-cat <<EOF
-
-CPPFLAGS: $CPPFLAGS
-LLCPPFLAGS: $LLCPPFLAGS
-CFLAGS: $CFLAGS
-EXTRA_KCFLAGS: $EXTRA_KCFLAGS
-LLCFLAGS: $LLCFLAGS
-
-Type 'make' to build Lustre.
-EOF
+LUSTRE_VERSION_CPP_MACROS
+LB_CONFIGURE