2 # configure.ac (30.03.15)
5 # Free exFAT implementation.
6 # Copyright (C) 2010-2023 Andrew Nayenko
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License along
19 # with this program; if not, write to the Free Software Foundation, Inc.,
20 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 AC_INIT([Free exFAT implementation],
25 [relan@users.noreply.github.com],
27 [https://github.com/relan/exfat])
28 AM_INIT_AUTOMAKE([1.11.2 -Wall -Werror foreign subdir-objects])
34 PKG_CHECK_MODULES([UBLIO], [libublio], [
35 CFLAGS="$CFLAGS $UBLIO_CFLAGS"
36 LIBS="$LIBS $UBLIO_LIBS"
37 AC_DEFINE([USE_UBLIO], [1],
38 [Define if block devices are not supported.])
40 PKG_CHECK_MODULES([FUSE3], [fuse3],
41 [AC_DEFINE([FUSE_USE_VERSION], [30], [Required FUSE API version.])],
42 [PKG_CHECK_MODULES([FUSE2], [fuse >= 2.6],
43 [AC_DEFINE([FUSE_USE_VERSION], [26], [Required FUSE API version.])])])
46 AC_DEFINE([_XOPEN_SOURCE], [500], [Enable pread() and pwrite().])
47 AC_DEFINE([_DEFAULT_SOURCE], [], [Enable vsyslog().])
50 AC_CONFIG_HEADERS([libexfat/config.h])