[Date Prev][Date Next]
Re: Problems with pthread detection under HPUX 11.0 (ITS#14)
One possible solution is to do it all in one HPUX 11 test. Basically,
modify your pthread_create test such that it fails under anything but
HPUX 11. (replace the test as appropriate)
chokeme /* This test only passes under HPUX 11 */
Then, if this test passes, define the appropriate $ac_cv_, $ol_ variables.
Something like (I'm just winging this...) :
if test $ol_link_threads = no ; then
dnl use try_link to deal with HP stuff
AC_MSG_CHECKING([for pthread_create() in HP-UX -lpthread])
choke me! /* this only passes under HP-UX 11 */
if test $ol_cv_pthread_hp_ux_11=yes ; then
if test $ol_try_pthread_hp_ux_11 = yes ; then
dnl some tests below may fail because pthread.h must be included
dnl for now, force results we need.
Josh Tiefenbach wrote:
> On Mon, Dec 21, 1998 at 05:27:25PM -0500, Josh Tiefenbach wrote:
> > > >The problem is that configure, when executing the AC_CHECK_LIB macro, does
> > > not
> > > >include the pthread.h header file. This is required to avoid undefined symbol
> > > >link
> > > >errors.
> Upon further review, it would appear that the same problem torpedo's the
> checks for the pthread_attr_init function. I'm not entirely sure how to solve
> the general problem tho - can you specify an include file to be checked when
> using AC_CHECK_FUNC or AC_CHECK_LIB?
> (config.log scrap)
> configure:4053: checking for pthread_attr_init
> configure:4081: cc -o conftest -g conftest.c -lpthread -lV3 1>&5
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) was
> detected. The linked output may not run on a PA 1.x system.
> /usr/ccs/bin/ld: Unsatisfied symbols:
> pthread_attr_init (code)
> Josh Tiefenbach - Member - ACC Corps of Internet Engineers - firstname.lastname@example.org