]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame_incremental - configure.in
xfs_db: validate btree block magic in the freesp command
[thirdparty/xfsprogs-dev.git] / configure.in
... / ...
CommitLineData
1AC_INIT(include/libxfs.h)
2AC_CONFIG_AUX_DIR([.])
3AC_CONFIG_MACRO_DIR([m4])
4AC_CONFIG_HEADER(include/platform_defs.h)
5AC_PREFIX_DEFAULT(/usr)
6
7AC_PROG_LIBTOOL
8
9AC_ARG_ENABLE(shared,
10[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
11 enable_shared=yes)
12AC_SUBST(enable_shared)
13
14AC_ARG_ENABLE(gettext,
15[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
16 enable_gettext=yes)
17AC_SUBST(enable_gettext)
18
19AC_ARG_ENABLE(readline,
20[ --enable-readline=[yes/no] Enable readline command editing [default=no]],
21 test $enable_readline = yes && libreadline="-lreadline",
22 enable_readline=no)
23AC_SUBST(libreadline)
24AC_SUBST(enable_readline)
25
26AC_ARG_ENABLE(editline,
27[ --enable-editline=[yes/no] Enable editline command editing [default=no]],
28 test $enable_editline = yes && libeditline="-ledit",
29 enable_editline=no)
30AC_SUBST(libeditline)
31AC_SUBST(enable_editline)
32
33AC_ARG_ENABLE(termcap,
34[ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]],
35 test $enable_termcap = yes && libtermcap="-ltermcap",)
36AC_SUBST(libtermcap)
37
38# AC_HAVE_BLKID_TOPO below wil find the library & check for topo support
39AC_ARG_ENABLE(blkid,
40[ --enable-blkid=[yes/no] Enable block device id library [default=yes]],,
41 enable_blkid=yes)
42
43AC_ARG_ENABLE(lib64,
44[ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],,
45 enable_lib64=yes)
46AC_SUBST(enable_lib64)
47
48#
49# If the user specified a libdir ending in lib64 do not append another
50# 64 to the library names.
51#
52base_libdir=`basename "$libdir"`
53case $base_libdir in
54lib64)
55 enable_lib64=no
56esac
57
58#
59# Some important tools should be installed into the root partitions.
60#
61# Check whether exec_prefix=/usr: and install them to /sbin in that
62# case. If the user choses a different prefix assume he just wants
63# a local install for testing and not a system install.
64#
65case $exec_prefix:$prefix in
66NONE:NONE | NONE:/usr | /usr:*)
67 root_sbindir='/sbin'
68 AC_SUBST([root_sbindir])
69
70 root_libdir="/${base_libdir}"
71 AC_SUBST([root_libdir])
72esac
73
74# Find localized files
75LOCALIZED_FILES=""
76for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do
77 LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile"
78done
79AC_SUBST(LOCALIZED_FILES)
80
81AC_PACKAGE_GLOBALS(xfsprogs)
82AC_PACKAGE_UTILITIES(xfsprogs)
83AC_MULTILIB($enable_lib64)
84
85AC_PACKAGE_NEED_AIO_H
86AC_PACKAGE_NEED_LIO_LISTIO
87
88AC_PACKAGE_NEED_UUID_H
89AC_PACKAGE_NEED_UUIDCOMPARE
90
91AC_PACKAGE_NEED_PTHREAD_H
92AC_PACKAGE_NEED_PTHREADMUTEXINIT
93
94AC_HAVE_FADVISE
95AC_HAVE_MADVISE
96AC_HAVE_MINCORE
97AC_HAVE_SENDFILE
98AC_HAVE_GETMNTENT
99AC_HAVE_GETMNTINFO
100AC_HAVE_FALLOCATE
101AC_HAVE_BLKID_TOPO($enable_blkid)
102
103AC_TYPE_PSINT
104AC_TYPE_PSUNSIGNED
105AC_TYPE_U32
106AC_SIZEOF_POINTERS_AND_LONG
107AC_MANUAL_FORMAT
108
109AC_OUTPUT(include/builddefs)