Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(gcalctool, 5.20.2) AC_CONFIG_MACRO_DIR([m4]) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE IT_PROG_INTLTOOL([0.35.0]) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC PKG_CHECK_MODULES(ATK, atk >= 1.5) AC_SUBST(ATK_CFLAGS) AC_SUBST(ATK_LIBS) pkg_modules="gtk+-2.0 >= 2.11.6 gobject-2.0 gdk-x11-2.0 glib-2.0 atk gdk-pixbuf-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) AM_PROG_LEX if [[ "$LEX" != "flex" ]]; then AC_MSG_ERROR(flex is required to create the gcalctool scanners) fi LFLAGS="-8" AC_SUBST(LFLAGS) AC_PROG_YACC dnl determine if a usable yacc is available on this system AC_CHECK_PROG(HAVE_YACC, $YACC, yes, no) if [[ "$HAVE_YACC" = "no" ]]; then AC_MSG_ERROR($YACC is not usable as yacc - consider using bison) fi dnl ########################################################################### dnl PKG_CONFIG and required versions dnl ########################################################################### PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 1.1.9) AC_SUBST(GCONF_CFLAGS) AC_SUBST(GCONF_LIBS) dnl ******************** dnl scrollkeeper checks dnl ******************** AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no) if test x$SCROLLKEEPER_CONFIG = xno; then AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package) fi dnl ******************************* dnl Internationalization dnl ******************************* GETTEXT_PACKAGE=gcalctool AC_PREREQ(2.53) AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE") AM_PROG_LIBTOOL AM_GLIB_GNU_GETTEXT dnl Use -Wall if we have gcc. changequote(,)dnl if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac fi changequote([,])dnl dnl Checking for gconftool-2 AC_PATH_PROG(GCONFTOOL, gconftool-2, no) if test "x$GCONFTOOL" = xno; then AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) fi AM_GCONF_SOURCE_2 dnl ***************** dnl API Documentation dnl ***************** GNOME_DOC_INIT AC_OUTPUT([ Makefile gcalctool/Makefile po/Makefile.in help/Makefile help/bg/Makefile help/it/Makefile help/ja/Makefile help/zh_CN/Makefile help/zh_HK/Makefile help/zh_TW/Makefile ])