File: bfd64.m4

package info (click to toggle)
binutils 2.40-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 364,620 kB
  • sloc: ansic: 1,286,348; asm: 715,071; cpp: 215,388; exp: 74,960; makefile: 69,766; sh: 23,124; yacc: 15,309; lisp: 13,258; perl: 12,204; lex: 1,712; ada: 1,681; pascal: 1,446; cs: 879; java: 443; sed: 195; python: 154; xml: 95; awk: 25
file content (36 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dnl
dnl   Copyright (C) 2012-2022 Free Software Foundation, Inc.
dnl
dnl This file is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 3 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; see the file COPYING3.  If not see
dnl <http://www.gnu.org/licenses/>.
dnl

dnl See whether 64-bit bfd lib has been enabled.
AC_DEFUN([BFD_64_BIT], [dnl
AC_ARG_ENABLE(64-bit-bfd,
  AS_HELP_STRING([--enable-64-bit-bfd],
		 [64-bit support (on hosts with narrower word sizes)]),
  [AS_CASE([$enableval],
	   [yes|no], [],
	   [*], [AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option)])],
  [enable_64_bit_bfd=no])

dnl If the host is 64-bit, then 64-bit bfd is enabled automatically.
AS_IF([test "x$enable_64_bit_bfd" = "xno"], [dnl
  AC_CHECK_SIZEOF(void *)
  AS_IF([test "x$ac_cv_sizeof_void_p" = "x8"], [enable_64_bit_bfd=yes])
])

AM_CONDITIONAL([ENABLE_BFD_64_BIT], [test "x$enable_64_bit_bfd" = "xyes"])
])