libcgicc-3.2.9-disable-documentation-option.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Index: cgicc-3.2.9/Makefile.am
  2. ===================================================================
  3. --- cgicc-3.2.9.orig/Makefile.am 2010-02-25 16:34:06.000000000 +0100
  4. +++ cgicc-3.2.9/Makefile.am 2010-02-25 16:34:14.000000000 +0100
  5. @@ -8,9 +8,15 @@
  6. DEMO =
  7. endif
  8. +if DOC
  9. +DOCDIR = doc
  10. +else
  11. +DOC =
  12. +endif
  13. +
  14. ACLOCAL_AMFLAGS=
  15. -SUBDIRS = cgicc doc support $(DEMO)
  16. +SUBDIRS = cgicc $(DOCDIR) support $(DEMO)
  17. CLEANFILES = *~
  18. Index: cgicc-3.2.9/configure.ac
  19. ===================================================================
  20. --- cgicc-3.2.9.orig/configure.ac 2010-02-25 16:34:06.000000000 +0100
  21. +++ cgicc-3.2.9/configure.ac 2010-02-25 16:45:46.000000000 +0100
  22. @@ -17,9 +17,23 @@
  23. AC_PROG_CXX
  24. AC_PROG_INSTALL
  25. AC_PROG_LIBTOOL
  26. -AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, /bin/echo)
  27. +AC_ARG_ENABLE(doc,
  28. + [ --enable-doc build doc [[default=yes]]],
  29. + [case "${enableval}" in
  30. + yes) cgicc_doc=yes ;;
  31. + no) cgicc_doc=no ;;
  32. + *) AC_MSG_ERROR(bad value ${enableval} for --enable-doc) ;;
  33. + esac], cgicc_doc=yes)
  34. +
  35. +if test "$cgicc_doc" = yes; then
  36. + AC_CHECK_PROG(DOXYGEN, doxygen, doxygen)
  37. + if test -z "$DOXYGEN" ; then
  38. + AC_MSG_ERROR([Doxygen is required to build the documentation])
  39. + fi
  40. +fi
  41. +AM_CONDITIONAL(DOC, test "$cgicc_doc" = yes)
  42. dnl Determine host system type