~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

Remove PLUGIN and MODULES.

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.73])
 
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.95])
8
8
 
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
 
10
  AC_ARG_ENABLE([fat-binaries],
 
11
    [AS_HELP_STRING([--enable-fat-binaries],
 
12
      [Enable fat binary support on OSX @<:@default=off@:>@])],
 
13
    [ac_enable_fat_binaries="$enableval"],
 
14
    [ac_enable_fat_binaries="no"])
 
15
 
10
16
  dnl Force dependency tracking on for Sun Studio builds
11
17
  AS_IF([test "x${enable_dependency_tracking}" = "x"],[
12
18
    enable_dependency_tracking=yes
13
19
  ])
 
20
  dnl If we're building OSX Fat Binaries, we have to turn off -M options
 
21
  AS_IF([test "x${ac_enable_fat_binaries}" = "xyes"],[
 
22
    enable_dependency_tracking=no
 
23
  ])
14
24
])
15
25
 
16
26
dnl The standard setup for how we build Pandora projects
24
34
  m4_define([PCT_IGNORE_SHARED_PTR],[no])
25
35
  m4_define([PCT_FORCE_GCC42],[no])
26
36
  m4_define([PCT_SRC_IN_SRC],[no])
 
37
  m4_define([PCT_VERSION_FROM_VC],[no])
 
38
  m4_define([PCT_USE_VISIBILITY],[yes])
27
39
  m4_foreach([pct_arg],[$*],[
28
40
    m4_case(pct_arg,
29
41
      [use-gnulib], [
42
54
        m4_undefine([PCT_FORCE_GCC42])
43
55
        m4_define([PCT_FORCE_GCC42],[yes])
44
56
      ],
 
57
      [skip-visibility], [
 
58
        m4_undefine([PCT_USE_VISIBILITY])
 
59
        m4_define([PCT_USE_VISIBILITY],[no])
 
60
      ],
45
61
      [src-in-src], [
46
62
        m4_undefine([PCT_SRC_IN_SRC])
47
63
        m4_define([PCT_SRC_IN_SRC],[yes])
 
64
      ],
 
65
      [version-from-vc], [
 
66
        m4_undefine([PCT_VERSION_FROM_VC])
 
67
        m4_define([PCT_VERSION_FROM_VC],[yes])
48
68
    ])
49
69
  ])
50
70
 
67
87
  AC_REQUIRE([PANDORA_MAC_GCC42])
68
88
  AC_REQUIRE([PANDORA_64BIT])
69
89
 
 
90
  m4_if(PCT_VERSION_FROM_VC,yes,[
 
91
    PANDORA_VC_VERSION
 
92
  ])
 
93
  PANDORA_VERSION
 
94
 
70
95
  dnl Once we can use a modern autoconf, we can use this
71
96
  dnl AC_PROG_CC_C99
72
97
  AC_REQUIRE([AC_PROG_CXX])
154
179
  dnl alloca - but we need to know it anyway for check_stack_overrun.
155
180
  PANDORA_STACK_DIRECTION
156
181
 
 
182
  AC_CHECK_LIBM
 
183
  
 
184
  AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
 
185
  AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
 
186
 
 
187
 
 
188
 
157
189
  PANDORA_OPTIMIZE
158
190
 
159
191
  AC_LANG_PUSH(C++)
169
201
 
170
202
  PANDORA_HAVE_GCC_ATOMICS
171
203
 
172
 
  dnl We need to inject error into the cflags to test if visibility works or not
173
 
  dnl save_CFLAGS="${CFLAGS}"
174
 
  dnl CFLAGS="${CFLAGS} -Werror"
175
 
  dnl gl_VISIBILITY
176
 
  dnl CFLAGS="${save_CFLAGS}"
 
204
  m4_if(PCT_USE_VISIBILITY,[yes],[
 
205
    dnl We need to inject error into the cflags to test if visibility works or not
 
206
    save_CFLAGS="${CFLAGS}"
 
207
    CFLAGS="${CFLAGS} -Werror"
 
208
    PANDORA_VISIBILITY
 
209
    CFLAGS="${save_CFLAGS}"
 
210
  ])
177
211
 
178
212
  PANDORA_HEADER_ASSERT
179
213
 
208
242
  AC_SUBST([AM_CFLAGS])
209
243
  AC_SUBST([AM_CXXFLAGS])
210
244
  AC_SUBST([AM_CPPFLAGS])
 
245
  AC_SUBST([AM_LDFLAGS])
211
246
 
212
247
])