forked from yet/gtkqq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
55 lines (47 loc) · 1.49 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
50
51
52
53
54
55
AC_PREREQ([2.6])
AC_INIT([LinuxQQ], [0.2], [[email protected]], [LinuxQQ], [https://github.com/gtkqq/gtkqq])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
LT_INIT
AC_PROG_LIBTOOL
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([zlib], [compress])
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h\
stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h zlib.h])
PKG_CHECK_MODULES(SQLITE3, [sqlite3 > 3.3], [
AC_DEFINE(USE_SQLITE3, 1, [Use sqlite3])
AC_SUBST(SQLITE3_CFLAGS)
AC_SUBST(SQLITE3_LIBS)] ,
[
echo ""
echo "configure: error: "
echo "libsqlite3 development headers not found."
echo ""
exit -1])
PKG_CHECK_MODULES(CURL, [libcurl > 7.23],[
AC_DEFINE(USE_CURL,1,[Use curl])
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)],
[
echo ""
echo "configure: error: "
echo "libcurl development headers not found."
echo ""
exit -1]
)
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([bzero gethostbyname memset mkdir select socket strstr strtol])
AC_CHECK_FUNCS([inet_ntoa])
AC_CONFIG_FILES([Makefile
src/Makefile
src/libwebqq/Makefile
src/test/Makefile
])
AC_OUTPUT