s48_enable_universal_binary.m4 938 B

123456789101112131415161718192021222324252627282930
  1. ### s48_enable_universal_binary.m4 --- S48_ENABLE_UNIVERSAL_BINARY macro -*- Autoconf -*-
  2. # serial 1
  3. dnl
  4. dnl
  5. dnl Option to build an universal binary on MacOSX.
  6. AC_DEFUN([S48_ENABLE_UNIVERSAL_BINARY], [dnl
  7. AC_MSG_CHECKING([whether we are building a Universal Binary])
  8. dnl
  9. AC_ARG_ENABLE([universal-binary],
  10. [AC_HELP_STRING([--enable-universal-binary],
  11. [Build MacOS X Universal Binary])],
  12. [if test "$enable_universal_binary" != no; then
  13. case $host in
  14. *darwin* ) S48_BUILD_UNIVERSAL_P="1"
  15. AC_DEFINE([BUILD_UNIVERSAL_BINARY], 1,
  16. [Define if we are building an OS X Universal Binary.])
  17. AC_MSG_RESULT(yes)
  18. ;;
  19. * ) AC_MSG_ERROR([--enable-universal-binary only works on Mac OS X])
  20. ;;
  21. esac
  22. else
  23. S48_BUILD_UNIVERSAL_P="0"
  24. AC_MSG_RESULT(no)
  25. fi],
  26. [dnl
  27. S48_BUILD_UNIVERSAL_P="0"
  28. AC_MSG_RESULT(no)])])
  29. ### s48_enable_universal_binary.m4 ends here