-
Notifications
You must be signed in to change notification settings - Fork 34
/
configure.ac
33 lines (26 loc) · 1.12 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
AC_INIT(bruteforce-luks, 1.4.1)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR(src/bruteforce-luks.c)
dnl Check for toolchain and install components
AC_PROG_CC
AC_PROG_INSTALL
dnl Check for standard headers
AC_CHECK_HEADERS([ctype.h errno.h locale.h math.h signal.h stdio.h stdlib.h sys/time.h time.h unistd.h wchar.h])
dnl Check for functions
AC_CHECK_FUNCS([calloc malloc realloc free])
AC_CHECK_FUNCS([perror printf fprintf snprintf])
AC_CHECK_FUNCS([fopen fgetc])
AC_CHECK_FUNCS([atoi])
AC_CHECK_FUNCS([setlocale mbstowcs wcsncpy wcstombs])
AC_CHECK_FUNCS([getopt])
AC_CHECK_FUNCS([sleep])
AC_CHECK_FUNCS([signal])
AC_CHECK_FUNCS([localtime strftime time])
dnl Check for libraries
AC_CHECK_LIB(m, pow, [], AC_MSG_ERROR([math library required]))
AC_CHECK_LIB(pthread, pthread_create, [], AC_MSG_ERROR([POSIX threads library required]))
AC_CHECK_HEADERS(pthread.h, [], AC_MSG_ERROR([POSIX threads headers required]))
AC_CHECK_LIB(cryptsetup, crypt_activate_by_passphrase, [], AC_MSG_ERROR([cryptsetup library required]))
AC_CHECK_HEADERS(libcryptsetup.h, [], AC_MSG_ERROR([cryptsetup headers required]))
AC_CONFIG_FILES(Makefile tests/Makefile)
AC_OUTPUT