-
Notifications
You must be signed in to change notification settings - Fork 17
/
configure.ac
50 lines (38 loc) · 1.11 KB
/
configure.ac
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
AC_PREREQ([2.69])
AC_INIT([noncestatistics], [1.0.0], [tihmstar@gmail.com])
# prepare for automake
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([noncestatistics/all_noncestatistics.h])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
CXXFLAGS+=" -std=c++11"
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_CANONICAL_HOST
# Check for operating system
AC_MSG_CHECKING([whether we need platform-specific build settings])
case $host_os in
darwin* )
CXXFLAGS+=" -stdlib=libc++"
;;
esac
# Checks for libraries.
PKG_CHECK_MODULES(libplist, libplist >= 1.0)
PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.2.1)
PKG_CHECK_MODULES(libirecovery, libirecovery >= 0.2.0)
# Checks for header files.
AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset mkdir pow strchr strdup strstr])
AC_CONFIG_FILES([Makefile noncestatistics/Makefile])
AC_OUTPUT