summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2011-11-17 21:32:51 +0100
committerJoel Klinghed <the_jk@yahoo.com>2011-11-17 21:32:51 +0100
commit574e9ca2bc2d2893767b14e0732cbffd07d4979a (patch)
tree291523ce96b6376d85dcdac86063351e6f6552ba /configure.ac
parent331d327671af3969e56e8019657a91ead88643d3 (diff)
autofoo & finishing touches on VIEW torrent. Interaction next time
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac54
1 files changed, 54 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..546e8e9
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,54 @@
+AC_INIT([viewtorrents], [0.1], [the_jk@yahoo.com])
+AC_CONFIG_MACRO_DIR([m4])
+
+AM_INIT_AUTOMAKE([dist-bzip2 foreign color-tests parallel-tests])
+
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+AC_ISC_POSIX
+AM_PROG_CC_STDC
+AM_PROG_CC_C_O
+AC_HEADER_STDC
+AC_C_CONST
+AC_C_INLINE
+
+# Defines
+
+DEFINES=""
+AX_CFLAGS_WARN_ALL(DEFINES)
+
+AC_ARG_ENABLE([debug], AC_HELP_STRING([compile with debug options]),
+ if test "x$enableval" = "xyes"; then
+ DEFINES="$DEFINES -g -DDEBUG"
+ fi,)
+
+AC_SUBST(DEFINES)
+
+# fabs
+
+AC_SEARCH_LIBS([fabs], [m],, AC_MSG_ERROR([No fabs found]))
+
+# GTK
+
+PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.12 glib-2.0 >= 2.28])
+
+# xmlrpc-c
+
+AC_PATH_PROG([XMLRPC_C_CONFIG], [xmlrpc-c-config])
+
+AS_IF([test -x "$XMLRPC_C_CONFIG"],
+ [
+ XMLRPC_C_VERSION=`xmlrpc-c-config --version`
+ XMLRPC_C_CFLAGS=`xmlrpc-c-config client --cflags`
+ XMLRPC_C_LIBS=`xmlrpc-c-config client --libs`
+ AS_VERSION_COMPARE([$XMLRPC_C_VERSION],[1.05],
+ [AC_MSG_ERROR([Need xmlrpc-c >= 1.05])])
+ AC_SUBST([XMLRPC_C_CFLAGS])
+ AC_SUBST([XMLRPC_C_LIBS])
+ ],
+ [AC_MSG_ERROR([Need xmlrpc-c >= 1.05])])
+
+# End
+
+AM_CONFIG_HEADER([config.h])
+AC_OUTPUT([Makefile gui/Makefile test/Makefile src/Makefile])