configure.ac (b12514e1) configure.ac (61a3a0ff)
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
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])

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

1137 test_freetype=no
1138 test_gstreamer=no
1139 _os=Darwin
1140 if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
1141 AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray])
1142 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn
1143 enable_systray=no
1144 fi
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])

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

1141 test_freetype=no
1142 test_gstreamer=no
1143 _os=Darwin
1144 if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
1145 AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray])
1146 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn
1147 enable_systray=no
1148 fi
1149 if test ! -n "$CC"; then
1150 CC="`xcrun -f clang` -arch x86_64"
1151 fi
1152 if test ! -n "$CXX"; then
1153 CXX="`xcrun -f clang++` -arch x86_64 -std=c++11"
1154 fi
1145 ;;
1146 os2*)
1147 test_x=no
1148 test_cups=no
1149 test_randr=no
1150 test_gtk=no
1151 test_freetype=no
1152 test_gstreamer=no

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

3890 AC_MSG_RESULT([internal])
3891 SYSTEM_LIBXML=NO
3892 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
3893fi
3894AC_SUBST(SYSTEM_LIBXML)
3895AC_SUBST(LIBXML_CFLAGS)
3896AC_SUBST(LIBXML_LIBS)
3897
1155 ;;
1156 os2*)
1157 test_x=no
1158 test_cups=no
1159 test_randr=no
1160 test_gtk=no
1161 test_freetype=no
1162 test_gstreamer=no

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

3900 AC_MSG_RESULT([internal])
3901 SYSTEM_LIBXML=NO
3902 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
3903fi
3904AC_SUBST(SYSTEM_LIBXML)
3905AC_SUBST(LIBXML_CFLAGS)
3906AC_SUBST(LIBXML_LIBS)
3907
3908
3898dnl ===================================================================
3909dnl ===================================================================
3910dnl Checks for MacOS platform SDK. Default is 10.7
3911dnl ===================================================================
3912if test "$_os" = "Darwin"; then
3913 AC_MSG_CHECKING([checking MacOS platform SDK])
3914 sdk_version=10.7
3915
3916 if test -n "$with_macosx_sdk_version"; then
3917 sdk_version=$with_macosx_sdk_version
3918 fi
3919
3920 sdk_minor=`echo $sdk_version | cut -d"." -f2`
3921
3922 if test "$sdk_minor" -lt "7"; then
3923 AC_MSG_ERROR([SDK version < 10.7 is not longer supported])
3924 else
3925 AC_MSG_RESULT([yes])
3926 if test "$sdk_minor" -ge "7"; then
3927 MACOSX_DEPLOYMENT_TARGET=$sdk_version
3928 fi
3929
3930 sdk_path=`xcodebuild -version -sdk macosx$MACOSX_DEPLOYMENT_TARGET Path`
3931 AC_MSG_CHECKING([for $sdk_path])
3932 if test -d "$sdk_path"; then
3933 AC_MSG_RESULT([yes])
3934 else
3935 AC_MSG_ERROR([No proper MacOS platform SDK, not found])
3936 fi
3937
3938 MACOSX_SDK_PATH=$sdk_path
3939 fi
3940
3941fi
3942AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3943AC_SUBST(MACOSX_SDK_PATH)
3944
3945
3946dnl ===================================================================
3899dnl Check for system python
3900dnl ===================================================================
3901AC_MSG_CHECKING([which python to use])
3902if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
3903 with_system_python=yes
3904
3905 _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python"
3906 if test ! -f $_python; then

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

3914 if test $_python_hexversion -ge 34013680 ; then
3915 _python_version=`$_python -c "import sys; print sys.version;" | head -c 3`
3916 AC_MSG_RESULT([compiling against system python (version $_python_version)])
3917
3918 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
3919
3920 if test -d "/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then
3921 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
3947dnl Check for system python
3948dnl ===================================================================
3949AC_MSG_CHECKING([which python to use])
3950if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
3951 with_system_python=yes
3952
3953 _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python"
3954 if test ! -f $_python; then

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

3962 if test $_python_hexversion -ge 34013680 ; then
3963 _python_version=`$_python -c "import sys; print sys.version;" | head -c 3`
3964 AC_MSG_RESULT([compiling against system python (version $_python_version)])
3965
3966 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
3967
3968 if test -d "/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then
3969 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
3922 elif test -d "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/python$_python_ver"; then
3923 PYTHON_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/python$_python_ver"
3970 elif test -d "$MACOSX_SDK_PATH/usr/include/python$_python_ver"; then
3971 PYTHON_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/python$_python_ver"
3924 else
3972 else
3925 PYTHON_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
3973 PYTHON_CFLAGS="-I$MACOSX_SDK_PATH/System/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
3926 fi
3927 else
3928 AC_MSG_ERROR([Python 2.7.1 or higher is required])
3929 fi
3930
3931 PYTHON_LIBS="-framework Python"
3932elif test -n "$with_system_python" -o -n "$with_system_libs" && \
3933 test "$with_system_python" != "no"; then

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

4777 AC_MSG_RESULT([no])
4778 ENABLE_GRAPHITE="FALSE"
4779fi
4780AC_SUBST(ENABLE_GRAPHITE)
4781AC_SUBST(SYSTEM_GRAPHITE)
4782AC_SUBST(GRAPHITE_LIBS)
4783AC_SUBST(GRAPHITE_CFLAGS)
4784
3974 fi
3975 else
3976 AC_MSG_ERROR([Python 2.7.1 or higher is required])
3977 fi
3978
3979 PYTHON_LIBS="-framework Python"
3980elif test -n "$with_system_python" -o -n "$with_system_libs" && \
3981 test "$with_system_python" != "no"; then

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

4825 AC_MSG_RESULT([no])
4826 ENABLE_GRAPHITE="FALSE"
4827fi
4828AC_SUBST(ENABLE_GRAPHITE)
4829AC_SUBST(SYSTEM_GRAPHITE)
4830AC_SUBST(GRAPHITE_LIBS)
4831AC_SUBST(GRAPHITE_CFLAGS)
4832
4833
4785dnl ===================================================================
4786dnl Checks for libraries.
4787dnl ===================================================================
4788dnl Check for Mac OS X native GUI, which may is now required; the X11 build is no longer supported
4789dnl See if we have the AppKit framework for building with Quartz graphics.
4790
4791if test "$_os" = "Darwin"; then
4792 if test "x$with_x" = "xyes"; then

--- 2495 unchanged lines hidden ---
4834dnl ===================================================================
4835dnl Checks for libraries.
4836dnl ===================================================================
4837dnl Check for Mac OS X native GUI, which may is now required; the X11 build is no longer supported
4838dnl See if we have the AppKit framework for building with Quartz graphics.
4839
4840if test "$_os" = "Darwin"; then
4841 if test "x$with_x" = "xyes"; then

--- 2495 unchanged lines hidden ---