diff options
author | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2008-02-19 03:17:55 +0000 |
---|---|---|
committer | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2008-02-19 03:17:55 +0000 |
commit | 15575cf8f17fee0fdd3151c5dbb0a0f89b01c708 (patch) | |
tree | 642982c6c7808c809ff6c18186424a687be84914 /configure.ac | |
parent | eb389b71b13d8a661cbb9d890f6033530723e21a (diff) | |
download | haskell-15575cf8f17fee0fdd3151c5dbb0a0f89b01c708.tar.gz |
Add configure option --with-macos-deployment-target
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9175078c4e..cab4f1902a 100644 --- a/configure.ac +++ b/configure.ac @@ -819,6 +819,23 @@ AC_ARG_ENABLE(dotnet, ) AC_SUBST(DotnetSupport) +dnl ** Mac OS X: explicit deployment target +dnl -------------------------------------------------------------- +AC_ARG_WITH([macos-deployment-target], +[AC_HELP_STRING([--macos-deployment-target=VERSION], + [Build for Mac OS VERSION and higher [default= version of build host]])], +[MACOS_DEPLOYMENT_TARGET="$withval" + if test "x$TargetOS_CPP-$TargetVendor_CPP" != "xdarwin-apple"; then + # ignore everywhere, but on Mac OS + AC_MSG_WARN([--macos-deployment-target is only available on Mac OS X]) + MACOS_DEPLOYMENT_TARGET=none + fi], +[MACOS_DEPLOYMENT_TARGET=none] +) +FP_MACOS_DEPLOYMENT_TARGET +AC_SUBST(MACOS_DEPLOYMENT_VERSION) +AC_SUBST(MACOS_DEPLOYMENT_SDK) + dnl -------------------------------------------------------------- dnl End of configure script option section dnl -------------------------------------------------------------- |