1 AC_INIT(tf4mono, [0.5.0])
3 # disable this experimental stuff for now
4 PKG_CHECK_EXISTS(glade-sharp-2.0, HAVE_GLADE=no, HAVE_GLADE=no)
5 PKG_CHECK_EXISTS(monodevelop, HAVE_MD=no, HAVE_MD=no)
8 AC_CHECK_PROG(ASCIIDOC, [asciidoc], yes)
9 AC_CHECK_PROG(XMLTO, [xmlto], yes)
11 if test "x$ASCIIDOC" = "xyes"; then
12 if test "x$XMLTO" = "xyes"; then
17 AC_ARG_ENABLE(keyring,
18 [ --disable-keyring disable gnome keyring support],
19 HAVE_GNOME_KEYRING=no,
20 PKG_CHECK_EXISTS(gnome-keyring-sharp, HAVE_GNOME_KEYRING=yes, HAVE_GNOME_KEYRING=no)
24 [ --with-mslibs=<dir> location of Microsoft's Team Foundation Assemblies],
29 MONO_VERSION=`pkg-config --modversion mono`
30 MD_LIBPATH=`pkg-config monodevelop --variable libdir`
35 [ --disable-magic disable libmagic file attributes],
39 if test "x$HAVE_MAGIC" = "xmaybe"; then
40 AC_CHECK_LIB(magic, magic_open, HAVE_MAGIC=yes, HAVE_MAGIC=no)
43 if test "x$prefix" = "xNONE"; then
47 # assume on windows for now
48 if test "x$MONO_VERSION" = "x"; then
52 echo "prefix=$prefix" > build/config.make
53 echo "exec_prefix=\${prefix}" >> build/config.make
54 echo "mono_libdir=\${exec_prefix}/lib" >> build/config.make
55 echo "RUNTIME=mono" >> build/config.make
56 echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> build/config.make
57 echo "MONO_VERSION=$MONO_VERSION" >> build/config.make
58 echo "MONODEVELOP_LIBPATH=$MD_LIBPATH" >> build/config.make
59 echo "MCS_FLAGS=-debug+" >> build/config.make
60 echo "HAVE_GLADE=$HAVE_GLADE" >> build/config.make
61 echo "HAVE_MAGIC=$HAVE_MAGIC" >> build/config.make
62 echo "HAVE_MONODEVELOP=$HAVE_MD" >> build/config.make
63 echo "HAVE_GNOME_KEYRING=$HAVE_GNOME_KEYRING" >> build/config.make
64 echo "HAVE_DOC_TOOLS=$HAVE_DOC_TOOLS" >> build/config.make
65 echo "HAVE_MSLIBS=$HAVE_MSLIBS" >> build/config.make
74 echo "Configuration Summary"
75 echo "----------------------------------"
77 echo " File Type Support: " $HAVE_MAGIC
78 echo " Man Page Generation: " $HAVE_DOC_TOOLS
79 echo " Gnome Keyring Support: " $HAVE_GNOME_KEYRING
80 echo " Gui Support: " $HAVE_GLADE
81 echo " Monodevelop Addin: " $HAVE_MD
84 if test "x$HAVE_MAGIC" = "xno"; then
85 echo Note: Team Foundation does not natively track file attributes.
86 echo Install libmagic for automagic file attribute support.
90 if test "x$HAVE_DOC_TOOLS" = "xno"; then
91 echo Note: install asciidoc and xmlto for man page generation.