1 # configure script for pywebkitgtk
3 # Version numbers. This follows the upstream WebKit versioning
4 # If there is a discrepancy, please file a defect report against pywebkitgtk
5 m4_define([pywebkitgtk_major_version], [1])
6 m4_define([pywebkitgtk_minor_version], [0])
7 m4_define([pywebkitgtk_micro_version], [2])
8 m4_define([pywebkitgtk_version],
9 [pywebkitgtk_major_version.pywebkitgtk_minor_version.pywebkitgtk_micro_version])
11 # Set some build info. Right now it's a string and datetime
12 # format: snapshot-yymmdd
13 m4_define(pywebkitgtk_build_info, [0.9])
15 AC_INIT([pywebkitgtk],
16 [pywebkitgtk_version-pywebkitgtk_build_info],
17 [http://code.google.com/p/pywebkitgtk/issues])
20 AC_CONFIG_MACRO_DIR([m4])
21 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I .")
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_HEADERS([config.h])
26 AC_DEFINE_UNQUOTED(PYWEBKITGTK_VERSION, pywebkitgtk_version,
27 [The release version of Python WebKit Gtk+])
28 AC_DEFINE_UNQUOTED(PYWEBKITGTK_MAJOR_VERSION, pywebkitgtk_major_version,
29 [The major version of Python WebKit Gtk+.])
30 AC_DEFINE_UNQUOTED(PYWEBKITGTK_MINOR_VERSION, pywebkitgtk_minor_version,
31 [The minor version of Python WebKit Gtk+.])
32 AC_DEFINE_UNQUOTED(PYWEBKITGTK_MICRO_VERSION, pywebkitgtk_micro_version,
33 [The micro version of Python WebKit Gtk+.])
35 AM_INIT_AUTOMAKE([foreign subdir-objects])
42 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
44 dnl from pygtk: get rid of -export-dynamic stuff from the configure flags...
45 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
47 dnl check for dependencies
48 dnl Check for libxslt until upstream WebKit checks for it as this is a webkit
49 dnl dep and not pywebkitgtk's.
50 PKG_CHECK_MODULES(DEPS,
56 AC_SUBST(DEPS_CPPFLAGS)
59 AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
60 if test "x$PYGTK_CODEGEN" = xno; then
61 AC_MSG_ERROR(could not find pygtk-codegen-2.0 script)
64 dnl check for pygtk defsdir
65 AC_MSG_CHECKING(for pygtk defs)
66 PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
67 AC_SUBST(PYGTK_DEFSDIR)
68 AC_MSG_RESULT($PYGTK_DEFSDIR)
73 pywebkitgtk-1.0.pc:pywebkitgtk.pc.in