OSDN Git Service

Merge branch 'master' of git://github.com/relan/exfat into pie-x86
[android-x86/external-exfat.git] / configure.ac
1 #
2 #       configure.ac (30.03.15)
3 #       Autoconf source.
4 #
5 #       Free exFAT implementation.
6 #       Copyright (C) 2010-2018  Andrew Nayenko
7 #
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.
12 #
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.
17 #
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.
21 #
22
23 AC_INIT([Free exFAT implementation],
24         [1.3.0],
25         [relan@users.noreply.github.com],
26         [exfat],
27         [https://github.com/relan/exfat])
28 AM_INIT_AUTOMAKE([1.11.2 -Wall -Werror foreign subdir-objects])
29 AC_PROG_CC
30 AC_PROG_CC_C99
31 AC_PROG_RANLIB
32 AM_PROG_AR
33 AC_SYS_LARGEFILE
34 AC_CANONICAL_HOST
35 PKG_CHECK_MODULES([UBLIO], [libublio], [
36   CFLAGS="$CFLAGS $UBLIO_CFLAGS"
37   LIBS="$LIBS $UBLIO_LIBS"
38   AC_DEFINE([USE_UBLIO], [1],
39     [Define if block devices are not supported.])
40 ], [:])
41 PKG_CHECK_MODULES([FUSE], [fuse])
42 case "$host_os" in
43   *-gnu)
44     AC_DEFINE([_XOPEN_SOURCE], [500], [Enable pread() and pwrite().])
45     AC_DEFINE([_DEFAULT_SOURCE], [], [Enable vsyslog().])
46         ;;
47 esac
48 AC_CONFIG_HEADERS([libexfat/config.h])
49 AC_CONFIG_FILES([
50         libexfat/Makefile
51         dump/Makefile
52         fsck/Makefile
53         fuse/Makefile
54         label/Makefile
55         mkfs/Makefile
56         Makefile])
57 AC_OUTPUT