/[groff]/groff/aclocal.m4
ViewVC logotype

Diff of /groff/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by wl, Thu May 26 21:01:56 2005 UTC revision 1.49 by wl, Thu Oct 27 21:30:30 2005 UTC
# Line 57  AC_DEFUN([GROFF_PRINT], Line 57  AC_DEFUN([GROFF_PRINT],
57  AC_DEFUN([GROFF_PROG_YACC],  AC_DEFUN([GROFF_PROG_YACC],
58    [AC_CHECK_PROGS([YACC], [byacc 'bison -y'], [yacc])])    [AC_CHECK_PROGS([YACC], [byacc 'bison -y'], [yacc])])
59    
60    # We need makeinfo 4.8 or newer.
61    
62    AC_DEFUN([GROFF_MAKEINFO],
63      [missing=
64       AC_CHECK_PROG([MAKEINFO], [makeinfo], [makeinfo])
65       if test -z "$MAKEINFO"; then
66         missing="\`makeinfo' is missing."
67       else
68         # We need an additional level of quoting to make sed's regexps work.
69         [makeinfo_version=`$MAKEINFO --version 2>&1 \
70           | sed '1 {s/^.* \([^ ]\+\)$/\1/;q}'`]
71         # Consider only the first two numbers in version number string.
72         [makeinfo_version_major=`echo $makeinfo_version \
73           | sed 's/^\([0-9]*\).*$/\1/'`]
74         if test -z "$makeinfo_version_major"; then
75           makeinfo_version_major=0
76           makeinfo_version_minor=0
77         else
78           [makeinfo_version_minor=`echo $makeinfo_version \
79             | sed 's/^[^.]\+\(.*\)$/\1/'`]
80           # No minor version number at all?
81           if test -z "$makeinfo_version_minor"; then
82             makeinfo_version_minor=0
83           else
84             [makeinfo_version_minor=`echo $makeinfo_version_minor \
85               | sed 's/\.\([0-9]*\).*$/\1/'`]
86             if test -z "$makeinfo_version_minor"; then
87               makeinfo_version_minor=0
88             fi
89           fi
90         fi
91       fi
92       makeinfo_version_numeric=`expr $makeinfo_version_major '*' 1000 \
93                                      '+' $makeinfo_version_minor`
94       if test $makeinfo_version_numeric -lt 4008; then
95         missing="\`makeinfo' is too old."
96       fi
97    
98       if test -n "$missing"; then
99         if test ! -f doc/groff \
100            || test ${srcdir}/doc/groff.texinfo -nt doc/groff; then
101           AC_MSG_ERROR($missing
102    [Get the `texinfo' package version 4.8 or newer.])
103         else
104           AC_MSG_WARN($missing
105    [Get the `texinfo' package version 4.8 or newer if you want to convert
106    `groff.texinfo' into a PDF or HTML document.])
107         fi
108       fi
109       AC_SUBST([MAKEINFO])])
110    
111  # The following programs are needed for grohtml.  # The following programs are needed for grohtml.
112    
113  AC_DEFUN([GROFF_HTML_PROGRAMS],  AC_DEFUN([GROFF_HTML_PROGRAMS],

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26