summaryrefslogtreecommitdiffabout
path: root/configure.ac
Unidiff
Diffstat (limited to 'configure.ac') (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac55
1 files changed, 55 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..040b9cf
--- a/dev/null
+++ b/configure.ac
@@ -0,0 +1,55 @@
1AC_INIT([midillo], [0.0], [midillo-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/midillo/SMF.h])
3AC_CONFIG_HEADERS([config.h])
4AM_INIT_AUTOMAKE([dist-bzip2])
5
6AC_PROG_INSTALL
7AC_PROG_AWK
8AC_PROG_CXX
9AC_PROG_CC
10AC_PROG_LIBTOOL
11
12AC_HEADER_STDC
13AC_CHECK_HEADERS([sys/types.h sys/stat.h])
14AC_CHECK_DECLS([environ],,,[
15 #include <unistd.h>
16])
17
18AC_C_CONST
19
20AC_FUNC_MALLOC
21AC_FUNC_REALLOC
22
23AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
24
25AC_WITH_PKGCONFIG
26
27PKG_CHECK_MODULES([KONFORKA],[konforka],,[
28 AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/])
29])
30
31WANT_DOXYGEN="yes"
32AC_ARG_ENABLE([doxygen],
33 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
34 [
35 test "${enableval}" = "no" && WANT_DOXYGEN="no"
36 ]
37)
38if test "${WANT_DOXYGEN}" = "yes" ; then
39 AC_WITH_DOXYGEN
40 AC_WITH_DOT
41else
42 AM_CONDITIONAL([HAVE_DOXYGEN],[false])
43 AM_CONDITIONAL([HAVE_DOT],[false])
44fi
45
46AC_CONFIG_FILES([
47 Makefile
48 midillo.pc
49 Doxyfile
50 include/Makefile
51 lib/Makefile
52 tools/Makefile
53 man/Makefile
54])
55AC_OUTPUT