NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4564


Ignore:
Timestamp:
Oct 15, 2009, 5:05:24 PM (8 years ago)
Author:
bless
Message:
  • checking for unordered_map presence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protlib/branches/20091014-autotools/configure.ac

    r4558 r4564  
    11#                                               -*- Autoconf -*-
    22# Process this file with autoconf to produce a configure script.
     3# $Id$
     4# $HeadURL$
     5#
    36AC_INIT([protlib], [0.0.0.4549], [bless@tm.uka.de])
    47AM_INIT_AUTOMAKE([-Wall -Werror foreign])
     
    5154AC_SUBST([LIBIPQ_INCLUDE])
    5255
     56
     57[SAVECXXFLAGS=$CXXFLAGS; CXXFLAGS="-std=c++0x"]
    5358AC_LANG_CPLUSPLUS
     59
     60AC_CACHE_CHECK([whether unordered_map is available],
     61                        [ac_cv_unordered_map_exists],
     62[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unordered_map>]],
     63                                [[std::unordered_map<int,int> testmap;]])],
     64                                [ac_cv_unordered_map_exists=yes],
     65                                [ac_cv_unordered_map_exists=no])])
     66[CXXFLAGS=$SAVECXXFLAGS]
     67
     68
     69AM_CONDITIONAL(PROTLIB_NO_WARN_HASHMAP, test "$ac_cv_unordered_map_exists" = yes)
     70
    5471
    5572# check for RFC3542 availability, if not, we assume at least RFC 2292
Note: See TracChangeset for help on using the changeset viewer.