]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/elf.m4
i386: Cleanup ix86_expand_vecop_qihi{,2}
[thirdparty/gcc.git] / config / elf.m4
CommitLineData
8ae12d71 1dnl Copyright (C) 2010, 2011, 2015 Free Software Foundation, Inc.
7413962d
RG
2dnl This file is free software, distributed under the terms of the GNU
3dnl General Public License. As a special exception to the GNU General
4dnl Public License, this file may be distributed as part of a program
5dnl that contains a configuration script generated by Autoconf, under
6dnl the same distribution terms as the rest of that program.
7
8dnl From Paolo Bonzini.
9
8ae12d71
TS
10dnl Is this an ELF target supporting the LTO plugin?
11
7413962d
RG
12dnl usage: ACX_ELF_TARGET_IFELSE([if-elf], [if-not-elf])
13AC_DEFUN([ACX_ELF_TARGET_IFELSE], [
14AC_REQUIRE([AC_CANONICAL_TARGET])
15
16target_elf=no
17case $target in
18 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 19 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
18697a1d 20 alpha*-dec-osf* | *-interix* | hppa[[12]]*-*-hpux* | \
8ae12d71 21 nvptx-*-none)
7413962d
RG
22 target_elf=no
23 ;;
24 *)
25 target_elf=yes
26 ;;
27esac
28
29AS_IF([test $target_elf = yes], [$1], [$2])
30])