~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 18:05:35 UTC
  • mfrom: (1963.1.2 build)
  • Revision ID: kalebral@gmail.com-20101129180535-707yfk6ggxa0h0h2
Merge Monty - fix bug 682008: Valgrind warning in unix socket 
Merge Monty - fix bug 682010: session header file includes files from internal directory
Merge Vijay - fix bug 664049: users_file in auth_file should be an fs::path     

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])