forked from fbs/guile-irc
-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
47 lines (37 loc) · 1.09 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
dnl -*- Autoconf -*-
AC_INIT(guile-irc, 0.2)
AC_CONFIG_SRCDIR(irc/irc.scm)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])
GUILE_PKG([3.0 2.2 2.0])
GUILE_PROGS
if $GUILE_TOOLS | grep -q compile; then
# everything cool
true
else
AC_MSG_ERROR([Guile 2.0 required.])
fi
AC_ARG_ENABLE([gnutls],
[ --enable-gnutls Turn on gnutls],
[case "${enableval}" in
yes) gnutls=true ;;
no) gnutls=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-gnutls]) ;;
esac],[gnutls=false])
AM_CONDITIONAL([GNUTLS], [test x$gnutls = xtrue])
if $GNUTLS ; then
if gnutls-cli --help | grep -qi USAGE:; then
# good, seems to be installed
true
else
AC_MSG_ERROR([GnuTLS required])
fi
fi
AC_CONFIG_FILES([Makefile] [doc/Makefile])
AC_CONFIG_FILES([env], [chmod +x env])
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
AC_CHECK_PROG(have_pdf, texi2pdf, yes, no)
AM_CONDITIONAL(HAVE_PDF, test "$have_pdf" = yes)
AC_OUTPUT