339
339
AC_MSG_RESULT($ac_cv_conv_longlong_to_float)
342
AC_DEFUN([DRIZZLE_CHECK_VIO], [
344
dnl we always use vio: no need for special defines
346
AC_DEFINE([HAVE_VIO_READ_BUFF], [1],
347
[Define to enable buffered read. This works only if syscalls
348
read/recv return as soon as there is some data in the kernel
349
buffer, no matter how big the given buffer is.])
352
# Local version of _AC_PROG_CXX_EXIT_DECLARATION that does not
353
# include #stdlib.h as default as this breaks things on Solaris
354
# (Conflicts with pthreads and big file handling)
356
m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
357
[for ac_declaration in \
359
'extern "C" void std::exit (int) throw (); using std::exit;' \
360
'extern "C" void std::exit (int); using std::exit;' \
361
'extern "C" void exit (int) throw ();' \
362
'extern "C" void exit (int);' \
364
'#include <stdlib.h>'
366
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration
367
@%:@include <stdlib.h>],
371
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration],
376
if test -n "$ac_declaration"; then
377
echo '#ifdef __cplusplus' >>confdefs.h
378
echo $ac_declaration >>confdefs.h
379
echo '#endif' >>confdefs.h
381
])# _AC_PROG_CXX_EXIT_DECLARATION
383
dnl ---------------------------------------------------------------------------
386
343
dnl ---------------------------------------------------------------------------
387
344
dnl Macro: DRIZZLE_CHECK_MAX_INDEXES