configure.ac (25c8c0ab) configure.ac (63ad6360)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 923 unchanged lines hidden (view full) ---

932],with_arm_target=$withval,with_arm_target=4)
933AC_ARG_WITH(rat-scan,
934[ --with-rat-scan Scan source code for license headers.
935 Use as --with-rat-scan to automatically download pre-built Rat binaries.
936 Alternatively use as --with-rat-scan=<path-to-rat-direcetory> to use
937 a separately installed library.
938],with_rat_scan=$withval,)
939
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 923 unchanged lines hidden (view full) ---

932],with_arm_target=$withval,with_arm_target=4)
933AC_ARG_WITH(rat-scan,
934[ --with-rat-scan Scan source code for license headers.
935 Use as --with-rat-scan to automatically download pre-built Rat binaries.
936 Alternatively use as --with-rat-scan=<path-to-rat-direcetory> to use
937 a separately installed library.
938],with_rat_scan=$withval,)
939
940AC_ARG_WITH(macosx-sdk-version,
941[ --with-macosx-sdk-version=<version> Specify the MacOSX platform SDK version, default is 10.7. Only 10.7 or higher is supported.
942],,)
943
944BUILD_TYPE="OOo"
945ADDITIONAL_REPOSITORIES="../ext_libraries"
946SCPDEFS=""
947
948dnl ===================================================================
949dnl Check configure script vs. configure.in
950dnl ===================================================================
951AC_MSG_CHECKING([whether configure is up-to-date])

--- 2954 unchanged lines hidden (view full) ---

3906 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
3907fi
3908AC_SUBST(SYSTEM_LIBXML)
3909AC_SUBST(LIBXML_CFLAGS)
3910AC_SUBST(LIBXML_LIBS)
3911
3912
3913dnl ===================================================================
940BUILD_TYPE="OOo"
941ADDITIONAL_REPOSITORIES="../ext_libraries"
942SCPDEFS=""
943
944dnl ===================================================================
945dnl Check configure script vs. configure.in
946dnl ===================================================================
947AC_MSG_CHECKING([whether configure is up-to-date])

--- 2954 unchanged lines hidden (view full) ---

3902 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
3903fi
3904AC_SUBST(SYSTEM_LIBXML)
3905AC_SUBST(LIBXML_CFLAGS)
3906AC_SUBST(LIBXML_LIBS)
3907
3908
3909dnl ===================================================================
3914dnl Checks for MacOS platform SDK. Default is 10.7
3910dnl Checks for a MacOS platform SDK which supports a OSX 10.7 deployment target
3915dnl ===================================================================
3916if test "$_os" = "Darwin"; then
3911dnl ===================================================================
3912if test "$_os" = "Darwin"; then
3917 AC_MSG_CHECKING([checking MacOS platform SDK])
3918 sdk_version=10.7
3913 sdk_target=10.7
3914 AC_MSG_CHECKING([checking SDK compatiblity with OSX $sdk_target])
3919
3915
3920 if test -n "$with_macosx_sdk_version"; then
3921 sdk_version=$with_macosx_sdk_version
3922 fi
3916 sdk_minor=`echo $sdk_target | cut -d"." -f2`
3923
3917
3924 sdk_minor=`echo $sdk_version | cut -d"." -f2`
3925
3926 if test "$sdk_minor" -lt "7"; then
3927 AC_MSG_ERROR([SDK version < 10.7 is not longer supported])
3928 else
3929 AC_MSG_RESULT([yes])
3918 if test "$sdk_minor" -lt "7"; then
3919 AC_MSG_ERROR([SDK version < 10.7 is not longer supported])
3920 else
3921 AC_MSG_RESULT([yes])
3930 if test "$sdk_minor" -ge "7"; then
3931 MACOSX_DEPLOYMENT_TARGET=$sdk_version
3922 MACOSX_DEPLOYMENT_TARGET=$sdk_target
3923
3924 AC_MSG_CHECKING([for SDKs compatible with $MACOSX_DEPLOYMENT_TARGET])
3925 sdk_found=`xcodebuild -showsdks | grep "sdk macosx10.[[789]]" | sed -e "s/.*sdk //" | head -n1`
3926 if test -z "$sdk_found"; then
3927 AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found])
3932 fi
3933
3928 fi
3929
3934 sdk_path=`xcodebuild -version -sdk macosx$MACOSX_DEPLOYMENT_TARGET Path`
3930 sdk_path=`xcodebuild -version -sdk ${sdk_found} Path`
3935 AC_MSG_CHECKING([for $sdk_path])
3936 if test -d "$sdk_path"; then
3937 AC_MSG_RESULT([yes])
3938 else
3931 AC_MSG_CHECKING([for $sdk_path])
3932 if test -d "$sdk_path"; then
3933 AC_MSG_RESULT([yes])
3934 else
3939 AC_MSG_ERROR([No proper MacOS platform SDK, not found])
3935 AC_MSG_ERROR([MacOS SDK $sdk_found is not available at $sdk_path])
3940 fi
3941
3942 MACOSX_SDK_PATH=$sdk_path
3943 fi
3944
3945fi
3946AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3947AC_SUBST(MACOSX_SDK_PATH)

--- 3393 unchanged lines hidden ---
3936 fi
3937
3938 MACOSX_SDK_PATH=$sdk_path
3939 fi
3940
3941fi
3942AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3943AC_SUBST(MACOSX_SDK_PATH)

--- 3393 unchanged lines hidden ---