vn-updater/configure.ac

67 lines
1.5 KiB
Plaintext

AC_INIT([vn-updater], [1.2])
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build/m4])
AC_CONFIG_HEADERS([build/config.h])
AC_PREREQ([2.69])
AM_SILENT_RULES([yes])
# Check for program dependencies
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_C_O
PKG_CHECK_MODULES([gio], [gio-unix-2.0])
PKG_CHECK_MODULES([gtk], [gtk+-3.0])
CFLAGS+=" -Wall"
# Internationalization
GETTEXT_PACKAGE=vn-updater
ALL_LINGUAS="es"
IT_PROG_INTLTOOL([0.40.1], [no-xml])
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])
# Check for debug mode
AC_MSG_CHECKING([whether to build with debug information])
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Enable debug data generation [default=no]])],
[ENABLE_DEBUG=$enableval],
[ENABLE_DEBUG=no])
AC_MSG_RESULT([$ENABLE_DEBUG])
if test "$ENABLE_DEBUG" = "yes"; then
CFLAGS+=" -ggdb"
fi
# Check if it will be installed
AC_MSG_CHECKING([whether to configure to install])
AC_ARG_ENABLE([install],
[AS_HELP_STRING([--enable-install],
[Enable install configuration [default=yes]])],
[ENABLE_INSTALL=$enableval],
[ENABLE_INSTALL=yes])
AC_MSG_RESULT([$ENABLE_INSTALL])
AM_CONDITIONAL(ENABLE_INSTALL, [test "$ENABLE_INSTALL" = "yes"])
if test "$ENABLE_INSTALL" = "yes"; then
CFLAGS+=" -O3"
fi
AC_SUBST([CPPFLAGS])
AC_SUBST([CFLAGS])
AC_SUBST([LDFLAGS])
AM_INIT_AUTOMAKE()
AC_CONFIG_FILES([
Makefile
src/Makefile
po/Makefile.in
])
AC_OUTPUT