2013-10-11 23:07:35 +00:00
|
|
|
|
|
|
|
AC_INIT([hedera], [1.0])
|
2013-10-14 12:08:06 +00:00
|
|
|
dnl Set compiler flags empty by default
|
|
|
|
: ${CFLAGS=''}
|
2013-10-11 23:07:35 +00:00
|
|
|
|
|
|
|
AC_CONFIG_AUX_DIR([build])
|
|
|
|
AC_CONFIG_MACRO_DIR([build/m4])
|
|
|
|
AC_CONFIG_HEADERS([build/config.h])
|
|
|
|
LT_INIT([dlopen])
|
|
|
|
AC_PREREQ([2.69])
|
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
2013-10-14 12:08:06 +00:00
|
|
|
# Checks for the C compiler
|
2013-10-11 23:07:35 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
|
2013-10-14 12:08:06 +00:00
|
|
|
# Check for additional packages
|
2013-10-11 23:07:35 +00:00
|
|
|
PKG_CHECK_MODULES([glib], [glib-2.0])
|
|
|
|
PKG_CHECK_MODULES([gdome], [gdome2])
|
|
|
|
PKG_CHECK_MODULES([gtk], [gtk+-3.0])
|
2013-10-14 12:08:06 +00:00
|
|
|
PKG_CHECK_MODULES([gladeui], [gladeui-2.0])
|
|
|
|
PKG_CHECK_MODULES([gtksourceview], [gtksourceview-3.0]
|
|
|
|
,[SOURCEVIEW=yes]
|
|
|
|
,[echo $gtksourceview_PKG_ERRORS])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_SOURCEVIEW, [test -n $SOURCEVIEW])
|
2013-10-11 23:07:35 +00:00
|
|
|
|
|
|
|
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
2013-10-14 12:08:06 +00:00
|
|
|
|
|
|
|
# Internationalization
|
2013-10-11 23:07:35 +00:00
|
|
|
IT_PROG_INTLTOOL([0.40.1], [no-xml])
|
|
|
|
|
2013-10-14 12:08:06 +00:00
|
|
|
GETTEXT_PACKAGE=hedera
|
|
|
|
AC_SUBST([GETTEXT_PACKAGE])
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GETTEXT package name])
|
|
|
|
ALL_LINGUAS="es ca nl"
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
AM_XGETTEXT_OPTION([-k_ -kQ_:1g -kN_ -kC_:1c,2 -kNC_:1c,2])
|
|
|
|
|
2013-10-11 23:07:35 +00:00
|
|
|
# Checks for Ragel State Machine Compiler
|
|
|
|
AC_PATH_PROG(RAGEL, [ragel], [no])
|
|
|
|
if test x"$RAGEL" = x"no" ; then
|
|
|
|
AC_MSG_ERROR([Ragel State Machine Compiler (ragel) not found.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Checks if Vala bindings should be generated
|
|
|
|
dnl TODO: Use AC_ARG_WITH to pick the Vala version?
|
|
|
|
AC_MSG_CHECKING([wether to generate Vala bindings...])
|
|
|
|
AC_ARG_ENABLE([vala],
|
|
|
|
[AS_HELP_STRING([--enable-vala],
|
|
|
|
[Enable vala bindings generation [default = no]])],
|
|
|
|
[ENABLE_VALA="$enableval"],
|
|
|
|
[ENABLE_VALA=no])
|
|
|
|
AC_MSG_RESULT([$ENABLE_VALA])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_INTROSPECTION, [test FALSE])
|
|
|
|
|
|
|
|
if test x"$ENABLE_VALA" = x"yes" ; then
|
|
|
|
GOBJECT_INTROSPECTION_CHECK([1.30.0])
|
|
|
|
AC_SUBST([GIR_SCANNER_ARGS], [--warn-all])
|
|
|
|
if $HAVE_INTROSPECTION; then
|
2014-02-21 10:20:28 +00:00
|
|
|
AC_SUBST([VALA_VERSION], [0.22])
|
2013-10-11 23:07:35 +00:00
|
|
|
AM_PROG_VALAC([$VALA_VERSION])
|
|
|
|
AC_PATH_PROG(VAPIGEN, [vapigen], ["no"])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_VALA, [test x"$ENABLE_VALA" = x"yes" -a x"$VAPIGEN" != x"no"])
|
|
|
|
|
|
|
|
# GSettings configuration
|
|
|
|
GLIB_GSETTINGS
|
|
|
|
|
2013-10-14 12:08:06 +00:00
|
|
|
# Sets the default build options for Vn projects
|
|
|
|
VN_BUILD_OPTIONS
|
2013-10-11 23:07:35 +00:00
|
|
|
|
2014-01-02 11:29:46 +00:00
|
|
|
if test x"$ENABLE_INSTALL" != x"yes"; then
|
|
|
|
glib-compile-schemas --targetdir . ../vn/schema
|
|
|
|
fi
|
|
|
|
|
2013-10-11 23:07:35 +00:00
|
|
|
# Portability check disabled for GTK-DOC (can be changed if needed)
|
|
|
|
AM_INIT_AUTOMAKE([-Wno-portability])
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
gvn/gvn.pc
|
|
|
|
sql/sql.pc
|
|
|
|
db/db.pc
|
|
|
|
vn/vn.pc
|
|
|
|
main/hedera.pc
|
|
|
|
gvn/Makefile
|
|
|
|
sql/Makefile
|
|
|
|
sql/parser/Makefile
|
|
|
|
db/Makefile
|
|
|
|
plugin/Makefile
|
|
|
|
plugin/pg/Makefile
|
|
|
|
plugin/mysql/Makefile
|
|
|
|
vn/Makefile
|
|
|
|
vn/field/Makefile
|
|
|
|
vn/column/Makefile
|
|
|
|
module/Makefile
|
|
|
|
module/src/Makefile
|
|
|
|
module/data/Makefile
|
|
|
|
main/Makefile
|
|
|
|
main/vn-hedera.desktop
|
|
|
|
vapi/Makefile
|
|
|
|
glade/Makefile
|
|
|
|
docs/Makefile
|
|
|
|
docs/reference/Makefile
|
|
|
|
docs/reference/hedera/Makefile
|
|
|
|
po/Makefile.in
|
2013-12-13 09:07:52 +00:00
|
|
|
anjuta/Makefile
|
2013-10-11 23:07:35 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_SUBST([uVERSION], [${VERSION//./_}])
|
2013-11-21 15:35:55 +00:00
|
|
|
AC_SUBST([VERSION_INFO], [${VERSION//./:}])
|
2013-10-11 23:07:35 +00:00
|
|
|
|
|
|
|
AC_OUTPUT
|