-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
48 lines (39 loc) · 1 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
AC_INIT(src/NDesk.Options/NDesk.Options/Options.cs)
AC_PREREQ(2.13)
VERSION=0.2.1
AM_INIT_AUTOMAKE(ndesk-options, $VERSION)
AM_MAINTAINER_MODE
AC_PROG_INSTALL
MONO_REQ_VERSION=1.9
AC_PATH_PROG(MCS, gmcs)
AC_PATH_PROG(MONO, mono)
AC_PATH_PROG(MDASSEMBLER, mdassembler)
AC_PATH_PROG(MONODOCER, monodocer)
enable_monodoc=yes
if test "x$MCS" = "x" ; then
AC_MSG_ERROR([Can't find "gmcs" in your PATH])
fi
if test "x$MONO" = "x" ; then
AC_MSG_ERROR([Can't find "mono" in your PATH])
fi
if test "x$MDASSEMBLER" = "x" ; then
enable_monodoc=no
fi
if test "x$MONODOCER" = "x" ; then
enable_monodoc=no
fi
AC_SUBST(MDASSEMBLER)
AC_SUBST(MONODOCER)
AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes")
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno" ; then
AC_MSG_ERROR([You need to install pkg-config])
fi
AC_SUBST(PKG_CONFIG)
PKG_CHECK_MODULES(MONO, mono >= $MONO_REQ_VERSION)
AC_OUTPUT([
Makefile
ndesk-options.spec
lib/pkgconfig/ndesk-options.pc
src/NDesk.Options/AssemblyInfo.cs
])