~ubuntu-branches/ubuntu/raring/blitz++/raring

« back to all changes in this revision

Viewing changes to m4/ac_cxx_typename.m4

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2005-02-28 20:25:01 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050228202501-3i4f2sknnprsqfhz
Tags: 1:0.8-4
Added missing build-depends (Closes: #297323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Available from the GNU Autoconf Macro Archive at:
 
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_typename.html
 
3
dnl
 
4
AC_DEFUN([AC_CXX_TYPENAME],
 
5
[AC_CACHE_CHECK(whether the compiler recognizes typename,
 
6
ac_cv_cxx_typename,
 
7
[AC_LANG_SAVE
 
8
 AC_LANG_CPLUSPLUS
 
9
 AC_TRY_COMPILE([template<typename T>class X {public:X(){}};],
 
10
[X<float> z; return 0;],
 
11
 ac_cv_cxx_typename=yes, ac_cv_cxx_typename=no)
 
12
 AC_LANG_RESTORE
 
13
])
 
14
if test "$ac_cv_cxx_typename" = yes; then
 
15
  AC_DEFINE(HAVE_TYPENAME,,[define if the compiler recognizes typename])
 
16
fi
 
17
])