Imported Upstream version 3.2.2
[debian/gnuradio] / config / ax_boost_date_time.m4
1 #
2 # SYNOPSIS
3 #
4 #   AX_BOOST_DATE_TIME
5 #
6 # DESCRIPTION
7 #
8 #   Test for date_time library from the Boost C++ libraries.
9 #
10 #   This macro calls:
11 #
12 #     AC_SUBST(BOOST_DATE_TIME_LIB)
13 #
14 #   And sets:
15 #
16 #     HAVE_BOOST_DATE_TIME
17 #
18 # COPYLEFT
19 #
20 #   Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
21 #   Copyright (c) 2008 Michael Tindal
22 #   Copyright (c) 2008 Free Software Foundation, Inc.
23 #
24 #   Copying and distribution of this file, with or without modification, are
25 #   permitted in any medium without royalty provided the copyright notice
26 #   and this notice are preserved.
27
28 AC_DEFUN([AX_BOOST_DATE_TIME],
29 [
30     AC_REQUIRE([AX_BOOST_BASE]) 
31     _AX_BOOST_CHECK([boost_date_time],
32                     [@%:@include <boost/date_time/gregorian/gregorian_types.hpp>],
33                     [using namespace boost::gregorian; date d(2002,Jan,10); return 0;])
34 ])