]>
Commit | Line | Data |
---|---|---|
fc49813f | 1 | AC_INIT(include/libxfs.h) |
07c561fe AG |
2 | AC_CONFIG_AUX_DIR([.]) |
3 | AC_CONFIG_MACRO_DIR([m4]) | |
9440d84d | 4 | AC_CONFIG_HEADER(include/platform_defs.h) |
521902a9 | 5 | AC_PREFIX_DEFAULT(/usr) |
9440d84d | 6 | |
07c561fe AG |
7 | AC_PROG_LIBTOOL |
8 | ||
534b0bfd | 9 | AC_ARG_ENABLE(shared, |
dfc13ce1 | 10 | [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, |
d5dca43b NS |
11 | enable_shared=yes) |
12 | AC_SUBST(enable_shared) | |
13 | ||
16c44ed2 NS |
14 | AC_ARG_ENABLE(gettext, |
15 | [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],, | |
16 | enable_gettext=yes) | |
17 | AC_SUBST(enable_gettext) | |
18 | ||
e246ba5f | 19 | AC_ARG_ENABLE(readline, |
16c44ed2 | 20 | [ --enable-readline=[yes/no] Enable readline command editing [default=no]], |
541a1d4f | 21 | test $enable_readline = yes && libreadline="-lreadline", |
e246ba5f | 22 | enable_readline=no) |
e246ba5f NS |
23 | AC_SUBST(libreadline) |
24 | AC_SUBST(enable_readline) | |
25 | ||
d4b9ebda | 26 | AC_ARG_ENABLE(editline, |
16c44ed2 | 27 | [ --enable-editline=[yes/no] Enable editline command editing [default=no]], |
541a1d4f | 28 | test $enable_editline = yes && libeditline="-ledit", |
d4b9ebda | 29 | enable_editline=no) |
d4b9ebda NS |
30 | AC_SUBST(libeditline) |
31 | AC_SUBST(enable_editline) | |
32 | ||
541a1d4f NS |
33 | AC_ARG_ENABLE(termcap, |
34 | [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]], | |
35 | test $enable_termcap = yes && libtermcap="-ltermcap",) | |
36 | AC_SUBST(libtermcap) | |
37 | ||
82805b60 | 38 | AC_ARG_ENABLE(lib64, |
595e27db CH |
39 | [ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],, |
40 | enable_lib64=yes) | |
82805b60 TS |
41 | AC_SUBST(enable_lib64) |
42 | ||
595e27db CH |
43 | # |
44 | # If the user specified a libdir ending in lib64 do not append another | |
45 | # 64 to the library names. | |
46 | # | |
47 | base_libdir=`basename "$libdir"` | |
48 | case $base_libdir in | |
49 | lib64) | |
50 | enable_lib64=no | |
51 | esac | |
52 | ||
53 | # | |
54 | # Some important tools should be installed into the root partitions. | |
55 | # | |
56 | # Check whether exec_prefix=/usr: and install them to /sbin in that | |
57 | # case. If the user choses a different prefix assume he just wants | |
58 | # a local install for testing and not a system install. | |
59 | # | |
60 | case $exec_prefix:$prefix in | |
61 | NONE:NONE | NONE:/usr | /usr:*) | |
62 | root_sbindir='/sbin' | |
63 | AC_SUBST([root_sbindir]) | |
64 | ||
65 | root_libdir="/${base_libdir}" | |
66 | AC_SUBST([root_libdir]) | |
67 | esac | |
68 | ||
8c053393 AM |
69 | # Find localized files |
70 | LOCALIZED_FILES="" | |
71 | for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do | |
72 | LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile" | |
73 | done | |
74 | AC_SUBST(LOCALIZED_FILES) | |
75 | ||
16c44ed2 NS |
76 | AC_PACKAGE_GLOBALS(xfsprogs) |
77 | AC_PACKAGE_UTILITIES(xfsprogs) | |
82805b60 | 78 | AC_MULTILIB($enable_lib64) |
93d9f139 | 79 | |
6ec3f6ba NS |
80 | AC_PACKAGE_NEED_AIO_H |
81 | AC_PACKAGE_NEED_LIO_LISTIO | |
82 | ||
0686de0f | 83 | AC_PACKAGE_NEED_UUID_H |
7b9d2be9 | 84 | AC_PACKAGE_NEED_UUIDCOMPARE |
fc49813f | 85 | |
949c0f10 NS |
86 | AC_PACKAGE_NEED_PTHREAD_H |
87 | AC_PACKAGE_NEED_PTHREADMUTEXINIT | |
88 | ||
0bba1a49 NS |
89 | AC_HAVE_FADVISE |
90 | AC_HAVE_MADVISE | |
91 | AC_HAVE_MINCORE | |
92 | AC_HAVE_SENDFILE | |
cfe6e3f0 NS |
93 | AC_HAVE_GETMNTENT |
94 | AC_HAVE_GETMNTINFO | |
c0b5232a | 95 | AC_HAVE_FALLOCATE |
0bba1a49 | 96 | |
16c44ed2 NS |
97 | AC_TYPE_PSINT |
98 | AC_TYPE_PSUNSIGNED | |
7413a3b2 | 99 | AC_TYPE_U32 |
16c44ed2 NS |
100 | AC_SIZEOF_POINTERS_AND_LONG |
101 | AC_MANUAL_FORMAT | |
fc49813f | 102 | |
6c6508ec | 103 | AC_OUTPUT(include/builddefs) |