configure.ac
changeset 417 c7063ba682e0
parent 414 404c18183801
child 418 33b825d3128d
     1.1 --- a/configure.ac	Wed Feb 01 13:00:40 2012 +0000
     1.2 +++ b/configure.ac	Thu Feb 09 20:43:58 2012 +0000
     1.3 @@ -33,6 +33,15 @@
     1.4  AC_SYS_LARGEFILE
     1.5  AM_PROG_CC_C_O
     1.6  
     1.7 +AC_ARG_ENABLE([atomic],
     1.8 +	      [AS_HELP_STRING([--disable-atomic],
     1.9 +	      		      [disable atomic transactions])],
    1.10 +	      [],
    1.11 +	      [enable_atomic=yes])
    1.12 +if test "$enable_atomic" = "yes"; then
    1.13 +    AC_DEFINE([ENABLE_ATOMIC],[1],[Define if atomic transactions are wanted.])
    1.14 +fi
    1.15 +
    1.16  AC_MSG_CHECKING([for Microsoft Windows native API])
    1.17  case $host_os in
    1.18      *mingw*)	AC_DEFINE([MSWIN_API], 1,
    1.19 @@ -45,7 +54,7 @@
    1.20  AM_CONDITIONAL(MSWIN_API, test "$mswin_api" = "yes")
    1.21  AC_SUBST(EXTRA_LIBS)
    1.22  
    1.23 -if test "$mswin_api" = "yes"; then
    1.24 +if test "$enable_atomic" = "yes" -a "$mswin_api" = "yes"; then
    1.25      AC_MSG_CHECKING([for Microsoft Windows Kernel Transaction Manager])
    1.26      save_LIBS="$LIBS"
    1.27      LIBS="-lktmw32 $LIBS"