~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Lee Bieber
  • Date: 2010-11-29 16:29:27 UTC
  • mfrom: (1955.3.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 1964.
  • Revision ID: kalebral@gmail.com-20101129162927-t6617jhr83i5qr4o
Merge Monty - fix bug 682008: Valgrind warning in unix socket 
Merge Monty - fix bug 682010: session header file includes files from internal directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
    AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned])
202
202
  ])
203
203
 
 
204
  AC_CACHE_CHECK([if system defines RUSAGE_THREAD], [ac_cv_rusage_thread],[
 
205
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
 
206
      [[
 
207
#include <sys/time.h>
 
208
#include <sys/resource.h>
 
209
      ]],[[
 
210
      int x= RUSAGE_THREAD;
 
211
      ]])
 
212
    ],[
 
213
      ac_cv_rusage_thread=yes
 
214
    ],[
 
215
      ac_cv_rusage_thread=no
 
216
    ])
 
217
  ])
 
218
  AS_IF([test "$ac_cv_rusage_thread" = "no"],[
 
219
    AC_DEFINE([RUSAGE_THREAD], [RUSAGE_SELF],
 
220
      [Define if system doesn't define])
 
221
  ])
 
222
 
204
223
  AC_CHECK_LIBM
205
224
  dnl Bug on FreeBSD - LIBM check doesn't set the damn variable
206
225
  AC_SUBST([LIBM])