1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
AC_INIT(gnome-font-install.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnome-print,0.10)
AM_ACLOCAL_INCLUDE(macros)
dnl libtool versioning
dnl increment if the interface has additions, changes, removals.
GNOMEPRINT_CURRENT=2
dnl increment any time the source changes; set to
dnl 0 if you increment CURRENT
GNOMEPRINT_REVISION=0
dnl increment if any interfaces have been added; set to 0
dnl if any interfaces have been removed. removal has
dnl precedence over adding, so set to 0 if both happened.
GNOMEPRINT_AGE=0
AC_SUBST(GNOMEPRINT_CURRENT)
AC_SUBST(GNOMEPRINT_REVISION)
AC_SUBST(GNOMEPRINT_AGE)
AM_MAINTAINER_MODE
GNOME_INIT
AC_PROG_CC
AC_PROG_CPP
AM_PROG_LIBTOOL
ALL_LINGUAS="da de el es et fr gl hu nl no pl ru it sv uk"
GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS
GNOME_XML_CHECK
AM_GNOME_GETTEXT
dnl
dnl Gtk-doc documentation
dnl
AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
if test "x$with_html_dir" = "x" ; then
HTML_DIR='${datadir}/gtk-doc/html'
else
HTML_DIR=$with_html_dir
fi
AC_SUBST(HTML_DIR)
PRINT_LIBDIR='-L${libdir}'
PRINT_INCLUDEDIR='-I${includedir}'
PRINT_INCLUDEDIR="$PRINT_INCLUDEDIR `gnome-config --cflags gnomeui xml`"
PRINT_LIBS="-lgnomeprint `gnome-config --libs gnomeui xml`"
AC_SUBST(PRINT_LIBDIR)
AC_SUBST(PRINT_INCLUDEDIR)
AC_SUBST(PRINT_LIBS)
AC_PATH_PROGS(PERL, perl5 perl)
AC_CHECK_PROG(GHOSTSCRIPT, gs, gs)
GHOSTSCRIPT_DIRS=`$GHOSTSCRIPT -h | perl -ne 'next unless /^Search/ ... /^\S/; next unless /^\s/; s/^\s+//; s/[[ :]]+$//; s/ +: +/\n/g; print;' | grep '^/'`
GHOSTSCRIPT_ASSIGN=`echo "$GHOSTSCRIPT_DIRS" | perl -ne 'chomp; print "--afm-assignment=ghostscript,$_ --pfb-assignment=ghostscript,$_ ";'`
AC_SUBST(GHOSTSCRIPT_ASSIGN)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
AC_OUTPUT([
Makefile
doc/Makefile
fonts/Makefile
gnome-print.spec
profiles/Makefile
libgnomeprint/Makefile
po/Makefile.in
intl/Makefile
afms/Makefile
afms/adobe/Makefile
fonts/Makefile],
[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
|