summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-04-20 09:56:08 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-04-25 21:39:33 -0700
commitd25a3b87ce9fdf950b42f45b644242d72e7167b3 (patch)
tree8ab7a707211321b0c9e073fcdef519dad4411f13
parent72b3760a2a5c4ea81c3bebf085b3b8f5ac56730e (diff)
configure: check for groff and enable groff extensions if found
Check for groff never got translated from imake to autoconf Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
-rw-r--r--configure.ac5
-rw-r--r--defs.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 74a6fc8..b9920bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,11 @@ AC_CONFIG_HEADERS([config.h])
AC_CANONICAL_HOST
+AC_CHECK_PROG([GROFF], [groff], [found], [missing])
+if test "x$GROFF" = "xfound" ; then
+ AC_DEFINE([HAS_GROFF], 1, [Define to 1 if you have the groff package.])
+fi
+
AC_CHECK_FUNCS([mkstemp])
AC_ARG_WITH(helpdir,
diff --git a/defs.h b/defs.h
index b4cd434..fe09b6b 100644
--- a/defs.h
+++ b/defs.h
@@ -34,6 +34,10 @@ from the X Consortium.
* Created: October 22, 1987
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#ifndef HELPFILE
#define HELPFILE "/usr/lib/X11/xman.help" /* name of the default helpfile. */
#endif