File: s48_enable_universal_binary.m4

package info (click to toggle)
scheme48 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,332 kB
  • sloc: lisp: 88,907; ansic: 87,519; sh: 3,224; makefile: 771
file content (29 lines) | stat: -rw-r--r-- 938 bytes parent folder | download
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
### s48_enable_universal_binary.m4 --- S48_ENABLE_UNIVERSAL_BINARY macro  -*- Autoconf -*-
# serial 1
dnl
dnl
dnl Option to build an universal binary on MacOSX.
AC_DEFUN([S48_ENABLE_UNIVERSAL_BINARY], [dnl
AC_MSG_CHECKING([whether we are building a Universal Binary])
dnl
AC_ARG_ENABLE([universal-binary],
[AC_HELP_STRING([--enable-universal-binary],
		[Build MacOS X Universal Binary])],
     [if test "$enable_universal_binary" != no; then
	 case $host in
           *darwin* ) S48_BUILD_UNIVERSAL_P="1"
	     AC_DEFINE([BUILD_UNIVERSAL_BINARY], 1,
		       [Define if we are building an OS X Universal Binary.])
	     AC_MSG_RESULT(yes)
           ;;
           * ) AC_MSG_ERROR([--enable-universal-binary only works on Mac OS X])
           ;;
         esac
      else
	 S48_BUILD_UNIVERSAL_P="0"
	 AC_MSG_RESULT(no)
      fi],
   	[dnl
	 S48_BUILD_UNIVERSAL_P="0"
	 AC_MSG_RESULT(no)])])
### s48_enable_universal_binary.m4 ends here