From: David MacKenzie Date: Mon, 2 May 1994 23:48:08 +0000 (+0000) Subject: If M4 is an absolute file name that X-Git-Tag: fsf-origin~647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d3b89a2688474da2c18f5fe453959535c3bdf78;p=thirdparty%2Fautoconf.git If M4 is an absolute file name that no longer exists, use M4=m4. Fix tr string for Solaris tr. Add config.h.bot if present. From richard@sol.kbsi.com (Richard Henderson). --- diff --git a/autoheader.in b/autoheader.in index 4114ce3f6..ccba6beb1 100644 --- a/autoheader.in +++ b/autoheader.in @@ -33,6 +33,11 @@ if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ +case "${M4}" in +/*) # Handle the case that m4 has moved since we were configured. + # It may have been found originally in a build directory. + test -f "${M4}" || M4=m4 ;; +esac print_version="" while test $# -gt 0 ; do @@ -174,7 +179,8 @@ fi echo "$types" | tr , \\012 | sort | uniq | while read ctype; do test -z "$ctype" && continue - sym="`echo "${ctype}" | tr '[a-z *]' '[A-Z_P]'`" + # Solaris 2.3 tr rejects noncontiguous characters in character classes. + sym="`echo "${ctype}" | tr '[a-z] *' '[A-Z]_P'`" echo " /* The number of bytes in a ${ctype}. */ #undef SIZEOF_${sym}" @@ -201,6 +207,8 @@ for lib in `for x in $libs; do echo $x; done | sort | uniq`; do #undef HAVE_LIB${sym}" done +test -f ${config_h}.bot && cat ${config_h}.bot + status=0 for sym in $syms; do diff --git a/autoheader.sh b/autoheader.sh index 4114ce3f6..ccba6beb1 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -33,6 +33,11 @@ if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ +case "${M4}" in +/*) # Handle the case that m4 has moved since we were configured. + # It may have been found originally in a build directory. + test -f "${M4}" || M4=m4 ;; +esac print_version="" while test $# -gt 0 ; do @@ -174,7 +179,8 @@ fi echo "$types" | tr , \\012 | sort | uniq | while read ctype; do test -z "$ctype" && continue - sym="`echo "${ctype}" | tr '[a-z *]' '[A-Z_P]'`" + # Solaris 2.3 tr rejects noncontiguous characters in character classes. + sym="`echo "${ctype}" | tr '[a-z] *' '[A-Z]_P'`" echo " /* The number of bytes in a ${ctype}. */ #undef SIZEOF_${sym}" @@ -201,6 +207,8 @@ for lib in `for x in $libs; do echo $x; done | sort | uniq`; do #undef HAVE_LIB${sym}" done +test -f ${config_h}.bot && cat ${config_h}.bot + status=0 for sym in $syms; do diff --git a/bin/autoheader.in b/bin/autoheader.in index 4114ce3f6..ccba6beb1 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -33,6 +33,11 @@ if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ +case "${M4}" in +/*) # Handle the case that m4 has moved since we were configured. + # It may have been found originally in a build directory. + test -f "${M4}" || M4=m4 ;; +esac print_version="" while test $# -gt 0 ; do @@ -174,7 +179,8 @@ fi echo "$types" | tr , \\012 | sort | uniq | while read ctype; do test -z "$ctype" && continue - sym="`echo "${ctype}" | tr '[a-z *]' '[A-Z_P]'`" + # Solaris 2.3 tr rejects noncontiguous characters in character classes. + sym="`echo "${ctype}" | tr '[a-z] *' '[A-Z]_P'`" echo " /* The number of bytes in a ${ctype}. */ #undef SIZEOF_${sym}" @@ -201,6 +207,8 @@ for lib in `for x in $libs; do echo $x; done | sort | uniq`; do #undef HAVE_LIB${sym}" done +test -f ${config_h}.bot && cat ${config_h}.bot + status=0 for sym in $syms; do