]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/elf.m4
isl.m4: Don't pass -DCLOOG_INT_GMP on islinc.
[thirdparty/gcc.git] / config / elf.m4
CommitLineData
e44dbbe1 1dnl Copyright (C) 2010, 2011 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
10dnl usage: ACX_ELF_TARGET_IFELSE([if-elf], [if-not-elf])
11AC_DEFUN([ACX_ELF_TARGET_IFELSE], [
12AC_REQUIRE([AC_CANONICAL_TARGET])
13
14target_elf=no
15case $target in
16 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 17 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
3591b8e2 18 alpha*-dec-osf* | *-interix* | hppa[[12]]*-*-hpux*)
7413962d
RG
19 target_elf=no
20 ;;
21 *)
22 target_elf=yes
23 ;;
24esac
25
26AS_IF([test $target_elf = yes], [$1], [$2])
27])