AC_INIT([mutt.h])
AM_CONFIG_HEADER(config.h)
-if test -f "$srcdir/.svn/entries" ; then
- echo "`cat $srcdir/VERSION.in`-r`grep revision $srcdir/.svn/entries | sort -r | uniq | head -n 1 | cut -d '"' -f 2`" > "$srcdir/VERSION"
-else
- cp "$srcdir/VERSION.in" "$srcdir/VERSION"
-fi
-
-mutt_cv_version=`cat "$srcdir/VERSION"`
+mutt_cv_version=`cat "$srcdir/VERSION.in"`
AM_INIT_AUTOMAKE(muttng, $mutt_cv_version)
+AC_SUBST([CONFIGURE_DEPENDENCIES], ['$(top_srcdir)/VERSION.in'])
+
dnl AC_GNU_SOURCE
ifdef([AC_LIBOBJ], , [define([AC_LIBOBJ], [LIB[]OBJS="$LIBOBJS $1.o"])])
fi
if test "$cf_ncurses" = ncursesw; then
+ AC_CHECK_HEADERS(ncurses/ncurses.h,[cf_cv_ncurses_header="ncurses/ncurses.h"])
AC_CHECK_HEADERS(ncursesw/ncurses.h,[cf_cv_ncurses_header="ncursesw/ncurses.h"])
else
AC_CHECK_HEADERS(ncurses.h,[cf_cv_ncurses_header="ncurses.h"])
AC_MSG_RESULT(FreeBSD)
;;
SunOS)
- SGML2TXT_CMD="sgml2txt manual || true"
- SGML2PS_CMD="sgml2latex -p manual || true"
- SGML2HTML_CMD="sgml2html manual || true"
+ SGML2TXT_CMD="sgml2txt -l manual || true"
+ SGML2PS_CMD="sgml2latex -l -p manual || true"
+ SGML2HTML_CMD="sgml2html -l manual || true"
AC_MSG_RESULT(Solaris)
;;
*)
- SGML2TXT_CMD="if linuxdoc -B txt --pass='-P -c' manual ; then uniq < manual.txt | expand > _manual.txt ; rm manual.txt ; col -b < _manual.txt > manual.txt ; rm -rf _manual.txt ; fi || true"
+ SGML2TXT_CMD="if linuxdoc -B txt -c latin --pass='-P -c' manual ; then uniq < manual.txt | expand > _manual.txt ; rm manual.txt ; col -b < _manual.txt > manual.txt ; rm -rf _manual.txt ; fi || true"
SGML2PS_CMD="sgml2latex --output=ps manual || true"
SGML2HTML_CMD="sgml2html manual || true"
AC_MSG_RESULT(Linux (default))