dnl autoconf input file dnl will generate the "configure" script AC_INIT(gui.C) AC_PREREQ(2.0) AC_CONFIG_HEADER(config.h) PACKAGE=gbib VERSION=0.1.2 AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE") AC_DEFINE_UNQUOTED(VERSION,"$VERSION") AC_PROG_CXX AC_LANG_CPLUSPLUS ALL_LINGUAS="fr pt_BR" AM_GNU_GETTEXT AC_PROG_INSTALL AC_PROG_MAKE_SET AC_HEADER_STDC AC_CHECK_LIB(stdc++, main) AC_HEADER_CHECK(fcntl.h,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(unistd.h,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(sys/stat.h,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(sys/types.h,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(algorithm,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(map,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(slist,, AC_HEADER_CHECK(ext/slist,,AC_MSG_ERROR(required header file missing))) dnl AC_HEADER_CHECK(std/bastring.h,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(vector,,AC_MSG_ERROR(required header file missing)) AC_HEADER_CHECK(vector,,AC_MSG_ERROR(required header file missing)) dnl check for gnome dnl (I don't particularly check for GTK+ version, because someone dnl with Gnome and GTK < 1.2.0 is quite hard to find these days) AC_PATH_PROG(GNOMECONFIG,gnome-config,no) if test "$GNOMECONFIG" = "no" ; then AC_MSG_ERROR( [ Can't find gnome-config GNOME missing. You need GNOME to compile gBib. See http://www.gnome.org ]) fi GNOMELIBS=`$GNOMECONFIG --libs glib gtk gnome gnomeui` GNOMEFLAGS=`$GNOMECONFIG --cflags glib gtk gnome gnomeui` AC_SUBST(GNOMELIBS) AC_SUBST(GNOMEFLAGS) AC_DEFINE(NEED_GNOME_SUPPORT) AC_OUTPUT(Makefile gbib.spec intl/Makefile po/Makefile.in)