AC_INIT(src/yelp-main.c) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(yelp, 2.3.0) AC_PROG_INTLTOOL AM_MAINTAINER_MODE AC_PROG_CC AC_ISC_POSIX AC_HEADER_STDC AM_PROG_LIBTOOL AM_PATH_ORBIT2 AM_PATH_GLIB_2_0 dnl NOTE : it appears that some systems do not like it when you use line dnl continuation charactes to split CFLAGS into readable chunks if test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS -Wall -Wno-uninitialized -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Wsign-promo" fi AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) GETTEXT_PACKAGE=yelp AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE") ALL_LINGUAS="am ar az be bg bn ca cs da de el eo es et fa fi fr gl he hi hu id is it ja kn ko lv mk ml mn ms nl nn no pl pt pt_BR ro ru sk sl sq sv ta th tr uk vi wa zh_CN zh_TW" AM_GLIB_GNU_GETTEXT # AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME # this is the directory where the *.{mo,gmo} files are installed yelplocaledir='${prefix}/${DATADIRNAME}/locale' AC_SUBST(yelplocaledir) # libgnome LIBGNOME_SERVERDIR=`$PKG_CONFIG --variable=libgnome_serverdir libgnome-2.0` if test x"$LIBGNOME_SERVERDIR" = x; then LIBGNOME_MAN2HTML="gnome2-man2html" LIBGNOME_INFO2HTML="gnome2-info2html" else LIBGNOME_MAN2HTML="$LIBGNOME_SERVERDIR/gnome2-man2html" LIBGNOME_INFO2HTML="$LIBGNOME_SERVERDIR/gnome2-info2html" fi AC_SUBST(LIBGNOME_MAN2HTML) AC_SUBST(LIBGNOME_INFO2HTML) if test "x$prefix" = "xNONE"; then GNOMELOCALEDIR=$ac_default_prefix/share/locale else GNOMELOCALEDIR=$prefix/share/locale fi AC_DEFINE_UNQUOTED(GNOMELOCALEDIR, "$GNOMELOCALEDIR") PKG_CHECK_MODULES(DB2HTML, [ glib-2.0 >= 2.0.6 libxslt >= 1.0.15 ]) PKG_CHECK_MODULES(YELP, [ gnome-vfs-2.0 >= 1.1 libgnome-2.0 >= 2.0.2 libgnomeui-2.0 >= 1.103.0 libbonobo-2.0 >= 1.108.0 libxslt >= 1.0.15 libglade-2.0 >= 2.0.0 gconf-2.0 libgtkhtml-2.0 >= 2.1.2 ]) CFLAGS="$YELP_CFLAGS $CFLAGS" YELP_MODULES="gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0" YELP_IDL_INCLUDES="`$PKG_CONFIG --variable=idldir gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0 bonobo-activation-2.0| sed -e 's/^/ /' -e 's/ \+$//' -e 's/ \+/ -I /g' -e 's/^ \+//'`" AC_SUBST(YELP_IDL_INCLUDES) dnl ==================================== dnl = Bzip2, for the help converters dnl ==================================== AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2)]) dnl <= Check for bzip2 > 1.0.0 AC_CHECK_LIB(bz2, BZ2_bzread, [AC_DEFINE(HAVE_LIBBZ2)]) dnl => dnl =================================================== dnl = Check for popt, reported to be needed on AIX dnl =================================================== AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"], [AC_MSG_ERROR([popt is required to build yelp])]) AC_SUBST(POPT_LIBS) AC_OUTPUT([ Makefile src/Makefile stylesheets/Makefile stylesheets/docbook/Makefile stylesheets/docbook/catalog stylesheets/docbook/dtd/Makefile data/Makefile data/images/Makefile data/ui/Makefile po/Makefile.in ])