1 # ---------- other tests and settings ---------
4 # --------- unsigned long long sane? -------
6 AC_CHECK_SIZEOF(unsigned long long, 0)
7 echo "---> size SIZEOF $SIZEOF_unsigned_long_long"
8 echo "---> size SIZEOF $ac_cv_sizeof_unsigned_long_long"
9 if test $ac_cv_sizeof_unsigned_long_long != 8 ; then
10 AC_MSG_ERROR([** we assume that sizeof(long long) == 8. Tell phil@clusterfs.com])
13 # directories for binaries
15 bindir='${exec_prefix}/usr/bin'
16 sbindir='${exec_prefix}/usr/sbin'
17 includedir='${prefix}/usr/include'
19 rootsbindir='${exec_prefix}/sbin'
22 # Directories for documentation and demos.
23 docdir='${prefix}/usr/share/doc/$(PACKAGE)'
25 demodir='$(docdir)/demo'
27 pkgexampledir='${prefix}/usr/lib/$(PACKAGE)/examples'
28 AC_SUBST(pkgexampledir)
29 pymoddir='${prefix}/usr/lib/${PACKAGE}/python/Lustre'
31 modulenetdir='$(moduledir)/net/$(PACKAGE)'
32 AC_SUBST(modulenetdir)
35 # ---------- BAD gcc? ------------
38 AC_MSG_CHECKING(for buggy compiler)
39 CC_VERSION=`$CC -v 2>&1 | grep "^gcc version"`
43 echo " has been known to generate bad code, "
44 echo " please get an updated compiler."
47 TMP_VERSION=`echo $CC_VERSION | cut -c 1-16`
48 if test "$TMP_VERSION" = "gcc version 2.95"; then
52 # ost_pack_niobuf putting 64bit NTOH temporaries on the stack
53 # without "sub $0xc,%esp" to protect the stack from being
54 # stomped on by interrupts (bug 606)
55 "gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)")
58 # mandrake's similar sub 0xc compiler bug
59 # http://marc.theaimsgroup.com/?l=linux-kernel&m=104748366226348&w=2
60 "gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)")
64 AC_MSG_RESULT(no known problems)
67 # end ------ BAD gcc? ------------
69 # -------- Check for required packages --------------
71 # this doesn't seem to work on older autoconf
72 # AC_CHECK_LIB(readline, readline,,)
73 AC_ARG_ENABLE(readline, [ --enable-readline use readline library],,
74 enable_readline="yes")
76 if test "$enable_readline" = "yes" ; then
77 LIBREADLINE="-lreadline -lncurses"
78 HAVE_LIBREADLINE="-DHAVE_LIBREADLINE=1"
84 AC_SUBST(HAVE_LIBREADLINE)
86 AC_ARG_ENABLE(efence, [ --enable-efence use efence library],,
89 if test "$enable_efence" = "yes" ; then
91 HAVE_LIBEFENCE="-DHAVE_LIBEFENCE=1"
97 AC_SUBST(HAVE_LIBEFENCE)