-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
86 lines (69 loc) · 2.13 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
75
76
77
78
79
80
81
82
83
84
85
86
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT(platform, 0.5, [email protected])
AC_CONFIG_SRCDIR([src/database.cpp])
AC_ARG_ENABLE(doxygen-docs,
AS_HELP_STRING([--enable-doxygen-docs],
[build DOXYGEN documentation (requires Doxygen)]),
[enable_doxygen_docs=$enableval],
[enable_doxygen_docs=no]
)
AM_INIT_AUTOMAKE(platform, 0.5)
# Checks for programs.
AC_PROG_AWK
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_MKDIR_P
# DX_INIT_DOXYGEN(platform, doc/Doxyfile, doc)
# Checks for libraries.
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)
# Checks for header files.
AC_HEADER_STDC
# Checks for header files.
# AC_CHECK_HEADER([sqlite3.h],[],[AC_ERROR([SQlite3 engine not installed. Install SQlite3.])])
# AC_CHECK_HEADER([cc++/common.h],[],[AC_ERROR([GNU Telephony project commoncpp not installed. Install commoncpp.])])
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([commoncpp], [libccgnu2 libccext2])
PKG_CHECK_MODULES([sqlite], [sqlite3])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
# Checks for doxygen
AC_PATH_PROG(DOXYGEN, doxygen, no)
AC_MSG_CHECKING([whether to build Doxygen documentation])
if test "$DOXYGEN" = "no" ; then
have_doxygen=no
else
have_doxygen=yes
fi
if test "$enable_doxygen_docs" = "auto" ; then
enable_doxygen_docs=no
AC_MSG_RESULT(no)
fi
if test "$enable_doxygen_docs" = "yes" ; then
if test "$have_doxygen" = "no"; then
AC_MSG_ERROR([Building Doxygen docs explicitly required, but Doxygen not found])
fi
AC_MSG_RESULT(yes)
fi
AM_CONDITIONAL(DOXYGEN_DOCS_ENABLED, test "$enable_doxygen_docs" = "yes")
# Checks for library functions.
AC_CONFIG_FILES([Makefile
osx/Makefile
sqlite3x/Makefile
src/Makefile
tests/Makefile
demos/Makefile
doc/Doxyfile
doc/Makefile])
AC_OUTPUT