~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
9415
9415
AC_SUBST([am__untar])
9416
9416
]) # _AM_PROG_TAR
9417
9417
 
9418
 
m4_include([m4/jhflags.m4])
9419
 
m4_include([m4/python.m4])
 
9418
dnl
 
9419
dnl JH_ADD_CFLAG(FLAG)
 
9420
dnl checks whether the C compiler supports the given flag, and if so, adds
 
9421
dnl it to $CFLAGS.  If the flag is already present in the list, then the
 
9422
dnl check is not performed.
 
9423
AC_DEFUN([JH_ADD_CFLAG],
 
9424
[
 
9425
case " $CFLAGS " in
 
9426
*@<:@\  \ @:>@$1@<:@\   \ @:>@*)
 
9427
  ;;
 
9428
*)
 
9429
  save_CFLAGS="$CFLAGS"
 
9430
  CFLAGS="$CFLAGS $1"
 
9431
  AC_MSG_CHECKING([whether [$]CC understands $1])
 
9432
  AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no])
 
9433
  AC_MSG_RESULT($jh_has_option)
 
9434
  if test $jh_has_option = no; then
 
9435
    CFLAGS="$save_CFLAGS"
 
9436
  fi
 
9437
  ;;
 
9438
esac])
 
9439
 
 
9440
dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
 
9441
dnl Check if a module containing a given symbol is visible to python.
 
9442
AC_DEFUN([AM_CHECK_PYMOD],
 
9443
[AC_REQUIRE([AM_PATH_PYTHON])
 
9444
py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
 
9445
AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
 
9446
AC_CACHE_VAL(py_cv_mod_$py_mod_var, [
 
9447
ifelse([$2],[], [prog="
 
9448
import sys
 
9449
try:
 
9450
        import $1
 
9451
except ImportError:
 
9452
        sys.exit(1)
 
9453
except:
 
9454
        sys.exit(0)
 
9455
sys.exit(0)"], [prog="
 
9456
import $1
 
9457
$1.$2"])
 
9458
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
 
9459
  then
 
9460
    eval "py_cv_mod_$py_mod_var=yes"
 
9461
  else
 
9462
    eval "py_cv_mod_$py_mod_var=no"
 
9463
  fi
 
9464
])
 
9465
py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
 
9466
if test "x$py_val" != xno; then
 
9467
  AC_MSG_RESULT(yes)
 
9468
  ifelse([$3], [],, [$3
 
9469
])dnl
 
9470
else
 
9471
  AC_MSG_RESULT(no)
 
9472
  ifelse([$4], [],, [$4
 
9473
])dnl
 
9474
fi
 
9475
])
 
9476
 
 
9477
dnl a macro to check for ability to create python extensions
 
9478
dnl  AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
 
9479
dnl function also defines PYTHON_INCLUDES
 
9480
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
 
9481
[AC_REQUIRE([AM_PATH_PYTHON])
 
9482
AC_MSG_CHECKING(for headers required to compile python extensions)
 
9483
dnl deduce PYTHON_INCLUDES
 
9484
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 
9485
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
 
9486
if test -x "$PYTHON-config"; then
 
9487
PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
 
9488
else
 
9489
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
 
9490
if test "$py_prefix" != "$py_exec_prefix"; then
 
9491
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
 
9492
fi
 
9493
fi
 
9494
AC_SUBST(PYTHON_INCLUDES)
 
9495
dnl check if the headers exist:
 
9496
save_CPPFLAGS="$CPPFLAGS"
 
9497
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
 
9498
AC_TRY_CPP([#include <Python.h>],dnl
 
9499
[AC_MSG_RESULT(found)
 
9500
$1],dnl
 
9501
[AC_MSG_RESULT(not found)
 
9502
$2])
 
9503
CPPFLAGS="$save_CPPFLAGS"
 
9504
])
 
9505