1 dnl Process this file with autoconf to produce a configure script.
5 AC_CONFIG_SRCDIR([gold.cc])
9 AM_INIT_AUTOMAKE(gold, 0.1)
11 AM_CONFIG_HEADER(config.h:config.in)
18 ZW_GNU_GETTEXT_SISTER_DIR
27 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
28 AC_SUBST(WARN_CXXFLAGS)
30 dnl Force support for large files by default. This may need to be
31 dnl host dependent. If build == host, we can check getconf LFS_CFLAGS.
32 LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
33 AC_SUBST(LFS_CXXFLAGS)
37 AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map)
38 AC_CHECK_HEADERS(ext/hash_map ext/hash_set)
40 dnl Test whether the compiler can specify a member templates to call.
42 class c { public: template<int i> void fn(); };
43 template<int i> void foo(c cv) { cv.fn<i>(); }
44 template void foo<1>(c cv);],
45 [AC_DEFINE(HAVE_MEMBER_TEMPLATE_SPECIFICATIONS, [],
46 [Whether the C++ compiler can call a template member with no arguments])])
52 AC_OUTPUT(Makefile testsuite/Makefile po/Makefile.in:po/Make-in)