~ubuntu-branches/ubuntu/maverick/drizzle/maverick

« back to all changes in this revision

Viewing changes to m4/pandora_swig.m4

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-jcrxh2jg4n9d93hw
Tags: 2010.03.1347-1
* New upstream release.
* Added information_schema result files into include-binaries.
* Added lintian-overrides. Upstream does not provide a changelog.
* Initial packaging (Closes: #492822)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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; Sun Microsystem
 
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.31)
 
15
  
 
16
  AC_DEFINE_UNQUOTED([SWIG_TYPE_TABLE],
 
17
    [$PACKAGE],
 
18
    [Type Table name for SWIG symbol table])
 
19
 
 
20
  dnl Have to hard-code /usr/local/include and /usr/include into the path.
 
21
  dnl I hate this. Why is swig sucking me
 
22
  SWIG="$SWIG \${DEFS} -I\${top_srcdir} -I\${top_builddir} -I/usr/local/include -I/usr/include"
 
23
  AC_SUBST([SWIG])
 
24
 
 
25
 
 
26
])
 
27
 
 
28
AC_DEFUN([PANDORA_SWIG_PYTHON3],[
 
29
  AC_REQUIRE([PANDORA_SWIG])
 
30
  AS_IF([test "x$SWIG" != "x"],[
 
31
    AC_CACHE_CHECK([if swig supports Python3],
 
32
      [ac_cv_swig_has_python3_],
 
33
      [
 
34
        AS_IF([$SWIG -python -help 2>&1 | grep py3 > /dev/null],
 
35
          [ac_cv_swig_has_python3_=yes],
 
36
          [ac_cv_swig_has_python3_=no])
 
37
      ])
 
38
  ])
 
39
])