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