Lines Matching +full:self +full:- +full:test
2 # https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
24 # variable is declared as precious and thus reserved for the end-user.
41 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
80 if test -z "$2"; then
96 if test -z "$PYTHON"; then
105 if test $ax_python_devel_found = yes; then
110 ac_supports_python_ver=`$PYTHON -c "import sys; \
113 if test "$ac_supports_python_ver" != "True"; then
114 if test -z "$PYTHON_NOVERSIONCHECK"; then
119 2.1.0. You may need to re-run configure, setting the
138 if test $ax_python_devel_found = yes; then
145 if test -n "$1"; then
149 def vtup(self, s):
151 def __init__(self):
153 self.vpy = tuple(sys.version_info)[[:3]]
154 def __eq__(self, s):
155 return self.vpy == self.vtup(s)
156 def __ne__(self, s):
157 return self.vpy != self.vtup(s)
158 def __lt__(self, s):
159 return self.vpy < self.vtup(s)
160 def __gt__(self, s):
161 return self.vpy > self.vtup(s)
162 def __le__(self, s):
163 return self.vpy <= self.vtup(s)
164 def __ge__(self, s):
165 return self.vpy >= self.vtup(s)
167 ac_supports_python_ver=`$PYTHON -c "import ax_python_devel_vpy; \
170 rm -rf ax_python_devel_vpy*.py* __pycache__/ax_python_devel_vpy*.py*
171 if test "$ac_supports_python_ver" = "True"; then
178 variable to configure. See ``configure --help'' for reference.
189 if test $ax_python_devel_found = yes; then
194 ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`
195 if test $? -eq 0; then
202 ac_sysconfig_result=`$PYTHON -c "from distutils import sysconfig" 2>&1`
203 if test $? -eq 0; then
219 if test $ax_python_devel_found = yes; then
224 if test -z "$PYTHON_CPPFLAGS"; then
225 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
227 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
229 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
233 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
235 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
238 if test -n "${python_path}"; then
239 if test "${plat_python_path}" != "${python_path}"; then
240 python_path="-I$python_path -I$plat_python_path"
242 python_path="-I$python_path"
254 if test -z "$PYTHON_LIBS"; then
257 ac_python_version=`cat<<EOD | $PYTHON -
267 if test -z "$ac_python_version"; then
268 if test -n "$PYTHON_VERSION"; then
271 ac_python_version=`$PYTHON -c "import sys; \
281 ac_python_libdir=`cat<<EOD | $PYTHON -
291 ac_python_library=`cat<<EOD | $PYTHON -
305 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
309 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
312 ac_python_libdir=`$PYTHON -c \
316 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
319 if test -z "$PYTHON_LIBS"; then
333 if test $ax_python_devel_found = yes; then
340 AC_MSG_CHECKING([for Python site-packages path])
341 if test -z "$PYTHON_SITE_PKG"; then
342 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
343 PYTHON_SITE_PKG=`$PYTHON -c "
359 PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
367 # Check for platform-specific site packages
369 AC_MSG_CHECKING([for Python platform specific site-packages path])
370 if test -z "$PYTHON_PLATFORM_SITE_PKG"; then
371 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
372 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "
388 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
399 if test -z "$PYTHON_EXTRA_LIBS"; then
400 PYTHON_EXTRA_LIBS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
411 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
412 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
445 if test ! "x$pythonexists" = "xyes"; then
447 Could not link test program to Python. Maybe the main Python library has been
448 installed in some non-standard library path. If so, pass it to configure,
450 Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"