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/

Attachment: signature.asc
Description: PGP signature

Reply via email to