aboutsummaryrefslogtreecommitdiff
path: root/libctf/configure.ac
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2021-11-08 18:31:38 +0000
committerNick Alcock <nick.alcock@oracle.com>2021-11-08 18:31:38 +0000
commit9be90c6894a208b32ed7237d4b31ecf9afb1ec8a (patch)
treec2d539602c5eaff80051e060466b2bdbf08794ef /libctf/configure.ac
parent603955c8de016e5a33963ff8d331ecc3d9b82425 (diff)
downloadgdb-9be90c6894a208b32ed7237d4b31ecf9afb1ec8a.zip
gdb-9be90c6894a208b32ed7237d4b31ecf9afb1ec8a.tar.gz
gdb-9be90c6894a208b32ed7237d4b31ecf9afb1ec8a.tar.bz2
libctf: add CTF format specification
It's been a long time since most of this was written: it's long past time to put it in the binutils source tree. It's believed correct and complete insofar as it goes: it documents format v3 (the current version) but not the libctf API or any earlier versions. (The earlier versions can be read by libctf but not generated by it, and you are highly unlikely ever to see an example of any of them.) libctf/ChangeLog 2021-11-08 Nick Alcock <nick.alcock@oracle.com> * doc/ctf-spec.texi: New file. * configure.ac (MAKEINFO): Add. (BUILD_INFO): Likewise. (AC_CONFIG_FILES) [doc/Makefile]: Add. * Makefile.am [BUILD_INFO] (SUBDIRS): Add doc/. * doc/Makefile.am: New file. * doc/Makefile.in: Likewise. * configure: Regenerated. * Makefile.in: Likewise.
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