Autoreconf failed if docbook is not installed
These are logs from my build system:
autoreconf -fi
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:115: installing './compile'
configure.ac:52: installing './missing'
gtk-doc.make:25: error: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/Makefile.am:97: 'gtk-doc.make' included from here
gtk-doc.make:78: error: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/Makefile.am:97: 'gtk-doc.make' included from here
gtk-doc.make:83: error: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/Makefile.am:97: 'gtk-doc.make' included from here
gtk-doc.make:92: error: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/Makefile.am:97: 'gtk-doc.make' included from here
gtk-doc.make:301: error: HAVE_GTK_DOC does not appear in AM_CONDITIONAL
docs/Makefile.am:97: 'gtk-doc.make' included from here
docs/Makefile.am:138: error: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/Makefile.am:50: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
examples/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
examples/Makefile.am: installing './depcomp'
pango/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tools/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/Makefile.am:30: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
win32/Makefile-newvs.am:23: warning: MSVC_TOOLSET was already defined in condition TRUE, which includes condition MSVC_NO_TOOLSET_SET ...
win32/vs15/Makefile.am:30: 'win32/Makefile-newvs.am' included from here
win32/vs15/Makefile.am:28: ... 'MSVC_TOOLSET' previously defined here
autoreconf: automake failed with exit status: 1
I think it makes docbook as a hard dependency without real need, something like that needs to be done instead