dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.52) AC_INIT(glabels, 2.1.1, http://sourceforge.net/tracker/?func=add&group_id=46122&atid=445116) AC_CONFIG_SRCDIR(src/glabels.c) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) AC_PROG_INTLTOOL([0.21]) AM_PROG_LIBTOOL AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC GNOME_COMPILE_WARNINGS AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) GTK_DOC_CHECK(1.0) dnl --------------------------------------------------------------------------- dnl - LIBGLABELS API versioning dnl --------------------------------------------------------------------------- dnl From the libtool manual: dnl 1. Start with version information of `0:0:0' for each libtool library. dnl 2. Update the version information only immediately before a public release. dnl More frequent updates are unnecessary, and only guarantee that the current dnl interface number gets larger faster. dnl 3. If the library source code has changed at all since the last update, then increment dnl revision (`c:r:a' becomes `c:r+1:a'). dnl 4. If any interfaces have been added, removed, or changed since the last update, dnl increment current, and set revision to 0. dnl 5. If any interfaces have been added since the last public release, then increment age. dnl 6. If any interfaces have been removed since the last public release, then set age dnl to 0. LIBGLABELS_C=2 LIBGLABELS_R=0 LIBGLABELS_A=0 LIBGLABELS_VERSION_INFO=${LIBGLABELS_C}:${LIBGLABELS_R}:${LIBGLABELS_A} AC_SUBST(LIBGLABELS_VERSION_INFO) dnl --------------------------------------------------------------------------- dnl - Library dependencies dnl --------------------------------------------------------------------------- GLIB_REQUIRED=2.6.0 GTK_REQUIRED=2.6.0 LIBGNOME_REQUIRED=2.10.0 LIBGNOMEUI_REQUIRED=2.10.0 LIBXML_REQUIRED=2.6.0 LIBGNOMEPRINT_REQUIRED=2.10.0 LIBGNOMEPRINTUI_REQUIRED=2.10.0 LIBGNOMECANVAS_REQUIRED=2.10.0 LIBGLADE_REQUIRED=2.5.0 dnl Make above strings available for packaging files (e.g. rpm spec files) AC_SUBST(GLIB_REQUIRED) AC_SUBST(GTK_REQUIRED) AC_SUBST(LIBGNOME_REQUIRED) AC_SUBST(LIBGNOMEUI_REQUIRED) AC_SUBST(LIBXML_REQUIRED) AC_SUBST(LIBGNOMEPRINT_REQUIRED) AC_SUBST(LIBGNOMEPRINTUI_REQUIRED) AC_SUBST(LIBGNOMECANVAS_REQUIRED) AC_SUBST(LIBGLADE_REQUIRED) dnl --------------------------------------------------------------------------- dnl - GLABELS prerequisites dnl --------------------------------------------------------------------------- PKG_CHECK_MODULES(GLABELS, \ glib-2.0 >= $GLIB_REQUIRED \ gtk+-2.0 >= $GTK_REQUIRED \ libgnome-2.0 >= $LIBGNOME_REQUIRED \ libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \ libxml-2.0 >= $LIBXML_REQUIRED \ libgnomeprint-2.2 >= $LIBGNOMEPRINT_REQUIRED \ libgnomeprintui-2.2 >= $LIBGNOMEPRINTUI_REQUIRED \ libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED \ libglade-2.0 >= $LIBGLADE_REQUIRED \ ) AC_SUBST(GLABELS_CFLAGS) AC_SUBST(GLABELS_LIBS) dnl --------------------------------------------------------------------------- dnl - LIBGLABELS more modest prerequisites dnl --------------------------------------------------------------------------- PKG_CHECK_MODULES(LIBGLABELS, \ glib-2.0 >= $GLIB_REQUIRED \ libxml-2.0 >= $LIBXML_REQUIRED \ ) AC_SUBST(LIBGLABELS_CFLAGS) AC_SUBST(LIBGLABELS_LIBS) dnl --------------------------------------------------------------------------- dnl - Enable deprecation testing dnl --------------------------------------------------------------------------- AC_ARG_ENABLE(deprecations, [AC_HELP_STRING([--enable-deprecations], [warn about deprecated usages [default=no]])],, [enable_deprecations=no]) if test "x$enable_deprecations" = "xyes"; then DISABLE_DEPRECATED_CFLAGS="\ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGNOME_DISABLE_DEPRECATED" AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi dnl --------------------------------------------------------------------------- dnl - Is freedesktop mime dbase available? dnl --------------------------------------------------------------------------- AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no) AM_CONDITIONAL(HAVE_NEW_MIME, test x$UPDATE_MIME_DATABASE != xno) AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no) AM_CONDITIONAL(HAVE_NEWER_MIME, test x$UPDATE_DESKTOP_DATABASE != xno) dnl --------------------------------------------------------------------------- dnl - Supported languages dnl --------------------------------------------------------------------------- GETTEXT_PACKAGE=glabels AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) dnl Add the languages here. ALL_LINGUAS="fr de ja pt_BR es ru zh_TW.Big5 pl cs it" AM_GLIB_GNU_GETTEXT dnl --------------------------------------------------------------------------- dnl - Makefiles, etc. dnl --------------------------------------------------------------------------- AC_OUTPUT([ Makefile barcode-0.98/Makefile libglabels/Makefile libglabels/libglabels.pc src/Makefile src/pixmaps/Makefile src/stock-pixmaps/Makefile src/mygal/Makefile src/recent-files/Makefile data/Makefile data/templates/Makefile data/pixmaps/Makefile data/mime/Makefile data/glade/Makefile data/desktop/Makefile data/dtd/Makefile data/man/Makefile po/Makefile.in help/Makefile help/C/Makefile docs/Makefile docs/libglabels/Makefile glabels.spec ]) dnl --------------------------------------------------------------------------- dnl - Print configuration information dnl --------------------------------------------------------------------------- echo " Configuration: Package: ${PACKAGE}-${VERSION}: Installation prefix ${prefix} Source code location: ${srcdir} Compiler: ${CC} " cat ${srcdir}/MESSAGE-OF-DOOM