1AC_PREREQ(2.62) 2 3AC_INIT([mate-menus], [1.26.0], [https://mate-desktop.org]) 4AC_CONFIG_SRCDIR(libmenu/matemenu-tree.h) 5 6AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-xz check-news]) 7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 8AC_CONFIG_MACRO_DIR([m4]) 9AC_CONFIG_HEADERS(config.h) 10 11AM_MAINTAINER_MODE 12MATE_MAINTAINER_MODE_DEFINES 13MATE_DEBUG_CHECK([no]) 14MATE_COMPILE_WARNINGS 15 16# Before making a release, the LT_VERSION string should be modified. 17# The string is of the form C:R:A. 18# - If interfaces have been changed or added, but binary compatibility has 19# been preserved, change to C+1:0:A+1 20# - If binary compatibility has been broken (eg removed or changed interfaces) 21# change to C+1:0:0 22# - If the interface is the same as the previous version, change to C:R+1:A 23 24LIB_MENU_LT_VERSION=6:9:4 25AC_SUBST(LIB_MENU_LT_VERSION) 26 27AM_GNU_GETTEXT([external]) 28AM_GNU_GETTEXT_VERSION([0.19.8]) 29AM_CONDITIONAL([USE_NLS], [test "x${USE_NLS}" = "xyes"]) 30 31GETTEXT_PACKAGE=AC_PACKAGE_NAME 32AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of default gettext domain]) 33AC_SUBST(GETTEXT_PACKAGE) 34 35AC_PROG_CC 36AC_STDC_HEADERS 37AC_ARG_PROGRAM 38AM_PROG_LIBTOOL 39 40PKG_CHECK_MODULES(GIO_UNIX, gio-unix-2.0 >= 2.50.0) 41AC_SUBST(GIO_UNIX_CFLAGS) 42AC_SUBST(GIO_UNIX_LIBS) 43 44AC_ARG_ENABLE(deprecation_flags, 45 [AC_HELP_STRING([--enable-deprecation-flags], 46 [use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],, 47 [enable_deprecation_flags=no]) 48 49if test "x$enable_deprecation_flags" = "xyes"; then 50 DISABLE_DEPRECATED_CFLAGS=$DISABLE_DEPRECATED 51 AC_SUBST(DISABLE_DEPRECATED_CFLAGS) 52fi 53 54dnl --------------------------------------------------------------------------- 55dnl - logging 56dnl --------------------------------------------------------------------------- 57if test "$ax_enable_debug" = "yes"; then 58 DEBUG_CFLAGS="-DG_ENABLE_DEBUG" 59else 60 if test "x$ax_enable_debug" = "xno"; then 61 DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" 62 else 63 DEBUG_CFLAGS="" 64 fi 65fi 66AC_SUBST(DEBUG_CFLAGS) 67 68GOBJECT_INTROSPECTION_CHECK([0.6.7]) 69 70AC_OUTPUT([ 71Makefile 72libmenu/Makefile 73libmenu/libmate-menu.pc 74libmenu/libmate-menu-uninstalled.pc 75layout/Makefile 76desktop-directories/Makefile 77util/Makefile 78po/Makefile.in 79]) 80 81dnl --------------------------------------------------------------------------- 82dnl - Show summary 83dnl --------------------------------------------------------------------------- 84 85echo " 86 mate-menus $VERSION 87 `echo mate-menus $VERSION | sed "s/./=/g"` 88 89 prefix: ${prefix} 90 exec_prefix: ${exec_prefix} 91 libdir: ${libdir} 92 bindir: ${bindir} 93 sbindir: ${sbindir} 94 sysconfdir: ${sysconfdir} 95 localstatedir: ${localstatedir} 96 datadir: ${datadir} 97 source code location: ${srcdir} 98 compiler: ${CC} 99 cflags: ${CFLAGS} 100 Warning flags: ${WARN_CFLAGS} 101 Maintainer mode: ${USE_MAINTAINER_MODE} 102 Use *_DISABLE_DEPRECATED: ${enable_deprecation_flags} 103 104 Turn on debugging: ${ax_enable_debug} 105 Build introspection support: ${found_introspection} 106 Native Language support: ${USE_NLS} 107 108" 109