pandora-build v0.45
[awesomized/libmemcached] / m4 / pandora_swig.m4
1 dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2 dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3 dnl
4 dnl pandora-build: A pedantic build system
5 dnl Copyright (C) 2009 Sun Microsystems, Inc.
6 dnl This file is free software; the Free Software Foundation
7 dnl gives unlimited permission to copy and/or distribute it,
8 dnl with or without modifications, as long as this notice is preserved.
9 dnl
10 dnl From Monty Taylor
11
12 AC_DEFUN([PANDORA_SWIG],[
13
14 AC_PROG_SWIG(1.3.36)
15 AC_DEFINE([SWIG_TYPE_TABLE],
16 [libgearman],
17 [Type Table name for SWIG symbol table])
18
19 dnl Have to hard-code /usr/local/include and /usr/include into the path.
20 dnl I hate this. Why is swig sucking me
21 SWIG="$SWIG \${DEFS} -I\${top_srcdir} -I\${top_builddir} -I/usr/local/include -I/usr/include"
22 AC_SUBST([SWIG])
23
24
25 AC_CACHE_CHECK([if swig supports Python3],
26 [ac_cv_swig_has_python3_],
27 [
28 AS_IF([swig -python3 2>&1 | grep "Unable to find" > /dev/null],
29 [ac_cv_swig_has_python3_=no],
30 [ac_cv_swig_has_python3_=yes])
31 ])
32 ])