[set path to libsysio source (default is included libsysio)]),
[],[with_sysio='yes'])
AC_MSG_CHECKING([location of libsysio])
+enable_sysio="$with_sysio"
case x$with_sysio in
xyes)
AC_MSG_RESULT([internal])
AC_MSG_ERROR([A complete (built) external libsysio was not found.])
])
SYSIO=$with_sysio
+ enable_sysio="yes"
;;
esac
AC_SUBST(LIBSYSIO_SUBDIR)
AC_HELP_STRING([--disable-modules],
[disable building of Lustre kernel modules]),
[],[
- case $target_os in
- linux* | darwin)
- enable_modules='yes'
- ;;
- *)
- enable_modules='no'
- ;;
- esac
+ LC_TARGET_SUPPORTED([
+ enable_modules='yes'
+ ],[
+ enable_modules='no'
+ ])
])
AC_MSG_RESULT([$enable_modules ($target_os)])
linux*)
LB_PROG_LINUX
;;
- darwin)
+ darwin*)
LB_PROG_DARWIN
;;
*)
+ # This is strange - Lustre supports a target we don't
AC_MSG_ERROR([Modules are not supported on $target_os])
;;
esac
[AC_MSG_CHECKING([whether to build utilities])
AC_ARG_ENABLE([utils],
AC_HELP_STRING([--disable-utils],
- [disable building of Lustre utility programs])
+ [disable building of Lustre utility programs]),
[],[enable_utils='yes'])
if test x$with_cray_portals = xyes ; then
enable_utils='no'
fi
AC_MSG_RESULT([$enable_utils])
+if test x$enable_utils = xyes ; then
+ LB_CONFIG_INIT_SCRIPTS
+fi
])
#
# Directories for documentation and demos.
docdir='${datadir}/doc/$(PACKAGE)'
AC_SUBST(docdir)
+
+LP_PATH_DEFAULTS
+LC_PATH_DEFAULTS
])
#
#
AC_DEFUN([LB_PROG_CC],
[AC_PROG_RANLIB
-AC_PROG_CC
AC_MSG_CHECKING([for buggy compiler])
CC_VERSION=`$CC -v 2>&1 | grep "^gcc version"`
bad_cc() {
AM_CONDITIONAL(UTILS, test x$enable_utils = xyes)
AM_CONDITIONAL(TESTS, test x$enable_tests = xyes)
AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
-AM_CONDITIONAL(INKERNEL, test x$enable_inkernel = xyes)
-AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
AM_CONDITIONAL(CRAY_PORTALS, test x$with_cray_portals != xno)
AM_CONDITIONAL(INIT_SCRIPTS, test x$ENABLE_INIT_SCRIPTS = "x1")
+LB_LINUX_CONDITIONALS
+LB_DARWIN_CONDITIONALS
+
LP_CONDITIONALS
LC_CONDITIONALS
])
#
-# LB_CONFIG_FILES
+# LB_CONFIGURE
#
-# files that should be generated with AC_OUTPUT
+# main configure steps
#
-AC_DEFUN([LB_CONFIG_FILES],
-[AC_CONFIG_FILES([
+AC_DEFUN([LB_CONFIGURE],
+[LB_INCLUDE_RULES
+
+LB_PATH_DEFAULTS
+
+LB_PROG_CC
+
+LB_PATH_LIBSYSIO
+LB_PATH_CRAY_PORTALS
+
+LB_CONFIG_DOCS
+LB_CONFIG_UTILS
+LB_CONFIG_TESTS
+
+LB_CONFIG_MODULES
+
+LC_CONFIG_LIBLUSTRE
+
+LP_CONFIGURE
+LC_CONFIGURE
+
+LB_CONDITIONALS
+LB_CONFIG_HEADERS
+
+AC_CONFIG_FILES(
+[Makefile:build/Makefile.in.toplevel]
+[autoMakefile
build/autoMakefile
+build/autoconf/Makefile
build/Rules
build/lustre.spec
])
LP_CONFIG_FILES
LC_CONFIG_FILES
+
+AC_OUTPUT
+
+cat <<_ACEOF
+
+CPPFLAGS: $CPPFLAGS
+LLCPPFLAGS: $LLCPPFLAGS
+CFLAGS: $CFLAGS
+EXTRA_KCFLAGS: $EXTRA_KCFLAGS
+LLCFLAGS: $LLCFLAGS
+
+Type 'make' to build Lustre.
+_ACEOF
])