~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2009-03-04 02:48:12 UTC
  • mto: (917.1.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 918.
  • Revision ID: mordred@inaugust.com-20090304024812-5wb6wpye5c1iitbq
Applied atomic patch to current tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
459
459
      AC_MSG_ERROR([libz is required for Drizzle]))
460
460
 
461
461
#--------------------------------------------------------------------
 
462
# Check for TBB
 
463
#--------------------------------------------------------------------
 
464
 
 
465
AC_LANG_PUSH(C++)
 
466
AC_LIB_HAVE_LINKFLAGS(tbb,,
 
467
[#include <tbb/atomic.h>
 
468
 #include <stdint.h>
 
469
],
 
470
[
 
471
  tbb::atomic<uint64_t> x;
 
472
  tbb::atomic<uint8_t> y;
 
473
  x=0;
 
474
  y=0;
 
475
  x++;
 
476
  y++;
 
477
])
 
478
AC_LANG_POP()
 
479
 
 
480
#--------------------------------------------------------------------
462
481
# Check for libreadline or compatible (libedit on Mac OS X)
463
482
#--------------------------------------------------------------------
464
483
 
795
814
                  [Assume single-CPU mode, no concurrency]) ;;
796
815
  "rwlocks") AC_DEFINE([MY_ATOMIC_MODE_RWLOCKS], [1],
797
816
                  [Use pthread rwlocks for atomic ops]) ;;
798
 
  "smp") ;;
799
 
  "")
 
817
  "smp") 
800
818
    AC_CACHE_CHECK(
801
819
      [whether the compiler provides atomic builtins],
802
820
      [ac_cv_gcc_atomic_builtins],