dnl Process this file with autoconf to produce a configure script. AC_INIT(freedesktop.org.xml.in) AM_INIT_AUTOMAKE(shared-mime-info, 0.17) AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl i18n AC_PROG_INTLTOOL GETTEXT_PACKAGE=shared-mime-info AC_SUBST(GETTEXT_PACKAGE) ALL_LINGUAS="az bg cs cy de el eo es eu fi fr hu it ja ko ms nb nl nn no pl pt pt_BR ru rw sq sr sv uk vi zh_CN zh_TW" AM_GLIB_GNU_GETTEXT dnl Check pkg-config is installed PKG_CHECK_MODULES(ALL, \ libxml-2.0 >= 2.4 \ glib-2.0 >= 2.0.0) AC_SUBST(ALL_CFLAGS) AC_SUBST(ALL_LIBS) dnl Use -Wall, etc if possible [ if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings" ;; esac fi ] AC_ARG_ENABLE(update-mimedb, AC_HELP_STRING([--disable-update-mimedb], [disable the update-mime-database after install [default=no]]),, enable_update_mimedb=yes) AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes) mimedir=['${datadir}/mime'] AC_SUBST(mimedir) AC_OUTPUT( Makefile shared-mime-info.pc po/Makefile.in )