~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libboost_thread.m4

  • Committer: Monty Taylor
  • Date: 2010-07-31 17:48:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1678.
  • Revision ID: mordred@inaugust.com-20100731174800-py7qyreb29zn6lh2
updated to latest pandora-build - contains win32 fixes and the fix to the
boost::thread check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
AC_DEFUN([_PANDORA_SEARCH_BOOST_THREAD],[
7
7
  AC_REQUIRE([AC_LIB_PREFIX])
 
8
  AC_REQUIRE([ACX_PTHREAD])
8
9
 
9
10
  dnl --------------------------------------------------------------------
10
11
  dnl  Check for boost::thread
11
12
  dnl --------------------------------------------------------------------
12
13
 
 
14
  save_CFLAGS="${CFLAGS}"
 
15
  save_CXXFLAGS="${CXXFLAGS}"
 
16
  CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
 
17
  CXXFLAGS="${PTHREAD_CFLAGS} ${CXXFLAGS}"
 
18
 
13
19
  AC_LANG_PUSH(C++)
14
20
  AC_LIB_HAVE_LINKFLAGS(boost_thread-mt,,[
15
21
    #include <boost/thread.hpp>
24
30
    ])
25
31
  ])
26
32
  AC_LANG_POP()
 
33
  CFLAGS="${save_CFLAGS}"
 
34
  CXXFLAGS="${save_CXXFLAGS}"
 
35
 
27
36
  
28
37
  AM_CONDITIONAL(HAVE_BOOST_THREAD,
29
38
    [test "x${ac_cv_libboost_thread}" = "xyes" -o "x${ac_cv_libboost_thread_mt}" = "xyes"])