<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks. I tested your configure.ac change on z/OS and it configures and builds cleanly here. No objection to the change</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks </div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sachin</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="mail-editor-reference-message-container">
<div class="ms-outlook-mobile-reference-message skipProofing">
<meta name="Generator" content="Microsoft Exchange Server">
</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>NIIBE Yutaka <gniibe@fsij.org><br>
<b>Date: </b>Wednesday, 3 December 2025 at 8:28 AM<br>
<b>To: </b>Sachin T <sachin.t@ibm.com><br>
<b>Cc: </b>GNU Libgcrypt Development <gnupg-devel@gnupg.org><br>
<b>Subject: </b>[EXTERNAL] RE: [PATCH libgcrypt] Add support for IBM z/OS<br>
<br>
</div>
<div class="PlainText" style="font-size: 11pt;">NIIBE Yutaka <gniibe@fsij.org> wrote:<br>
> Let me have some time for configure.ac.<br>
<br>
Attached is a patch for the change of configure.ac. If no objection,<br>
I'll push this change to master.<br>
<br>
It includes your changes (except the one for the EXTRA_LIBS_FOR_BUILD).<br>
<br>
Please note that the detection of -lpthread is a bit complicated. On<br>
z/OS, IIUC, no -lpthread is required *and* it should not be added to the<br>
compiler option. On GNU/Linux, it is not required any more (with newer<br>
glibc), but it is still OK to have -lpthread option.<br>
<br>
Here, libgcrypt only needs to know if pthread API is available or not.<br>
For actual linking, it uses GPG_ERROR_MT_LIBS (see tests/Makefile.am).<br>
<br>
GPG_ERROR_MT_LIBS is from libgpg-error and it is libgpg-error which<br>
checks pthread API more deeply and pthread linking at its build time.<br>
It uses libgpg-error/m4/threadlib.m4 from gnulib.<br>
--<br>
</div>
</div>
</body>
</html>