aboutsummaryrefslogtreecommitdiff
path: root/libctf/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'libctf/configure.ac')
-rw-r--r--libctf/configure.ac26
1 files changed, 25 insertions, 1 deletions
diff --git a/libctf/configure.ac b/libctf/configure.ac
index 4e12a4f..dc06d27 100644
--- a/libctf/configure.ac
+++ b/libctf/configure.ac
@@ -173,6 +173,30 @@ if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
[Whether the platform has a definition of O_CLOEXEC.])
fi
+build_info=
+makeinfo_too_old=
+AC_CHECK_PROGS([MAKEINFO], makeinfo, [$MISSING makeinfo])
+case " $build_configdirs " in
+ *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
+esac
+changequote(,)
+ # We require texinfo to be 6.3 or later, for a working synindex
+ # and validatemenus: otherwise we fall back to /bin/true.
+ if ${MAKEINFO} --version \
+ | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9][0-9])' >/dev/null 2>&1; then
+ build_info=yes
+ else
+ build_info=
+ makeinfo_too_old=t
+ fi
+changequote([,])
+if test -n "$makeinfo_too_old"; then
+ AC_MSG_WARN([
+*** Makeinfo is too old. Info documentation will not be built.])
+fi
+AC_SUBST(MAKEINFO)
+AM_CONDITIONAL(BUILD_INFO, test "${build_info}" = yes)
+
CTF_LIBADD="-L`pwd`/../libiberty -liberty"
SHARED_LDFLAGS=
@@ -265,7 +289,7 @@ fi
AC_SUBST(VERSION_FLAGS)
AC_SUBST(VERSION_FLAGS_NOBFD)
-AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES(Makefile doc/Makefile)
AC_CONFIG_HEADERS(config.h)
AC_OUTPUT