diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-19 22:40:58 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-19 22:40:58 +0000 |
commit | 5653891432df807a266ecb82f0c5a488711cba30 (patch) | |
tree | f4577e19234b4de87e5283f50ba7b398d08cb6aa /configure.ac | |
parent | 5853d14cab5661ebd6aa21d183f53668d8839b46 (diff) |
add documentation
git-svn-id: file:///home/lennart/svn/public/paman/trunk@18 cdefa82f-4ce1-0310-97f5-ab6066f37c3c
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index be10066..0f1c7aa 100644 --- a/configure.ac +++ b/configure.ac @@ -55,5 +55,24 @@ if test "x$GCC" = "xyes" ; then CFLAGS="$CFLAGS -pipe -Wall -W -Wno-unused-parameter" fi -AC_CONFIG_FILES([Makefile src/Makefile]) +# LYNX documentation generation +AC_ARG_ENABLE(lynx, + AS_HELP_STRING(--disable-lynx,Turn off lynx usage for documentation generation), +[case "${enableval}" in + yes) lynx=yes ;; + no) lynx=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;; +esac],[lynx=yes]) + +if test x$lynx = xyes ; then + AC_CHECK_PROG(have_lynx, lynx, yes, no) + + if test x$have_lynx = xno ; then + AC_MSG_ERROR([*** Sorry, you have to install lynx or use --disable-lynx ***]) + fi +fi + +AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes]) + +AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile doc/README.html]) AC_OUTPUT |