-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
65 lines (55 loc) · 2.2 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
AC_INIT([mincrypt], [0.0.4], [[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
LT_INIT
AC_PROG_CC
AM_PROG_CC_C_O
AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([You need libm to compile this utility]))
AC_CHECK_TOOL([MKDIR], [mkdir])
AC_CHECK_TOOL([ECHO], [echo])
AC_CHECK_TOOL([RM], [rm])
AC_CHECK_TOOL([CP], [cp])
AC_CHECK_TOOL([PHPCONFIG], [php-config])
AC_CHECK_TOOL([RPMBUILD], [rpmbuild])
AC_CHECK_TOOL([MINGW32], [i686-pc-mingw32-gcc])
AC_CHECK_TOOL([WX_CPP], [g++])
AC_CHECK_TOOL([WXCONFIG], [wx-config])
dnl Specific XML catalog file for validation of generated html
AC_ARG_WITH([xml-catalog-file],
[AC_HELP_STRING([--with-xml-catalog-file=path],
[path to XML catalog file for validating
generated html, default /etc/xml/catalog])],
[XML_CATALOG_FILE=$withval],
[XML_CATALOG_FILE='/etc/xml/catalog'])
AC_SUBST([XML_CATALOG_FILE])
# External programs to generate documentation
AC_PATH_PROG([XSLTPROC], [xsltproc], [no])
if test "x$XSLTPROC" = "xno"; then
AC_MSG_ERROR([xsltproc not found])
fi
AC_PATH_PROG([XMLLINT], [xmllint], [no])
if test "x$XMLLINT" = "xno"; then
AC_MSG_ERROR([xmllint not found])
fi
AC_PATH_PROG([XMLCATALOG], [xmlcatalog], [no])
if test "x$XMLCATALOG" = "xno"; then
AC_MSG_ERROR([xmlcatalog not found])
fi
if test "x$WXCONFIG" = "x"; then
WX_CPP=
AC_SUBST([WX_CPP])
fi
dnl Specific dir for HTML output ?
AC_ARG_WITH([html-dir], [AC_HELP_STRING([--with-html-dir=path],
[path to base html directory, default $datadir/doc/html])],
[HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc'])
AC_ARG_WITH([html-subdir], [AC_HELP_STRING([--with-html-subdir=path],
[directory used under html-dir, default $PACKAGE-$VERSION/html])],
[test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"],
[HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"])
AC_SUBST([HTML_DIR])
AC_CONFIG_HEADERS([config.h])
#AC_CONFIG_FILES([Makefile docs/Makefile src/Makefile windows/Makefile php/Makefile tests/Makefile examples/Makefile tools/Makefile])
AC_CONFIG_FILES([Makefile src/Makefile windows/Makefile php/Makefile tests/Makefile])
AC_OUTPUT
LT_OUTPUT