~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

Merge Jay (build only related)

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
  AC_MSG_ERROR("Drizzle requires fcntl.")
452
452
fi
453
453
 
454
 
AC_CONFIG_LIBOBJ_DIR([gnulib])
 
454
 
 
455
AC_CACHE_CHECK([working fdatasync],[ac_cv_func_fdatasync],[
 
456
  AC_LANG_PUSH(C++)
 
457
  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
 
458
#include <unistd.h>
 
459
    ]],[[
 
460
fdatasync(4);
 
461
    ]])],
 
462
  [ac_cv_func_fdatasync=yes],
 
463
  [ac_cv_func_fdatasync=no])
 
464
  AC_LANG_POP()
 
465
])
 
466
AS_IF([test "x${ac_cv_func_fdatasync}" = "xyes"],
 
467
  [AC_DEFINE([HAVE_FDATASYNC],[1],[If the system has a working fdatasync])])
 
468
 
455
469
 
456
470
AC_CHECK_FUNCS( \
457
471
  cuserid fchmod \
458
 
  fdatasync fpresetsticky fpsetmask fsync \
 
472
  fpresetsticky fpsetmask fsync \
459
473
  getpassphrase getpwnam \
460
474
  getpwuid getrlimit getrusage index initgroups isnan \
461
475
  localtime_r log log2 gethrtime gmtime_r \
656
670
 
657
671
dnl Has to be done late, as the plugin may need to check for existence of
658
672
dnl functions tested above
659
 
PANDORA_PLUGINS
 
673
PANDORA_PLUGINS([drizzled/plugin/config.h])
660
674
 
661
675
dnl GCC Precompiled Header Support
662
676
dnl re-enable later