summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-02-01 14:53:19 -0800
committerBen Widawsky <ben@bwidawsk.net>2013-02-07 16:42:18 -0800
commit508b5ce9a5e39a0fa78b2cf0e3706a53cb066bc6 (patch)
tree38e7cbe7eca2bc3740414c26c483502c6fc41691 /configure.ac
parentebc918601ed3239f61d7d5c4d28e8c768422652a (diff)
configure.ac: Add swig dependency
As far as I can tell (and recommended to me by Matt) taking these m4 extension macros from http://www.gnu.org/software/autoconf-archive/ doesn't require the project distribute GPL. I am a bit confused from reading the license. I'd really hope someone can comment. The only other solution would be to roll my on m4 macros, or figure out a way to check that this autoconf-archive package is included from the configure.ac. Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 15b0f88b6915..b8e34d34c5e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,11 @@ AC_CHECK_FUNCS([asprintf])
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
+# SWIG configuration
+AX_PKG_SWIG(2.0.0, [], [ AC_MSG_ERROR([SWIG 2.0.0 or higher is required to build..]) ])
+AX_PYTHON_DEVEL([>= '3.0'])
+AX_SWIG_PYTHON
+
# Require X.Org macros 1.16 or later for XORG_TESTSET_CFLAG
m4_ifndef([XORG_MACROS_VERSION],
[m4_fatal([must install xorg-macros 1.16 or later before running autoconf/autogen])])