Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / ldiskfs / configure.ac
1 # Process this file with autoconf to produce a configure script.
2
3 AC_INIT([Lustre ldiskfs], 3.0.0, [https://bugzilla.lustre.org/])
4 AC_CONFIG_SRCDIR([lustre-ldiskfs.spec.in])
5
6 # Don't look for install-sh, etc. in ..
7 AC_CONFIG_AUX_DIR([.])
8
9 AC_CANONICAL_SYSTEM
10
11 AM_INIT_AUTOMAKE
12
13 AC_PROG_CC
14
15 LB_CANONICAL_SYSTEM
16 LB_INCLUDE_RULES
17 LB_PROG_CC
18 LB_PROG_LINUX
19 LB_CONFIG_HEADERS
20
21 # These allow Lustre Makefiles and autoMakefiles to be used unchanged.
22 AM_CONDITIONAL(MODULES, true)
23 AM_CONDITIONAL(LINUX, true)
24 AM_CONDITIONAL(DARWIN, true)
25 AM_CONDITIONAL(LINUX25, true)
26
27 LDISKFSDIR="$PWD/ldiskfs"
28 AC_SUBST(LDISKFSDIR)
29
30 AC_MSG_CHECKING([whether to enable quilt for making ldiskfs])
31 AC_ARG_ENABLE([quilt],
32                 AC_HELP_STRING([--disable-quilt],[disable use of quilt for ldiskfs]),
33                 [],[enable_quilt='yes'])
34 AC_MSG_RESULT([$enable_quilt])
35
36 AC_PATH_PROG(PATCH, patch, [no])
37
38 if test x$enable_quilt = xno ; then
39     QUILT="no"
40 else
41     AC_PATH_PROG(QUILT, quilt, [no])
42 fi
43
44 if test x$enable_ldiskfs$PATCH$QUILT = xyesnono ; then
45         AC_MSG_ERROR([Quilt or patch are needed to build the ldiskfs module])
46 fi
47
48 AM_CONDITIONAL(USE_QUILT, test x$QUILT != xno)
49
50 LB_DEFINE_LDISKFS_OPTIONS
51
52 AC_MSG_CHECKING([which ldiskfs series to use])
53 case $LINUXRELEASE in
54 2.6.5*) LDISKFS_SERIES="2.6-suse.series" ;;
55 2.6.9*) LDISKFS_SERIES="2.6-rhel4.series" ;;
56 2.6.10-ac*) LDISKFS_SERIES="2.6-fc3.series" ;;
57 2.6.10*) LDISKFS_SERIES="2.6-rhel4.series" ;;
58 2.6.12*) LDISKFS_SERIES="2.6.12-vanilla.series" ;;
59 2.6.15*) LDISKFS_SERIES="2.6-fc5.series";;
60 2.6.16*) LDISKFS_SERIES="2.6-sles10.series";;
61 2.6.18*) LDISKFS_SERIES="2.6.18-vanilla.series";;
62 *) AC_MSG_WARN([Unknown kernel version $LINUXRELEASE, fix ldiskfs/configure.ac])
63 esac
64 AC_MSG_RESULT([$LDISKFS_SERIES])
65 AC_SUBST(LDISKFS_SERIES)
66
67 AC_SUBST(ac_configure_args)
68
69 LB_CONFIG_FILES
70 AC_CONFIG_FILES([ldiskfs/autoMakefile ldiskfs/Makefile])
71
72 MOSTLYCLEANFILES='.*.cmd .*.flags *.o *.ko *.mod.c .depend .*.1.*'
73 AC_SUBST(MOSTLYCLEANFILES)
74
75 AC_OUTPUT