Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (56 sloc) 1.65 KB
AC_INIT([caja-image-converter], [1.2.0], [http://www.mate-desktop.org], [caja-image-converter])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
AC_DISABLE_STATIC
IT_PROG_INTLTOOL([0.35.0])
AC_PROG_LIBTOOL
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
MATE_COMPILE_WARNINGS([maximum])
MATE_CXX_WARNINGS
MATE_DEBUG_CHECK
MATE_MAINTAINER_MODE_DEFINES
AH_TEMPLATE([GETTEXT_PACKAGE], [Package name for gettext])
GETTEXT_PACKAGE=caja-image-converter
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
CAJA_REQUIRED=1.1.0
GLIB_REQUIRED=2.28.0
GTK_REQUIRED=2.12.0
PKG_CHECK_MODULES(CAJA,
[
libcaja-extension >= $CAJA_REQUIRED
gtk+-2.0 >= $GTK_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
gio-2.0 >= $GLIB_REQUIRED
])
AC_SUBST(CAJA_CFLAGS)
AC_SUBST(CAJA_LIBS)
dnl -----------------------------------------------------------
dnl Use correct caja extensions directory
dnl -----------------------------------------------------------
AC_ARG_WITH(cajadir,
AS_HELP_STRING([--with-cajadir=DIR],[Installation path for Caja extension @<:@auto@:>@]),
[ac_with_cajadir=$withval],
[ac_with_cajadir=""])
if test "${ac_with_cajadir}" = ""; then
ac_with_cajadir=`pkg-config --variable=extensiondir libcaja-extension`
fi
AC_MSG_NOTICE([installing caja plugin in ${ac_with_cajadir}])
AC_SUBST([CAJA_EXTENSION_DIR],[${ac_with_cajadir}])
AC_CONFIG_FILES([
Makefile
data/Makefile
src/Makefile
po/Makefile.in
])
AC_OUTPUT
Jump to Line
Something went wrong with that request. Please try again.