X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fconfigure.in;h=d1aa6aa6c3d3815c8156e9e108a41baa30972bd2;hb=efc75006b820c9b8e186c7650fc24edd5d0509af;hp=482ecf32da99f29d66001cef0c393b536889a262;hpb=9bb4c2413323c2bc7bb0686ab6b86f0ca6215781;p=fs%2Flustre-release.git diff --git a/lustre/configure.in b/lustre/configure.in index 482ecf3..d1aa6aa 100644 --- a/lustre/configure.in +++ b/lustre/configure.in @@ -1,102 +1,83 @@ -AC_INIT -AC_CANONICAL_SYSTEM - -# Copyright (C) 2001 Cluster File Systems, Inc. +# Copyright (C) 2001-2003 Cluster File Systems, Inc. # # This code is issued under the GNU General Public License. # See the file COPYING in this distribution +AC_INIT +AC_CANONICAL_SYSTEM + # Automake variables. Steal the version number from lustre.spec.in. AM_INIT_AUTOMAKE(lustre, builtin([esyscmd], [sed -ne '/^%define version /{ s/.*version //; p; q; }' scripts/lustre.spec.in])) #AM_MAINTAINER_MODE -AC_PROG_CC -AC_PROG_RANLIB -# -# Check for required packages - -# this doesn't seem to work on older autoconf -# AC_CHECK_LIB(readline, readline,,) - -AC_ARG_ENABLE(readline, [ --enable-readline use readline library],, - enable_readline="yes") - -if test "$enable_readline" = "yes" ; then - LIBREADLINE="-lreadline -lncurses" - HAVE_LIBREADLINE="-DHAVE_LIBREADLINE=1" -else - LIBREADLINE="" - HAVE_LIBREADLINE="" +# LLNL patches their ext3 and calls it extN +AC_ARG_ENABLE(extN, [ --enable-extN use extN instead of ext3 for lustre backend]) +AM_CONDITIONAL(EXTN, test x$enable_extN = xyes) + +# specify wether to build doc or not +AC_ARG_ENABLE(doc, [ --disable-doc skip creation of pdf documentation], + [ + if test x$enable_doc = xyes ; then + ENABLE_DOC=1 + else + ENABLE_DOC=0 + fi + ], + [ ENABLE_DOC=1 ]) +AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1) +AC_SUBST(ENABLE_DOC) + +# the pinger is temporary, until we have the recovery node in place +AC_ARG_ENABLE(pinger, [ --disable-pinger disable recovery pinger support]) +if test x$enable_pinger != xno ; then + AC_DEFINE(ENABLE_PINGER, 1, Use the Pinger) fi -AC_SUBST(LIBREADLINE) -AC_SUBST(HAVE_LIBREADLINE) - -# Kernel build environment. -ac_default_prefix= -bindir='${exec_prefix}/usr/bin' -sbindir='${exec_prefix}/usr/sbin' - -linuxdir_def=/usr/src/linux -AC_ARG_WITH(linux, [ --with-linux=[path] set path to Linux source (default=/usr/src/linux)], enable_linuxdir=$withval) -AC_ARG_ENABLE(linuxdir, [ --enable-linuxdir=[path] (deprecated) set path to Linux source (default=/usr/src/linux)],, enable_linuxdir=$linuxdir_def) - -LINUX=$enable_linuxdir -AC_SUBST(LINUX) -sinclude(archdep.m4) - -KINCFLAGS='-I. -I$(top_srcdir)/include -I$(PORTALS)/include -I$(LINUX)/include' -CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS" - -portalsdir_def='$(top_srcdir)/../portals' -AC_ARG_ENABLE(portalsdir, [ --enable-portalsdir=[path] set path to Portals source (default=../portals)],, enable_portalsdir=$portalsdir_def) -PORTALS=$enable_portalsdir -AC_SUBST(PORTALS) - -AC_MSG_CHECKING(if make dep has been run in kernel source) -if test -f $LINUX/include/linux/config.h ; then - AC_MSG_RESULT(yes) -else - AC_MSG_ERROR(** cannot find $LINUX/include/linux/config.h. Run make dep in $LINUX.) +# very experimental orphan support +AC_ARG_ENABLE(orphans, [ --enable-orphans very experimental orphan recovery support]) +if test x$enable_orphans = xyes ; then + AC_DEFINE(ENABLE_ORPHANS, 1, Compile with orphan support) fi -AC_MSG_CHECKING(if autoconf.h is in kernel source) -if test -f $LINUX/include/linux/autoconf.h ; then - AC_MSG_RESULT(yes) +AC_ARG_WITH(obd-buffer-size, [ --with-obd-buffer-size=[size] set lctl ioctl maximum bytes (default=8192)],OBD_BUFFER_SIZE=$with_obd_buffer_size,OBD_BUFFER_SIZE=8192) +AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size]) + +# specify location of libsysio tree +AC_ARG_WITH(sysio, [ --with-sysio=[path] set path to libsysio source (default=../libsysio)], sysiodir=$withval) +if test x$sysiodir = x; then + SYSIO='$(top_srcdir)/../libsysio' else - AC_MSG_ERROR(** cannot find $LINUX/include/linux/autoconf.h. Run make config in $LINUX.) + SYSIO=$sysiodir fi +AC_SUBST(SYSIO) +# snap compilation +AC_ARG_ENABLE(snapfs, [ --enable-snapfs build snapfs]) +AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes) -AC_MSG_CHECKING(for Linux release) - -dnl We need to rid ourselves of the nasty [ ] quotes. -changequote(, ) -dnl Get release from version.h -RELEASE="`sed -ne 's/.*UTS_RELEASE[ \"]*\([0-9.a-zA-Z-]*\).*/\1/p' $LINUX/include/linux/version.h`" -changequote([, ]) -moduledir='$(libdir)/modules/'$RELEASE/kernel -AC_SUBST(moduledir) +sinclude(portals/build.m4) +sinclude(portals/archdep.m4) -modulefsdir='$(moduledir)/fs/$(PACKAGE)' -AC_SUBST(modulefsdir) - -AC_MSG_RESULT($RELEASE) -AC_SUBST(RELEASE) - -# Directories for documentation and demos. -docdir='${prefix}/usr/share/doc/$(PACKAGE)' -AC_SUBST(docdir) - -demodir='$(docdir)/demo' -AC_SUBST(demodir) - -# not needed until the AC_CHECK_LIB(readline) above works -# AM_CONFIG_HEADER(include/config.h) +if test x$enable_inkernel = xyes ; then + find . -name Makefile.mk | sed 's/.mk$//' | xargs -n 1 \ + sh -e -x -c '(cp -f $0.mk $0.in)' +fi -AC_OUTPUT(Makefile lib/Makefile ldlm/Makefile obdecho/Makefile ptlrpc/Makefile \ - lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \ - utils/Makefile tests/Makefile obdfilter/Makefile obdclass/Makefile \ - llite/Makefile demos/Makefile doc/Makefile scripts/Makefile \ - scripts/lustre.spec extN/Makefile) +AM_CONFIG_HEADER(portals/include/config.h) + +AC_OUTPUT([Makefile lvfs/Makefile portals/Makefile portals/Kernelenv \ + portals/libcfs/Makefile portals/portals/Makefile \ + portals/unals/Makefile portals/knals/Makefile \ + portals/router/Makefile portals/knals/socknal/Makefile \ + portals/knals/gmnal/Makefile portals/knals/qswnal/Makefile \ + portals/knals/scimacnal/Makefile \ + portals/knals/ibnal/Makefile \ + portals/utils/Makefile portals/tests/Makefile portals/doc/Makefile \ + obdecho/Makefile ptlrpc/Makefile liblustre/Makefile \ + lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \ + cobd/Makefile ptlbd/Makefile conf/Makefile tests/Makefile \ + utils/Makefile utils/Lustre/Makefile obdfilter/Makefile \ + obdclass/Makefile snapfs/Makefile snapfs/utils/Makefile ldlm/Makefile \ + include/Makefile include/linux/Makefile llite/Makefile doc/Makefile scripts/Makefile \ + scripts/lustre.spec])