~ubuntu-branches/ubuntu/trusty/mira/trusty-proposed

« back to all changes in this revision

Viewing changes to config/m4/ax_cxx_have_std.m4

  • Committer: Package Import Robot
  • Author(s): Thorsten Alteholz, Thorsten Alteholz, Andreas Tille
  • Date: 2014-02-02 22:51:35 UTC
  • mfrom: (7.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140202225135-nesemzj59jjgogh0
Tags: 4.0-1
[ Thorsten Alteholz ]
* New upstream version 
* debian/rules: add boost dir in auto_configure (Closes: #735798)

[ Andreas Tille ]
* cme fix dpkg-control
* debian/patches/{make.patch,spelling.patch}: applied upstream (thus removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# ===========================================================================
2
 
#      http://www.gnu.org/software/autoconf-archive/ax_cxx_have_std.html
3
 
# ===========================================================================
4
 
#
5
 
# SYNOPSIS
6
 
#
7
 
#   AX_CXX_HAVE_STD
8
 
#
9
 
# DESCRIPTION
10
 
#
11
 
#   If the compiler supports ISO C++ standard library (i.e., can include the
12
 
#   files iostream, map, iomanip and cmath), define HAVE_STD.
13
 
#
14
 
# LICENSE
15
 
#
16
 
#   Copyright (c) 2008 Todd Veldhuizen
17
 
#   Copyright (c) 2008 Luc Maisonobe <luc@spaceroots.org>
18
 
#
19
 
#   Copying and distribution of this file, with or without modification, are
20
 
#   permitted in any medium without royalty provided the copyright notice
21
 
#   and this notice are preserved. This file is offered as-is, without any
22
 
#   warranty.
23
 
 
24
 
#serial 6
25
 
 
26
 
AU_ALIAS([AC_CXX_HAVE_STD], [AX_CXX_HAVE_STD])
27
 
AC_DEFUN([AX_CXX_HAVE_STD],
28
 
[AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library,
29
 
ax_cv_cxx_have_std,
30
 
[AC_REQUIRE([AX_CXX_NAMESPACES])
31
 
 AC_LANG_SAVE
32
 
 AC_LANG_CPLUSPLUS
33
 
 AC_TRY_COMPILE([#include <iostream>
34
 
#include <map>
35
 
#include <iomanip>
36
 
#include <cmath>
37
 
#ifdef HAVE_NAMESPACES
38
 
using namespace std;
39
 
#endif],[return 0;],
40
 
 ax_cv_cxx_have_std=yes, ax_cv_cxx_have_std=no)
41
 
 AC_LANG_RESTORE
42
 
])
43
 
if test "$ax_cv_cxx_have_std" = yes; then
44
 
  AC_DEFINE(HAVE_STD,,[define if the compiler supports ISO C++ standard library])
45
 
fi
46
 
])