From ae9092da9647424668486f76d322bbc8351857c4 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 27 Sep 2001 15:44:32 -0400 Subject: [PATCH] configure.in: Don't use in-tree texinfo, because libiberty must be built before it. * configure.in: Don't use in-tree texinfo, because libiberty must be built before it. Check for makeinfo version 4 or higher. * functions.texi: Regenerate. From-SVN: r45846 --- libiberty/ChangeLog | 6 ++++++ libiberty/configure.in | 25 +++++++++++++------------ libiberty/functions.texi | 4 ++-- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 034a492fcb5..c50e448350c 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2001-09-27 DJ Delorie + + * configure.in: Don't use in-tree texinfo, because libiberty must + be built before it. Check for makeinfo version 4 or higher. + * functions.texi: Regenerate. + 2001-09-20 DJ Delorie Phil Edwards diff --git a/libiberty/configure.in b/libiberty/configure.in index 0f1427a4e93..3417827b42c 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -49,18 +49,19 @@ fi AC_SUBST(MAINT)dnl AC_SUBST(NOTMAINT)dnl -# Do we have a single-tree copy of texinfo? -if test -f $srcdir/../texinfo/Makefile.in; then - MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo' - AC_MSG_RESULT([Using makeinfo from the unified source tree.]) -else - AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ) -fi -if test x"$MAKEINFO" = x""; then - BUILD_INFO= -else - BUILD_INFO=info -fi +# Do we have a single-tree copy of texinfo? Even if we do, we can't +# rely on it - libiberty is built before texinfo. +AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ) +BUILD_INFO=info +case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in + x*\ [[1-3]].* ) + MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required ;true" + BUILD_INFO= + AC_MSG_WARN([ +*** Makeinfo is too old. Info documentation will not be built.]) + ;; +esac +AC_SUBST(MAKEINFO) AC_SUBST(BUILD_INFO) AC_CHECK_PROG(PERL, perl, perl, ) diff --git a/libiberty/functions.texi b/libiberty/functions.texi index e2ea020d205..f914adb436b 100644 --- a/libiberty/functions.texi +++ b/libiberty/functions.texi @@ -65,14 +65,14 @@ should be sorted in ascending order according to the @var{compar} comparison function. This routine should take two arguments pointing to the @var{key} and to an array member, in that order, and should return an integer less than, equal to, or greater than zero if the @var{key} object -is respecitively less than, matching, or greater than the array member. +is respectively less than, matching, or greater than the array member. @end deftypefn @c bzero.c:6 @deftypefn Supplemental void bzero (char *@var{mem}, int @var{count}) -Zeros @var{count} bytes starting at @var{mem}. Use if this function +Zeros @var{count} bytes starting at @var{mem}. Use of this function is deprecated in favor of @code{memset}. @end deftypefn