~drizzle-trunk/drizzle/development

1085.1.4 by Monty Taylor
pandora-build v1
1
dnl  Copyright (C) 2009 Sun Microsystems
2
dnl This file is free software; Sun Microsystems
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
1085.1.3 by Monty Taylor
Split out warnings - start using the pandora build system.
6
AC_DEFUN([PANDORA_CHECK_CXX_STANDARD],[
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
7
  AC_REQUIRE([AC_CXX_COMPILE_STDCXX_0X])
8
  AS_IF([test "$GCC" = "yes"],
9
        [AS_IF([test "$ac_cv_cxx_compile_cxx0x_native" = "yes"],[],
10
               [AS_IF([test "$ac_cv_cxx_compile_cxx0x_gxx" = "yes"],
1241.9.7 by Monty Taylor
Fixed setting of C++ standard.
11
                      [CXX_STANDARD="-std=gnu++0x"],
12
                      [CXX_STANDARD="-std=gnu++98"])
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
13
               ])
14
        ])
1241.9.7 by Monty Taylor
Fixed setting of C++ standard.
15
  AM_CXXFLAGS="${CXX_STANDARD} ${AM_CXXFLAGS}"
16
  
17
  save_CXXFLAGS="${CXXFLAGS}"
18
  CXXFLAGS="${CXXFLAGS} ${CXX_STANDARD}"
1085.1.3 by Monty Taylor
Split out warnings - start using the pandora build system.
19
  AC_CXX_HEADER_STDCXX_98
1241.9.7 by Monty Taylor
Fixed setting of C++ standard.
20
  CXXFLAGS="${save_CXXFLAGS}"
21
22
  AC_SUBST([CXX_STANDARD])
919.2.16 by Monty Taylor
Added check for setting -std=gnu++0x if available.
23
])