This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
/
configure.ac
101 lines (81 loc) · 2.36 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
AC_INIT([Mono.Zeroconf], [0.9.0])
AC_CANONICAL_SYSTEM
AC_PREREQ(2.13)
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar dist-zip])
AM_MAINTAINER_MODE
API_VERSION="4.0.0.90"
POLICY_VERSIONS="1.0 2.0 3.0 4.0"
AC_SUBST(API_VERSION)
AC_SUBST(POLICY_VERSIONS)
DISTCHECK_CONFIGURE_FLAGS="--disable-docs"
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
AC_PROG_INSTALL
SHAMROCK_CHECK_MONO_MODULE(1.1.10)
SHAMROCK_FIND_MONO_2_0_COMPILER
SHAMROCK_FIND_MONO_RUNTIME
SHAMROCK_CHECK_MONODOC
SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([
System
System.Web
])
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno"; then
AC_MSG_ERROR([You need to install gacutil])
fi
AC_PATH_PROG(AL, al2, no)
if test "x$AL" = "xno" ; then
AC_MSG_ERROR([You need to install al])
fi
GACUTIL_FLAGS='-package $(PACKAGE) -root $(DESTDIR)$(prefix)/lib'
GACUTIL_POLICY_FLAGS='-root $(DESTDIR)$(prefix)/lib'
AC_SUBST(GACUTIL_FLAGS)
AC_SUBST(GACUTIL_POLICY_FLAGS)
AC_ARG_ENABLE(avahi, AC_HELP_STRING([--disable-avahi],
[Do not build with Avahi support]), , enable_avahi=yes)
if test "x$enable_avahi" = "xyes"; then
AVAHI_LIBS="-r:Mono.Posix"
AC_SUBST(AVAHI_LIBS)
AM_CONDITIONAL(BUILD_AVAHI, true)
else
AC_MSG_NOTICE([not building Avahi support])
AM_CONDITIONAL(BUILD_AVAHI, false)
fi
AC_ARG_ENABLE(mdnsresponder, AC_HELP_STRING([--disable-mdnsresponder],
[Do not build with mDNSResponder support]), , enable_mdnsresponder=yes)
AM_CONDITIONAL(BUILD_MDNSRESPONDER, test "x$enable_mdnsresponder" = "xyes")
case ${host} in
*-*-darwin*)
mdns_target_library="libc"
;;
*)
mdns_target_library="libnss_mdns-0.2.so"
;;
esac
AC_SUBST(mdns_target_library)
SHAMROCK_EXPAND_LIBDIR
AC_OUTPUT([
Makefile
src/Makefile
src/policy.config
src/mono-zeroconf.pc
src/Mono.Zeroconf/Makefile
src/Mono.Zeroconf.Providers.Bonjour/Makefile
src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour.dll.config
src/Mono.Zeroconf.Providers.Avahi/Makefile
src/Mono.Zeroconf.Providers.AvahiDBus/Makefile
src/MZClient/Makefile
src/MZClient/mzclient
docs/Makefile
])
echo "
Installation Prefix: ${prefix}
C# Compiler: ${MCS}
Host Platform: ${host}
Avahi Support: ${enable_avahi}
mDNSResponder Support: ${enable_mdnsresponder}"
if test "x${enable_mdnsresponder}" = "xyes"; then
echo " Target Library: ${mdns_target_library}"
fi
echo "
Developer Documentation: ${enable_docs}
"