Mercurial > hg > CbC > CbC_gcc
annotate lto-plugin/configure.ac @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 AC_INIT([LTO plugin for ld], 0.1,,[lto-plugin]) |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
2 AC_CANONICAL_SYSTEM |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 GCC_TOPLEV_SUBDIRS |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
4 AM_INIT_AUTOMAKE([foreign no-dist]) |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 AM_MAINTAINER_MODE |
111 | 6 AC_ARG_WITH(libiberty, |
7 [AS_HELP_STRING([--with-libiberty=PATH], | |
8 [specify the directory where to find libiberty [../libiberty]])], | |
9 [], with_libiberty=../libiberty) | |
10 AC_SUBST(with_libiberty) | |
11 AC_USE_SYSTEM_EXTENSIONS | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 AC_PROG_CC |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 AC_SYS_LARGEFILE |
111 | 14 ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags]) |
15 | |
16 # Check whether -static-libgcc is supported. | |
17 saved_LDFLAGS="$LDFLAGS" | |
18 LDFLAGS="$LDFLAGS -static-libgcc" | |
19 AC_MSG_CHECKING([for -static-libgcc]) | |
145 | 20 AC_LINK_IFELSE([AC_LANG_SOURCE([ |
21 int main() {}])], [have_static_libgcc=yes], [have_static_libgcc=no]) | |
111 | 22 AC_MSG_RESULT($have_static_libgcc); |
23 LDFLAGS="$saved_LDFLAGS" | |
24 # Need -Wc to get it through libtool. | |
25 if test "x$have_static_libgcc" = xyes; then | |
26 ac_lto_plugin_ldflags="-Wc,-static-libgcc" | |
27 fi | |
28 AC_SUBST(ac_lto_plugin_ldflags) | |
29 | |
30 if test x"$host_subdir" = x.; then | |
31 gcc_build_dir=../gcc | |
32 else | |
33 gcc_build_dir=../../$host_subdir/gcc | |
34 fi | |
35 AC_SUBST(gcc_build_dir) | |
36 | |
37 # Used for constructing correct paths for offload compilers. | |
38 accel_dir_suffix= | |
39 real_target_noncanonical=${target_noncanonical} | |
40 if test x"$enable_as_accelerator_for" != x; then | |
41 accel_dir_suffix=/accel/${target_noncanonical} | |
42 real_target_noncanonical=${enable_as_accelerator_for} | |
43 fi | |
44 AC_SUBST(accel_dir_suffix) | |
45 AC_SUBST(real_target_noncanonical) | |
46 | |
47 # Determine what GCC version number to use in filesystem paths. | |
48 GCC_BASE_VER | |
49 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
50 AM_PROG_LIBTOOL |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
51 ACX_LT_HOST_FLAGS |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
52 AC_SUBST(target_noncanonical) |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
53 AC_TYPE_INT64_T |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
54 AC_TYPE_UINT64_T |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
55 AC_HEADER_SYS_WAIT |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
56 AC_CONFIG_FILES(Makefile) |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
57 AC_CONFIG_HEADERS(config.h) |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
58 AC_OUTPUT |