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 # Directories for documentation and demos.
20 docdir='${prefix}/usr/share/doc/$(PACKAGE)'
22 demodir='$(docdir)/demo'
24 pkgexampledir='${prefix}/usr/lib/$(PACKAGE)/examples'
25 AC_SUBST(pkgexampledir)
26 pymoddir='${prefix}/usr/lib/${PACKAGE}/python/Lustre'
28 modulenetdir='$(moduledir)/net/$(PACKAGE)'
29 AC_SUBST(modulenetdir)
32 # ---------- BAD gcc? ------------
35 AC_MSG_CHECKING(for buggy compiler)
36 CC_VERSION=`$CC -v 2>&1 | grep "^gcc version"`
40 echo " has been known to generate bad code, "
41 echo " please get an updated compiler."
44 TMP_VERSION=`echo $CC_VERSION | cut -c 1-16`
45 if test "$TMP_VERSION" = "gcc version 2.95"; then
49 # ost_pack_niobuf putting 64bit NTOH temporaries on the stack
50 # without "sub $0xc,%esp" to protect the stack from being
51 # stomped on by interrupts (bug 606)
52 "gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)")
55 # mandrake's similar sub 0xc compiler bug
56 # http://marc.theaimsgroup.com/?l=linux-kernel&m=104748366226348&w=2
57 "gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)")
61 AC_MSG_RESULT(no known problems)
64 # end ------ BAD gcc? ------------
66 # -------- Check for required packages --------------
68 # this doesn't seem to work on older autoconf
69 # AC_CHECK_LIB(readline, readline,,)
70 AC_ARG_ENABLE(readline, [ --enable-readline use readline library],,
71 enable_readline="yes")
73 if test "$enable_readline" = "yes" ; then
74 LIBREADLINE="-lreadline -lncurses"
75 HAVE_LIBREADLINE="-DHAVE_LIBREADLINE=1"
81 AC_SUBST(HAVE_LIBREADLINE)
83 AC_ARG_ENABLE(efence, [ --enable-efence use efence library],,
86 if test "$enable_efence" = "yes" ; then
88 HAVE_LIBEFENCE="-DHAVE_LIBEFENCE=1"
94 AC_SUBST(HAVE_LIBEFENCE)