~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/drizzle_stack_direction.m4

pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
macros.
Add PANDORA_DRIZZLE_BUILD to run the extra checks that drizzle needs that 
plugins would also need to run so we can just use that macro in generated
external plugin builds.
Added support to register_plugins for external plugin building.
Renamed register_plugins.py to pandora-plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_DEFUN([DRIZZLE_STACK_DIRECTION],
2
 
 [AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
3
 
 [AC_TRY_RUN([#include <stdlib.h>
4
 
 int find_stack_direction ()
5
 
 {
6
 
   static char *addr = 0;
7
 
   auto char dummy;
8
 
   if (addr == 0)
9
 
     {
10
 
       addr = &dummy;
11
 
       return find_stack_direction ();
12
 
     }
13
 
   else
14
 
     return (&dummy > addr) ? 1 : -1;
15
 
 }
16
 
 int main ()
17
 
 {
18
 
   exit (find_stack_direction() < 0);
19
 
 }], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
20
 
   ac_cv_c_stack_direction=)])
21
 
 AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
22
 
])dnl