Fix crash, when dbus call in GetNeighbor fails
[platform/upstream/at-spi2-core.git] / acinclude.m4
1 #######################
2 # type alignment test #
3 #######################
4
5 AC_DEFUN([DBIND_CHECK_ALIGNOF],[
6 AC_CHECK_ALIGNOF($1,[
7 #include <stdio.h>
8 #include <stdlib.h>
9 #define DBUS_API_SUBJECT_TO_CHANGE
10 #include <dbus/dbus.h>
11 typedef struct {char s1;} dbind_struct;
12 typedef void *dbind_pointer;
13 ])
14
15 dnl Note that we substitute for names like @DBIND_ALIGNOF_DBIND_STRUCT@, but
16 dnl we #define names like ALIGNOF_DBIND_STRUCT in config.h!
17 dnl
18 AC_SUBST(translit(dbind_alignof_$1, [a-z *], [A-Z_P]),[$ac_cv_alignof_$1])
19
20 ])
21