[sr #111341] Macro Expansion Fails if Within AX_PTHREAD

Khalid Masum <[email protected]> Thu, 20 Nov 2025 01:34:50 -0500 (EST)
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?111341>

                 Summary: Macro Expansion Fails if Within AX_PTHREAD
                   Group: Autoconf
               Submitter: labnan
               Submitted: Thu 20 Nov 2025 06:34:46 AM UTC
                Priority: 5 - Unprioritized
                Severity: 4 - Important
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 20 Nov 2025 06:34:46 AM UTC By: Khalid Masum <labnan>
What works:

```
#configure.ac
AC_INIT([helloworld], [0.1], [[email protected]])
AC_MSG_NOTICE([Testing Notify])
AC_OUTPUT
```

What does not work:

```
#configure.ac
AC_INIT([helloworld], [0.1], [[email protected]])
AX_PTHREAD([],[AC_MSG_NOTICE([AC_PACKAGE_NAME Needs POSIX Threads
(pthread)])])
AC_OUTPUT
```

Error:

```
AC_INIT([helloworld], [0.1], [[email protected]])
AX_PTHREAD([],[AC_MSG_NOTICE([AC_PACKAGE_NAME Needs POSIX Threads
(pthread)])])
AC_OUTPUT
```

Happens with `AC_MSG_ERROR` as well.

Tested on current master:

```
commit: cf8b90f6ff221a59a4c625b6f6c41b84c14ee1b9
        Support for the Algol 68 language
```

Tested on a Debian chroot (debootstrap) runing on Fedora host on x86_64

```
OS: Debian GNU/Linux 13 (trixie) x86_64
Kernel: Linux 6.17.7-200.fc42.x86_64
```







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaR62igAKCRCqLAuaBUf3
TuZgAQD77UM6naAZVk73qXvr7BKZ4h+h0QBD2EjQji6H55ZLbQD+L0tL4pktG47h
H+i/hfnvk/YF7a9JA8AqMxpiBi2Flgk=
=4Cx7
-----END PGP SIGNATURE-----