Running history modifying tests
[tfs.git] / configure.in
blob967ab64e217646815660062fb7e561635393b1d7
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)
7 HAVE_DOC_TOOLS=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 
13          HAVE_DOC_TOOLS=yes
14   fi
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)
23 AC_ARG_WITH(mslibs, 
24         [  --with-mslibs=<dir>     location of Microsoft's Team Foundation Assemblies],
25         HAVE_MSLIBS=$withval,
26         HAVE_MSLIBS=no
29 MONO_VERSION=`pkg-config --modversion mono`
30 MD_LIBPATH=`pkg-config monodevelop --variable libdir`
32 HAVE_MAGIC=maybe
34 AC_ARG_ENABLE(magic, 
35         [  --disable-magic         disable libmagic file attributes],
36         HAVE_MAGIC=no,
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 
44          prefix=/usr/local
47 # assume on windows for now
48 if test "x$MONO_VERSION" = "x"; then 
49          MONO_VERSION=csc-2.0
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
67 AC_CONFIG_FILES([
68   tools/tf/tf.sh
71 AC_OUTPUT
73 echo
74 echo "Configuration Summary"
75 echo "----------------------------------"
76 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
82 echo
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.
87   echo
90 if test "x$HAVE_DOC_TOOLS" = "xno"; then
91   echo Note: install asciidoc and xmlto for man page generation.
92         echo