updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / pypoker-eval / configure.patch
blobd759601fdfe55a13f93b8031155b861241c2cb3b
1 --- pypoker-eval-138.0/configure 2010-09-04 10:10:30.000000000 +0200
2 +++ configure 2011-01-13 17:11:03.640165723 +0100
3 @@ -749,6 +749,15 @@
4 PKG_CONFIG_LIBDIR
5 PKG_CONFIG_PATH
6 PKG_CONFIG
7 +PYTHON_2_7_FALSE
8 +PYTHON_2_7_TRUE
9 +PYTHON2_7_LIBS
10 +PYTHON2_7_CFLAGS
11 +python2_7linkflags
12 +python2_7clibdir
13 +python2_7includedir
14 +pkgpy2_7execdir
15 +py2_7execdir
16 PYTHON_2_6_FALSE
17 PYTHON_2_6_TRUE
18 PYTHON2_6_LIBS
19 @@ -5466,13 +5475,13 @@
20 else
21 lt_cv_nm_interface="BSD nm"
22 echo "int some_variable = 0;" > conftest.$ac_ext
23 - (eval echo "\"\$as_me:5469: $ac_compile\"" >&5)
24 + (eval echo "\"\$as_me:5478: $ac_compile\"" >&5)
25 (eval "$ac_compile" 2>conftest.err)
26 cat conftest.err >&5
27 - (eval echo "\"\$as_me:5472: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
28 + (eval echo "\"\$as_me:5481: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
29 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
30 cat conftest.err >&5
31 - (eval echo "\"\$as_me:5475: output\"" >&5)
32 + (eval echo "\"\$as_me:5484: output\"" >&5)
33 cat conftest.out >&5
34 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
35 lt_cv_nm_interface="MS dumpbin"
36 @@ -6677,7 +6686,7 @@
38 *-*-irix6*)
39 # Find out which ABI we are using.
40 - echo '#line 6680 "configure"' > conftest.$ac_ext
41 + echo '#line 6689 "configure"' > conftest.$ac_ext
42 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
43 (eval $ac_compile) 2>&5
44 ac_status=$?
45 @@ -8466,11 +8475,11 @@
46 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
48 -e 's:$: $lt_compiler_flag:'`
49 - (eval echo "\"\$as_me:8469: $lt_compile\"" >&5)
50 + (eval echo "\"\$as_me:8478: $lt_compile\"" >&5)
51 (eval "$lt_compile" 2>conftest.err)
52 ac_status=$?
53 cat conftest.err >&5
54 - echo "$as_me:8473: \$? = $ac_status" >&5
55 + echo "$as_me:8482: \$? = $ac_status" >&5
56 if (exit $ac_status) && test -s "$ac_outfile"; then
57 # The compiler can only warn and ignore the option if not recognized
58 # So say no if there are warnings other than the usual output.
59 @@ -8805,11 +8814,11 @@
60 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
61 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
62 -e 's:$: $lt_compiler_flag:'`
63 - (eval echo "\"\$as_me:8808: $lt_compile\"" >&5)
64 + (eval echo "\"\$as_me:8817: $lt_compile\"" >&5)
65 (eval "$lt_compile" 2>conftest.err)
66 ac_status=$?
67 cat conftest.err >&5
68 - echo "$as_me:8812: \$? = $ac_status" >&5
69 + echo "$as_me:8821: \$? = $ac_status" >&5
70 if (exit $ac_status) && test -s "$ac_outfile"; then
71 # The compiler can only warn and ignore the option if not recognized
72 # So say no if there are warnings other than the usual output.
73 @@ -8910,11 +8919,11 @@
74 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
75 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76 -e 's:$: $lt_compiler_flag:'`
77 - (eval echo "\"\$as_me:8913: $lt_compile\"" >&5)
78 + (eval echo "\"\$as_me:8922: $lt_compile\"" >&5)
79 (eval "$lt_compile" 2>out/conftest.err)
80 ac_status=$?
81 cat out/conftest.err >&5
82 - echo "$as_me:8917: \$? = $ac_status" >&5
83 + echo "$as_me:8926: \$? = $ac_status" >&5
84 if (exit $ac_status) && test -s out/conftest2.$ac_objext
85 then
86 # The compiler can only warn and ignore the option if not recognized
87 @@ -8965,11 +8974,11 @@
88 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
89 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
90 -e 's:$: $lt_compiler_flag:'`
91 - (eval echo "\"\$as_me:8968: $lt_compile\"" >&5)
92 + (eval echo "\"\$as_me:8977: $lt_compile\"" >&5)
93 (eval "$lt_compile" 2>out/conftest.err)
94 ac_status=$?
95 cat out/conftest.err >&5
96 - echo "$as_me:8972: \$? = $ac_status" >&5
97 + echo "$as_me:8981: \$? = $ac_status" >&5
98 if (exit $ac_status) && test -s out/conftest2.$ac_objext
99 then
100 # The compiler can only warn and ignore the option if not recognized
101 @@ -11349,7 +11358,7 @@
102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
103 lt_status=$lt_dlunknown
104 cat > conftest.$ac_ext <<_LT_EOF
105 -#line 11352 "configure"
106 +#line 11361 "configure"
107 #include "confdefs.h"
109 #if HAVE_DLFCN_H
110 @@ -11445,7 +11454,7 @@
111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
112 lt_status=$lt_dlunknown
113 cat > conftest.$ac_ext <<_LT_EOF
114 -#line 11448 "configure"
115 +#line 11457 "configure"
116 #include "confdefs.h"
118 #if HAVE_DLFCN_H
119 @@ -13401,11 +13410,11 @@
120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
122 -e 's:$: $lt_compiler_flag:'`
123 - (eval echo "\"\$as_me:13404: $lt_compile\"" >&5)
124 + (eval echo "\"\$as_me:13413: $lt_compile\"" >&5)
125 (eval "$lt_compile" 2>conftest.err)
126 ac_status=$?
127 cat conftest.err >&5
128 - echo "$as_me:13408: \$? = $ac_status" >&5
129 + echo "$as_me:13417: \$? = $ac_status" >&5
130 if (exit $ac_status) && test -s "$ac_outfile"; then
131 # The compiler can only warn and ignore the option if not recognized
132 # So say no if there are warnings other than the usual output.
133 @@ -13500,11 +13509,11 @@
134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
136 -e 's:$: $lt_compiler_flag:'`
137 - (eval echo "\"\$as_me:13503: $lt_compile\"" >&5)
138 + (eval echo "\"\$as_me:13512: $lt_compile\"" >&5)
139 (eval "$lt_compile" 2>out/conftest.err)
140 ac_status=$?
141 cat out/conftest.err >&5
142 - echo "$as_me:13507: \$? = $ac_status" >&5
143 + echo "$as_me:13516: \$? = $ac_status" >&5
144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
145 then
146 # The compiler can only warn and ignore the option if not recognized
147 @@ -13552,11 +13561,11 @@
148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
150 -e 's:$: $lt_compiler_flag:'`
151 - (eval echo "\"\$as_me:13555: $lt_compile\"" >&5)
152 + (eval echo "\"\$as_me:13564: $lt_compile\"" >&5)
153 (eval "$lt_compile" 2>out/conftest.err)
154 ac_status=$?
155 cat out/conftest.err >&5
156 - echo "$as_me:13559: \$? = $ac_status" >&5
157 + echo "$as_me:13568: \$? = $ac_status" >&5
158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
159 then
160 # The compiler can only warn and ignore the option if not recognized
161 @@ -14740,7 +14749,7 @@
162 # VERSION.
163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version $required_version" >&5
164 $as_echo_n "checking for a Python interpreter with version $required_version... " >&6; }
165 - for am_cv_pathless_PYTHON in python2.6 python2.5 python2.4 python2.3 none; do
166 + for am_cv_pathless_PYTHON in python2.7 python2.6 python2.5 python2.4 python2.3 none; do
167 test "$am_cv_pathless_PYTHON" = none && break
168 prog="import sys, string
169 if '$required_version' == '': sys.exit(0)
170 @@ -15111,7 +15120,7 @@
171 # VERSION.
172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version $required_version" >&5
173 $as_echo_n "checking for a Python interpreter with version $required_version... " >&6; }
174 - for am_cv_pathless_PYTHON in python2.6 python2.5 python2.4 python2.3 none; do
175 + for am_cv_pathless_PYTHON in python2.7 python2.6 python2.5 python2.4 python2.3 none; do
176 test "$am_cv_pathless_PYTHON" = none && break
177 prog="import sys, string
178 if '$required_version' == '': sys.exit(0)
179 @@ -15482,7 +15491,7 @@
180 # VERSION.
181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version $required_version" >&5
182 $as_echo_n "checking for a Python interpreter with version $required_version... " >&6; }
183 - for am_cv_pathless_PYTHON in python2.6 python2.5 python2.4 python2.3 none; do
184 + for am_cv_pathless_PYTHON in python2.7 python2.6 python2.5 python2.4 python2.3 none; do
185 test "$am_cv_pathless_PYTHON" = none && break
186 prog="import sys, string
187 if '$required_version' == '': sys.exit(0)
188 @@ -15853,7 +15862,7 @@
189 # VERSION.
190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version $required_version" >&5
191 $as_echo_n "checking for a Python interpreter with version $required_version... " >&6; }
192 - for am_cv_pathless_PYTHON in python2.6 python2.5 python2.4 python2.3 none; do
193 + for am_cv_pathless_PYTHON in python2.7 python2.6 python2.5 python2.4 python2.3 none; do
194 test "$am_cv_pathless_PYTHON" = none && break
195 prog="import sys, string
196 if '$required_version' == '': sys.exit(0)
197 @@ -16156,6 +16165,377 @@
200 if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
201 +unset PYTHON
207 + if expr "=2.7" : "[<>=]" > /dev/null ; then
208 + required_version="=2.7"
209 + elif test -z "=2.7" || expr "=2.7" : ' *$' > /dev/null ; then
210 + required_version=""
211 + else
212 + required_version=">==2.7"
213 + fi
214 + if test -n "$PYTHON"; then
215 + # If the user set $PYTHON, use it and don't search something else.
216 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version $required_version" >&5
217 +$as_echo_n "checking whether $PYTHON version $required_version... " >&6; }
218 + prog="import sys, string
219 +if '$required_version' == '': sys.exit(0)
220 +spec = string.replace('$required_version', ' ', '')
221 +if spec[:2] == '<=':
222 + version_string = spec[2:]
223 +elif spec[:2] == '>=':
224 + version_string = spec[2:]
225 +elif spec[:1] == '=':
226 + version_string = spec[1:]
227 +elif spec[:1] == '>':
228 + version_string = spec[1:]
229 +elif spec[:1] == '<':
230 + version_string = spec[1:]
231 +ver = map(int, string.split(version_string, '.'))
232 +syshexversion = sys.hexversion >> (8 * (4 - l""en(ver)))
233 +verhex = 0
234 +for i in xrange(0, l""en(ver)): verhex = (verhex << 8) + ver[i]
235 +print 'sys.hexversion = 0x%08x, verhex = 0x%08x' % (syshexversion, verhex)
236 +if spec[:2] == '<=':
237 + status = syshexversion <= verhex
238 +elif spec[:2] == '>=':
239 + status = syshexversion >= verhex
240 +elif spec[:1] == '=':
241 + status = syshexversion == verhex
242 +elif spec[:1] == '>':
243 + status = syshexversion > verhex
244 +elif spec[:1] == '<':
245 + status = syshexversion < verhex
246 +else:
247 + status = syshexversion >= verhex
249 +if status:
250 + sys.exit(0)
251 +else:
252 + sys.exit(1)"
253 + if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
254 + ($PYTHON -c "$prog") >&5 2>&5
255 + ac_status=$?
256 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
257 + (exit $ac_status); }; then :
258 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
259 +$as_echo "yes" >&6; }
260 +else
261 + as_fn_error $? "too old" "$LINENO" 5
263 + am_display_PYTHON=$PYTHON
264 + else
265 + # Otherwise, try each interpreter until we find one that satisfies
266 + # VERSION.
267 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version $required_version" >&5
268 +$as_echo_n "checking for a Python interpreter with version $required_version... " >&6; }
269 + for am_cv_pathless_PYTHON in python2.7 python2.6 python2.5 python2.4 python2.3 none; do
270 + test "$am_cv_pathless_PYTHON" = none && break
271 + prog="import sys, string
272 +if '$required_version' == '': sys.exit(0)
273 +spec = string.replace('$required_version', ' ', '')
274 +if spec[:2] == '<=':
275 + version_string = spec[2:]
276 +elif spec[:2] == '>=':
277 + version_string = spec[2:]
278 +elif spec[:1] == '=':
279 + version_string = spec[1:]
280 +elif spec[:1] == '>':
281 + version_string = spec[1:]
282 +elif spec[:1] == '<':
283 + version_string = spec[1:]
284 +ver = map(int, string.split(version_string, '.'))
285 +syshexversion = sys.hexversion >> (8 * (4 - l""en(ver)))
286 +verhex = 0
287 +for i in xrange(0, l""en(ver)): verhex = (verhex << 8) + ver[i]
288 +print 'sys.hexversion = 0x%08x, verhex = 0x%08x' % (syshexversion, verhex)
289 +if spec[:2] == '<=':
290 + status = syshexversion <= verhex
291 +elif spec[:2] == '>=':
292 + status = syshexversion >= verhex
293 +elif spec[:1] == '=':
294 + status = syshexversion == verhex
295 +elif spec[:1] == '>':
296 + status = syshexversion > verhex
297 +elif spec[:1] == '<':
298 + status = syshexversion < verhex
299 +else:
300 + status = syshexversion >= verhex
302 +if status:
303 + sys.exit(0)
304 +else:
305 + sys.exit(1)"
306 + if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
307 + ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
308 + ac_status=$?
309 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
310 + (exit $ac_status); }; then :
311 + break
313 + done
314 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
315 +$as_echo "done" >&6; }
316 + # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
317 + if test "$am_cv_pathless_PYTHON" = none; then
318 + PYTHON=:
319 + else
320 + unset ac_cv_path_PYTHON
321 + # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
322 +set dummy $am_cv_pathless_PYTHON; ac_word=$2
323 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
324 +$as_echo_n "checking for $ac_word... " >&6; }
325 +if test "${ac_cv_path_PYTHON+set}" = set; then :
326 + $as_echo_n "(cached) " >&6
327 +else
328 + case $PYTHON in
329 + [\\/]* | ?:[\\/]*)
330 + ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
331 + ;;
332 + *)
333 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334 +for as_dir in $PATH
336 + IFS=$as_save_IFS
337 + test -z "$as_dir" && as_dir=.
338 + for ac_exec_ext in '' $ac_executable_extensions; do
339 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
340 + ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
341 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
342 + break 2
343 + fi
344 +done
345 + done
346 +IFS=$as_save_IFS
348 + ;;
349 +esac
351 +PYTHON=$ac_cv_path_PYTHON
352 +if test -n "$PYTHON"; then
353 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
354 +$as_echo "$PYTHON" >&6; }
355 +else
356 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
357 +$as_echo "no" >&6; }
361 + fi
362 + am_display_PYTHON=$am_cv_pathless_PYTHON
363 + fi
366 + if test "$PYTHON" = :; then
367 + unset PYTHON
368 + else
371 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
372 +$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
373 + am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
374 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
375 +$as_echo "done" >&6; }
376 + PYTHON_VERSION=$am_cv_python_version
380 + PYTHON_PREFIX='${prefix}'
382 + PYTHON_EXEC_PREFIX='${exec_prefix}'
386 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
387 +$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
388 + am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
389 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
390 +$as_echo "done" >&6; }
391 + PYTHON_PLATFORM=$am_cv_python_platform
396 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
397 +$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
398 + am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
399 + echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
400 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
401 +$as_echo "done" >&6; }
402 + pythondir=$am_cv_python_pythondir
406 + pkgpythondir=\${pythondir}/$PACKAGE
409 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
410 +$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
411 + am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
412 + echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
413 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
414 +$as_echo "done" >&6; }
415 + pyexecdir=$am_cv_python_pyexecdir
419 + pkgpyexecdir=\${pyexecdir}/$PACKAGE
423 + fi
424 +unset am_cv_pathless_PYTHON
425 +unset am_cv_python_version
426 +unset am_cv_python_platform
427 +unset am_cv_python_pythondir
428 +unset am_cv_python_pyexecdir
430 +have_python="no"
431 +if test "$PYTHON" ; then
433 + eval eval py2_7execdir=${pyexecdir}
435 + eval eval pkgpy2_7execdir=${pkgpyexecdir}
440 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON2_7 include directory" >&5
441 +$as_echo_n "checking for $am_display_PYTHON2_7 include directory... " >&6; }
442 +if test "${am_cv_python2_7_includedir+set}" = set; then :
443 + $as_echo_n "(cached) " >&6
444 +else
445 + am_cv_python2_7_includedir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('INCLUDEPY')" 2>/dev/null ||
446 + echo "$PYTHON_PREFIX/include/python$PYTHON_VERSION"`
448 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python2_7_includedir" >&5
449 +$as_echo "$am_cv_python2_7_includedir" >&6; }
450 + python2_7includedir=$am_cv_python2_7_includedir
453 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON C libraries directory" >&5
454 +$as_echo_n "checking for $am_display_PYTHON C libraries directory... " >&6; }
455 +if test "${am_cv_python2_7_clibdir+set}" = set; then :
456 + $as_echo_n "(cached) " >&6
457 +else
458 + am_cv_python2_7_clibdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('LIBPL')" 2>/dev/null ||
459 + echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"`
461 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python2_7_clibdir" >&5
462 +$as_echo "$am_cv_python2_7_clibdir" >&6; }
463 + python2_7clibdir=$am_cv_python2_7_clibdir
466 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON link flags" >&5
467 +$as_echo_n "checking for $am_display_PYTHON link flags... " >&6; }
468 +if test "${am_cv_python2_7_linkflags+set}" = set; then :
469 + $as_echo_n "(cached) " >&6
470 +else
472 + am_cv_python2_7_linkflags=`$PYTHON -c "from distutils import sysconfig; print '-L' + sysconfig.get_config_var('LIBPL')" 2>/dev/null || echo "-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"`
473 + am_cv_python2_7_linkflags="$am_cv_python2_7_linkflags -lpython$PYTHON_VERSION"
476 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python2_7_linkflags" >&5
477 +$as_echo "$am_cv_python2_7_linkflags" >&6; }
478 + python2_7linkflags=$am_cv_python2_7_linkflags
481 + PYTHON_CFLAGS="-I$python2_7includedir"
482 + PYTHON_LIBS="-L$python2_7clibdir $python2_7linkflags"
484 + _CPPFLAGS="$CPPFLAGS"
485 + CPPFLAGS="$CPPFLAGS ${PYTHON_CFLAGS}"
487 + echo checking python includes in $python2_7includedir
489 + unset ac_cv_header_Python_h
490 + ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
491 +if test "x$ac_cv_header_Python_h" = x""yes; then :
492 + have_python_headers="yes"
493 +else
494 + have_python_headers="no"
499 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python libraries" >&5
500 +$as_echo_n "checking for Python libraries... " >&6; }
502 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
503 +/* end confdefs.h. */
505 +int
506 +main ()
510 + return 0;
512 +_ACEOF
513 +if ac_fn_c_try_link "$LINENO"; then :
514 + have_python_libraries="yes"
515 +else
516 + have_python_libraries="no"
518 +rm -f core conftest.err conftest.$ac_objext \
519 + conftest$ac_exeext conftest.$ac_ext
521 + CPPFLAGS="$_CPPFLAGS"
523 + if test "$have_python_libraries" = "yes"
524 + then
525 + if test "$python_libraries"
526 + then
527 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_libraries" >&5
528 +$as_echo "$python_libraries" >&6; }
529 + else
530 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
531 +$as_echo "yes" >&6; }
532 + fi
533 + else
534 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
535 +$as_echo "no" >&6; }
536 + fi
538 + if test "$have_python_headers" = "yes" \
539 + && test "$have_python_libraries" = "yes"
540 + then
541 + have_python="yes"
542 + else
543 + have_python="no"
544 + fi
546 + if test "$have_python" = "no"
547 + then
548 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No python compilation environment for =2.7" >&5
549 +$as_echo "$as_me: WARNING: No python compilation environment for =2.7" >&2;}
550 + else
551 + PYTHON2_7_CFLAGS="${PYTHON_CFLAGS}"
555 + PYTHON2_7_LIBS="${PYTHON_LIBS}"
558 + { $as_echo "$as_me:${as_lineno-$LINENO}: Found working python compilation environment for =2.7" >&5
559 +$as_echo "$as_me: Found working python compilation environment for =2.7" >&6;}
560 + fi
562 + if test "$have_python" != "no"; then
563 + PYTHON_2_7_TRUE=
564 + PYTHON_2_7_FALSE='#'
565 +else
566 + PYTHON_2_7_TRUE='#'
567 + PYTHON_2_7_FALSE=
571 +if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
572 PYTHON=$found_one
573 if ! test "$found_one" ; then
574 as_fn_error $? "No python development environments found" "$LINENO" 5
575 @@ -16553,6 +16933,10 @@
576 as_fn_error $? "conditional \"PYTHON_2_6\" was never defined.
577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
579 +if test -z "${PYTHON_2_7_TRUE}" && test -z "${PYTHON_2_7_FALSE}"; then
580 + as_fn_error $? "conditional \"PYTHON_2_7\" was never defined.
581 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
584 : ${CONFIG_STATUS=./config.status}
585 ac_write_fail=0