-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathconfigure.ac
More file actions
29 lines (21 loc) · 819 Bytes
/
configure.ac
File metadata and controls
29 lines (21 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AC_PREREQ([2.69])
AC_INIT([btfs],[3.1],[johan.gunnarsson@gmail.com],[btfs],[https://github.com/johang/btfs])
AC_CONFIG_SRCDIR([src/btfs.cc])
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
PKG_CHECK_MODULES(FUSE, fuse3 >= 3.0)
PKG_CHECK_MODULES(LIBTORRENT, libtorrent-rasterbar >= 1.0.0)
PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.22.0)
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([memset memcpy strcmp mkdir strdup realpath getxattr dirname basename])
# Check for unportable pthread_setname_np()
AC_CHECK_LIB(pthread, pthread_setname_np)
# Check if -latomic is needed.
AC_SEARCH_LIBS(__atomic_load, atomic)
AC_CONFIG_FILES([Makefile src/Makefile scripts/Makefile man/Makefile])
AC_OUTPUT