~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Monty Taylor
  • Date: 2010-10-08 17:32:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: mordred@inaugust.com-20101008173200-iq22jo2nic48noa3
Updated pandora-build files to version 0.157

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
6
6
dnl Which version of the canonical setup we're using
7
 
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.161])
 
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.157])
8
8
 
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
  AC_ARG_ENABLE([fat-binaries],
108
108
    PANDORA_VC_VERSION
109
109
  ],[
110
110
    PANDORA_TEST_VC_DIR
111
 
 
112
 
    changequote(<<, >>)dnl
113
 
    PANDORA_RELEASE_ID=`echo $VERSION | sed 's/[^0-9]//g'`
114
 
    changequote([, ])dnl
115
 
 
116
 
    PANDORA_RELEASE_COMMENT=""
117
 
    AC_DEFINE_UNQUOTED([PANDORA_RELEASE_VERSION],["$VERSION"],
118
 
                       [Version of the software])
119
 
 
120
 
    AC_SUBST(PANDORA_RELEASE_COMMENT)
121
 
    AC_SUBST(PANDORA_RELEASE_VERSION)
122
 
    AC_SUBST(PANDORA_RELEASE_ID)
123
111
  ])
124
112
  PANDORA_VERSION
125
113
 
201
189
    AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned])
202
190
  ])
203
191
 
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
 
 
223
192
  AC_CHECK_LIBM
224
193
  dnl Bug on FreeBSD - LIBM check doesn't set the damn variable
225
194
  AC_SUBST([LIBM])
282
251
  AM_CONDITIONAL(HAVE_SPHINX,[test "x${SPHINXBUILD}" != "x:"])
283
252
  AM_CONDITIONAL(HAVE_RECENT_SPHINX,[test "x${ac_cv_recent_sphinx}" = "xyes"])
284
253
 
 
254
  PANDORA_REQUIRE_BISON
 
255
  PANDORA_REQUIRE_FLEX
 
256
 
285
257
  m4_if(m4_substr(m4_esyscmd(test -d po && echo 0),0,1),0, [
286
258
    AM_PO_SUBDIRS
287
259
    IT_PROG_INTLTOOL([0.35],[no-xml])
368
340
#define get_socket_errno() errno
369
341
#endif
370
342
 
371
 
#if defined(__cplusplus)
372
 
# if defined(DEBUG)
373
 
#  include <cassert>
374
 
#  include <cstddef>
375
 
# endif
376
 
template<typename To, typename From>
377
 
inline To implicit_cast(From const &f) {
378
 
  return f;
379
 
}
380
 
template<typename To, typename From>     // use like this: down_cast<T*>(foo);
381
 
inline To down_cast(From* f) {                   // so we only accept pointers
382
 
  // Ensures that To is a sub-type of From *.  This test is here only
383
 
  // for compile-time type checking, and has no overhead in an
384
 
  // optimized build at run-time, as it will be optimized away
385
 
  // completely.
386
 
  if (false) {
387
 
    implicit_cast<From*, To>(0);
388
 
  }
389
 
 
390
 
#if defined(DEBUG)
391
 
  assert(f == NULL || dynamic_cast<To>(f) != NULL);  // RTTI: debug mode only!
392
 
#endif
393
 
  return static_cast<To>(f);
394
 
}
395
 
#endif /* defined(__cplusplus) */
396
 
 
397
343
#endif /* __CONFIG_H__ */
398
344
  ])
399
345