12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- --- a/build/ac-macros/macosx.m4 2016-02-09 01:24:13.181409245 -0500
- +++ b/build/ac-macros/macosx.m4 2016-02-09 01:25:15.873408288 -0500
- @@ -17,94 +17,4 @@ dnl specific language governing permis
- dnl under the License.
- dnl ===================================================================
- dnl
- -dnl Mac OS X specific checks
-
- -dnl SVN_LIB_MACHO_ITERATE
- -dnl Check for _dyld_image_name and _dyld_image_header availability
- -AC_DEFUN(SVN_LIB_MACHO_ITERATE,
- -[
- - AC_MSG_CHECKING([for Mach-O dynamic module iteration functions])
- - AC_RUN_IFELSE([AC_LANG_PROGRAM([[
- - #include <mach-o/dyld.h>
- - #include <mach-o/loader.h>
- - ]],[[
- - const struct mach_header *header = _dyld_get_image_header(0);
- - const char *name = _dyld_get_image_name(0);
- - if (name && header) return 0;
- - return 1;
- - ]])],[
- - AC_DEFINE([SVN_HAVE_MACHO_ITERATE], [1],
- - [Is Mach-O low-level _dyld API available?])
- - AC_MSG_RESULT([yes])
- - ],[
- - AC_MSG_RESULT([no])
- - ])
- -])
- -
- -dnl SVN_LIB_MACOS_PLIST
- -dnl Assign variables for Mac OS property list support
- -AC_DEFUN(SVN_LIB_MACOS_PLIST,
- -[
- - AC_MSG_CHECKING([for Mac OS property list utilities])
- -
- - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- - #include <AvailabilityMacros.h>
- - #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
- - || !defined(MAC_OS_X_VERSION_10_0) \
- - || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
- - #error ProperyList API unavailable.
- - #endif
- - ]],[[]])],[
- - dnl ### Hack. We should only need to pass the -framework options when
- - dnl linking libsvn_subr, since it is the only library that uses Keychain.
- - dnl
- - dnl Unfortunately, libtool 1.5.x doesn't track transitive dependencies for
- - dnl OS X frameworks like it does for normal libraries, so we need to
- - dnl explicitly pass the option to all the users of libsvn_subr to allow
- - dnl static builds to link successfully.
- - dnl
- - dnl This does mean that all executables we link will be linked directly
- - dnl to these frameworks - even when building shared libraries - but that
- - dnl shouldn't cause any problems.
- -
- - LIBS="$LIBS -framework CoreFoundation"
- - AC_DEFINE([SVN_HAVE_MACOS_PLIST], [1],
- - [Is Mac OS property list API available?])
- - AC_MSG_RESULT([yes])
- - ],[
- - AC_MSG_RESULT([no])
- - ])
- -])
- -
- -dnl SVN_LIB_MACOS_KEYCHAIN
- -dnl Check configure options and assign variables related to Keychain support
- -
- -AC_DEFUN(SVN_LIB_MACOS_KEYCHAIN,
- -[
- - AC_ARG_ENABLE(keychain,
- - AS_HELP_STRING([--disable-keychain],
- - [Disable use of Mac OS KeyChain for auth credentials]),
- - [enable_keychain=$enableval],[enable_keychain=yes])
- -
- - AC_MSG_CHECKING([for Mac OS KeyChain Services])
- -
- - if test "$enable_keychain" = "yes"; then
- - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- - #include <AvailabilityMacros.h>
- - #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
- - || !defined(MAC_OS_X_VERSION_10_2) \
- - || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
- - #error KeyChain API unavailable.
- - #endif
- - ]],[[]])],[
- - dnl ### Hack, see SVN_LIB_MACOS_PLIST
- - LIBS="$LIBS -framework Security"
- - LIBS="$LIBS -framework CoreServices"
- - AC_DEFINE([SVN_HAVE_KEYCHAIN_SERVICES], [1], [Is Mac OS KeyChain support enabled?])
- - AC_MSG_RESULT([yes])
- - ],[
- - enable_keychain=no
- - AC_MSG_RESULT([no])
- - ])
- - fi
- -])
|