dnl Process this file with autoconf to produce configure # Copyright 2013 Endless Mobile, Inc. dnl ------------ dnl configure.ac dnl ------------ dnl Please keep this file well-commented. Autotools involve a lot of magical dnl incantations, and it is easy to mess things up if you don't know what you dnl are doing. # Initialization # -------------- # Initialize Autoconf: package name, version, bug report address, tarball name, # website AC_INIT([Endless Brazil], [0], [], [eos-brazil], [http://endlessm.com]) # Initialize Automake: enable all warnings and do not insist on GNU standards # no-portability suppresses warnings about syntax specific to GNU make AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign 1.11]) # Avoid spewing garbage over the terminal ('make V=1' to see the garbage) AM_SILENT_RULES([yes]) # Keep Autotools macros local to this source tree AC_CONFIG_MACRO_DIR([m4]) AC_CACHE_SAVE # Required versions of libraries # Update these whenever you use a function that requires a certain API version EOS_SDK_REQUIREMENT="endless-0" # Gettext package name GETTEXT_PACKAGE=$PACKAGE AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Package name for Gettext]) # Detect which languages are available AS_ALL_LINGUAS # Required build tools # -------------------- # Make sure we can create directory hierarchies AC_PROG_MKDIR_P # Library configuration tool PKG_PROG_PKG_CONFIG # Gettext AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.18.1]) # Various tools GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0` AC_SUBST(GLIB_COMPILE_RESOURCES) AC_CACHE_SAVE # Required libraries # ------------------ PKG_CHECK_MODULES([EOS_BRAZIL], [$EOS_SDK_REQUIREMENT]) AC_CACHE_SAVE # Output # ------ # List files here that the configure script should output AC_CONFIG_FILES([ Makefile po/Makefile.in ]) # Do the output AC_OUTPUT