bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'make check' test 6 fail, native hppa2.0w-hp-hpux11.00, autoconf 2.5


From: Michael Elizabeth Chastain
Subject: Re: 'make check' test 6 fail, native hppa2.0w-hp-hpux11.00, autoconf 2.50 and autoconf 2.50b
Date: Thu, 5 Jul 2001 11:16:06 -0700

Here you go:

  address@hidden tmp]$ cat <<EOF | /bin/awk '
  > /^m4_|^dnl$|^_?AS_|^_?A[CHUM]_|_AC_|^FORBIDDEN$/ { print "-: " $0 }
  > /^AS_FLAGS$|^AC_ALLOWED$/ { print "+: " $0 }
  > '
  > AS_FLAGS
  > NOT_AC_ALLOWED
  > AC_ALLOWED_NOT
  > FORBIDDEN
  > AC_THIS_IS_INVALID
  > _AC_THIS_IS_INVALID_TOO
  > ALTHOUGH_AC_THIS_IS
  > AC_OUTPUT
  > EOF
  -: AS_FLAGS
  +: AS_FLAGS
  -: AC_ALLOWED_NOT
  -: FORBIDDEN
  -: AC_THIS_IS_INVALID
  -: _AC_THIS_IS_INVALID_TOO
  -: AC_OUTPUT

It looks like "NOT_AC_ALLOWED" is not matching the "_AC_" pattern!

And look at this:

  address@hidden tmp]$ /bin/awk '/^m4_|_AC_/ { print "-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

  address@hidden tmp]$ /bin/awk '/^m4_|^dnl$|_AC_/ { print "-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

  address@hidden tmp]$ /bin/awk '/^m4_|^dnl$|^_?AS_|_AC_/ { print "-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

  address@hidden tmp]$ /bin/awk '/^m4_|^dnl$|^_?AS_|^_?A[CHUM]_|_AC_/ { print 
"-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

  address@hidden tmp]$ /bin/awk 
'/^m4_|^dnl$|^_?AS_|^_?A[CHUM]_|_AC_|^FORBIDDEN$/ { print "-: " $0}'
  NOT_AC_ALLOWED

Something strange is going on with the regular expressions all right.

It looks like the problem occurs when an "^..." construct comes after
the "_AC_" construct.   Look at this:

  address@hidden tmp]$ /bin/awk '/_AC_|^FORBIDDEN$/ { print "-: " $0}'
  NOT_AC_ALLOWED
  address@hidden tmp]$ /bin/awk '/_AC_|^FORBIDDEN/ { print "-: " $0}'
  NOT_AC_ALLOWED
  address@hidden tmp]$ /bin/awk '/_AC_|FORBIDDEN/ { print "-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

And finally:

  address@hidden tmp]$ /bin/awk 
'/^m4_|^dnl$|^_?AS_|^_?A[CHUM]_|_AC_|FORBIDDEN$/ { print "-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

  address@hidden tmp]$ /bin/awk 
'/^m4_|^dnl$|^_?AS_|^_?A[CHUM]_|^FORBIDDEN$|_AC_/ { print "-: " $0}'
  NOT_AC_ALLOWED
  -: NOT_AC_ALLOWED

MichaelC



reply via email to

[Prev in Thread] Current Thread [Next in Thread]