Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 150 lines (119 sloc) 4.143 kB
a6d7e94 initial import
Gian Mario Tagliaretti authored
1 AC_PREREQ(2.52)
2
3 dnl the pygoocanvas version number
4 m4_define(pygoocanvas_major_version, 0)
3c2f5f2 @gianmt === 0.14.0 ===
gianmt authored
5 m4_define(pygoocanvas_minor_version, 14)
c116368 @gianmt Post release version bump to 0.14.2
gianmt authored
6 m4_define(pygoocanvas_micro_version, 2)
a6d7e94 initial import
Gian Mario Tagliaretti authored
7 m4_define(pygoocanvas_version, pygoocanvas_major_version.pygoocanvas_minor_version.pygoocanvas_micro_version)
8
9 dnl versions of packages we require ...
e3488ec change version to 0.4 and require pygobject 2.10.1
Gian Mario Tagliaretti authored
10 m4_define(pygobject_required_version, 2.10.1)
725a0b3 bump to rev. 0.5.0 and update dependencies
Gian Mario Tagliaretti authored
11 m4_define(pygtk_required_version, 2.10.0)
3c2f5f2 @gianmt === 0.14.0 ===
gianmt authored
12 m4_define(goocanvas_required_version, 0.14)
545e89b @gianmt Require pycairo 1.8.4 since previous releases are still broken
gianmt authored
13 m4_define(pycairo_required_version, 1.8.4)
a6d7e94 initial import
Gian Mario Tagliaretti authored
14
eea057a Update docs and release 0.13.0
Gian Mario Tagliaretti authored
15 AC_INIT(pygoocanvas, pygoocanvas_version, [http://bugzilla.gnome.org/browse.cgi?product=pygoocanvas])
a6d7e94 initial import
Gian Mario Tagliaretti authored
16
17 AC_DEFINE(PYGOOCANVAS_MAJOR_VERSION, pygoocanvas_major_version, [PyGoocanvas major version])
18 AC_DEFINE(PYGOOCANVAS_MINOR_VERSION, pygoocanvas_minor_version, [PyGoocanvas minor version])
19 AC_DEFINE(PYGOOCANVAS_MICRO_VERSION, pygoocanvas_micro_version, [PyGoocanvas macro version])
20
21 AC_CONFIG_SRCDIR([./goocanvasmodule.c])
22 AM_CONFIG_HEADER(config.h)
23
24 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
25
26 dnl put the ACLOCAL flags in the makefile
27 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
28
29 AC_CANONICAL_BUILD
30 AC_CANONICAL_HOST
31 AC_MSG_CHECKING([for some Win32 platform])
32 case "$host" in
33 *-*-mingw*|*-*-cygwin*)
34 platform_win32=yes
35 ;;
36 *)
37 platform_win32=no
38 ;;
39 esac
40 AC_MSG_RESULT([$platform_win32])
41 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
42
43 AC_MSG_CHECKING([for native Win32])
44 case "$host" in
45 *-*-mingw*)
46 os_win32=yes
47 ;;
48 *)
49 os_win32=no
50 ;;
51 esac
52 AC_MSG_RESULT([$os_win32])
53 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
54
55 AC_DISABLE_STATIC
56 AC_LIBTOOL_WIN32_DLL
57 AC_PROG_LIBTOOL
58
61fd54b @gianmt Fix the build when using libtool 2.x
gianmt authored
59 dnl when using libtool 2.x create libtool early, because it's used in configure
60 m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
61 AM_PROG_CC_C_O
62
a6d7e94 initial import
Gian Mario Tagliaretti authored
63 AM_PATH_PYTHON(2.2)
64
65 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
66
88384f9 import docs infrastructure
Gian Mario Tagliaretti authored
67 dnl check pygobject path for docs xsl
68 PKG_CHECK_MODULES(PYGOBJECT, [pygobject-2.0 >= pygobject_required_version])
69
70 PYGOBJECT_INCLUDEDIR=`$PKG_CONFIG --variable=pygtkincludedir pygobject-2.0`
71 AC_SUBST(PYGOBJECT_INCLUDEDIR)
72
73 PYGOBJECT_DATADIR=`$PKG_CONFIG --variable=datadir pygobject-2.0`
74 AC_SUBST(PYGOBJECT_DATADIR)
75
76 PYGOBJECT_FIXXREF="$PYTHON `$PKG_CONFIG --variable=fixxref pygobject-2.0`"
77 AC_SUBST(PYGOBJECT_FIXXREF)
78
c436274 fix docs build and wrote more docs
Gian Mario Tagliaretti authored
79 PYGOBJECT_PYGDOCS="`$PKG_CONFIG --variable=pygdocs pygobject-2.0`"
88384f9 import docs infrastructure
Gian Mario Tagliaretti authored
80 AC_SUBST(PYGOBJECT_PYGDOCS)
81
82 dnl Building documentation
83 AC_ARG_ENABLE(docs,
84 AC_HELP_STRING([--disable-docs], [Disable documentation building]),,
85 enable_docs=yes)
86 if test "${enable_docs}" != no; then
87 dnl Check for xsltproc
88 AC_PATH_PROG([XSLTPROC], [xsltproc])
89 if test -z "$XSLTPROC"; then
90 enable_docs=no
91 fi
92 fi
93
3e36058 @gianmt Bug 582057 – test ... == ... is not portable
gianmt authored
94 if test x$enable_docs = xyes; then
ce3bd5b auto disable docs
Gustavo J. A. M. Carneiro authored
95 if ! $PKG_CONFIG "pygobject-2.0 >= 2.11.3"; then
96 AC_MSG_WARN([pygobject-2.0 < 2.11.3; disabling generation of docs])
97 enable_docs=no
98 fi
99 fi
100
88384f9 import docs infrastructure
Gian Mario Tagliaretti authored
101 AM_CONDITIONAL(ENABLE_DOCS, test x$enable_docs != xno)
102
a6d7e94 initial import
Gian Mario Tagliaretti authored
103 dnl get rid of the -export-dynamic stuff from the configure flags ...
104 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
105
106 dnl pygtk
72595da Correct a couple of include paths.
Gustavo J. A. M. Carneiro authored
107 PKG_CHECK_MODULES(PYGOOCANVAS, [ dnl
108 pygtk-2.0 >= pygtk_required_version,
109 goocanvas >= goocanvas_required_version,
110 pycairo >= pycairo_required_version
111 ])
8078392 fix compilation on Solaris, patch by JerryYu. Fixes LP#130106
Gian Mario Tagliaretti authored
112 if test -n "$export_dynamic"; then
113 PYGOOCANVAS_LIBS=`echo $PYGOOCANVAS_LIBS | sed -e "s/$export_dynamic//"`
114 fi
72595da Correct a couple of include paths.
Gustavo J. A. M. Carneiro authored
115 PYGTK_DATADIR=`pkg-config --variable=datadir pygtk-2.0`
116
a6d7e94 initial import
Gian Mario Tagliaretti authored
117 AC_SUBST(PYGTK_CFLAGS)
118 AC_SUBST(PYGTK_LIBS)
119 AC_SUBST(PYGTK_DATADIR)
120
121
122 dnl codegen
72595da Correct a couple of include paths.
Gustavo J. A. M. Carneiro authored
123 AC_MSG_CHECKING(for pygtk codegen)
124 CODEGENDIR=`pkg-config --variable=codegendir pygtk-2.0`
a6d7e94 initial import
Gian Mario Tagliaretti authored
125 if test -f $CODEGENDIR/codegen.py; then
126 CODEGEN=$CODEGENDIR/codegen.py
127 AC_MSG_RESULT(yes)
128 else
129 AC_MSG_RESULT(no)
c90cfc6 @gianmt Fix a segfault due to a change in PyCairo API
gianmt authored
130 AC_MSG_ERROR([Error: codegen not found (should be shipped with pygobject!)])
a6d7e94 initial import
Gian Mario Tagliaretti authored
131 fi
132 AC_SUBST(CODEGEN)
133
5cf47a0 Add compiler flags -Wall -std=c9x and -fno-strict-aliasing, if supported
Gustavo J. A. M. Carneiro authored
134 JH_ADD_CFLAG([-Wall])
135 JH_ADD_CFLAG([-std=c9x])
136 JH_ADD_CFLAG([-fno-strict-aliasing])
a6d7e94 initial import
Gian Mario Tagliaretti authored
137
138 dnl output
139 AC_CONFIG_FILES(
140 Makefile
65cdbcd add a python port of simple-demo from goocanvas
Gustavo J. A. M. Carneiro authored
141 demo/Makefile
88384f9 import docs infrastructure
Gian Mario Tagliaretti authored
142 docs/Makefile
143 docs/reference/entities.docbook
4f2d0d8 Install a .pc file
Gustavo J. A. M. Carneiro authored
144 pygoocanvas.pc
a6d7e94 initial import
Gian Mario Tagliaretti authored
145 )
146
147 GTK_DOC_CHECK(1.4)
148
149 AC_OUTPUT
Something went wrong with that request. Please try again.