[patch #8847] AX_PTHREAD: improve support for Solaris

Will Fiveash <[email protected]> Wed, 19 Jul 2017 16:43:42 -0400 (EDT)
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
Follow-up Comment #3, patch #8847 (project autoconf-archive):

This issue of conftest.c including:

#                       if !defined(_REENTRANT)
#                        error "_REENTRANT must be defined"
#                       endif

is causing:

configure:6446: checking whether pthreads work with -mt
configure:6540: /opt/developerstudio12.6/bin/cc -o conftest -xO4 -m64
-errtags=yes -errwarn=%all
-errwarn=no%E_STATEMENT_NOT_REACHED -errwarn=no%E_NO_IMPLICIT_DECL_ALLOWED
-errwarn=no%E_EMPTY_TRANSLATION_UNIT
-errwarn=no%E_EMPTY_INITIALIZER -errwarn=no%E_EMPTY_DECLARATION
-errwarn=no%E_ENUM_VAL_OVERFLOWS_INT_MAX
-errwarn=no%E_DEPRECATED_ATT -errwarn=no%E_INIT_SIGN_EXTEND
-errwarn=no%E_ASSIGNMENT_TYPE_MISMATCH -mt   conftest.c  -lresolv
>&5
"conftest.c", line 42: #error: "_REENTRANT must be defined"
cc: acomp failed for conftest.c

When I compile MIT kerberos on a Solaris development build using the Oracle
Studio v12.6 C compiler.  This patch needs to be applied to the current
version of ax_pthread.m4.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8847>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/