[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional Linking Question
From: |
Jeff Gold |
Subject: |
Re: Conditional Linking Question |
Date: |
Sun, 13 Jan 2002 23:12:06 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 |
Jeff Gold wrote:
Can anyone tell me
what the right way to do this might be?
Nevermind. I've found a solution that I believe is quite good. For the
benefit of anyone else who may be grappling with this, here is the
relevant section of my configure.in:
child_type=unknown
AC_CHECK_HEADERS(sys/ipc.h, child_type=sysipc)
AC_CHECK_HEADERS(pthread.h, child_type=pthread)
AM_CONDITIONAL(ENABLE_PTHREADS, test "$child_type" = "pthread")
if test "$child_type" = "unknown"; then
AC_MSG_ERROR([could not find an acceptable multitasking library.])
fi
This should scale well, doesn't rely on undocumented features and even
looks pretty.
Jeff