-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
75 lines (51 loc) · 1.41 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dnl Process this file with autoconf to produce a configure script.
AC_INIT
AC_CONFIG_SRCDIR([include/odb.h])
AC_CANONICAL_TARGET
dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE(bib2x, 0.9.0)
AC_SUBST(VERSION)
ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)
#AC_CANONICAL_TARGET([])
AM_SANITY_CHECK
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
dnl AC_PROG_LEX
dnl AC_DECL_YYTEXT
dnl AC_PROG_YACC
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PATH_X
AC_PATH_XTRA
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
AC_C_CONST
AC_PROG_AWK
AC_PROG_LN_S
AC_CHECK_HEADERS([sys/timeb.h arpa/inet.h netdb.h netinet/in.h stdlib.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
AC_CHECK_FUNCS([gettimeofday])
#AC_CHECK_LIB(stdc++, cout, , AC_MSG_ERROR([WTF?]))
#AC_CHECK_LIB([ssl], [SSL_new])
dnl Checks for header files.
dnl AC_HEADER_STDC
dnl AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_CHECK_FUNCS([bzero gethostbyname gettimeofday inet_ntoa select socket])
dnl Only supported with newer autoconf
AC_FUNC_FORK
AC_ARG_ENABLE([debug],[--enable-debug enable the DEBUG flag], AC_DEFINE(_DEBUG))
AC_HEADER_STDBOOL
AC_CONFIG_FILES([Makefile \
src/Makefile \
templates/Makefile \
include/Makefile])
AC_OUTPUT