1 dnl Process this file with autoconf to produce a configure script.
5 dnl Name your plug-in here
6 m4_define([plugin_name], [gimp-lqr-plugin])
8 dnl These three define the plug-in version number
9 m4_define([plugin_major_version], [0])
10 m4_define([plugin_minor_version], [8])
11 m4_define([plugin_micro_version], [0git])
13 m4_define([plugin_version],
14 [plugin_major_version.plugin_minor_version.plugin_micro_version])
16 AC_INIT([plugin_name], [plugin_version])
18 AC_DEFINE(PLUGIN_NAME, PACKAGE_NAME, [Plug-In name])
19 AC_DEFINE(PLUGIN_VERSION, PACKAGE_VERSION, [Plug-In version])
21 AC_DEFINE(PLUGIN_MAJOR_VERSION, plugin_major_version, [Plug-In major version])
22 AC_DEFINE(PLUGIN_MINOR_VERSION, plugin_minor_version, [Plug-In minor version])
23 AC_DEFINE(PLUGIN_MICRO_VERSION, plugin_micro_version, [Plug-In micro version])
25 AC_CONFIG_SRCDIR([src/main.c])
26 dnl AC_CONFIG_SRCDIR([gap/plug_in_lqr_iter.c])
27 AM_CONFIG_HEADER(config.h)
29 AM_INIT_AUTOMAKE(no-define)
37 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
42 dnl Use -Wall if we have gcc.
44 if test "x$GCC" = "xyes"; then
46 *[\ \ ]-Wall[\ \ ]*) ;;
47 *) CFLAGS="$CFLAGS -Wall" ;;
53 GIMP_REQUIRED_VERSION=2.8.0
55 PKG_CHECK_MODULES(GIMP,
56 gimp-2.0 >= $GIMP_REQUIRED_VERSION gimpui-2.0 >= $GIMP_REQUIRED_VERSION)
61 GIMP_LIBDIR=`$PKG_CONFIG --variable=gimplibdir gimp-2.0`
64 GIMP_DATADIR=`$PKG_CONFIG --variable=gimpdatadir gimp-2.0`
65 AC_SUBST(GIMP_DATADIR)
67 LQR_REQUIRED_VERSION=0.4.0
69 PKG_CHECK_MODULES(LQR,
70 lqr-1 >= $LQR_REQUIRED_VERSION)
72 dnl LQR_CFLAGS=`$PKG_CONFIG --cflags lqr-1`
75 dnl LQR_LIBS=`$PKG_CONFIG --libs lqr-1`
78 LQR_LIBDIR=`$PKG_CONFIG --variable=libdir lqr-1`
85 GETTEXT_PACKAGE=gimp20-lqr-plugin
86 AC_SUBST(GETTEXT_PACKAGE)
87 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
88 [The gettext translation domain.])
90 dnl Add the languages which your application supports here.
91 ALL_LINGUAS="it fr ru pt_BR de eu_ES zh_CN es_AR hu ro_RO sr es_ES nb_NO zh_TW"
96 AC_CHECK_FUNCS(bind_textdomain_codeset)
98 LOCALEDIR="${datadir}/locale"
99 if test "$DATADIRNAME" = "lib"; then
100 LOCALEDIR="$libdir/locale"
104 PLUGIN_DATADIR="${datadir}/plugin_name"
105 AC_SUBST(PLUGIN_DATADIR)
107 SCRIPTSDIR="${GIMP_DATADIR}/scripts"
110 AC_MSG_CHECKING([if GTK+ is version 2.12.0 or newer])
111 if $PKG_CONFIG --atleast-version=2.12.0 gtk+-2.0; then
116 AC_MSG_RESULT($have_gtk_2_12)
118 if test "x$have_gtk_2_12" != "xyes"; then
119 CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
122 AC_MSG_CHECKING([if GIMP is version 2.8.0 or newer])
123 if $PKG_CONFIG --atleast-version=2.8.0 gimp-2.0; then
128 AC_MSG_RESULT($have_gimp_2_8)
130 if test "x$have_gimp_2_8" != "xyes"; then
131 CPPFLAGS="$CPPFLAGS -DGIMP_DISABLE_DEPRECATED"
134 AC_MSG_CHECKING([if we are on Win32])
140 ]], is_win32=yes, is_win32=no)
141 if test "x$is_win32" = "xyes"; then
144 LDFLAGS="$LDFLAGS -mwindows"
157 help/en/images/Makefile
159 help/it/images/Makefile
161 help/ru/images/Makefile