pam: configure.in - almost working --with-docs
baggins
baggins at pld-linux.org
Thu Jul 14 00:21:17 CEST 2005
Author: baggins Date: Wed Jul 13 22:21:17 2005 GMT
Module: pam Tag: HEAD
---- Log message:
- almost working --with-docs
---- Files affected:
pam:
configure.in (1.61 -> 1.62)
---- Diffs:
================================================================
Index: pam/configure.in
diff -u pam/configure.in:1.61 pam/configure.in:1.62
--- pam/configure.in:1.61 Wed Jul 13 22:23:38 2005
+++ pam/configure.in Thu Jul 14 00:21:12 2005
@@ -541,16 +541,27 @@
)
AM_CONDITIONAL(WANT_PWEXPORT_MODULE, test x$want_pwexport_module = xtrue)
+AC_PATH_PROG(txter, sgml2txt, false)
+AC_PATH_PROG(htmler, sgml2html, false)
+AC_PATH_PROG(pser, sgml2latex, false)
+AC_PATH_PROG(pdfer, ps2pdf, false)
+AC_MSG_CHECKING([whether to create txt, html and ps documentation])
AC_ARG_WITH(docs, [ --with-docs Create documentation [default=yes]],
- [ACTION-IF-GIVEN],
- [ACTION-IF-NOT-GIVEN])
-BuildRequires: sgml-tools
-BuildRequires: sp
-BuildRequires: tetex-fonts-jknappen
-BuildRequires: tetex-format-latex
-BuildRequires: tetex-metafont
-BuildRequires: tetex-tex-babel
-
+ if test "$enableval" = "yes" -o "$docs" = "yes"; then
+ if test "$txter" = "false" -o "$htmler" = "false" -o "$pser" = "false"; then
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR(Cannot find programs required to build documentation!)
+ else
+ AC_MSG_RESULT([yes])
+ fi
+ fi,
+ if test "$txter" = "false" -o "$htmler" = "false" -o "$pser" = "false"; then
+ AC_MSG_RESULT([no])
+ AC_MSG_WARN(Cannot find programs required to build documentation!)
+ else
+ AC_MSG_RESULT([yes])
+ fi
+)
AM_CONFIG_HEADER(config.h)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pam/configure.in?r1=1.61&r2=1.62&f=u
More information about the pld-cvs-commit
mailing list