2013-12-16 14:55:17 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl Created by Anjuta application wizard.
|
|
|
|
|
|
|
|
AC_INIT(hedera-account, 1.0)
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([build/config.h])
|
|
|
|
AC_CONFIG_AUX_DIR([build])
|
|
|
|
AC_CONFIG_MACRO_DIR([build/m4])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([-Wno-portability])
|
|
|
|
|
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
dnl Check for vala.
|
|
|
|
dnl You should change the version shown here manually to match with yours.
|
2014-05-26 14:16:34 +00:00
|
|
|
AM_PROG_VALAC([0.24])
|
2013-12-16 14:55:17 +00:00
|
|
|
|
|
|
|
dnl Internationalization
|
|
|
|
IT_PROG_INTLTOOL([0.35.0])
|
|
|
|
|
|
|
|
GETTEXT_PACKAGE=hedera-account
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
AM_XGETTEXT_OPTION([-k_ -kQ_:1g -kN_ -kC_:1c,2 -kNC_:1c,2])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build with debug information...])
|
|
|
|
AC_ARG_ENABLE([debug],
|
|
|
|
[AS_HELP_STRING([--enable-debug],
|
2014-05-26 14:16:34 +00:00
|
|
|
[Enable debug data generation (default = no)])],
|
2013-12-16 14:55:17 +00:00
|
|
|
[ENABLE_DEBUG="$enableval"],
|
|
|
|
[ENABLE_DEBUG=no])
|
|
|
|
AC_MSG_RESULT([$ENABLE_DEBUG])
|
|
|
|
|
|
|
|
if test x"$ENABLE_DEBUG" = x"yes"; then
|
|
|
|
CFLAGS=" -ggdb -O0 "
|
|
|
|
VALAFLAGS=" -g --save-temps "
|
|
|
|
else
|
|
|
|
CFLAGS=" -O2 "
|
|
|
|
VALAFLAGS=
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether C warnings will be shown...])
|
|
|
|
AC_ARG_ENABLE([c-warnings],
|
|
|
|
[AS_HELP_STRING([--enable-c-warnings],
|
2014-05-26 14:16:34 +00:00
|
|
|
[Enable C warnings to be shown (default = no)])],
|
2013-12-16 14:55:17 +00:00
|
|
|
[C_WARNINGS="$enableval"],
|
|
|
|
[C_WARNINGS=no])
|
|
|
|
AC_MSG_RESULT([$C_WARNINGS])
|
|
|
|
|
|
|
|
if test x"$C_WARNINGS" = x"yes"; then
|
|
|
|
CFLAGS+=" -Wall "
|
|
|
|
else
|
|
|
|
CFLAGS+=" -w "
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST([CFLAGS])
|
|
|
|
AC_SUBST([VALAFLAGS])
|
|
|
|
|
|
|
|
LT_INIT
|
|
|
|
|
2013-12-19 14:47:57 +00:00
|
|
|
AC_ARG_VAR([UNINSTALLED_DIR], [the directory of the uninstalled hedera project])
|
2014-02-11 15:26:11 +00:00
|
|
|
: ${UNINSTALLED_DIR=''}
|
2013-12-19 14:47:57 +00:00
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2014-10-16 06:51:18 +00:00
|
|
|
VALAFLAGS+=" --pkg posix "
|
|
|
|
|
2014-02-11 15:26:11 +00:00
|
|
|
if test $UNINSTALLED_DIR; then
|
2014-05-26 14:16:34 +00:00
|
|
|
VALA_CHECK_MODULES(ACCOUNT, [gtk+-3.0])
|
2013-12-19 14:47:57 +00:00
|
|
|
ACCOUNT_CFLAGS+=-I$UNINSTALLED_DIR
|
|
|
|
ACCOUNT_LIBS+=$UNINSTALLED_DIR/build/main/libhedera.la
|
2014-10-16 06:51:18 +00:00
|
|
|
VALAFLAGS+="$ACCOUNT_VALAFLAGS --pkg gvn --pkg sql --pkg db --pkg vn --vapidir $UNINSTALLED_DIR/build/vapi"
|
2013-12-19 14:47:57 +00:00
|
|
|
|
|
|
|
AC_SUBST(account_libdir, $libdir/hedera/module)
|
2013-12-20 15:21:03 +00:00
|
|
|
AC_SUBST(account_datadir, $datadir/hedera/module)
|
2014-02-11 15:26:11 +00:00
|
|
|
AC_SUBST(querydir, $account_datadir/sql)
|
2013-12-19 14:47:57 +00:00
|
|
|
else
|
2014-05-26 14:16:34 +00:00
|
|
|
VALA_CHECK_MODULES(ACCOUNT, [hedera])
|
|
|
|
VALAFLAGS+=$ACCOUNT_VALAFLAGS
|
2013-12-16 14:55:17 +00:00
|
|
|
|
2013-12-19 14:47:57 +00:00
|
|
|
PKG_CHECK_VAR([account_libdir], [hedera], [modulelibdir])
|
|
|
|
PKG_CHECK_VAR([account_datadir], [hedera], [moduledatadir])
|
|
|
|
PKG_CHECK_VAR([querydir], [hedera], [modulequerydir])
|
|
|
|
fi
|
2013-12-16 14:55:17 +00:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
src/Makefile
|
|
|
|
data/Makefile
|
|
|
|
po/Makefile.in])
|
2014-05-26 14:16:34 +00:00
|
|
|
|