~drizzle-trunk/drizzle/jenkins-Drizzle-Builder-216

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Brian Aker
  • Date: 2012-12-31 11:49:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2610.
  • Revision ID: brian@tangent.org-20121231114921-1axh6emzu6s7lat3
Allow for warnings in autoconf, but be realistic about our ability to handle obsoletes for the time being.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
3
 
dnl gives unlimited permission to copy and/or distribute it,
4
 
dnl with or without modifications, as long as this notice is preserved.
5
 
 
6
 
dnl Which version of the canonical setup we're using
 
1
#  Copyright (C) 2009 Sun Microsystems, Inc.
 
2
#  This file is free software; Sun Microsystems, Inc.
 
3
#  gives unlimited permission to copy and/or distribute it,
 
4
#  with or without modifications, as long as this notice is preserved.
 
5
 
 
6
#
 
7
# Test whether madvise() is declared in C++ code -- it is not on some
 
8
# systems, such as Solaris
 
9
AC_DEFUN([LOCAL_MADVISE],
 
10
    [AC_PREREQ([2.63])dnl
 
11
    AC_LANG_PUSH([C++])
 
12
    AC_CHECK_DECLS([madvise],[],[],[AC_INCLUDES_DEFAULT[
 
13
#if HAVE_SYS_MMAN_H
 
14
# include <sys/types.h>
 
15
# include <sys/mman.h>
 
16
#endif
 
17
      ]])
 
18
    AC_LANG_POP([C++])
 
19
    ])
 
20
 
 
21
# Which version of the canonical setup we're using
7
22
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.175])
8
23
 
9
24
AC_DEFUN([PANDORA_MSG_ERROR],[
20
35
  ])
21
36
])
22
37
 
23
 
dnl The standard setup for how we build Pandora projects
 
38
# The standard setup for how we build Pandora projects
24
39
AC_DEFUN([PANDORA_CANONICAL_TARGET],[
25
40
  ifdef([m4_define],,[define([m4_define],   defn([define]))])
26
41
  ifdef([m4_undefine],,[define([m4_undefine],   defn([undefine]))])
107
122
  ])
108
123
  PANDORA_VERSION
109
124
 
110
 
  dnl Once we can use a modern autoconf, we can use this
111
 
  dnl AC_PROG_CC_C99
 
125
# Once we can use a modern autoconf, we can use this
 
126
# AC_PROG_CC_C99
112
127
  AC_REQUIRE([AC_PROG_CXX])
113
128
  PANDORA_EXTENSIONS
114
129
  AM_PROG_CC_C_O
115
130
 
116
 
 
117
 
 
118
131
  PANDORA_PLATFORM
119
132
 
120
 
  dnl autoconf doesn't automatically provide a fail-if-no-C++ macro
121
 
  dnl so we check c++98 features and fail if we don't have them, mainly
122
 
  dnl for that reason
 
133
# autoconf doesn't automatically provide a fail-if-no-C++ macro
 
134
# so we check c++98 features and fail if we don't have them, mainly
 
135
# for that reason
123
136
  PANDORA_CHECK_CXX_STANDARD
124
137
  m4_if(PCT_REQUIRE_CXX, [yes], [
125
138
    AS_IF([test "$ac_cv_cxx_stdcxx_98" = "no"],[
150
163
      [Define if system doesn't define])
151
164
  ])
152
165
 
153
 
  AC_CHECK_LIBM
154
 
  dnl Bug on FreeBSD - LIBM check doesn't set the damn variable
155
 
  AC_SUBST([LIBM])
156
 
  
 
166
  LT_LIB_M
157
167
 
158
168
  PANDORA_OPTIMIZE
159
169
 
160
 
  AC_LANG_PUSH(C++)
161
 
  # Test whether madvise() is declared in C++ code -- it is not on some
162
 
  # systems, such as Solaris
163
 
  AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
164
 
  #if HAVE_SYS_MMAN_H
165
 
  #include <sys/types.h>
166
 
  #include <sys/mman.h>
167
 
  #endif
168
 
  ]])
169
 
  AC_LANG_POP()
 
170
  LOCAL_MADVISE
170
171
 
171
172
  PANDORA_HAVE_GCC_ATOMICS
172
173