s48_osx_arch_flags.m4 760 B

12345678910111213141516171819202122232425
  1. ### s48_osx_arch_flags.m4 --- S48_OSX_ARCH_FLAGS macro -*- Autoconf -*-
  2. # serial 1
  3. dnl
  4. dnl
  5. dnl Checks for valid "-arch"-Flags on MacOSX depending on the
  6. dnl parameters build_universal (see S48_ENABLE_UNIVERSAL_BINARY)
  7. dnl and force_32 (see S48_ENABLE_FORCE_32BIT).
  8. AC_DEFUN([S48_OSX_ARCH_FLAGS], [dnl
  9. build_universal="$1"
  10. force_32="$2"
  11. if test "$build_universal" = 1 -a "$force_32" = 1; then
  12. S48_OSX_ARCH_CHECK(i386,32)
  13. S48_OSX_ARCH_CHECK(ppc,32)
  14. elif test "$build_universal" = 1 -a "$force_32" = 0; then
  15. if test "$BIT_SUFFIX" = 32; then
  16. S48_OSX_ARCH_CHECK(i386,32)
  17. S48_OSX_ARCH_CHECK(ppc,32)
  18. elif test "$BIT_SUFFIX" = 64; then
  19. S48_OSX_ARCH_CHECK(x86_64,64)
  20. S48_OSX_ARCH_CHECK(ppc64,64)
  21. fi
  22. fi
  23. ])
  24. ### s48_osx_arch_flags.m4 ends here