| configure.ac (eda2f9d6) | configure.ac (29195361) |
|---|---|
| 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 --- 3996 unchanged lines hidden (view full) --- 4005elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 4006 test "$with_system_python" != "no"; then 4007 with_system_python=yes 4008 AC_MSG_RESULT([external]) 4009 AM_PATH_PYTHON([2.7]) 4010 4011 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"` 4012 python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` | 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 --- 3996 unchanged lines hidden (view full) --- 4005elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 4006 test "$with_system_python" != "no"; then 4007 with_system_python=yes 4008 AC_MSG_RESULT([external]) 4009 AM_PATH_PYTHON([2.7]) 4010 4011 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"` 4012 python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` |
| 4013 PYTHON_CFLAGS="-I$python_include" 4014 PYTHON_LIBS="-lpython$python_version" | 4013 PKG_CHECK_MODULES(PYTHON, python-$python_version, PYTHON_PC="TRUE", PYTHON_PC="" ) 4014 if test "$PYTHON_PC" != "TRUE"; then 4015 PYTHON_CFLAGS="-I$python_include" 4016 PYTHON_LIBS="-lpython$python_version" 4017 fi |
| 4015fi 4016if test "$with_system_python" = "yes" ; then 4017 SYSTEM_PYTHON=YES 4018 dnl check if the headers really work: 4019 save_CPPFLAGS="$CPPFLAGS" 4020 CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS" 4021 AC_CHECK_HEADER(Python.h, [], 4022 [AC_MSG_ERROR(Python headers not found)], []) --- 3494 unchanged lines hidden --- | 4018fi 4019if test "$with_system_python" = "yes" ; then 4020 SYSTEM_PYTHON=YES 4021 dnl check if the headers really work: 4022 save_CPPFLAGS="$CPPFLAGS" 4023 CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS" 4024 AC_CHECK_HEADER(Python.h, [], 4025 [AC_MSG_ERROR(Python headers not found)], []) --- 3494 unchanged lines hidden --- |