[sr #110571] Autoconf-2.71 misconverts new-line escapes in AC_CHECK_FUNCS() argument

Petr Pisar <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?110571>

                 Summary: Autoconf-2.71 misconverts new-line escapes in
AC_CHECK_FUNCS() argument
                 Project: Autoconf
            Submitted by: petrp
            Submitted on: Fri 26 Nov 2021 02:09:14 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None

    _______________________________________________________

Details:

This piece of autoconf.ac:

AC_CHECK_FUNCS( \
  strcpy \
  strdup \
  strchr \
  strlen \
  strcat \
  strtok \
)

autoconf-2.69 converts to:

for ac_func in \
  strcpy \
  strdup \
  strchr \
  strlen \
  strcat \
  strtok \

do :

autoconf-2.71 into:

  for ac_func in strcpy strdup strchr \ strlen \ strcat \ strtok \
do :

As a result bash reports a syntax error on the for-loop because it does not
recognizes "do" as a keyword.

See <https://bugzilla.redhat.com/show_bug.cgi?id=1999491> for more details.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110571>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.