bfd64.m4 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. dnl See whether 64-bit bfd lib has been enabled.
  19. AC_DEFUN([BFD_64_BIT], [dnl
  20. AC_ARG_ENABLE(64-bit-bfd,
  21. AS_HELP_STRING([--enable-64-bit-bfd],
  22. [64-bit support (on hosts with narrower word sizes)]),
  23. [AS_CASE([$enableval],
  24. [yes|no], [],
  25. [*], [AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option)])],
  26. [enable_64_bit_bfd=no])
  27. dnl If the host is 64-bit, then 64-bit bfd is enabled automatically.
  28. AS_IF([test "x$enable_64_bit_bfd" = "xno"], [dnl
  29. AC_CHECK_SIZEOF(void *)
  30. AS_IF([test "x$ac_cv_sizeof_void_p" = "x8"], [enable_64_bit_bfd=yes])
  31. ])
  32. AM_CONDITIONAL([ENABLE_BFD_64_BIT], [test "x$enable_64_bit_bfd" = "xyes"])
  33. ])