]>
Commit | Line | Data |
---|---|---|
fc49813f | 1 | AC_INIT(include/libxfs.h) |
07c561fe AG |
2 | AC_CONFIG_AUX_DIR([.]) |
3 | AC_CONFIG_MACRO_DIR([m4]) | |
9440d84d NS |
4 | AC_CONFIG_HEADER(include/platform_defs.h) |
5 | ||
07c561fe AG |
6 | AC_PROG_LIBTOOL |
7 | ||
534b0bfd | 8 | AC_ARG_ENABLE(shared, |
dfc13ce1 | 9 | [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, |
d5dca43b NS |
10 | enable_shared=yes) |
11 | AC_SUBST(enable_shared) | |
12 | ||
16c44ed2 NS |
13 | AC_ARG_ENABLE(gettext, |
14 | [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],, | |
15 | enable_gettext=yes) | |
16 | AC_SUBST(enable_gettext) | |
17 | ||
e246ba5f | 18 | AC_ARG_ENABLE(readline, |
16c44ed2 | 19 | [ --enable-readline=[yes/no] Enable readline command editing [default=no]], |
541a1d4f | 20 | test $enable_readline = yes && libreadline="-lreadline", |
e246ba5f | 21 | enable_readline=no) |
e246ba5f NS |
22 | AC_SUBST(libreadline) |
23 | AC_SUBST(enable_readline) | |
24 | ||
d4b9ebda | 25 | AC_ARG_ENABLE(editline, |
16c44ed2 | 26 | [ --enable-editline=[yes/no] Enable editline command editing [default=no]], |
541a1d4f | 27 | test $enable_editline = yes && libeditline="-ledit", |
d4b9ebda | 28 | enable_editline=no) |
d4b9ebda NS |
29 | AC_SUBST(libeditline) |
30 | AC_SUBST(enable_editline) | |
31 | ||
541a1d4f NS |
32 | AC_ARG_ENABLE(termcap, |
33 | [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]], | |
34 | test $enable_termcap = yes && libtermcap="-ltermcap",) | |
35 | AC_SUBST(libtermcap) | |
36 | ||
82805b60 TS |
37 | AC_ARG_ENABLE(lib64, |
38 | [ --enable-lib64=[yes/no] Enable lib64 support [default=no]],, | |
39 | enable_lib64=no) | |
40 | AC_SUBST(enable_lib64) | |
41 | ||
8c053393 AM |
42 | # Find localized files |
43 | LOCALIZED_FILES="" | |
44 | for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do | |
45 | LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile" | |
46 | done | |
47 | AC_SUBST(LOCALIZED_FILES) | |
48 | ||
16c44ed2 NS |
49 | AC_PACKAGE_GLOBALS(xfsprogs) |
50 | AC_PACKAGE_UTILITIES(xfsprogs) | |
82805b60 | 51 | AC_MULTILIB($enable_lib64) |
93d9f139 | 52 | |
6ec3f6ba NS |
53 | AC_PACKAGE_NEED_AIO_H |
54 | AC_PACKAGE_NEED_LIO_LISTIO | |
55 | ||
0686de0f | 56 | AC_PACKAGE_NEED_UUID_H |
7b9d2be9 | 57 | AC_PACKAGE_NEED_UUIDCOMPARE |
fc49813f | 58 | |
949c0f10 NS |
59 | AC_PACKAGE_NEED_PTHREAD_H |
60 | AC_PACKAGE_NEED_PTHREADMUTEXINIT | |
61 | ||
0bba1a49 NS |
62 | AC_HAVE_FADVISE |
63 | AC_HAVE_MADVISE | |
64 | AC_HAVE_MINCORE | |
65 | AC_HAVE_SENDFILE | |
cfe6e3f0 NS |
66 | AC_HAVE_GETMNTENT |
67 | AC_HAVE_GETMNTINFO | |
0bba1a49 | 68 | |
16c44ed2 NS |
69 | AC_TYPE_PSINT |
70 | AC_TYPE_PSUNSIGNED | |
7413a3b2 | 71 | AC_TYPE_U32 |
16c44ed2 NS |
72 | AC_SIZEOF_POINTERS_AND_LONG |
73 | AC_MANUAL_FORMAT | |
fc49813f | 74 | |
6c6508ec | 75 | AC_OUTPUT(include/builddefs) |