File: geanypy.m4

package info (click to toggle)
geany-plugins 1.24%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,532 kB
  • ctags: 10,926
  • sloc: ansic: 89,639; sh: 11,434; python: 1,365; makefile: 1,302
file content (29 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AC_DEFUN([GP_CHECK_GEANYPY],
[
    GP_ARG_DISABLE([Geanypy], [auto])
    GP_CHECK_PLUGIN_GTK2_ONLY([Geanypy])
    GP_CHECK_PLUGIN_DEPS([Geanypy], [PYGTK], [pygtk-2.0])
    GP_CHECK_PLUGIN_DEPS([Geanypy], [GMODULE], [gmodule-2.0])
    dnl FIXME: Checks for Python below should gracefully disable the plugin
    dnl        if they don't succeed and enable_geanypy is set to `auto`.
    dnl        However, since these macros don't seem to gracefully handle
    dnl        failure, and since if PyGTK is found they are likely to succeed
    dnl        anyway, we assume that if the plugin is not disabled at this
    dnl        point it is OK for these checks to be fatal.  The user can pass
    dnl        always pass --disable-geanypy anyway.
    AS_IF([! test x$enable_geanypy = xno], [
        AX_PYTHON_DEVEL([>= '2.6'])
        AX_PYTHON_LIBRARY(,[AC_MSG_ERROR([Cannot find Python library])])
        AC_SUBST([PYTHON])
        AC_DEFINE_UNQUOTED([GEANYPY_PYTHON_LIBRARY],
                           ["$PYTHON_LIBRARY"],
                           [Location of Python library to dlopen()])
    ])
    GP_COMMIT_PLUGIN_STATUS([Geanypy])
    AC_CONFIG_FILES([
        geanypy/Makefile
        geanypy/src/Makefile
        geanypy/geany/Makefile
        geanypy/plugins/Makefile
    ])
])