Daily bump.
[official-gcc.git] / lto-plugin / configure.ac
bloba5f1774dff4c3c04ddbd45c680281cd53d835f42
1 AC_PREREQ(2.64)
2 AC_INIT([LTO plugin for ld], 0.1,,[lto-plugin])
3 AC_CANONICAL_SYSTEM
4 GCC_TOPLEV_SUBDIRS
5 AM_INIT_AUTOMAKE([foreign no-dist])
6 AM_MAINTAINER_MODE
7 AC_PROG_CC
8 AC_SYS_LARGEFILE
9 ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])
11 # Check whether -static-libgcc is supported.
12 saved_LDFLAGS="$LDFLAGS"
13 LDFLAGS="$LDFLAGS -static-libgcc"
14 AC_MSG_CHECKING([for -static-libgcc])
15 AC_LINK_IFELSE([
16   int main() {}], [have_static_libgcc=yes], [have_static_libgcc=no])
17 AC_MSG_RESULT($have_static_libgcc); 
18 LDFLAGS="$saved_LDFLAGS"
19 # Need -Wc to get it through libtool.
20 if test "x$have_static_libgcc" = xyes; then
21    ac_lto_plugin_ldflags="-Wc,-static-libgcc"
23 AC_SUBST(ac_lto_plugin_ldflags)
25 AM_PROG_LIBTOOL
26 ACX_LT_HOST_FLAGS
27 AC_SUBST(target_noncanonical)
28 AC_TYPE_INT64_T
29 AC_TYPE_UINT64_T
30 AC_HEADER_SYS_WAIT
31 AC_CONFIG_FILES(Makefile)
32 AC_CONFIG_HEADERS(config.h)
33 AC_OUTPUT