~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_swig.m4

  • Committer: Jay Pipes
  • Date: 2009-08-25 12:56:22 UTC
  • mfrom: (1093.9.25 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1125.
  • Revision ID: jpipes@serialcoder-20090825125622-sxxkax9mw5bn98y5
Merging pandora build fixes with support for automake 1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
AC_DEFUN([PANDORA_SWIG],[
13
13
 
14
 
  AC_PROG_SWIG(1.3.36)
15
 
  AC_DEFINE([SWIG_TYPE_TABLE],
16
 
    [libgearman],
 
14
  AC_PROG_SWIG(1.3.31)
 
15
  
 
16
  AC_DEFINE_UNQUOTED([SWIG_TYPE_TABLE],
 
17
    [$PACKAGE],
17
18
    [Type Table name for SWIG symbol table])
18
19
 
19
20
  dnl Have to hard-code /usr/local/include and /usr/include into the path.
22
23
  AC_SUBST([SWIG])
23
24
 
24
25
 
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
 
    ])
 
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
  ])
32
39
])