~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/misc.m4

  • Committer: Monty Taylor
  • Date: 2009-01-30 06:21:54 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090130062154-ix999h8nnh5z230i
Fixed solaris fixes for linux. Oh, and I also seem to have fixed some more configure stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
AC_MSG_RESULT($ac_cv_conv_longlong_to_float)
340
340
])
341
341
 
342
 
AC_DEFUN([DRIZZLE_CHECK_VIO], [
343
 
dnl
344
 
dnl we always use vio: no need for special defines 
345
 
dnl
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.])
350
 
])
351
 
 
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)
355
 
 
356
 
m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
357
 
[for ac_declaration in \
358
 
   ''\
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);' \
363
 
   'void exit (int);' \
364
 
   '#include <stdlib.h>'
365
 
do
366
 
  _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration
367
 
@%:@include <stdlib.h>],
368
 
                                      [exit (42);])],
369
 
                     [],
370
 
                     [continue])
371
 
  _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration],
372
 
                                      [exit (42);])],
373
 
                     [break])
374
 
done
375
 
rm -f conftest*
376
 
if test -n "$ac_declaration"; then
377
 
  echo '#ifdef __cplusplus' >>confdefs.h
378
 
  echo $ac_declaration      >>confdefs.h
379
 
  echo '#endif'             >>confdefs.h
380
 
fi
381
 
])# _AC_PROG_CXX_EXIT_DECLARATION
382
 
 
383
 
dnl ---------------------------------------------------------------------------
384
 
 
385
342
 
386
343
dnl ---------------------------------------------------------------------------
387
344
dnl Macro: DRIZZLE_CHECK_MAX_INDEXES