~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Monty Taylor
  • Date: 2011-03-07 16:42:18 UTC
  • mto: (2221.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 2222.
  • Revision ID: mordred@inaugust.com-20110307164218-05ymeyo2hj0ae771
Adds ability to just build libdrizzle without needing all of the rest of the
drizzle depends. New configure option --without-server and then a make
libdrizzle and make install-libdrizzle make targets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
dnl Which version of the canonical setup we're using
7
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.175])
8
8
 
 
9
AC_DEFUN([PANDORA_MSG_ERROR],[
 
10
  AS_IF([test "x${pandora_cv_skip_requires}" != "xno"],[
 
11
    AC_MSG_ERROR($1)
 
12
  ],[
 
13
    AC_MSG_WARN($1)
 
14
  ])
 
15
])
 
16
 
9
17
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
18
  AC_ARG_ENABLE([fat-binaries],
11
19
    [AS_HELP_STRING([--enable-fat-binaries],
25
33
 
26
34
AC_DEFUN([PANDORA_BLOCK_BAD_OPTIONS],[
27
35
  AS_IF([test "x${prefix}" = "x"],[
28
 
    AC_MSG_ERROR([--prefix requires an argument])
 
36
    PANDORA_MSG_ERROR([--prefix requires an argument])
29
37
  ])
30
38
])
31
39
 
151
159
  PANDORA_CHECK_CXX_STANDARD
152
160
  m4_if(PCT_REQUIRE_CXX, [yes], [
153
161
    AS_IF([test "$ac_cv_cxx_stdcxx_98" = "no"],[
154
 
      AC_MSG_ERROR([No working C++ Compiler has been found. ${PACKAGE} requires a C++ compiler that can handle C++98])
 
162
      PANDORA_MSG_ERROR([No working C++ Compiler has been found. ${PACKAGE} requires a C++ compiler that can handle C++98])
155
163
    ])
156
164
  ])
157
165
  PANDORA_CXX_CSTDINT
182
190
  # off_t is not a builtin type
183
191
  AC_CHECK_SIZEOF(off_t, 4)
184
192
  AS_IF([test "$ac_cv_sizeof_off_t" -eq 0],[
185
 
    AC_MSG_ERROR("${PACKAGE} needs an off_t type.")
 
193
    PANDORA_MSG_ERROR("${PACKAGE} needs an off_t type.")
186
194
  ])
187
195
 
188
196
  AC_CHECK_SIZEOF(size_t)
189
197
  AS_IF([test "$ac_cv_sizeof_size_t" -eq 0],[
190
 
    AC_MSG_ERROR("${PACKAGE} needs an size_t type.")
 
198
    PANDORA_MSG_ERROR("${PACKAGE} needs an size_t type.")
191
199
  ])
192
200
 
193
201
  AC_DEFINE_UNQUOTED([SIZEOF_SIZE_T],[$ac_cv_sizeof_size_t],[Size of size_t as computed by sizeof()])