]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - config/bfd64.m4
Merge config/ changes from GCC, to enable DFP on AArch64
[thirdparty/binutils-gdb.git] / config / bfd64.m4
1 dnl
2 dnl Copyright (C) 2012-2022 Free Software Foundation, Inc.
3 dnl
4 dnl This file is free software; you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation; either version 3 of the License, or
7 dnl (at your option) any later version.
8 dnl
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
13 dnl
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program; see the file COPYING3. If not see
16 dnl <http://www.gnu.org/licenses/>.
17 dnl
18
19 dnl See whether 64-bit bfd lib has been enabled.
20 AC_DEFUN([BFD_64_BIT], [dnl
21 AC_ARG_ENABLE(64-bit-bfd,
22 AS_HELP_STRING([--enable-64-bit-bfd],
23 [64-bit support (on hosts with narrower word sizes)]),
24 [AS_CASE([$enableval],
25 [yes|no], [],
26 [*], [AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option)])],
27 [enable_64_bit_bfd=no])
28
29 dnl If the host is 64-bit, then 64-bit bfd is enabled automatically.
30 AS_IF([test "x$enable_64_bit_bfd" = "xno"], [dnl
31 AC_CHECK_SIZEOF(void *)
32 AS_IF([test "x$ac_cv_sizeof_void_p" = "x8"], [enable_64_bit_bfd=yes])
33 ])
34
35 AM_CONDITIONAL([ENABLE_BFD_64_BIT], [test "x$enable_64_bit_bfd" = "xyes"])
36 ])