summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2001-05-28 21:12:27 +0000
committerWerner Koch <wk@gnupg.org>2001-05-28 21:12:27 +0000
commit08e3fbb986bed2f39cc5dca806faca9654c3a6df (patch)
tree8ff245903939d951c51b2c49b312074b91e94536 /acinclude.m4
parent7e68abda362fce76e91631973d062fd7c8ff5e4e (diff)
downloadlibgcrypt-08e3fbb986bed2f39cc5dca806faca9654c3a6df.tar.gz
Merged back some changes fron gnupg. Fixed doc building.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m4113
1 files changed, 17 insertions, 96 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 9dce2486..daf6a355 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -745,115 +745,36 @@ if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
fi
])
-dnl GPH_PROG_DOCBOOK()
-dnl Check whether we have the needed Docbook environment
+
+dnl GPH_PROG_DB2ANY()
+dnl Check whether we have the needed Docbook tools
dnl and issue a warning if this is not the case.
dnl
dnl This test defines these variables for substitution:
-dnl DB2HTML - command used to convert Docbook to HTML
-dnl DB2TEX - command used to convert Docbook to TeX
-dnl DB2MAN - command used to convert Docbook to man pages
-dnl JADE - command to invoke jade
-dnl JADETEX - command to invoke jadetex
-dnl DSL_FOR_HTML - the stylesheet used to for the Docbook->HTML conversion
-dnl The following make conditionals are defined
-dnl HAVE_DB2MAN - defined when db2man is available
-dnl HAVE_DB2TEX - defined when db2tex is available
-dnl HAVE_DB2HTML - defined when db2html is available
-dnl HAVE_DOCBOOK - defined when the entire Docbook environment is present
-dnl HAVE_JADE - defined when jade is installed
-dnl HAVE_JADETEX - defined when jadetex is installed
+dnl DB2ANY - script used to render Docbook
dnl
-dnl (wk 2000-02-17)
+dnl (wk 2000-05-16)
dnl
-AC_DEFUN(GPH_PROG_DOCBOOK,
+AC_DEFUN(GPH_PROG_DB2ANY,
[ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
- all=yes
- AC_PATH_PROG(DB2MAN, docbook-to-man, no)
- test "$DB2MAN" = no && all=no
- AM_CONDITIONAL(HAVE_DB2MAN, test "$DB2MAN" != no )
-
- AC_PATH_PROG(JADE, jade, no)
- test "$JADE" = no && all=no
- AM_CONDITIONAL(HAVE_JADE, test "$JADE" != no )
-
- AC_PATH_PROG(JADETEX, jadetex, no)
- test "$JADETEX" = no && all=no
- AM_CONDITIONAL(HAVE_JADETEX, test "$JADETEX" != no )
-
- stylesheet_dirs='
-/usr/local/lib/dsssl/stylesheets/docbook
-/usr/local/share/dsssl/stylesheets/docbook
-/usr/local/lib/sgml/stylesheet/dsssl/docbook/nwalsh
-/usr/local/share/sgml/stylesheet/dsssl/docbook/nwalsh
-/usr/lib/dsssl/stylesheets/docbook
-/usr/share/dsssl/stylesheets/docbook
-/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
-/usr/share/sgml/stylesheet/dsssl/docbook/nwalsh
-'
-
- AC_MSG_CHECKING(for TeX stylesheet)
- dsl=none
- for d in ${stylesheet_dirs}; do
- file=${d}/print/docbook.dsl
- if test -f $file; then
- dsl=$file
- break
- fi
- done
- AC_MSG_RESULT([$dsl])
- okay=no
- if test $dsl = none ; then
- DB2TEX="$missing_dir/missing db2tex"
- all=no
- else
- DB2TEX="$JADE -t tex -i tex -d $dsl"
- okay=yes
- fi
- AC_SUBST(DB2TEX)
- AM_CONDITIONAL(HAVE_DB2TEX, test $okay = yes )
-
- if ( $ac_aux_dir/db2html.in --version) < /dev/null > /dev/null 2>&1; then
- :
- else
- AC_ERROR([needed $ac_aux_dir/db2html.in not found])
- fi
-
- AC_MSG_CHECKING(for HTML stylesheet)
- DSL_FOR_HTML="none"
- for d in ${stylesheet_dirs}; do
- file=${d}/html/docbook.dsl
- if test -f $file; then
- DSL_FOR_HTML=$file
- break
- fi
- done
- AC_MSG_RESULT([$DSL_FOR_HTML])
- okay=no
- if test $DSL_FOR_HTML = none ; then
- DB2HTML="$missing_dir/missing db2html"
- all=no
- else
- DB2HTML="`cd $ac_aux_dir && pwd`/db2html --copyfiles"
- okay=yes
- fi
- AC_SUBST(DB2HTML)
- AC_SUBST(DSL_FOR_HTML)
- AM_CONDITIONAL(HAVE_DB2HTML, test $okay = yes )
-
- AM_CONDITIONAL(HAVE_DOCBOOK, test "$all" != yes )
- if test $all = no ; then
- AC_MSG_WARN([[
+ working_db2any=no
+ if $ac_aux_dir/db2any --systemcheck; then
+ working_db2any=yes
+ DB2ANY=`cd $ac_aux_dir && pwd`/db2any
+ else
+ DB2ANY=": "
+ AC_MSG_WARN([[
***
*** It seems that the Docbook environment is not installed as required.
*** We will try to build everything, but if you either touch some files
*** or use a bogus make tool, you may run into problems.
*** Docbook is normally only needed to build the documentation.
+*** To further investigate the problem you can run the command
+*** $ac_aux_dir/db2any --systemcheck --verbose
***]])
fi
+ AC_SUBST(DB2ANY)
+ AM_CONDITIONAL(WORKING_DB2ANY, test "$working_db2any" != yes )
])
-
-
-dnl *-*wedit:notab*-* Please keep this as the last line.