blob: 63d675312da960759698110cd3b3dd36f5fdfa91 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:281#! /bin/sh
Matthias Klose3cef2a92012-03-14 22:39:332# From configure.ac Revision.
Guido van Rossum627b2d71993-12-24 10:39:163# Guess values for system-dependent variables and create Makefiles.
Charles-François Natalibe2b9072013-01-08 18:47:004# Generated by GNU Autoconf 2.69 for python 2.7.
Guido van Rossum76be6ed1995-01-02 18:33:545#
Benjamin Petersoncc8929b2016-08-04 05:01:326# Report bugs to <https://bugs.python.org/>.
Martin v. Löwis1d459062005-03-14 21:23:337#
Matthias Klosea0bea5d2010-05-08 10:00:288#
Charles-François Natalibe2b9072013-01-08 18:47:009# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Matthias Klosea0bea5d2010-05-08 10:00:2810#
11#
Guido van Rossum76be6ed1995-01-02 18:33:5412# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
Matthias Klosea0bea5d2010-05-08 10:00:2814## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
Martin v. Löwis11437992002-04-12 09:54:0317
Martin v. Löwiseba40652007-08-30 20:10:5718# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
Matthias Klosea0bea5d2010-05-08 10:00:2820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0321 emulate sh
22 NULLCMD=:
Matthias Klosea0bea5d2010-05-08 10:00:2823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0424 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:5726 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:2127else
Matthias Klosea0bea5d2010-05-08 10:00:2828 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
Martin v. Löwiseba40652007-08-30 20:10:5733esac
Martin v. Löwis11437992002-04-12 09:54:0334fi
35
Skip Montanaro6dead952003-09-25 14:50:0436
Matthias Klosea0bea5d2010-05-08 10:00:2837as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
Martin v. Löwis11437992002-04-12 09:54:0374
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
Matthias Klosea0bea5d2010-05-08 10:00:2877 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
Martin v. Löwiseba40652007-08-30 20:10:5782fi
Martin v. Löwis11437992002-04-12 09:54:0383
Martin v. Löwiseba40652007-08-30 20:10:5784
85# IFS
86# We need space, tab and new line, in precisely that order. Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
Martin v. Löwiseba40652007-08-30 20:10:5790IFS=" "" $as_nl"
91
92# Find who we are. Look in the path if we contain no directory separator.
Matthias Klose3cef2a92012-03-14 22:39:3393as_myself=
Matthias Klosea0bea5d2010-05-08 10:00:2894case $0 in #((
Martin v. Löwiseba40652007-08-30 20:10:5795 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0397for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:28101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
Martin v. Löwiseba40652007-08-30 20:10:57103IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03104
Martin v. Löwiseba40652007-08-30 20:10:57105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
Matthias Klosea0bea5d2010-05-08 10:00:28113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
Martin v. Löwiseba40652007-08-30 20:10:57115fi
116
Matthias Klosea0bea5d2010-05-08 10:00:28117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Martin v. Löwiseba40652007-08-30 20:10:57124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
Matthias Klosea0bea5d2010-05-08 10:00:28130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
Martin v. Löwiseba40652007-08-30 20:10:57134
Matthias Klosea0bea5d2010-05-08 10:00:28135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
Charles-François Natalibe2b9072013-01-08 18:47:00138# Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
Matthias Klosea0bea5d2010-05-08 10:00:28163if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177esac
178fi
179"
180 as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194 exitcode=1; echo positional parameters were not saved.
195fi
Charles-François Natalibe2b9072013-01-08 18:47:00196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
Matthias Klosea0bea5d2010-05-08 10:00:28198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205else
206 as_have_required=no
207fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
Charles-François Natalibe2b9072013-01-08 18:47:00242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
Matthias Klosea0bea5d2010-05-08 10:00:28261fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
Benjamin Petersoncc8929b2016-08-04 05:01:32271$0: https://bugs.python.org/ about your system, including
Matthias Klosea0bea5d2010-05-08 10:00:28272$0: any error possibly output before this message. Then
273$0: install a modern shell, or manually run the script
274$0: under such a shell if you do have one."
275 fi
276 exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294 { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
Georg Brandl71f4fbb2011-02-25 11:04:50359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Klosea0bea5d2010-05-08 10:00:28360
361
362} # as_fn_mkdir_p
Charles-François Natalibe2b9072013-01-08 18:47:00363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369 test -f "$1" && test -x "$1"
370} # as_fn_executable_p
Matthias Klosea0bea5d2010-05-08 10:00:28371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404fi # as_fn_arith
405
406
Georg Brandl71f4fbb2011-02-25 11:04:50407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
Matthias Klosea0bea5d2010-05-08 10:00:28409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Georg Brandl71f4fbb2011-02-25 11:04:50411# script with STATUS, using 1 if that was 0.
Matthias Klosea0bea5d2010-05-08 10:00:28412as_fn_error ()
413{
Georg Brandl71f4fbb2011-02-25 11:04:50414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Klosea0bea5d2010-05-08 10:00:28418 fi
Georg Brandl71f4fbb2011-02-25 11:04:50419 $as_echo "$as_me: error: $2" >&2
Matthias Klosea0bea5d2010-05-08 10:00:28420 as_fn_exit $as_status
421} # as_fn_error
422
Martin v. Löwiseba40652007-08-30 20:10:57423if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426else
427 as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432else
433 as_basename=false
434fi
435
Matthias Klosea0bea5d2010-05-08 10:00:28436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438else
439 as_dirname=false
440fi
Martin v. Löwiseba40652007-08-30 20:10:57441
Martin v. Löwiseba40652007-08-30 20:10:57442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Klosea0bea5d2010-05-08 10:00:28446$as_echo X/"$0" |
Martin v. Löwiseba40652007-08-30 20:10:57447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
Matthias Klosea0bea5d2010-05-08 10:00:28461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
Martin v. Löwiseba40652007-08-30 20:10:57467
468
Matthias Klosea0bea5d2010-05-08 10:00:28469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Martin v. Löwiseba40652007-08-30 20:10:57474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03478 sed '
Martin v. Löwiseba40652007-08-30 20:10:57479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
Martin v. Löwis11437992002-04-12 09:54:03483 N
Martin v. Löwiseba40652007-08-30 20:10:57484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03486 t loop
Martin v. Löwiseba40652007-08-30 20:10:57487 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03488 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57489 chmod +x "$as_me.lineno" ||
Matthias Klosea0bea5d2010-05-08 10:00:28490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Martin v. Löwis11437992002-04-12 09:54:03491
Charles-François Natalibe2b9072013-01-08 18:47:00492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
Martin v. Löwis11437992002-04-12 09:54:03496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03500 # Exit status is that of the last command.
501 exit
502}
503
Martin v. Löwiseba40652007-08-30 20:10:57504ECHO_C= ECHO_N= ECHO_T=
Matthias Klosea0bea5d2010-05-08 10:00:28505case `echo -n x` in #(((((
Martin v. Löwiseba40652007-08-30 20:10:57506-n*)
Matthias Klosea0bea5d2010-05-08 10:00:28507 case `echo 'xy\c'` in
Martin v. Löwiseba40652007-08-30 20:10:57508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Klosea0bea5d2010-05-08 10:00:28509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
Martin v. Löwiseba40652007-08-30 20:10:57512 esac;;
513*)
514 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03515esac
Alexandre Vassalottibd7569b2009-07-17 23:09:02516
Martin v. Löwis11437992002-04-12 09:54:03517rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57518if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520else
521 rm -f conf$$.dir
Matthias Klosea0bea5d2010-05-08 10:00:28522 mkdir conf$$.dir 2>/dev/null
Martin v. Löwiseba40652007-08-30 20:10:57523fi
Matthias Klosea0bea5d2010-05-08 10:00:28524if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Charles-François Natalibe2b9072013-01-08 18:47:00530 # In both cases, we have to default to `cp -pR'.
Matthias Klosea0bea5d2010-05-08 10:00:28531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Charles-François Natalibe2b9072013-01-08 18:47:00532 as_ln_s='cp -pR'
Matthias Klosea0bea5d2010-05-08 10:00:28533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
Charles-François Natalibe2b9072013-01-08 18:47:00536 as_ln_s='cp -pR'
Matthias Klosea0bea5d2010-05-08 10:00:28537 fi
Martin v. Löwis11437992002-04-12 09:54:03538else
Charles-François Natalibe2b9072013-01-08 18:47:00539 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:03540fi
Martin v. Löwiseba40652007-08-30 20:10:57541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03543
Skip Montanaro6dead952003-09-25 14:50:04544if mkdir -p . 2>/dev/null; then
Matthias Klosea0bea5d2010-05-08 10:00:28545 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:04546else
Skip Montanarof0d5f792004-08-15 14:08:23547 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04548 as_mkdir_p=false
549fi
550
Charles-François Natalibe2b9072013-01-08 18:47:00551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:03553
554# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03556
557# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03559
560
Matthias Klosea0bea5d2010-05-08 10:00:28561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
Martin v. Löwis11437992002-04-12 09:54:03563
564# Name of the host.
Georg Brandl71f4fbb2011-02-25 11:04:50565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Martin v. Löwis11437992002-04-12 09:54:03566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
Martin v. Löwis11437992002-04-12 09:54:03569#
570# Initializations.
571#
Guido van Rossum76be6ed1995-01-02 18:33:54572ac_default_prefix=/usr/local
Martin v. Löwiseba40652007-08-30 20:10:57573ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04574ac_config_libobj_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57575LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
Martin v. Löwis11437992002-04-12 09:54:03580
Martin v. Löwis11437992002-04-12 09:54:03581# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44582PACKAGE_NAME='python'
583PACKAGE_TARNAME='python'
Martin v. Löwis174440b2008-10-03 08:59:41584PACKAGE_VERSION='2.7'
585PACKAGE_STRING='python 2.7'
Benjamin Petersoncc8929b2016-08-04 05:01:32586PACKAGE_BUGREPORT='https://bugs.python.org/'
Matthias Klosea0bea5d2010-05-08 10:00:28587PACKAGE_URL=''
Martin v. Löwis11437992002-04-12 09:54:03588
589ac_unique_file="Include/object.h"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
Martin v. Löwiseba40652007-08-30 20:10:57593#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03594# include <sys/types.h>
595#endif
Martin v. Löwiseba40652007-08-30 20:10:57596#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03597# include <sys/stat.h>
598#endif
Martin v. Löwiseba40652007-08-30 20:10:57599#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03600# include <stdlib.h>
601# include <stddef.h>
602#else
Martin v. Löwiseba40652007-08-30 20:10:57603# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03604# include <stdlib.h>
605# endif
606#endif
Martin v. Löwiseba40652007-08-30 20:10:57607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03609# include <memory.h>
610# endif
611# include <string.h>
612#endif
Martin v. Löwiseba40652007-08-30 20:10:57613#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03614# include <strings.h>
615#endif
Martin v. Löwiseba40652007-08-30 20:10:57616#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03617# include <inttypes.h>
Martin v. Löwis11437992002-04-12 09:54:03618#endif
Martin v. Löwiseba40652007-08-30 20:10:57619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03623# include <unistd.h>
624#endif"
625
Matthias Klosea0bea5d2010-05-08 10:00:28626ac_subst_vars='LTLIBOBJS
Ned Deily3f1d0b32014-11-20 10:11:03627ENSUREPIP
Alexandre Vassalottibd7569b2009-07-17 23:09:02628SRCDIRS
Matthias Klosea0bea5d2010-05-08 10:00:28629THREADHEADERS
630UNICODE_OBJS
631LIBC
632LIBM
633HAVE_GETHOSTBYNAME
634HAVE_GETHOSTBYNAME_R
635HAVE_GETHOSTBYNAME_R_3_ARG
636HAVE_GETHOSTBYNAME_R_5_ARG
637HAVE_GETHOSTBYNAME_R_6_ARG
638LIBOBJS
639TRUE
640MACHDEP_OBJS
641DYNLOADFILE
642DLINCLDIR
643THREADOBJ
644LDLAST
645USE_THREAD_MODULE
646SIGNAL_OBJS
647USE_SIGNAL_MODULE
Ned Deilya2a9f572013-10-25 07:30:10648TCLTK_LIBS
649TCLTK_INCLUDES
Matthias Klosea0bea5d2010-05-08 10:00:28650LIBFFI_INCLUDEDIR
Benjamin Peterson64e8f6e2014-12-15 05:00:23651PKG_CONFIG_LIBDIR
652PKG_CONFIG_PATH
Matthias Klosea0bea5d2010-05-08 10:00:28653PKG_CONFIG
654SHLIBS
655CFLAGSFORSHARED
656LINKFORSHARED
657CCSHARED
658BLDSHARED
659LDCXXSHARED
660LDSHARED
661SO
662LIBTOOL_CRUFT
663OTHER_LIBTOOL_OPT
Brett Cannon4ff151a2015-09-18 22:09:42664LLVM_PROF_FOUND
Gregory P. Smith794b2912016-09-08 07:07:40665target_os
666target_vendor
667target_cpu
668target
669LLVM_PROFDATA
Brett Cannon4ff151a2015-09-18 22:09:42670LLVM_PROF_ERR
671LLVM_PROF_FILE
672LLVM_PROF_MERGER
673PGO_PROF_USE_FLAG
674PGO_PROF_GEN_FLAG
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)c543a0f2016-06-02 23:44:40675LTOFLAGS
Gregory P. Smith6d8fdfc2016-09-08 06:28:23676DEF_MAKE_RULE
677DEF_MAKE_ALL_RULE
Matthias Klosea0bea5d2010-05-08 10:00:28678UNIVERSAL_ARCH_FLAGS
679BASECFLAGS
680OPT
681LN
Trent Nelsonf6407a12012-08-30 14:56:13682MKDIR_P
Matthias Klosea0bea5d2010-05-08 10:00:28683INSTALL_DATA
684INSTALL_SCRIPT
685INSTALL_PROGRAM
Victor Stinner2c7085f2017-05-02 14:55:50686HAS_GIT
687GITBRANCH
688GITTAG
689GITVERSION
Matthias Klosea0bea5d2010-05-08 10:00:28690ARFLAGS
doko@python.orgd65e2ba2013-01-31 22:52:03691ac_ct_AR
Matthias Klosea0bea5d2010-05-08 10:00:28692AR
693RANLIB
694GNULD
695LINKCC
696RUNSHARED
697INSTSONAME
698LDLIBRARYDIR
699BLDLIBRARY
700DLLLIBRARY
701LDLIBRARY
702LIBRARY
703BUILDEXEEXT
704EGREP
705GREP
706CPP
doko@python.org4e63fbe2013-01-25 12:08:27707MULTIARCH
doko@python.orgd65e2ba2013-01-31 22:52:03708ac_ct_CXX
Matthias Klosea0bea5d2010-05-08 10:00:28709MAINCC
710CXX
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718EXPORT_MACOSX_DEPLOYMENT_TARGET
719CONFIGURE_MACOSX_DEPLOYMENT_TARGET
720EXTRAMACHDEPPATH
721EXTRAPLATDIR
doko@ubuntu.coma50b0de2015-04-13 19:55:59722PLATDIR
Matthias Klosea0bea5d2010-05-08 10:00:28723SGI_ABI
doko@python.orgd65e2ba2013-01-31 22:52:03724_PYTHON_HOST_PLATFORM
Matthias Klosea0bea5d2010-05-08 10:00:28725MACHDEP
726FRAMEWORKINSTALLAPPSPREFIX
727FRAMEWORKUNIXTOOLSPREFIX
728FRAMEWORKALTINSTALLLAST
729FRAMEWORKALTINSTALLFIRST
730FRAMEWORKINSTALLLAST
731FRAMEWORKINSTALLFIRST
732PYTHONFRAMEWORKINSTALLDIR
733PYTHONFRAMEWORKPREFIX
734PYTHONFRAMEWORKDIR
735PYTHONFRAMEWORKIDENTIFIER
736PYTHONFRAMEWORK
737LIPO_32BIT_FLAGS
738ARCH_RUN_32BIT
739UNIVERSALSDK
740CONFIG_ARGS
741SOVERSION
742VERSION
doko@python.orgd65e2ba2013-01-31 22:52:03743PYTHON_FOR_BUILD
Victor Stinner8a19eb22017-05-05 01:14:23744PYTHON_FOR_REGEN
doko@python.orgd65e2ba2013-01-31 22:52:03745host_os
746host_vendor
747host_cpu
748host
749build_os
750build_vendor
751build_cpu
752build
Matthias Klosea0bea5d2010-05-08 10:00:28753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
Matthias Klosea0bea5d2010-05-08 10:00:28772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
Skip Montanaro6dead952003-09-25 14:50:04791ac_subst_files=''
Matthias Klosea0bea5d2010-05-08 10:00:28792ac_user_opts='
793enable_option_checking
794enable_universalsdk
795with_universal_archs
796with_framework_name
797enable_framework
798with_gcc
Zachary Ware6ed42ea2015-12-21 17:43:03799with_icc
Matthias Klosea0bea5d2010-05-08 10:00:28800with_cxx_main
801with_suffix
802enable_shared
803enable_profiling
804with_pydebug
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)b9999152016-11-20 21:19:36805enable_optimizations
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)c543a0f2016-06-02 23:44:40806with_lto
Matthias Klosea0bea5d2010-05-08 10:00:28807enable_toolbox_glue
808with_libs
809with_system_expat
810with_system_ffi
Ned Deilya2a9f572013-10-25 07:30:10811with_tcltk_includes
812with_tcltk_libs
Matthias Klosea0bea5d2010-05-08 10:00:28813with_dbmliborder
814with_signal_module
815with_dec_threads
816with_threads
817with_thread
818with_pth
819enable_ipv6
820with_doc_strings
821with_tsc
822with_pymalloc
823with_valgrind
824with_wctype_functions
825with_fpectl
826with_libm
827with_libc
828enable_big_digits
829enable_unicode
Benjamin Peterson2c992a02015-05-28 17:45:31830with_computed_gotos
Ned Deily3f1d0b32014-11-20 10:11:03831with_ensurepip
Matthias Klosea0bea5d2010-05-08 10:00:28832'
Martin v. Löwiseba40652007-08-30 20:10:57833 ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
Benjamin Peterson64e8f6e2014-12-15 05:00:23841CPP
842PKG_CONFIG
843PKG_CONFIG_PATH
844PKG_CONFIG_LIBDIR'
Martin v. Löwiseba40652007-08-30 20:10:57845
Guido van Rossum627b2d71993-12-24 10:39:16846
Guido van Rossum7f43da71994-08-01 12:15:30847# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03848ac_init_help=
849ac_init_version=false
Matthias Klosea0bea5d2010-05-08 10:00:28850ac_unrecognized_opts=
851ac_unrecognized_sep=
Guido van Rossum7f43da71994-08-01 12:15:30852# The variables have the same names as the options, with
853# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03854cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54855exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30856no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30862silent=
Guido van Rossum76be6ed1995-01-02 18:33:54863site=
Guido van Rossum7f43da71994-08-01 12:15:30864srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30865verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54866x_includes=NONE
867x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
Martin v. Löwiseba40652007-08-30 20:10:57874# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
Martin v. Löwiseba40652007-08-30 20:10:57878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
Guido van Rossum48bdbfc1996-05-28 22:53:48883includedir='${prefix}/include'
884oldincludedir='/usr/include'
Martin v. Löwiseba40652007-08-30 20:10:57885docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54894
Guido van Rossum7f43da71994-08-01 12:15:30895ac_prev=
Martin v. Löwiseba40652007-08-30 20:10:57896ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30897for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16898do
Guido van Rossum7f43da71994-08-01 12:15:30899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
Martin v. Löwiseba40652007-08-30 20:10:57901 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30902 ac_prev=
903 continue
Guido van Rossum627b2d71993-12-24 10:39:16904 fi
Guido van Rossum7f43da71994-08-01 12:15:30905
Martin v. Löwiseba40652007-08-30 20:10:57906 case $ac_option in
Georg Brandl71f4fbb2011-02-25 11:04:50907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *=) ac_optarg= ;;
909 *) ac_optarg=yes ;;
Martin v. Löwiseba40652007-08-30 20:10:57910 esac
Guido van Rossum7f43da71994-08-01 12:15:30911
Guido van Rossum76be6ed1995-01-02 18:33:54912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
Martin v. Löwiseba40652007-08-30 20:10:57914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30917
Guido van Rossum48bdbfc1996-05-28 22:53:48918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03921 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48922
923 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03924 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03926 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30927
Guido van Rossum76be6ed1995-01-02 18:33:54928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54937
Martin v. Löwiseba40652007-08-30 20:10:57938 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48939 ac_prev=datadir ;;
Martin v. Löwiseba40652007-08-30 20:10:57940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03941 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48942
Martin v. Löwiseba40652007-08-30 20:10:57943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
Guido van Rossum7f43da71994-08-01 12:15:30950 -disable-* | --disable-*)
Matthias Klosea0bea5d2010-05-08 10:00:28951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54952 # Reject names that are not valid shell variable names.
Matthias Klosea0bea5d2010-05-08 10:00:28953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Georg Brandl71f4fbb2011-02-25 11:04:50954 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Klosea0bea5d2010-05-08 10:00:28955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
Martin v. Löwiseba40652007-08-30 20:10:57965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30975
976 -enable-* | --enable-*)
Matthias Klosea0bea5d2010-05-08 10:00:28977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54978 # Reject names that are not valid shell variable names.
Matthias Klosea0bea5d2010-05-08 10:00:28979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Georg Brandl71f4fbb2011-02-25 11:04:50980 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Klosea0bea5d2010-05-08 10:00:28981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30991
Guido van Rossum7f43da71994-08-01 12:15:30992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:03999 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301000
1001 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:541002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301004
Martin v. Löwis11437992002-04-12 09:54:031005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:301011
1012 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:031013 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301014 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:031015 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301016
Martin v. Löwiseba40652007-08-30 20:10:571017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
Guido van Rossum48bdbfc1996-05-28 22:53:481023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:031028 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:031033 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:031038 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:031045 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481046
Martin v. Löwiseba40652007-08-30 20:10:571047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
Guido van Rossum48bdbfc1996-05-28 22:53:481052 -localstatedir | --localstatedir | --localstatedi | --localstated \
Martin v. Löwiseba40652007-08-30 20:10:571053 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:481054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Martin v. Löwiseba40652007-08-30 20:10:571056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:031057 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:031062 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481063
Guido van Rossum7f43da71994-08-01 12:15:301064 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:541065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:031069 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:301070 no_create=yes ;;
1071
Guido van Rossum76be6ed1995-01-02 18:33:541072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301075
Guido van Rossum48bdbfc1996-05-28 22:53:481076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:031083 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481084
Guido van Rossum7f43da71994-08-01 12:15:301085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:031088 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:031095 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:031102 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:031119 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301120
Martin v. Löwiseba40652007-08-30 20:10:571121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
Guido van Rossum7f43da71994-08-01 12:15:301131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
Guido van Rossum48bdbfc1996-05-28 22:53:481135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:031139 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:031150 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481151
Guido van Rossum76be6ed1995-01-02 18:33:541152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:031155 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:541156
Guido van Rossum7f43da71994-08-01 12:15:301157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:031160 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301161
Guido van Rossum48bdbfc1996-05-28 22:53:481162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:031167 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481168
Guido van Rossum7f43da71994-08-01 12:15:301169 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:031170 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:031172 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
Martin v. Löwis11437992002-04-12 09:54:031177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:301179
1180 -with-* | --with-*)
Matthias Klosea0bea5d2010-05-08 10:00:281181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541182 # Reject names that are not valid shell variable names.
Matthias Klosea0bea5d2010-05-08 10:00:281183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Georg Brandl71f4fbb2011-02-25 11:04:501184 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Klosea0bea5d2010-05-08 10:00:281185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301195
1196 -without-* | --without-*)
Matthias Klosea0bea5d2010-05-08 10:00:281197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541198 # Reject names that are not valid shell variable names.
Matthias Klosea0bea5d2010-05-08 10:00:281199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Georg Brandl71f4fbb2011-02-25 11:04:501200 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Klosea0bea5d2010-05-08 10:00:281201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205"with_$ac_useropt"
1206"*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301211
Guido van Rossum76be6ed1995-01-02 18:33:541212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:031221 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:031228 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301229
Georg Brandl71f4fbb2011-02-25 11:04:501230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information"
Guido van Rossum7f43da71994-08-01 12:15:301232 ;;
1233
Martin v. Löwis11437992002-04-12 09:54:031234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
Matthias Klosea0bea5d2010-05-08 10:00:281237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
Georg Brandl71f4fbb2011-02-25 11:04:501239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Matthias Klosea0bea5d2010-05-08 10:00:281240 esac
Martin v. Löwiseba40652007-08-30 20:10:571241 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:031242 export $ac_envvar ;;
1243
Guido van Rossum48bdbfc1996-05-28 22:53:481244 *)
Martin v. Löwis11437992002-04-12 09:54:031245 # FIXME: should be removed in autoconf 3.0.
Matthias Klosea0bea5d2010-05-08 10:00:281246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Martin v. Löwis11437992002-04-12 09:54:031247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Matthias Klosea0bea5d2010-05-08 10:00:281248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Matthias Klose3cef2a92012-03-14 22:39:331249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Guido van Rossum7f43da71994-08-01 12:15:301250 ;;
1251
1252 esac
Guido van Rossum627b2d71993-12-24 10:39:161253done
1254
Guido van Rossum7f43da71994-08-01 12:15:301255if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:031256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Georg Brandl71f4fbb2011-02-25 11:04:501257 as_fn_error $? "missing argument to $ac_option"
Guido van Rossum7f43da71994-08-01 12:15:301258fi
1259
Matthias Klosea0bea5d2010-05-08 10:00:281260if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
Georg Brandl71f4fbb2011-02-25 11:04:501263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Matthias Klosea0bea5d2010-05-08 10:00:281264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266fi
1267
1268# Check all directory arguments for consistency.
Martin v. Löwiseba40652007-08-30 20:10:571269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Victor Stinner44a2c4a2019-04-13 00:50:241272 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:541273do
Martin v. Löwiseba40652007-08-30 20:10:571274 eval ac_val=\$$ac_var
Matthias Klosea0bea5d2010-05-08 10:00:281275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
Martin v. Löwis11437992002-04-12 09:54:031282 case $ac_val in
Martin v. Löwiseba40652007-08-30 20:10:571283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:301285 esac
Georg Brandl71f4fbb2011-02-25 11:04:501286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Martin v. Löwis11437992002-04-12 09:54:031287done
Guido van Rossum627b2d71993-12-24 10:39:161288
Martin v. Löwis11437992002-04-12 09:54:031289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:161295
Martin v. Löwis11437992002-04-12 09:54:031296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
Martin v. Löwis11437992002-04-12 09:54:031300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
Guido van Rossum627b2d71993-12-24 10:39:161310
Martin v. Löwiseba40652007-08-30 20:10:571311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Georg Brandl71f4fbb2011-02-25 11:04:501314 as_fn_error $? "working directory cannot be determined"
Martin v. Löwiseba40652007-08-30 20:10:571315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Georg Brandl71f4fbb2011-02-25 11:04:501316 as_fn_error $? "pwd does not report name of working directory"
Martin v. Löwiseba40652007-08-30 20:10:571317
1318
Guido van Rossum627b2d71993-12-24 10:39:161319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:301321 ac_srcdir_defaulted=yes
Martin v. Löwiseba40652007-08-30 20:10:571322 # Try the directory containing this script, then the parent directory.
Matthias Klosea0bea5d2010-05-08 10:00:281323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
Martin v. Löwiseba40652007-08-30 20:10:571329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:301346 srcdir=$ac_confdir
Martin v. Löwiseba40652007-08-30 20:10:571347 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:161348 srcdir=..
1349 fi
Guido van Rossum76be6ed1995-01-02 18:33:541350else
1351 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:161352fi
Martin v. Löwiseba40652007-08-30 20:10:571353if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Georg Brandl71f4fbb2011-02-25 11:04:501355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Brett Cannon19fab762007-06-02 03:02:291356fi
Martin v. Löwiseba40652007-08-30 20:10:571357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
Georg Brandl71f4fbb2011-02-25 11:04:501359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Martin v. Löwiseba40652007-08-30 20:10:571360 pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
Guido van Rossum76be6ed1995-01-02 18:33:541377
Martin v. Löwis11437992002-04-12 09:54:031378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:411385\`configure' configures python 2.7 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:031386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
Georg Brandl71f4fbb2011-02-25 11:04:501399 -q, --quiet, --silent do not print \`checking ...' messages
Martin v. Löwis11437992002-04-12 09:54:031400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
Martin v. Löwis11437992002-04-12 09:54:031405Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
Matthias Klosea0bea5d2010-05-08 10:00:281407 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:031408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Matthias Klosea0bea5d2010-05-08 10:00:281409 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:031410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
Matthias Klosea0bea5d2010-05-08 10:00:281419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Matthias Klosea0bea5d2010-05-08 10:00:281425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:031438_ACEOF
1439
1440 cat <<\_ACEOF
doko@python.orgd65e2ba2013-01-31 22:52:031441
1442System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Gregory P. Smith794b2912016-09-08 07:07:401445 --target=TARGET configure for building compilers for TARGET [HOST]
Martin v. Löwis11437992002-04-12 09:54:031446_ACEOF
1447fi
1448
1449if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:441450 case $ac_init_help in
Martin v. Löwis174440b2008-10-03 08:59:411451 short | recursive ) echo "Configuration of python 2.7:";;
Martin v. Löwis88afe662002-10-26 13:47:441452 esac
Martin v. Löwis11437992002-04-12 09:54:031453 cat <<\_ACEOF
1454
1455Optional Features:
Matthias Klosea0bea5d2010-05-08 10:00:281456 --disable-option-checking ignore unrecognized --enable/--with options
Martin v. Löwis11437992002-04-12 09:54:031457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Brett Cannon91a1dec2008-02-13 19:15:441459 --enable-universalsdk[=SDKDIR]
Ned Deilyee8e4b62018-04-14 14:37:281460 Build fat binary against Mac OS X SDK
Martin v. Löwis3e2c6322002-10-29 10:07:431461 --enable-framework[=INSTALLDIR]
1462 Build (MacOSX|Darwin) framework
1463 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:221464 --enable-profiling enable C-level code profiling
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)b9999152016-11-20 21:19:361465 --enable-optimizations Enable expensive optimizations (PGO, maybe LTO,
1466 etc). Disabled by default.
Martin v. Löwis3e2c6322002-10-29 10:07:431467 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1468 --enable-ipv6 Enable ipv6 (with ipv4) support
1469 --disable-ipv6 Disable ipv6 support
Mark Dickinsonefc82f72009-03-20 15:51:551470 --enable-big-digits[=BITS]
Matthias Klosea0bea5d2010-05-08 10:00:281471 use big digits for Python longs [[BITS=30]]
Martin v. Löwis3e2c6322002-10-29 10:07:431472 --enable-unicode[=ucs[24]]
Benjamin Peterson66556b02010-05-25 02:23:321473 Enable Unicode strings (default is ucs2)
Martin v. Löwis11437992002-04-12 09:54:031474
1475Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Ronald Oussoren5640ce22008-06-05 12:58:241478 --with-universal-archs=ARCH
1479 select architectures for universal build ("32-bit",
Ned Deilyee8e4b62018-04-14 14:37:281480 "64-bit", "3-way", "intel", "intel-32", "intel-64",
1481 or "all")
Ronald Oussoren580c7fe2008-05-02 19:45:111482 --with-framework-name=FRAMEWORK
1483 specify an alternate name of the framework built
1484 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:431485 --without-gcc never use gcc
Zachary Ware6ed42ea2015-12-21 17:43:031486 --with-icc build with icc
Martin v. Löwis0f48d982006-04-14 14:34:261487 --with-cxx-main=<compiler>
1488 compile main() and link python executable with C++
1489 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:431490 --with-suffix=.exe set executable suffix
1491 --with-pydebug build with Py_DEBUG defined
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)c543a0f2016-06-02 23:44:401492 --with-lto Enable Link Time Optimization in PGO builds.
1493 Disabled by default.
Martin v. Löwis3e2c6322002-10-29 10:07:431494 --with-libs='lib1 ...' link against additional libs
Benjamin Peterson2c196742009-12-31 03:17:181495 --with-system-expat build pyexpat module using an installed expat
1496 library
Martin v. Löwis9176fc12006-04-11 11:12:431497 --with-system-ffi build _ctypes module using an installed ffi library
Ned Deilya2a9f572013-10-25 07:30:101498 --with-tcltk-includes='-I...'
1499 override search for Tcl and Tk include files
1500 --with-tcltk-libs='-L...'
1501 override search for Tcl and Tk libs
Benjamin Peterson867475c2009-04-29 20:36:251502 --with-dbmliborder=db1:db2:...
1503 order to check db backends for dbm. Valid value is a
1504 colon separated string with the backend names
1505 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:431506 --with-signal-module disable/enable signal module
1507 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1508 --with(out)-threads[=DIRECTORY]
1509 disable/enable thread support
1510 --with(out)-thread[=DIRECTORY]
1511 deprecated; use --with(out)-threads
1512 --with-pth use GNU pth threading libraries
Martin v. Löwis3e2c6322002-10-29 10:07:431513 --with(out)-doc-strings disable/enable documentation strings
Martin v. Löwisf30d60e2004-06-08 08:17:441514 --with(out)-tsc enable/disable timestamp counter profile
Martin v. Löwis3e2c6322002-10-29 10:07:431515 --with(out)-pymalloc disable/enable specialized mallocs
Benjamin Peterson91c12eb2009-12-03 02:52:391516 --with-valgrind Enable Valgrind support
Martin v. Löwis3e2c6322002-10-29 10:07:431517 --with-wctype-functions use wctype.h functions
Martin v. Löwis3e2c6322002-10-29 10:07:431518 --with-fpectl enable SIGFPE catching
1519 --with-libm=STRING math library
1520 --with-libc=STRING C library
Benjamin Peterson2c992a02015-05-28 17:45:311521 --with(out)-computed-gotos
1522 Use computed gotos in evaluation loop (enabled by
1523 default on supported compilers)
Ned Deily3f1d0b32014-11-20 10:11:031524 --with(out)-ensurepip=[=OPTION]
1525 "install" or "upgrade" using bundled pip, default is
1526 "no"
Martin v. Löwis11437992002-04-12 09:54:031527
1528Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
Martin v. Löwiseba40652007-08-30 20:10:571533 LIBS libraries to pass to the linker, e.g. -l<library>
Matthias Klosea0bea5d2010-05-08 10:00:281534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Martin v. Löwiseba40652007-08-30 20:10:571535 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:031536 CPP C preprocessor
Benjamin Peterson64e8f6e2014-12-15 05:00:231537 PKG_CONFIG path to pkg-config utility
1538 PKG_CONFIG_PATH
1539 directories to add to pkg-config's search path
1540 PKG_CONFIG_LIBDIR
1541 path overriding pkg-config's built-in search path
Martin v. Löwis11437992002-04-12 09:54:031542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
Benjamin Petersoncc8929b2016-08-04 05:01:321546Report bugs to <https://bugs.python.org/>.
Martin v. Löwis11437992002-04-12 09:54:031547_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:571548ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:031549fi
1550
1551if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:031553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Matthias Klosea0bea5d2010-05-08 10:00:281554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
Martin v. Löwis11437992002-04-12 09:54:031557 ac_builddir=.
1558
Martin v. Löwiseba40652007-08-30 20:10:571559case "$ac_dir" in
1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561*)
Matthias Klosea0bea5d2010-05-08 10:00:281562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Martin v. Löwiseba40652007-08-30 20:10:571563 # A ".." for each directory in $ac_dir_suffix.
Matthias Klosea0bea5d2010-05-08 10:00:281564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Martin v. Löwiseba40652007-08-30 20:10:571565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569esac
1570ac_abs_top_builddir=$ac_pwd
1571ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572# for backward compatibility:
1573ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:031574
1575case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:571576 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:031577 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:571578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:031581 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:571582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:031588esac
Martin v. Löwiseba40652007-08-30 20:10:571589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:231590
Martin v. Löwiseba40652007-08-30 20:10:571591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:031599 else
Matthias Klosea0bea5d2010-05-08 10:00:281600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Martin v. Löwiseba40652007-08-30 20:10:571601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:031603 done
1604fi
1605
Martin v. Löwiseba40652007-08-30 20:10:571606test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:031607if $ac_init_version; then
1608 cat <<\_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:411609python configure 2.7
Charles-François Natalibe2b9072013-01-08 18:47:001610generated by GNU Autoconf 2.69
Martin v. Löwis11437992002-04-12 09:54:031611
Charles-François Natalibe2b9072013-01-08 18:47:001612Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:031613This configure script is free software; the Free Software Foundation
1614gives unlimited permission to copy, distribute and modify it.
1615_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:571616 exit
Martin v. Löwis11437992002-04-12 09:54:031617fi
Matthias Klosea0bea5d2010-05-08 10:00:281618
1619## ------------------------ ##
1620## Autoconf initialization. ##
1621## ------------------------ ##
1622
1623# ac_fn_c_try_compile LINENO
1624# --------------------------
1625# Try to compile conftest.$ac_ext, and return whether this succeeded.
1626ac_fn_c_try_compile ()
1627{
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
Matthias Klose3cef2a92012-03-14 22:39:331656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281657 as_fn_set_status $ac_retval
1658
1659} # ac_fn_c_try_compile
1660
1661# ac_fn_c_try_cpp LINENO
1662# ----------------------
1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_cpp ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Georg Brandl71f4fbb2011-02-25 11:04:501682 test $ac_status = 0; } > conftest.i && {
Matthias Klosea0bea5d2010-05-08 10:00:281683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 }; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
Matthias Klose3cef2a92012-03-14 22:39:331693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281694 as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_cpp
1697
1698# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1699# -------------------------------------------------------
1700# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1701# the include files in INCLUDES and setting the cache variable VAR
1702# accordingly.
1703ac_fn_c_check_header_mongrel ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Matthias Klose3cef2a92012-03-14 22:39:331706 if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:281707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331709if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:281710 $as_echo_n "(cached) " >&6
1711fi
1712eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715else
1716 # Is the header compilable?
1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1718$as_echo_n "checking $2 usability... " >&6; }
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721$4
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"; then :
1725 ac_header_compiler=yes
1726else
1727 ac_header_compiler=no
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1731$as_echo "$ac_header_compiler" >&6; }
1732
1733# Is the header present?
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1735$as_echo_n "checking $2 presence... " >&6; }
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_cpp "$LINENO"; then :
1741 ac_header_preproc=yes
1742else
1743 ac_header_preproc=no
1744fi
Georg Brandl71f4fbb2011-02-25 11:04:501745rm -f conftest.err conftest.i conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:281746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1747$as_echo "$ac_header_preproc" >&6; }
1748
1749# So? What about this header?
1750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1751 yes:no: )
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1753$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757 no:yes:* )
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1759$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1761$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1763$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1765$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Benjamin Petersoncc8929b2016-08-04 05:01:321768( $as_echo "## --------------------------------------- ##
1769## Report this to https://bugs.python.org/ ##
1770## --------------------------------------- ##"
Matthias Klosea0bea5d2010-05-08 10:00:281771 ) | sed "s/^/$as_me: WARNING: /" >&2
1772 ;;
1773esac
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331776if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:281777 $as_echo_n "(cached) " >&6
1778else
1779 eval "$3=\$ac_header_compiler"
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784fi
Matthias Klose3cef2a92012-03-14 22:39:331785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281786
1787} # ac_fn_c_check_header_mongrel
1788
1789# ac_fn_c_try_run LINENO
1790# ----------------------
1791# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792# that executables *can* be run.
1793ac_fn_c_try_run ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Matthias Klose3cef2a92012-03-14 22:39:331826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281827 as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_run
1830
1831# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832# -------------------------------------------------------
1833# Tests whether HEADER exists and can be compiled using the include files in
1834# INCLUDES, setting the cache variable VAR accordingly.
1835ac_fn_c_check_header_compile ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331840if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:281841 $as_echo_n "(cached) " >&6
1842else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845$4
1846#include <$2>
1847_ACEOF
1848if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850else
1851 eval "$3=no"
1852fi
1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281859
1860} # ac_fn_c_check_header_compile
1861
1862# ac_fn_c_try_link LINENO
1863# -----------------------
1864# Try to link conftest.$ac_ext, and return whether this succeeded.
1865ac_fn_c_try_link ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873esac
1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875$as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
Charles-François Natalibe2b9072013-01-08 18:47:001889 test -x conftest$ac_exeext
Matthias Klosea0bea5d2010-05-08 10:00:281890 }; then :
1891 ac_retval=0
1892else
1893 $as_echo "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897fi
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Matthias Klose3cef2a92012-03-14 22:39:331903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281904 as_fn_set_status $ac_retval
1905
1906} # ac_fn_c_try_link
1907
1908# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909# -------------------------------------------
1910# Tests whether TYPE exists after having included INCLUDES, setting cache
1911# variable VAR accordingly.
1912ac_fn_c_check_type ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331917if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:281918 $as_echo_n "(cached) " >&6
1919else
1920 eval "$3=no"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$4
1924int
1925main ()
1926{
1927if (sizeof ($2))
1928 return 0;
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937int
1938main ()
1939{
1940if (sizeof (($2)))
1941 return 0;
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947
1948else
1949 eval "$3=yes"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:281959
1960} # ac_fn_c_check_type
1961
1962# ac_fn_c_find_uintX_t LINENO BITS VAR
1963# ------------------------------------
1964# Finds an unsigned integer type with width BITS, setting cache variable VAR
1965# accordingly.
1966ac_fn_c_find_uintX_t ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1970$as_echo_n "checking for uint$2_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:331971if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:281972 $as_echo_n "(cached) " >&6
1973else
1974 eval "$3=no"
1975 # Order is important - never check a type that is potentially smaller
1976 # than half of the expected target width.
1977 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1978 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981$ac_includes_default
1982int
1983main ()
1984{
1985static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
Charles-François Natalibe2b9072013-01-08 18:47:001986test_array [0] = 0;
1987return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:281988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994 case $ac_type in #(
1995 uint$2_t) :
1996 eval "$3=yes" ;; #(
1997 *) :
1998 eval "$3=\$ac_type" ;;
1999esac
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Georg Brandl71f4fbb2011-02-25 11:04:502002 if eval test \"x\$"$3"\" = x"no"; then :
Matthias Klosea0bea5d2010-05-08 10:00:282003
2004else
2005 break
2006fi
2007 done
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:282013
2014} # ac_fn_c_find_uintX_t
2015
2016# ac_fn_c_find_intX_t LINENO BITS VAR
2017# -----------------------------------
2018# Finds a signed integer type with width BITS, setting cache variable VAR
2019# accordingly.
2020ac_fn_c_find_intX_t ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2024$as_echo_n "checking for int$2_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332025if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:282026 $as_echo_n "(cached) " >&6
2027else
2028 eval "$3=no"
2029 # Order is important - never check a type that is potentially smaller
2030 # than half of the expected target width.
2031 for ac_type in int$2_t 'int' 'long int' \
2032 'long long int' 'short int' 'signed char'; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$ac_includes_default
Georg Brandl71f4fbb2011-02-25 11:04:502036 enum { N = $2 / 2 - 1 };
Matthias Klosea0bea5d2010-05-08 10:00:282037int
2038main ()
2039{
Georg Brandl71f4fbb2011-02-25 11:04:502040static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
Charles-François Natalibe2b9072013-01-08 18:47:002041test_array [0] = 0;
2042return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h. */
2051$ac_includes_default
Georg Brandl71f4fbb2011-02-25 11:04:502052 enum { N = $2 / 2 - 1 };
Matthias Klosea0bea5d2010-05-08 10:00:282053int
2054main ()
2055{
Georg Brandl71f4fbb2011-02-25 11:04:502056static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
Matthias Klosea0bea5d2010-05-08 10:00:282057 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
Charles-François Natalibe2b9072013-01-08 18:47:002058test_array [0] = 0;
2059return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282060
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066
2067else
2068 case $ac_type in #(
2069 int$2_t) :
2070 eval "$3=yes" ;; #(
2071 *) :
2072 eval "$3=\$ac_type" ;;
2073esac
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Georg Brandl71f4fbb2011-02-25 11:04:502078 if eval test \"x\$"$3"\" = x"no"; then :
Matthias Klosea0bea5d2010-05-08 10:00:282079
2080else
2081 break
2082fi
2083 done
2084fi
2085eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:282089
2090} # ac_fn_c_find_intX_t
2091
2092# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2093# --------------------------------------------
2094# Tries to find the compile-time value of EXPR in a program that includes
2095# INCLUDES, setting VAR accordingly. Returns whether the value could be
2096# computed
2097ac_fn_c_compute_int ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if test "$cross_compiling" = yes; then
2101 # Depending upon the size, compute the lo and hi bounds.
2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
2106main ()
2107{
2108static int test_array [1 - 2 * !(($2) >= 0)];
Charles-François Natalibe2b9072013-01-08 18:47:002109test_array [0] = 0;
2110return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=0 ac_mid=0
2118 while :; do
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Charles-François Natalibe2b9072013-01-08 18:47:002126test_array [0] = 0;
2127return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid; break
2135else
2136 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2137 if test $ac_lo -le $ac_mid; then
2138 ac_lo= ac_hi=
2139 break
2140 fi
2141 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2142fi
2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 done
2145else
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h. */
2148$4
2149int
2150main ()
2151{
2152static int test_array [1 - 2 * !(($2) < 0)];
Charles-François Natalibe2b9072013-01-08 18:47:002153test_array [0] = 0;
2154return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=-1 ac_mid=-1
2162 while :; do
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h. */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Charles-François Natalibe2b9072013-01-08 18:47:002170test_array [0] = 0;
2171return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_lo=$ac_mid; break
2179else
2180 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2181 if test $ac_mid -le $ac_hi; then
2182 ac_lo= ac_hi=
2183 break
2184 fi
2185 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 done
2189else
2190 ac_lo= ac_hi=
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195# Binary search between lo and hi bounds.
2196while test "x$ac_lo" != "x$ac_hi"; do
2197 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201int
2202main ()
2203{
2204static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Charles-François Natalibe2b9072013-01-08 18:47:002205test_array [0] = 0;
2206return test_array [0];
Matthias Klosea0bea5d2010-05-08 10:00:282207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218done
2219case $ac_lo in #((
2220?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221'') ac_retval=1 ;;
2222esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227static long int longval () { return $2; }
2228static unsigned long int ulongval () { return $2; }
2229#include <stdio.h>
2230#include <stdlib.h>
2231int
2232main ()
2233{
2234
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2239 {
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2244 }
2245 else
2246 {
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2251 }
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2255
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262else
2263 ac_retval=1
2264fi
2265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267rm -f conftest.val
2268
2269 fi
Matthias Klose3cef2a92012-03-14 22:39:332270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:282271 as_fn_set_status $ac_retval
2272
2273} # ac_fn_c_compute_int
2274
2275# ac_fn_c_check_func LINENO FUNC VAR
2276# ----------------------------------
2277# Tests whether FUNC exists, setting the cache variable VAR accordingly
2278ac_fn_c_check_func ()
2279{
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282$as_echo_n "checking for $2... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332283if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:282284 $as_echo_n "(cached) " >&6
2285else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h. */
2288/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2290#define $2 innocuous_$2
2291
2292/* System header to define __stub macros and hopefully few prototypes,
2293 which can conflict with char $2 (); below.
2294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2295 <limits.h> exists even on freestanding compilers. */
2296
2297#ifdef __STDC__
2298# include <limits.h>
2299#else
2300# include <assert.h>
2301#endif
2302
2303#undef $2
2304
2305/* Override any GCC internal prototype to avoid an error.
2306 Use char because int might match the return type of a GCC
2307 builtin and then its argument prototype would still apply. */
2308#ifdef __cplusplus
2309extern "C"
2310#endif
2311char $2 ();
2312/* The GNU C library defines this for functions which it implements
2313 to always fail with ENOSYS. Some functions are actually named
2314 something starting with __ and the normal name is an alias. */
2315#if defined __stub_$2 || defined __stub___$2
2316choke me
2317#endif
2318
2319int
2320main ()
2321{
2322return $2 ();
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327if ac_fn_c_try_link "$LINENO"; then :
2328 eval "$3=yes"
2329else
2330 eval "$3=no"
2331fi
2332rm -f core conftest.err conftest.$ac_objext \
2333 conftest$ac_exeext conftest.$ac_ext
2334fi
2335eval ac_res=\$$3
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:282339
2340} # ac_fn_c_check_func
2341
2342# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2343# ----------------------------------------------------
2344# Tries to find if the field MEMBER exists in type AGGR, after including
2345# INCLUDES, setting cache variable VAR accordingly.
2346ac_fn_c_check_member ()
2347{
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2350$as_echo_n "checking for $2.$3... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332351if eval \${$4+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:282352 $as_echo_n "(cached) " >&6
2353else
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355/* end confdefs.h. */
2356$5
2357int
2358main ()
2359{
2360static $2 ac_aggr;
2361if (ac_aggr.$3)
2362return 0;
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367if ac_fn_c_try_compile "$LINENO"; then :
2368 eval "$4=yes"
2369else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371/* end confdefs.h. */
2372$5
2373int
2374main ()
2375{
2376static $2 ac_aggr;
2377if (sizeof ac_aggr.$3)
2378return 0;
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383if ac_fn_c_try_compile "$LINENO"; then :
2384 eval "$4=yes"
2385else
2386 eval "$4=no"
2387fi
2388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389fi
2390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391fi
2392eval ac_res=\$$4
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:282396
2397} # ac_fn_c_check_member
2398
Georg Brandl71f4fbb2011-02-25 11:04:502399# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2400# ---------------------------------------------
2401# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2402# accordingly.
Matthias Klosea0bea5d2010-05-08 10:00:282403ac_fn_c_check_decl ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Georg Brandl71f4fbb2011-02-25 11:04:502406 as_decl_name=`echo $2|sed 's/ *(.*//'`
2407 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2409$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332410if eval \${$3+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:282411 $as_echo_n "(cached) " >&6
2412else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415$4
2416int
2417main ()
2418{
Georg Brandl71f4fbb2011-02-25 11:04:502419#ifndef $as_decl_name
2420#ifdef __cplusplus
2421 (void) $as_decl_use;
2422#else
2423 (void) $as_decl_name;
2424#endif
Matthias Klosea0bea5d2010-05-08 10:00:282425#endif
2426
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_compile "$LINENO"; then :
2432 eval "$3=yes"
2433else
2434 eval "$3=no"
2435fi
2436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437fi
2438eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440$as_echo "$ac_res" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:332441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Klosea0bea5d2010-05-08 10:00:282442
2443} # ac_fn_c_check_decl
Martin v. Löwiseba40652007-08-30 20:10:572444cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:032445This file contains any messages produced by compilers while
2446running configure, to aid debugging if configure makes a mistake.
2447
Martin v. Löwis174440b2008-10-03 08:59:412448It was created by python $as_me 2.7, which was
Charles-François Natalibe2b9072013-01-08 18:47:002449generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:032450
2451 $ $0 $@
2452
2453_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:572454exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:032455{
2456cat <<_ASUNAME
2457## --------- ##
2458## Platform. ##
2459## --------- ##
2460
2461hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2462uname -m = `(uname -m) 2>/dev/null || echo unknown`
2463uname -r = `(uname -r) 2>/dev/null || echo unknown`
2464uname -s = `(uname -s) 2>/dev/null || echo unknown`
2465uname -v = `(uname -v) 2>/dev/null || echo unknown`
2466
2467/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2468/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2469
2470/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2471/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2472/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Martin v. Löwiseba40652007-08-30 20:10:572473/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:032474/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2475/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2476/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2477
2478_ASUNAME
2479
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:282485 $as_echo "PATH: $as_dir"
2486 done
Martin v. Löwiseba40652007-08-30 20:10:572487IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:032488
2489} >&5
2490
2491cat >&5 <<_ACEOF
2492
2493
2494## ----------- ##
2495## Core tests. ##
2496## ----------- ##
2497
2498_ACEOF
2499
2500
2501# Keep a trace of the command line.
2502# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:042503# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:032504# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:042505# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:032506ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:042507ac_configure_args0=
2508ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:042509ac_must_keep_next=false
2510for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:032511do
Skip Montanaro6dead952003-09-25 14:50:042512 for ac_arg
2513 do
2514 case $ac_arg in
2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517 | -silent | --silent | --silen | --sile | --sil)
2518 continue ;;
Martin v. Löwiseba40652007-08-30 20:10:572519 *\'*)
Matthias Klosea0bea5d2010-05-08 10:00:282520 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Skip Montanaro6dead952003-09-25 14:50:042521 esac
2522 case $ac_pass in
Matthias Klosea0bea5d2010-05-08 10:00:282523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Skip Montanaro6dead952003-09-25 14:50:042524 2)
Matthias Klosea0bea5d2010-05-08 10:00:282525 as_fn_append ac_configure_args1 " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042526 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:232527 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:042528 else
Skip Montanarof0d5f792004-08-15 14:08:232529 case $ac_arg in
2530 *=* | --config-cache | -C | -disable-* | --disable-* \
2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533 | -with-* | --with-* | -without-* | --without-* | --x)
2534 case "$ac_configure_args0 " in
2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2536 esac
2537 ;;
2538 -* ) ac_must_keep_next=true ;;
2539 esac
Skip Montanaro6dead952003-09-25 14:50:042540 fi
Matthias Klosea0bea5d2010-05-08 10:00:282541 as_fn_append ac_configure_args " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042542 ;;
2543 esac
2544 done
Martin v. Löwis11437992002-04-12 09:54:032545done
Matthias Klosea0bea5d2010-05-08 10:00:282546{ ac_configure_args0=; unset ac_configure_args0;}
2547{ ac_configure_args1=; unset ac_configure_args1;}
Martin v. Löwis11437992002-04-12 09:54:032548
2549# When interrupted or exit'd, cleanup temporary files, and complete
2550# config.log. We remove comments because anyway the quotes in there
2551# would cause problems or look ugly.
Martin v. Löwiseba40652007-08-30 20:10:572552# WARNING: Use '\'' to represent an apostrophe within the trap.
2553# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Martin v. Löwis11437992002-04-12 09:54:032554trap 'exit_status=$?
2555 # Save into config.log some information that might help in debugging.
2556 {
2557 echo
Skip Montanaro6dead952003-09-25 14:50:042558
Georg Brandl71f4fbb2011-02-25 11:04:502559 $as_echo "## ---------------- ##
Martin v. Löwis11437992002-04-12 09:54:032560## Cache variables. ##
Georg Brandl71f4fbb2011-02-25 11:04:502561## ---------------- ##"
Martin v. Löwis11437992002-04-12 09:54:032562 echo
2563 # The following way of writing the cache mishandles newlines in values,
Martin v. Löwiseba40652007-08-30 20:10:572564(
2565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2566 eval ac_val=\$$ac_var
2567 case $ac_val in #(
2568 *${as_nl}*)
2569 case $ac_var in #(
Matthias Klosea0bea5d2010-05-08 10:00:282570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Martin v. Löwiseba40652007-08-30 20:10:572572 esac
2573 case $ac_var in #(
2574 _ | IFS | as_nl) ;; #(
Matthias Klosea0bea5d2010-05-08 10:00:282575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576 *) { eval $ac_var=; unset $ac_var;} ;;
Martin v. Löwiseba40652007-08-30 20:10:572577 esac ;;
2578 esac
2579 done
Martin v. Löwis11437992002-04-12 09:54:032580 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:572581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2582 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:032583 sed -n \
Martin v. Löwiseba40652007-08-30 20:10:572584 "s/'\''/'\''\\\\'\'''\''/g;
2585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2586 ;; #(
Skip Montanaro89e975f2007-08-22 19:05:212587 *)
Martin v. Löwiseba40652007-08-30 20:10:572588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaro89e975f2007-08-22 19:05:212589 ;;
Martin v. Löwiseba40652007-08-30 20:10:572590 esac |
2591 sort
2592)
Martin v. Löwis11437992002-04-12 09:54:032593 echo
Skip Montanaro6dead952003-09-25 14:50:042594
Georg Brandl71f4fbb2011-02-25 11:04:502595 $as_echo "## ----------------- ##
Skip Montanaro6dead952003-09-25 14:50:042596## Output variables. ##
Georg Brandl71f4fbb2011-02-25 11:04:502597## ----------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042598 echo
2599 for ac_var in $ac_subst_vars
2600 do
Martin v. Löwiseba40652007-08-30 20:10:572601 eval ac_val=\$$ac_var
2602 case $ac_val in
Matthias Klosea0bea5d2010-05-08 10:00:282603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Martin v. Löwiseba40652007-08-30 20:10:572604 esac
Matthias Klosea0bea5d2010-05-08 10:00:282605 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042606 done | sort
2607 echo
2608
2609 if test -n "$ac_subst_files"; then
Georg Brandl71f4fbb2011-02-25 11:04:502610 $as_echo "## ------------------- ##
Martin v. Löwiseba40652007-08-30 20:10:572611## File substitutions. ##
Georg Brandl71f4fbb2011-02-25 11:04:502612## ------------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042613 echo
2614 for ac_var in $ac_subst_files
2615 do
Martin v. Löwiseba40652007-08-30 20:10:572616 eval ac_val=\$$ac_var
2617 case $ac_val in
Matthias Klosea0bea5d2010-05-08 10:00:282618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Martin v. Löwiseba40652007-08-30 20:10:572619 esac
Matthias Klosea0bea5d2010-05-08 10:00:282620 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042621 done | sort
2622 echo
2623 fi
2624
Martin v. Löwis11437992002-04-12 09:54:032625 if test -s confdefs.h; then
Georg Brandl71f4fbb2011-02-25 11:04:502626 $as_echo "## ----------- ##
Martin v. Löwis11437992002-04-12 09:54:032627## confdefs.h. ##
Georg Brandl71f4fbb2011-02-25 11:04:502628## ----------- ##"
Martin v. Löwis11437992002-04-12 09:54:032629 echo
Martin v. Löwiseba40652007-08-30 20:10:572630 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032631 echo
2632 fi
2633 test "$ac_signal" != 0 &&
Matthias Klosea0bea5d2010-05-08 10:00:282634 $as_echo "$as_me: caught signal $ac_signal"
2635 $as_echo "$as_me: exit $exit_status"
Martin v. Löwis11437992002-04-12 09:54:032636 } >&5
Martin v. Löwiseba40652007-08-30 20:10:572637 rm -f core *.core core.conftest.* &&
2638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:032639 exit $exit_status
Martin v. Löwiseba40652007-08-30 20:10:572640' 0
Martin v. Löwis11437992002-04-12 09:54:032641for ac_signal in 1 2 13 15; do
Matthias Klosea0bea5d2010-05-08 10:00:282642 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Martin v. Löwis11437992002-04-12 09:54:032643done
2644ac_signal=0
2645
2646# confdefs.h avoids OS command line length limits that DEFS can exceed.
Martin v. Löwiseba40652007-08-30 20:10:572647rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032648
Matthias Klosea0bea5d2010-05-08 10:00:282649$as_echo "/* confdefs.h */" > confdefs.h
2650
Martin v. Löwis11437992002-04-12 09:54:032651# Predefined preprocessor variables.
2652
2653cat >>confdefs.h <<_ACEOF
2654#define PACKAGE_NAME "$PACKAGE_NAME"
2655_ACEOF
2656
Martin v. Löwis11437992002-04-12 09:54:032657cat >>confdefs.h <<_ACEOF
2658#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2659_ACEOF
2660
Martin v. Löwis11437992002-04-12 09:54:032661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE_VERSION "$PACKAGE_VERSION"
2663_ACEOF
2664
Martin v. Löwis11437992002-04-12 09:54:032665cat >>confdefs.h <<_ACEOF
2666#define PACKAGE_STRING "$PACKAGE_STRING"
2667_ACEOF
2668
Martin v. Löwis11437992002-04-12 09:54:032669cat >>confdefs.h <<_ACEOF
2670#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2671_ACEOF
2672
Matthias Klosea0bea5d2010-05-08 10:00:282673cat >>confdefs.h <<_ACEOF
2674#define PACKAGE_URL "$PACKAGE_URL"
2675_ACEOF
2676
Martin v. Löwis11437992002-04-12 09:54:032677
2678# Let the site file select an alternate cache file if it wants to.
Matthias Klosea0bea5d2010-05-08 10:00:282679# Prefer an explicitly selected file to automatically selected ones.
2680ac_site_file1=NONE
2681ac_site_file2=NONE
Martin v. Löwiseba40652007-08-30 20:10:572682if test -n "$CONFIG_SITE"; then
Georg Brandl71f4fbb2011-02-25 11:04:502683 # We do not want a PATH search for config.site.
2684 case $CONFIG_SITE in #((
2685 -*) ac_site_file1=./$CONFIG_SITE;;
2686 */*) ac_site_file1=$CONFIG_SITE;;
2687 *) ac_site_file1=./$CONFIG_SITE;;
2688 esac
Martin v. Löwiseba40652007-08-30 20:10:572689elif test "x$prefix" != xNONE; then
Matthias Klosea0bea5d2010-05-08 10:00:282690 ac_site_file1=$prefix/share/config.site
2691 ac_site_file2=$prefix/etc/config.site
Martin v. Löwiseba40652007-08-30 20:10:572692else
Matthias Klosea0bea5d2010-05-08 10:00:282693 ac_site_file1=$ac_default_prefix/share/config.site
2694 ac_site_file2=$ac_default_prefix/etc/config.site
Guido van Rossum76be6ed1995-01-02 18:33:542695fi
Matthias Klosea0bea5d2010-05-08 10:00:282696for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Martin v. Löwiseba40652007-08-30 20:10:572697do
Matthias Klosea0bea5d2010-05-08 10:00:282698 test "x$ac_site_file" = xNONE && continue
2699 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2701$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032702 sed 's/^/| /' "$ac_site_file" >&5
Georg Brandl71f4fbb2011-02-25 11:04:502703 . "$ac_site_file" \
2704 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706as_fn_error $? "failed to load site script $ac_site_file
Matthias Klose3cef2a92012-03-14 22:39:332707See \`config.log' for more details" "$LINENO" 5; }
Guido van Rossum76be6ed1995-01-02 18:33:542708 fi
2709done
2710
2711if test -r "$cache_file"; then
Matthias Klosea0bea5d2010-05-08 10:00:282712 # Some versions of bash will fail to source /dev/null (special files
2713 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2714 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2716$as_echo "$as_me: loading cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032717 case $cache_file in
Martin v. Löwiseba40652007-08-30 20:10:572718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2719 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:032720 esac
2721 fi
Guido van Rossum76be6ed1995-01-02 18:33:542722else
Matthias Klosea0bea5d2010-05-08 10:00:282723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2724$as_echo "$as_me: creating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032725 >$cache_file
2726fi
2727
2728# Check that the precious variables saved in the cache have kept the same
2729# value.
2730ac_cache_corrupted=false
Martin v. Löwiseba40652007-08-30 20:10:572731for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:032732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733 eval ac_new_set=\$ac_env_${ac_var}_set
Martin v. Löwiseba40652007-08-30 20:10:572734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:032736 case $ac_old_set,$ac_new_set in
2737 set,)
Matthias Klosea0bea5d2010-05-08 10:00:282738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2739$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032740 ac_cache_corrupted=: ;;
2741 ,set)
Matthias Klosea0bea5d2010-05-08 10:00:282742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2743$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032744 ac_cache_corrupted=: ;;
2745 ,);;
2746 *)
2747 if test "x$ac_old_val" != "x$ac_new_val"; then
Matthias Klosea0bea5d2010-05-08 10:00:282748 # differences in whitespace do not lead to failure.
2749 ac_old_val_w=`echo x $ac_old_val`
2750 ac_new_val_w=`echo x $ac_new_val`
2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2754 ac_cache_corrupted=:
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2757$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758 eval $ac_var=\$ac_old_val
2759 fi
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2761$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2763$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032764 fi;;
2765 esac
2766 # Pass precious variables to config.status.
2767 if test "$ac_new_set" = set; then
2768 case $ac_new_val in
Matthias Klosea0bea5d2010-05-08 10:00:282769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:032770 *) ac_arg=$ac_var=$ac_new_val ;;
2771 esac
2772 case " $ac_configure_args " in
2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Matthias Klosea0bea5d2010-05-08 10:00:282774 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Martin v. Löwis11437992002-04-12 09:54:032775 esac
2776 fi
2777done
2778if $ac_cache_corrupted; then
Matthias Klosea0bea5d2010-05-08 10:00:282779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:502783 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:542784fi
Matthias Klosea0bea5d2010-05-08 10:00:282785## -------------------- ##
2786## Main body of script. ##
2787## -------------------- ##
Martin v. Löwiseba40652007-08-30 20:10:572788
Guido van Rossum7f43da71994-08-01 12:15:302789ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:542790ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:032791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:542794
Guido van Rossum627b2d71993-12-24 10:39:162795
Michael W. Hudson54241132001-12-07 15:38:262796
Martin v. Löwiseba40652007-08-30 20:10:572797ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:032798
2799
doko@python.orgd65e2ba2013-01-31 22:52:032800ac_aux_dir=
2801for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2802 if test -f "$ac_dir/install-sh"; then
2803 ac_aux_dir=$ac_dir
2804 ac_install_sh="$ac_aux_dir/install-sh -c"
2805 break
2806 elif test -f "$ac_dir/install.sh"; then
2807 ac_aux_dir=$ac_dir
2808 ac_install_sh="$ac_aux_dir/install.sh -c"
2809 break
2810 elif test -f "$ac_dir/shtool"; then
2811 ac_aux_dir=$ac_dir
2812 ac_install_sh="$ac_aux_dir/shtool install -c"
2813 break
2814 fi
2815done
2816if test -z "$ac_aux_dir"; then
2817 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2818fi
2819
2820# These three variables are undocumented and unsupported,
2821# and are intended to be withdrawn in a future Autoconf release.
2822# They can cause serious problems if a builder's source tree is in a directory
2823# whose full name contains unusual characters.
2824ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2827
2828
2829# Make sure we can run config.sub.
2830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2832
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2834$as_echo_n "checking build system type... " >&6; }
2835if ${ac_cv_build+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837else
2838 ac_build_alias=$build_alias
2839test "x$ac_build_alias" = x &&
2840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2841test "x$ac_build_alias" = x &&
2842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2843ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2845
2846fi
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2848$as_echo "$ac_cv_build" >&6; }
2849case $ac_cv_build in
2850*-*-*) ;;
2851*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2852esac
2853build=$ac_cv_build
2854ac_save_IFS=$IFS; IFS='-'
2855set x $ac_cv_build
2856shift
2857build_cpu=$1
2858build_vendor=$2
2859shift; shift
2860# Remember, the first character of IFS is used to create $*,
2861# except with old shells:
2862build_os=$*
2863IFS=$ac_save_IFS
2864case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2865
2866
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2868$as_echo_n "checking host system type... " >&6; }
2869if ${ac_cv_host+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871else
2872 if test "x$host_alias" = x; then
2873 ac_cv_host=$ac_cv_build
2874else
2875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2877fi
2878
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2881$as_echo "$ac_cv_host" >&6; }
2882case $ac_cv_host in
2883*-*-*) ;;
2884*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2885esac
2886host=$ac_cv_host
2887ac_save_IFS=$IFS; IFS='-'
2888set x $ac_cv_host
2889shift
2890host_cpu=$1
2891host_vendor=$2
2892shift; shift
2893# Remember, the first character of IFS is used to create $*,
2894# except with old shells:
2895host_os=$*
2896IFS=$ac_save_IFS
2897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2898
2899
2900
2901
2902
Ned Deily983df862014-08-22 20:30:592903# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2904rm -f pybuilddir.txt
2905
Victor Stinner8a19eb22017-05-05 01:14:232906for ac_prog in python$PACKAGE_VERSION python3 python
2907do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909set dummy $ac_prog; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
2912if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914else
2915 if test -n "$PYTHON_FOR_REGEN"; then
2916 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930 done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2936if test -n "$PYTHON_FOR_REGEN"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2938$as_echo "$PYTHON_FOR_REGEN" >&6; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945 test -n "$PYTHON_FOR_REGEN" && break
2946done
2947test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
2948
2949
2950
doko@python.orgd65e2ba2013-01-31 22:52:032951if test "$cross_compiling" = yes; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2953$as_echo_n "checking for python interpreter for cross build... " >&6; }
2954 if test -z "$PYTHON_FOR_BUILD"; then
2955 for interp in python$PACKAGE_VERSION python2 python; do
2956 which $interp >/dev/null 2>&1 || continue
2957 if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then
2958 break
2959 fi
2960 interp=
2961 done
2962 if test x$interp = x; then
2963 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2966$as_echo "$interp" >&6; }
Christian Heimesffa70112017-09-05 15:08:452967 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
doko@python.orgd65e2ba2013-01-31 22:52:032968 fi
2969elif test "$cross_compiling" = maybe; then
2970 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
2971else
2972 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2973fi
2974
2975
Martin v. Löwis11437992002-04-12 09:54:032976
Georg Brandlbcd64a32009-03-31 21:45:182977if test "$prefix" != "/"; then
2978 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2979fi
2980
2981
Martin v. Löwis11437992002-04-12 09:54:032982
2983
Martin v. Löwis8316feb2003-06-14 07:48:072984# We don't use PACKAGE_ variables, and they cause conflicts
2985# with other autoconf-based packages that include Python.h
2986grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2987rm confdefs.h
2988mv confdefs.h.new confdefs.h
2989
Martin v. Löwisbddf5a52002-11-11 13:37:282990
Martin v. Löwis174440b2008-10-03 08:59:412991VERSION=2.7
Guido van Rossum1fd74a71997-07-19 19:36:022992
Martin v. Löwis1142de32002-03-29 16:28:312993
2994SOVERSION=1.0
2995
Martin v. Löwis6f18a3c2002-07-20 08:51:522996# The later defininition of _XOPEN_SOURCE disables certain features
2997# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2998
Matthias Klosea0bea5d2010-05-08 10:00:282999$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Martin v. Löwis6f18a3c2002-07-20 08:51:523000
3001
Martin v. Löwisbcd93962003-05-03 10:32:183002# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3003# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3004# them.
3005
Matthias Klosea0bea5d2010-05-08 10:00:283006$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
Martin v. Löwisbcd93962003-05-03 10:32:183007
3008
Andrew MacIntyreabccf412003-07-02 13:53:253009# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3010# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3011# them.
3012
Matthias Klosea0bea5d2010-05-08 10:00:283013$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
Andrew MacIntyreabccf412003-07-02 13:53:253014
3015
Martin v. Löwisd6320502004-08-12 13:45:083016# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3017# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3018
Matthias Klosea0bea5d2010-05-08 10:00:283019$as_echo "#define _BSD_TYPES 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:083020
3021
Ronald Oussoren5640ce22008-06-05 12:58:243022# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3023# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3024# them.
3025
Matthias Klosea0bea5d2010-05-08 10:00:283026$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
Ronald Oussoren5640ce22008-06-05 12:58:243027
3028
3029
Martin v. Löwis35195ad2002-11-11 13:26:513030define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:523031
Neil Schemenauer4edbc2a2001-03-22 00:34:033032# Arguments passed to configure.
3033
3034CONFIG_ARGS="$ac_configure_args"
3035
Matthias Klosea0bea5d2010-05-08 10:00:283036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3037$as_echo_n "checking for --enable-universalsdk... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:573038# Check whether --enable-universalsdk was given.
Matthias Klosea0bea5d2010-05-08 10:00:283039if test "${enable_universalsdk+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:573040 enableval=$enable_universalsdk;
Ronald Oussoren988117f2006-04-29 11:31:353041 case $enableval in
3042 yes)
Stéphane Wirtel6bf85ac2018-11-04 19:38:503043 # Locate the best usable SDK, see Mac/README for more
Ned Deilyee8e4b62018-04-14 14:37:283044 # information
3045 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3046 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
Ronald Oussoren3c0a1262010-01-17 19:27:573047 then
Ned Deilyee8e4b62018-04-14 14:37:283048 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3049 if test ! -d "${enableval}"
3050 then
3051 enableval=/
3052 fi
Ronald Oussoren3c0a1262010-01-17 19:27:573053 fi
Ronald Oussoren988117f2006-04-29 11:31:353054 ;;
3055 esac
3056 case $enableval in
3057 no)
3058 UNIVERSALSDK=
3059 enable_universalsdk=
3060 ;;
3061 *)
3062 UNIVERSALSDK=$enableval
Ronald Oussoren3c0a1262010-01-17 19:27:573063 if test ! -d "${UNIVERSALSDK}"
3064 then
Georg Brandl71f4fbb2011-02-25 11:04:503065 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
Ronald Oussoren3c0a1262010-01-17 19:27:573066 fi
Ronald Oussoren988117f2006-04-29 11:31:353067 ;;
3068 esac
3069
Ronald Oussoren3c0a1262010-01-17 19:27:573070
Ronald Oussoren988117f2006-04-29 11:31:353071else
3072
3073 UNIVERSALSDK=
3074 enable_universalsdk=
3075
Martin v. Löwiseba40652007-08-30 20:10:573076fi
Ronald Oussoren988117f2006-04-29 11:31:353077
Ronald Oussoren3c0a1262010-01-17 19:27:573078if test -n "${UNIVERSALSDK}"
3079then
Matthias Klosea0bea5d2010-05-08 10:00:283080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3081$as_echo "${UNIVERSALSDK}" >&6; }
Ronald Oussoren3c0a1262010-01-17 19:27:573082else
Matthias Klosea0bea5d2010-05-08 10:00:283083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
Ronald Oussoren3c0a1262010-01-17 19:27:573085fi
Ronald Oussoren988117f2006-04-29 11:31:353086
Martin v. Löwiseba40652007-08-30 20:10:573087
Benjamin Peterson0e6ea5d2008-07-16 20:17:043088
Ned Deily8e60f6e2013-05-30 07:14:293089ARCH_RUN_32BIT=""
Benjamin Peterson0e6ea5d2008-07-16 20:17:043090
Ned Deilyee8e4b62018-04-14 14:37:283091# For backward compatibility reasons we prefer to select '32-bit' if available,
3092# otherwise use 'intel'
Ronald Oussoren5640ce22008-06-05 12:58:243093UNIVERSAL_ARCHS="32-bit"
Ned Deilyee8e4b62018-04-14 14:37:283094if test "`uname -s`" = "Darwin"
3095then
3096 if test -n "${UNIVERSALSDK}"
3097 then
3098 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3099 then
3100 UNIVERSAL_ARCHS="intel"
3101 fi
3102 fi
3103fi
3104
Ronald Oussoren92919a62009-12-24 13:30:583105
Matthias Klosea0bea5d2010-05-08 10:00:283106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3107$as_echo_n "checking for --with-universal-archs... " >&6; }
Ronald Oussoren5640ce22008-06-05 12:58:243108
3109# Check whether --with-universal-archs was given.
Matthias Klosea0bea5d2010-05-08 10:00:283110if test "${with_universal_archs+set}" = set; then :
Ronald Oussoren5640ce22008-06-05 12:58:243111 withval=$with_universal_archs;
Ronald Oussoren5640ce22008-06-05 12:58:243112 UNIVERSAL_ARCHS="$withval"
Ronald Oussoren5640ce22008-06-05 12:58:243113
3114fi
3115
Ned Deilyee8e4b62018-04-14 14:37:283116if test -n "${UNIVERSALSDK}"
3117then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3119$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3120else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
Ronald Oussoren5640ce22008-06-05 12:58:243124
Ronald Oussoren580c7fe2008-05-02 19:45:113125
3126# Check whether --with-framework-name was given.
Matthias Klosea0bea5d2010-05-08 10:00:283127if test "${with_framework_name+set}" = set; then :
Ronald Oussoren580c7fe2008-05-02 19:45:113128 withval=$with_framework_name;
Ronald Oussoren9ebd2422009-09-29 13:00:443129 if test "${enable_framework}"; then
3130 :
3131 else
Georg Brandl71f4fbb2011-02-25 11:04:503132 as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
Ronald Oussoren9ebd2422009-09-29 13:00:443133 fi
Ronald Oussoren580c7fe2008-05-02 19:45:113134 PYTHONFRAMEWORK=${withval}
3135 PYTHONFRAMEWORKDIR=${withval}.framework
3136 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3137
3138else
3139
3140 PYTHONFRAMEWORK=Python
3141 PYTHONFRAMEWORKDIR=Python.framework
3142 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3143
3144fi
3145
Martin v. Löwiseba40652007-08-30 20:10:573146# Check whether --enable-framework was given.
Matthias Klosea0bea5d2010-05-08 10:00:283147if test "${enable_framework+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:573148 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:143149 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:033150 yes)
Jack Jansene578a632001-08-15 01:27:143151 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:543152 esac
3153 case $enableval in
3154 no)
3155 PYTHONFRAMEWORK=
3156 PYTHONFRAMEWORKDIR=no-framework
3157 PYTHONFRAMEWORKPREFIX=
3158 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:263159 FRAMEWORKINSTALLFIRST=
3160 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:243161 FRAMEWORKALTINSTALLFIRST=
3162 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:013163 if test "x${prefix}" = "xNONE"; then
3164 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3165 else
3166 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3167 fi
Jack Jansen127e56e2001-09-11 14:41:543168 enable_framework=
Jack Jansene578a632001-08-15 01:27:143169 ;;
3170 *)
Ronald Oussoren01d149f2010-04-30 11:20:143171 PYTHONFRAMEWORKPREFIX="${enableval}"
Jack Jansen127e56e2001-09-11 14:41:543172 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Ronald Oussoren567a8ff2006-05-26 11:43:263173 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussoren5640ce22008-06-05 12:58:243174 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
Ronald Oussoren92919a62009-12-24 13:30:583175 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3176 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
Ronald Oussoren01d149f2010-04-30 11:20:143177 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
Ronald Oussoren5640ce22008-06-05 12:58:243178
Ronald Oussoren2db3a8f2006-06-07 19:06:013179 if test "x${prefix}" = "xNONE" ; then
3180 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
Ronald Oussoren01d149f2010-04-30 11:20:143181
Ronald Oussoren2db3a8f2006-06-07 19:06:013182 else
3183 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3184 fi
Ronald Oussoren01d149f2010-04-30 11:20:143185
3186 case "${enableval}" in
3187 /System*)
3188 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3189 if test "${prefix}" = "NONE" ; then
3190 # See below
3191 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3192 fi
3193 ;;
3194
3195 /Library*)
3196 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3197 ;;
3198
3199 */Library/Frameworks)
3200 MDIR="`dirname "${enableval}"`"
3201 MDIR="`dirname "${MDIR}"`"
3202 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3203
3204 if test "${prefix}" = "NONE"; then
3205 # User hasn't specified the
3206 # --prefix option, but wants to install
3207 # the framework in a non-default location,
3208 # ensure that the compatibility links get
3209 # installed relative to that prefix as well
3210 # instead of in /usr/local.
3211 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3212 fi
3213 ;;
3214
3215 *)
3216 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3217 ;;
3218 esac
3219
Jack Jansen127e56e2001-09-11 14:41:543220 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Ronald Oussoren836b0392006-05-14 19:56:343221
Ronald Oussoren580c7fe2008-05-02 19:45:113222 # Add files for Mac specific code to the list of output
Ronald Oussoren836b0392006-05-14 19:56:343223 # files:
Martin v. Löwiseba40652007-08-30 20:10:573224 ac_config_files="$ac_config_files Mac/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:343225
Martin v. Löwiseba40652007-08-30 20:10:573226 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:343227
Martin v. Löwiseba40652007-08-30 20:10:573228 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:343229
Ronald Oussoren580c7fe2008-05-02 19:45:113230 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3231
3232 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3233
Jack Jansene578a632001-08-15 01:27:143234 esac
Martin v. Löwis11437992002-04-12 09:54:033235
Guido van Rossum563e7081996-09-10 18:20:483236else
Martin v. Löwis11437992002-04-12 09:54:033237
Jack Jansene578a632001-08-15 01:27:143238 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:543239 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:143240 PYTHONFRAMEWORKPREFIX=
3241 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:263242 FRAMEWORKINSTALLFIRST=
3243 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:243244 FRAMEWORKALTINSTALLFIRST=
3245 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:013246 if test "x${prefix}" = "xNONE" ; then
3247 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3248 else
3249 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3250 fi
Jack Jansene578a632001-08-15 01:27:143251 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:353252
Ronald Oussoren5640ce22008-06-05 12:58:243253
Martin v. Löwiseba40652007-08-30 20:10:573254fi
3255
Michael W. Hudson54241132001-12-07 15:38:263256
3257
3258
3259
Jack Jansene578a632001-08-15 01:27:143260
Ronald Oussoren567a8ff2006-05-26 11:43:263261
3262
Ronald Oussoren5b787322006-06-06 19:50:243263
3264
3265
Ronald Oussoren580c7fe2008-05-02 19:45:113266
Ronald Oussoren01d149f2010-04-30 11:20:143267
Jack Jansene578a632001-08-15 01:27:143268##AC_ARG_WITH(dyld,
Matthias Klose22520ea2010-05-08 10:14:463269## AS_HELP_STRING([--with-dyld],
3270## [Use (OpenStep|Rhapsody) dynamic linker]))
Jack Jansene578a632001-08-15 01:27:143271##
Guido van Rossum7b3853f1996-07-30 18:09:353272# Set name for machine-dependent library files
3273
Matthias Klosea0bea5d2010-05-08 10:00:283274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3275$as_echo_n "checking MACHDEP... " >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:353276if test -z "$MACHDEP"
3277then
doko@python.orgd65e2ba2013-01-31 22:52:033278 # avoid using uname for cross builds
3279 if test "$cross_compiling" = yes; then
3280 # ac_sys_system and ac_sys_release are only used for setting
3281 # `define_xopen_source' in the case statement below. For the
3282 # current supported cross builds, this macro is not adjusted.
3283 case "$host" in
3284 *-*-linux*)
3285 ac_sys_system=Linux
3286 ;;
3287 *-*-cygwin*)
3288 ac_sys_system=Cygwin
3289 ;;
3290 *)
3291 # for now, limit cross builds to known configurations
3292 MACHDEP="unknown"
3293 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3294 esac
3295 ac_sys_release=
3296 else
Guido van Rossum563e7081996-09-10 18:20:483297 ac_sys_system=`uname -s`
Georg Brandlfe18a112009-09-04 07:55:143298 if test "$ac_sys_system" = "AIX" \
Martin v. Löwis21ee4092002-09-30 16:19:483299 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:483300 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:353301 else
Guido van Rossum563e7081996-09-10 18:20:483302 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:353303 fi
doko@python.orgd65e2ba2013-01-31 22:52:033304 fi
3305 ac_md_system=`echo $ac_sys_system |
3306 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3307 ac_md_release=`echo $ac_sys_release |
3308 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3309 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:483310
doko@python.orgd65e2ba2013-01-31 22:52:033311 case $MACHDEP in
Victor Stinneracacbaa2011-08-20 12:02:383312 linux*) MACHDEP="linux2";;
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:043313 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:323314 darwin*) MACHDEP="darwin";;
Martin v. Löwisf90ae202002-06-11 06:22:313315 atheos*) MACHDEP="atheos";;
Martin v. Löwisf3322282003-07-13 09:46:133316 irix646) MACHDEP="irix6";;
Guido van Rossumb97ef171997-09-28 05:44:033317 '') MACHDEP="unknown";;
doko@python.orgd65e2ba2013-01-31 22:52:033318 esac
3319fi
3320
3321
3322if test "$cross_compiling" = yes; then
3323 case "$host" in
3324 *-*-linux*)
3325 case "$host_cpu" in
3326 arm*)
3327 _host_cpu=arm
3328 ;;
3329 *)
3330 _host_cpu=$host_cpu
3331 esac
3332 ;;
3333 *-*-cygwin*)
3334 _host_cpu=
3335 ;;
3336 *)
3337 # for now, limit cross builds to known configurations
3338 MACHDEP="unknown"
3339 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
Guido van Rossum7b3853f1996-07-30 18:09:353340 esac
doko@python.orgd65e2ba2013-01-31 22:52:033341 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
Guido van Rossum7b3853f1996-07-30 18:09:353342fi
Guido van Rossum91922671997-10-09 20:24:133343
Martin v. Löwis35195ad2002-11-11 13:26:513344# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3345# disable features if it is defined, without any means to access these
3346# features as extensions. For these systems, we skip the definition of
3347# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3348# some feature, make sure there is no alternative way to access this
3349# feature. Also, when using wildcards, make sure you have verified the
3350# need for not defining _XOPEN_SOURCE on all systems matching the
3351# wildcard, and that the wildcard does not include future systems
3352# (which may remove their limitations).
3353case $ac_sys_system/$ac_sys_release in
3354 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3355 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:443356 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Martin v. Löwis7875ef62010-02-15 21:41:123357 # In addition, Stefan Krah confirms that issue #1244610 exists through
3358 # OpenBSD 4.6, but is fixed in 4.7.
Charles-François Natali97781b02011-07-22 21:43:423359 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
Martin v. Löwiscb78de62007-12-29 18:49:213360 define_xopen_source=no
3361 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3362 # also defined. This can be overridden by defining _BSD_SOURCE
3363 # As this has a different meaning on Linux, only define it on OpenBSD
3364
Matthias Klosea0bea5d2010-05-08 10:00:283365$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Martin v. Löwiscb78de62007-12-29 18:49:213366
3367 ;;
Charles-François Natali97781b02011-07-22 21:43:423368 OpenBSD/*)
Martin v. Löwis5e2dd862010-02-15 08:32:003369 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3370 # also defined. This can be overridden by defining _BSD_SOURCE
3371 # As this has a different meaning on Linux, only define it on OpenBSD
3372
Matthias Klosea0bea5d2010-05-08 10:00:283373$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Martin v. Löwis5e2dd862010-02-15 08:32:003374
3375 ;;
Martin v. Löwis4d542ec2006-11-25 15:39:193376 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3377 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3378 # Marc Recht
Benjamin Petersoneac68f42008-11-16 17:54:553379 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
Martin v. Löwis4d542ec2006-11-25 15:39:193380 define_xopen_source=no;;
Martin v. Löwisb41afb52010-05-28 15:28:473381 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3382 # request to enable features supported by the standard as a request
3383 # to disable features not supported by the standard. The best way
3384 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3385 # entirely and define __EXTENSIONS__ instead.
3386 SunOS/*)
Martin v. Löwisa9d71422003-03-28 18:43:313387 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:413388 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3389 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:453390 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:143391 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:413392 define_xopen_source=no;;
3393 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:183394 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:413395 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:183396 define_xopen_source=no;;
Martin v. Löwisbb86d832008-11-04 20:40:093397 # On FreeBSD 4, the math functions C89 does not cover are never defined
3398 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3399 FreeBSD/4.*)
3400 define_xopen_source=no;;
3401 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3402 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3403 # identifies itself as Darwin/7.*
3404 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3405 # disables platform specific features beyond repair.
3406 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3407 # has no effect, don't bother defining them
3408 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:233409 define_xopen_source=no;;
Ronald Oussorena55af9a2010-01-17 16:25:573410 Darwin/1[0-9].*)
3411 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393412 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3413 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3414 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:443415 AIX/4)
3416 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393417 AIX/5)
3418 if test `uname -r` -eq 1; then
3419 define_xopen_source=no
3420 fi
3421 ;;
Martin v. Löwis8c255e42008-05-23 15:06:503422 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3423 # defining NI_NUMERICHOST.
3424 QNX/6.3.2)
3425 define_xopen_source=no
3426 ;;
Martin v. Löwisa0588362006-04-04 06:03:503427
Martin v. Löwis35195ad2002-11-11 13:26:513428esac
3429
3430if test $define_xopen_source = yes
3431then
Martin v. Löwis678fc1e2002-11-12 06:04:393432
Matthias Klosea0bea5d2010-05-08 10:00:283433$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
Martin v. Löwis35195ad2002-11-11 13:26:513434
Martin v. Löwis678fc1e2002-11-12 06:04:393435
3436 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3437 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3438 # several APIs are not declared. Since this is also needed in some
3439 # cases for HP-UX, we define it globally.
Martin v. Löwis678fc1e2002-11-12 06:04:393440
Matthias Klosea0bea5d2010-05-08 10:00:283441$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393442
Martin v. Löwis678fc1e2002-11-12 06:04:393443
Bob Ippolito7026a0a2005-03-28 23:23:473444
Matthias Klosea0bea5d2010-05-08 10:00:283445$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393446
3447
Martin v. Löwis35195ad2002-11-11 13:26:513448fi
3449
Guido van Rossum91922671997-10-09 20:24:133450#
3451# SGI compilers allow the specification of the both the ABI and the
3452# ISA on the command line. Depending on the values of these switches,
Martin Panterb1d867f2016-05-26 05:28:503453# different and often incompatible code will be generated.
Guido van Rossum91922671997-10-09 20:24:133454#
3455# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3456# thus supply support for various ABI/ISA combinations. The MACHDEP
3457# variable is also adjusted.
3458#
3459
3460if test ! -z "$SGI_ABI"
3461then
3462 CC="cc $SGI_ABI"
3463 LDFLAGS="$SGI_ABI $LDFLAGS"
3464 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3465fi
Matthias Klosea0bea5d2010-05-08 10:00:283466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3467$as_echo "$MACHDEP" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:353468
doko@ubuntu.coma50b0de2015-04-13 19:55:593469
3470PLATDIR=plat-$MACHDEP
3471
Jack Jansen83f898c2002-12-30 22:23:403472# And add extra plat-mac for darwin
3473
Jack Jansen7b59b422003-03-17 15:44:103474
Matthias Klosea0bea5d2010-05-08 10:00:283475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3476$as_echo_n "checking EXTRAPLATDIR... " >&6; }
Jack Jansen83f898c2002-12-30 22:23:403477if test -z "$EXTRAPLATDIR"
3478then
3479 case $MACHDEP in
Jack Jansen7b59b422003-03-17 15:44:103480 darwin)
3481 EXTRAPLATDIR="\$(PLATMACDIRS)"
3482 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
3483 ;;
3484 *)
3485 EXTRAPLATDIR=""
3486 EXTRAMACHDEPPATH=""
3487 ;;
Jack Jansen83f898c2002-12-30 22:23:403488 esac
3489fi
Matthias Klosea0bea5d2010-05-08 10:00:283490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3491$as_echo "$EXTRAPLATDIR" >&6; }
Jack Jansen83f898c2002-12-30 22:23:403492
Jack Jansen6b08a402004-06-03 12:41:453493# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3494# it may influence the way we can build extensions, so distutils
3495# needs to check it
3496
Ronald Oussoren988117f2006-04-29 11:31:353497
Jack Jansen6b08a402004-06-03 12:41:453498CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Ronald Oussoren988117f2006-04-29 11:31:353499EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:453500
Guido van Rossum627b2d71993-12-24 10:39:163501# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:493502
3503# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3504# for debug/optimization stuff. BASECFLAGS is for flags that are required
3505# just to get things to compile and link. Users are free to override OPT
3506# when running configure or make. The build should not break if they do.
3507# BASECFLAGS should generally not be messed with, however.
3508
3509# XXX shouldn't some/most/all of this code be merged with the stuff later
3510# on that fiddles with OPT and BASECFLAGS?
Matthias Klosea0bea5d2010-05-08 10:00:283511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3512$as_echo_n "checking for --without-gcc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:033513
Martin v. Löwiseba40652007-08-30 20:10:573514# Check whether --with-gcc was given.
Matthias Klosea0bea5d2010-05-08 10:00:283515if test "${with_gcc+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:573516 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:303517 case $withval in
Mark Dickinson04b27232009-01-04 12:29:363518 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:293519 without_gcc=yes;;
3520 yes) CC=gcc
3521 without_gcc=no;;
3522 *) CC=$withval
3523 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:303524 esac
Guido van Rossumda88dad1995-01-26 00:46:293525else
Martin v. Löwis11437992002-04-12 09:54:033526
Guido van Rossum7b3853f1996-07-30 18:09:353527 case $ac_sys_system in
Antoine Pitrou285cd162010-09-21 15:23:173528 AIX*) CC=${CC:-xlc_r}
Neil Schemenauer4a7bbcb2001-02-16 03:37:543529 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:233530 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:233531 case $BE_HOST_CPU in
3532 ppc)
Fred Drake5790be12000-10-09 17:06:133533 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:233534 without_gcc=yes
Skip Montanarodecc6a42003-01-01 20:07:493535 BASECFLAGS="$BASECFLAGS -export pragma"
3536 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:233537 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:233538 ;;
3539 x86)
Fred Drake5790be12000-10-09 17:06:133540 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:233541 without_gcc=no
Skip Montanarodecc6a42003-01-01 20:07:493542 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:233543 ;;
3544 *)
Georg Brandl71f4fbb2011-02-25 11:04:503545 as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
Guido van Rossum7a5f4201999-01-12 20:30:233546 ;;
3547 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:543548 AR="\$(srcdir)/Modules/ar_beos"
3549 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:233550 ;;
Martin v. Löwis130fb172001-07-19 11:00:413551 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:593552 esac
Martin v. Löwiseba40652007-08-30 20:10:573553fi
3554
Matthias Klosea0bea5d2010-05-08 10:00:283555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3556$as_echo "$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:263557
Zachary Ware6ed42ea2015-12-21 17:43:033558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3559$as_echo_n "checking for --with-icc... " >&6; }
3560
3561# Check whether --with-icc was given.
3562if test "${with_icc+set}" = set; then :
3563 withval=$with_icc;
3564 case $withval in
3565 no) CC=${CC:-cc}
3566 with_icc=no;;
3567 yes) CC=icc
3568 CXX=icpc
3569 with_icc=yes;;
3570 *) CC=$withval
3571 with_icc=$withval;;
3572 esac
3573else
3574
3575 with_icc=no
3576fi
3577
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3579$as_echo "$with_icc" >&6; }
3580
Guido van Rossum8b131c51995-03-09 14:10:133581# If the user switches compilers, we can't believe the cache
3582if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3583then
Georg Brandl71f4fbb2011-02-25 11:04:503584 as_fn_error $? "cached CC is different -- throw away $cache_file
Matthias Klosea0bea5d2010-05-08 10:00:283585(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
Guido van Rossum8b131c51995-03-09 14:10:133586fi
3587
Trent Nelson15daa352012-12-13 06:46:393588if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then
3589 # Normally, MIPSpro CC treats #error directives as warnings, which means
3590 # a successful exit code is returned (0). This is a problem because IRIX
3591 # has a bunch of system headers with this guard at the top:
3592 #
3593 # #ifndef __c99
3594 # #error This header file is to be used only for c99 mode compilations
3595 # #else
3596 #
3597 # When autoconf tests for such a header, like stdint.h, this happens:
3598 #
3599 # configure:4619: cc -c conftest.c >&5
3600 # cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5
3601 # #error directive: This header file is to be used only for c99 mode
3602 # compilations
3603 #
3604 # #error This header file is to be used only for c99 mode compilations
3605 # ^
3606 #
3607 # configure:4619: $? = 0
3608 # configure:4619: result: yes
3609 #
3610 # Therefore, we use `-diag_error 1035` to have the compiler treat the
3611 # warning as an error, which causes cc to return a non-zero result,
3612 # which autoconf can interpret correctly.
3613 CFLAGS="$CFLAGS -diag_error 1035"
3614 # Whilst we're here, we might as well make sure CXX defaults to something
3615 # sensible if we're not using gcc.
3616 if test -z "$CXX"; then
3617 CXX="CC"
3618 fi
3619fi
3620
Marc-André Lemburg6d5e5792010-04-30 17:20:143621# If the user set CFLAGS, use this instead of the automatically
3622# determined setting
3623preset_cflags="$CFLAGS"
Martin v. Löwis11437992002-04-12 09:54:033624ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3631set dummy ${ac_tool_prefix}gcc; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:283632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:333634if ${ac_cv_prog_CC+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:283635 $as_echo_n "(cached) " >&6
Guido van Rossum48bdbfc1996-05-28 22:53:483636else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639else
Martin v. Löwis11437992002-04-12 09:54:033640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:283645 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:003646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Matthias Klosea0bea5d2010-05-08 10:00:283648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033649 break 2
3650 fi
3651done
Matthias Klosea0bea5d2010-05-08 10:00:283652 done
Martin v. Löwiseba40652007-08-30 20:10:573653IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033654
Jack Jansendd19cf82001-12-06 22:36:173655fi
3656fi
Martin v. Löwis11437992002-04-12 09:54:033657CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:173658if test -n "$CC"; then
Matthias Klosea0bea5d2010-05-08 10:00:283659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660$as_echo "$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173661else
Matthias Klosea0bea5d2010-05-08 10:00:283662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033664fi
3665
Martin v. Löwiseba40652007-08-30 20:10:573666
Martin v. Löwis11437992002-04-12 09:54:033667fi
3668if test -z "$ac_cv_prog_CC"; then
3669 ac_ct_CC=$CC
3670 # Extract the first word of "gcc", so it can be a program name with args.
3671set dummy gcc; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:283672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:333674if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:283675 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033676else
3677 if test -n "$ac_ct_CC"; then
3678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:283685 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:003686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033687 ac_cv_prog_ac_ct_CC="gcc"
Matthias Klosea0bea5d2010-05-08 10:00:283688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033689 break 2
3690 fi
3691done
Matthias Klosea0bea5d2010-05-08 10:00:283692 done
Martin v. Löwiseba40652007-08-30 20:10:573693IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033694
3695fi
3696fi
3697ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698if test -n "$ac_ct_CC"; then
Matthias Klosea0bea5d2010-05-08 10:00:283699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3700$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033701else
Matthias Klosea0bea5d2010-05-08 10:00:283702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033704fi
3705
Martin v. Löwiseba40652007-08-30 20:10:573706 if test "x$ac_ct_CC" = x; then
3707 CC=""
3708 else
3709 case $cross_compiling:$ac_tool_warned in
3710yes:)
Matthias Klosea0bea5d2010-05-08 10:00:283711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:573713ac_tool_warned=yes ;;
3714esac
3715 CC=$ac_ct_CC
3716 fi
Martin v. Löwis11437992002-04-12 09:54:033717else
3718 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:173719fi
3720
Jack Jansendd19cf82001-12-06 22:36:173721if test -z "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:573722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Martin v. Löwis11437992002-04-12 09:54:033724set dummy ${ac_tool_prefix}cc; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:283725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:333727if ${ac_cv_prog_CC+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:283728 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:173729else
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732else
Martin v. Löwis11437992002-04-12 09:54:033733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:283738 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:003739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033740 ac_cv_prog_CC="${ac_tool_prefix}cc"
Matthias Klosea0bea5d2010-05-08 10:00:283741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033742 break 2
3743 fi
3744done
Matthias Klosea0bea5d2010-05-08 10:00:283745 done
Martin v. Löwiseba40652007-08-30 20:10:573746IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033747
3748fi
3749fi
3750CC=$ac_cv_prog_CC
3751if test -n "$CC"; then
Matthias Klosea0bea5d2010-05-08 10:00:283752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3753$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033754else
Matthias Klosea0bea5d2010-05-08 10:00:283755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033757fi
3758
Martin v. Löwiseba40652007-08-30 20:10:573759
Martin v. Löwis11437992002-04-12 09:54:033760 fi
Martin v. Löwis11437992002-04-12 09:54:033761fi
3762if test -z "$CC"; then
3763 # Extract the first word of "cc", so it can be a program name with args.
3764set dummy cc; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:283765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:333767if ${ac_cv_prog_CC+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:283768 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033769else
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772else
Guido van Rossum48bdbfc1996-05-28 22:53:483773 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:033774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:283779 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:003780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3782 ac_prog_rejected=yes
3783 continue
3784 fi
3785 ac_cv_prog_CC="cc"
Matthias Klosea0bea5d2010-05-08 10:00:283786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033787 break 2
3788 fi
3789done
Matthias Klosea0bea5d2010-05-08 10:00:283790 done
Martin v. Löwiseba40652007-08-30 20:10:573791IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033792
Guido van Rossum48bdbfc1996-05-28 22:53:483793if test $ac_prog_rejected = yes; then
3794 # We found a bogon in the path, so make sure we never use it.
3795 set dummy $ac_cv_prog_CC
3796 shift
Martin v. Löwis11437992002-04-12 09:54:033797 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:483798 # We chose a different compiler from the bogus one.
3799 # However, it has the same basename, so the bogon will be chosen
3800 # first if we set CC to just the basename; use the full file name.
3801 shift
Skip Montanaro6dead952003-09-25 14:50:043802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:483803 fi
3804fi
3805fi
3806fi
Martin v. Löwis11437992002-04-12 09:54:033807CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:483808if test -n "$CC"; then
Matthias Klosea0bea5d2010-05-08 10:00:283809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3810$as_echo "$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483811else
Matthias Klosea0bea5d2010-05-08 10:00:283812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813$as_echo "no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483814fi
3815
Martin v. Löwiseba40652007-08-30 20:10:573816
Martin v. Löwis11437992002-04-12 09:54:033817fi
3818if test -z "$CC"; then
3819 if test -n "$ac_tool_prefix"; then
Martin v. Löwiseba40652007-08-30 20:10:573820 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033821 do
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:283824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:333826if ${ac_cv_prog_CC+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:283827 $as_echo_n "(cached) " >&6
Guido van Rossume6c2cf11999-01-08 21:08:333828else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831else
Martin v. Löwis11437992002-04-12 09:54:033832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:283837 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:003838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Matthias Klosea0bea5d2010-05-08 10:00:283840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033841 break 2
Guido van Rossumf78abae1997-01-21 22:02:363842 fi
Martin v. Löwis11437992002-04-12 09:54:033843done
Matthias Klosea0bea5d2010-05-08 10:00:283844 done
Martin v. Löwiseba40652007-08-30 20:10:573845IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033846
3847fi
3848fi
3849CC=$ac_cv_prog_CC
3850if test -n "$CC"; then
Matthias Klosea0bea5d2010-05-08 10:00:283851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033853else
Matthias Klosea0bea5d2010-05-08 10:00:283854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173856fi
3857
Martin v. Löwiseba40652007-08-30 20:10:573858
Martin v. Löwis11437992002-04-12 09:54:033859 test -n "$CC" && break
3860 done
3861fi
3862if test -z "$CC"; then
3863 ac_ct_CC=$CC
Martin v. Löwiseba40652007-08-30 20:10:573864 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033865do
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867set dummy $ac_prog; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:283868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:333870if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:283871 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033872else
3873 if test -n "$ac_ct_CC"; then
3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:283881 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:003882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033883 ac_cv_prog_ac_ct_CC="$ac_prog"
Matthias Klosea0bea5d2010-05-08 10:00:283884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033885 break 2
3886 fi
3887done
Matthias Klosea0bea5d2010-05-08 10:00:283888 done
Martin v. Löwiseba40652007-08-30 20:10:573889IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:173890
Martin v. Löwis11437992002-04-12 09:54:033891fi
3892fi
3893ac_ct_CC=$ac_cv_prog_ac_ct_CC
3894if test -n "$ac_ct_CC"; then
Matthias Klosea0bea5d2010-05-08 10:00:283895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3896$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033897else
Matthias Klosea0bea5d2010-05-08 10:00:283898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033900fi
Michael W. Hudson54241132001-12-07 15:38:263901
Martin v. Löwiseba40652007-08-30 20:10:573902
Martin v. Löwis11437992002-04-12 09:54:033903 test -n "$ac_ct_CC" && break
3904done
Michael W. Hudson54241132001-12-07 15:38:263905
Martin v. Löwiseba40652007-08-30 20:10:573906 if test "x$ac_ct_CC" = x; then
3907 CC=""
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910yes:)
Matthias Klosea0bea5d2010-05-08 10:00:283911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:573913ac_tool_warned=yes ;;
3914esac
3915 CC=$ac_ct_CC
3916 fi
Martin v. Löwis11437992002-04-12 09:54:033917fi
3918
3919fi
3920
3921
Matthias Klosea0bea5d2010-05-08 10:00:283922test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:503924as_fn_error $? "no acceptable C compiler found in \$PATH
Matthias Klose3cef2a92012-03-14 22:39:333925See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:033926
3927# Provide some information about the compiler.
Matthias Klosea0bea5d2010-05-08 10:00:283928$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3929set X $ac_compile
3930ac_compiler=$2
3931for ac_option in --version -v -V -qversion; do
3932 { { ac_try="$ac_compiler $ac_option >&5"
Martin v. Löwiseba40652007-08-30 20:10:573933case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936esac
Matthias Klosea0bea5d2010-05-08 10:00:283937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938$as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Martin v. Löwis11437992002-04-12 09:54:033940 ac_status=$?
Matthias Klosea0bea5d2010-05-08 10:00:283941 if test -s conftest.err; then
3942 sed '10a\
3943... rest of stderr output deleted ...
3944 10q' conftest.err >conftest.er1
3945 cat conftest.er1 >&5
3946 fi
3947 rm -f conftest.er1 conftest.err
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }
3950done
Martin v. Löwis11437992002-04-12 09:54:033951
Matthias Klosea0bea5d2010-05-08 10:00:283952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:043953/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:173954
Martin v. Löwis11437992002-04-12 09:54:033955int
3956main ()
3957{
3958
3959 ;
3960 return 0;
3961}
3962_ACEOF
3963ac_clean_files_save=$ac_clean_files
Matthias Klosea0bea5d2010-05-08 10:00:283964ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:033965# Try to create an executable without -o first, disregard a.out.
3966# It will help us diagnose broken compilers, and finding out an intuition
3967# of exeext.
Matthias Klosea0bea5d2010-05-08 10:00:283968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3969$as_echo_n "checking whether the C compiler works... " >&6; }
3970ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3971
3972# The possible output files:
3973ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3974
Martin v. Löwiseba40652007-08-30 20:10:573975ac_rmfiles=
3976for ac_file in $ac_files
3977do
3978 case $ac_file in
Matthias Klosea0bea5d2010-05-08 10:00:283979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Martin v. Löwiseba40652007-08-30 20:10:573980 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3981 esac
3982done
3983rm -f $ac_rmfiles
3984
Matthias Klosea0bea5d2010-05-08 10:00:283985if { { ac_try="$ac_link_default"
Martin v. Löwiseba40652007-08-30 20:10:573986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
Matthias Klosea0bea5d2010-05-08 10:00:283990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991$as_echo "$ac_try_echo"; } >&5
Martin v. Löwiseba40652007-08-30 20:10:573992 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:033993 ac_status=$?
Matthias Klosea0bea5d2010-05-08 10:00:283994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }; then :
Martin v. Löwiseba40652007-08-30 20:10:573996 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3997# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3998# in a Makefile. We should not override ac_cv_exeext if it was cached,
3999# so that the user can short-circuit this test for compilers unknown to
4000# Autoconf.
4001for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:044002do
4003 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:034004 case $ac_file in
Matthias Klosea0bea5d2010-05-08 10:00:284005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Skip Montanarof0d5f792004-08-15 14:08:234006 ;;
Skip Montanaro6dead952003-09-25 14:50:044007 [ab].out )
Skip Montanarof0d5f792004-08-15 14:08:234008 # We found the default executable, but exeext='' is most
4009 # certainly right.
4010 break;;
Skip Montanaro6dead952003-09-25 14:50:044011 *.* )
Matthias Klosea0bea5d2010-05-08 10:00:284012 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Martin v. Löwiseba40652007-08-30 20:10:574013 then :; else
4014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015 fi
4016 # We set ac_cv_exeext here because the later test for it is not
4017 # safe: cross compilers may not add the suffix if given an `-o'
4018 # argument, so we may need to know it at that point already.
4019 # Even if this section looks crufty: it has the advantage of
4020 # actually working.
Skip Montanarof0d5f792004-08-15 14:08:234021 break;;
Skip Montanaro6dead952003-09-25 14:50:044022 * )
Skip Montanarof0d5f792004-08-15 14:08:234023 break;;
Martin v. Löwis11437992002-04-12 09:54:034024 esac
4025done
Martin v. Löwiseba40652007-08-30 20:10:574026test "$ac_cv_exeext" = no && ac_cv_exeext=
4027
Guido van Rossume6c2cf11999-01-08 21:08:334028else
Martin v. Löwiseba40652007-08-30 20:10:574029 ac_file=''
4030fi
Matthias Klosea0bea5d2010-05-08 10:00:284031if test -z "$ac_file"; then :
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
4034$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:044035sed 's/^/| /' conftest.$ac_ext >&5
4036
Matthias Klosea0bea5d2010-05-08 10:00:284037{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:504039as_fn_error 77 "C compiler cannot create executables
Matthias Klose3cef2a92012-03-14 22:39:334040See \`config.log' for more details" "$LINENO" 5; }
Matthias Klosea0bea5d2010-05-08 10:00:284041else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043$as_echo "yes" >&6; }
Michael W. Hudson54241132001-12-07 15:38:264044fi
Matthias Klosea0bea5d2010-05-08 10:00:284045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4046$as_echo_n "checking for C compiler default output file name... " >&6; }
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4048$as_echo "$ac_file" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034049ac_exeext=$ac_cv_exeext
Michael W. Hudson54241132001-12-07 15:38:264050
Matthias Klosea0bea5d2010-05-08 10:00:284051rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Martin v. Löwis11437992002-04-12 09:54:034052ac_clean_files=$ac_clean_files_save
Matthias Klosea0bea5d2010-05-08 10:00:284053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4054$as_echo_n "checking for suffix of executables... " >&6; }
4055if { { ac_try="$ac_link"
Martin v. Löwiseba40652007-08-30 20:10:574056case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
Matthias Klosea0bea5d2010-05-08 10:00:284060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061$as_echo "$ac_try_echo"; } >&5
Martin v. Löwiseba40652007-08-30 20:10:574062 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034063 ac_status=$?
Matthias Klosea0bea5d2010-05-08 10:00:284064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; then :
Martin v. Löwis11437992002-04-12 09:54:034066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4067# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4068# work properly (i.e., refer to `conftest.exe'), while it won't with
4069# `rm'.
Skip Montanaro6dead952003-09-25 14:50:044070for ac_file in conftest.exe conftest conftest.*; do
4071 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:034072 case $ac_file in
Matthias Klosea0bea5d2010-05-08 10:00:284073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Martin v. Löwis11437992002-04-12 09:54:034074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Skip Montanarof0d5f792004-08-15 14:08:234075 break;;
Martin v. Löwis11437992002-04-12 09:54:034076 * ) break;;
4077 esac
4078done
Guido van Rossum76be6ed1995-01-02 18:33:544079else
Matthias Klosea0bea5d2010-05-08 10:00:284080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:504082as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Matthias Klose3cef2a92012-03-14 22:39:334083See \`config.log' for more details" "$LINENO" 5; }
Michael W. Hudson54241132001-12-07 15:38:264084fi
Matthias Klosea0bea5d2010-05-08 10:00:284085rm -f conftest conftest$ac_cv_exeext
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4087$as_echo "$ac_cv_exeext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034088
4089rm -f conftest.$ac_ext
4090EXEEXT=$ac_cv_exeext
4091ac_exeext=$EXEEXT
Matthias Klosea0bea5d2010-05-08 10:00:284092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h. */
4094#include <stdio.h>
4095int
4096main ()
4097{
4098FILE *f = fopen ("conftest.out", "w");
4099 return ferror (f) || fclose (f) != 0;
4100
4101 ;
4102 return 0;
4103}
Skip Montanaro6dead952003-09-25 14:50:044104_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284105ac_clean_files="$ac_clean_files conftest.out"
4106# Check that the compiler produces executables we can run. If not, either
4107# the compiler is broken, or we cross compile.
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109$as_echo_n "checking whether we are cross compiling... " >&6; }
4110if test "$cross_compiling" != yes; then
4111 { { ac_try="$ac_link"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117$as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_link") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }
4122 if { ac_try='./conftest$ac_cv_exeext'
4123 { { case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128$as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; }; then
4133 cross_compiling=no
4134 else
4135 if test "$cross_compiling" = maybe; then
4136 cross_compiling=yes
4137 else
4138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:504140as_fn_error $? "cannot run C compiled programs.
Matthias Klosea0bea5d2010-05-08 10:00:284141If you meant to cross compile, use \`--host'.
Matthias Klose3cef2a92012-03-14 22:39:334142See \`config.log' for more details" "$LINENO" 5; }
Matthias Klosea0bea5d2010-05-08 10:00:284143 fi
4144 fi
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4147$as_echo "$cross_compiling" >&6; }
4148
4149rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4150ac_clean_files=$ac_clean_files_save
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4152$as_echo_n "checking for suffix of object files... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334153if ${ac_cv_objext+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284154 $as_echo_n "(cached) " >&6
4155else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044157/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034158
Martin v. Löwis11437992002-04-12 09:54:034159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.o conftest.obj
Matthias Klosea0bea5d2010-05-08 10:00:284168if { { ac_try="$ac_compile"
Martin v. Löwiseba40652007-08-30 20:10:574169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
Matthias Klosea0bea5d2010-05-08 10:00:284173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174$as_echo "$ac_try_echo"; } >&5
Martin v. Löwiseba40652007-08-30 20:10:574175 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034176 ac_status=$?
Matthias Klosea0bea5d2010-05-08 10:00:284177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; then :
Martin v. Löwiseba40652007-08-30 20:10:574179 for ac_file in conftest.o conftest.obj conftest.*; do
4180 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:034181 case $ac_file in
Matthias Klosea0bea5d2010-05-08 10:00:284182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Martin v. Löwis11437992002-04-12 09:54:034183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4184 break;;
4185 esac
4186done
4187else
Matthias Klosea0bea5d2010-05-08 10:00:284188 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:044189sed 's/^/| /' conftest.$ac_ext >&5
4190
Matthias Klosea0bea5d2010-05-08 10:00:284191{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:504193as_fn_error $? "cannot compute suffix of object files: cannot compile
Matthias Klose3cef2a92012-03-14 22:39:334194See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:034195fi
Martin v. Löwis11437992002-04-12 09:54:034196rm -f conftest.$ac_cv_objext conftest.$ac_ext
4197fi
Matthias Klosea0bea5d2010-05-08 10:00:284198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4199$as_echo "$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034200OBJEXT=$ac_cv_objext
4201ac_objext=$OBJEXT
Matthias Klosea0bea5d2010-05-08 10:00:284202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4203$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334204if ${ac_cv_c_compiler_gnu+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284205 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034206else
Matthias Klosea0bea5d2010-05-08 10:00:284207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044208/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034209
Martin v. Löwis11437992002-04-12 09:54:034210int
4211main ()
4212{
4213#ifndef __GNUC__
4214 choke me
4215#endif
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284221if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:034222 ac_compiler_gnu=yes
4223else
Matthias Klosea0bea5d2010-05-08 10:00:284224 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:034225fi
Martin v. Löwiseba40652007-08-30 20:10:574226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034227ac_cv_c_compiler_gnu=$ac_compiler_gnu
4228
4229fi
Matthias Klosea0bea5d2010-05-08 10:00:284230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4231$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4232if test $ac_compiler_gnu = yes; then
4233 GCC=yes
4234else
4235 GCC=
4236fi
Martin v. Löwis11437992002-04-12 09:54:034237ac_test_CFLAGS=${CFLAGS+set}
4238ac_save_CFLAGS=$CFLAGS
Matthias Klosea0bea5d2010-05-08 10:00:284239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4240$as_echo_n "checking whether $CC accepts -g... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334241if ${ac_cv_prog_cc_g+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284242 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034243else
Martin v. Löwiseba40652007-08-30 20:10:574244 ac_save_c_werror_flag=$ac_c_werror_flag
4245 ac_c_werror_flag=yes
4246 ac_cv_prog_cc_g=no
4247 CFLAGS="-g"
Matthias Klosea0bea5d2010-05-08 10:00:284248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044249/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034250
Martin v. Löwis11437992002-04-12 09:54:034251int
4252main ()
4253{
4254
4255 ;
4256 return 0;
4257}
4258_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284259if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumf78abae1997-01-21 22:02:364260 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:544261else
Matthias Klosea0bea5d2010-05-08 10:00:284262 CFLAGS=""
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:574264/* end confdefs.h. */
4265
4266int
4267main ()
4268{
4269
4270 ;
4271 return 0;
4272}
4273_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284274if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwiseba40652007-08-30 20:10:574275
Matthias Klosea0bea5d2010-05-08 10:00:284276else
4277 ac_c_werror_flag=$ac_save_c_werror_flag
Martin v. Löwiseba40652007-08-30 20:10:574278 CFLAGS="-g"
Matthias Klosea0bea5d2010-05-08 10:00:284279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:574280/* end confdefs.h. */
4281
4282int
4283main ()
4284{
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284290if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwiseba40652007-08-30 20:10:574291 ac_cv_prog_cc_g=yes
Guido van Rossum627b2d71993-12-24 10:39:164292fi
Martin v. Löwiseba40652007-08-30 20:10:574293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:544294fi
Martin v. Löwiseba40652007-08-30 20:10:574295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296fi
Martin v. Löwiseba40652007-08-30 20:10:574297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_c_werror_flag=$ac_save_c_werror_flag
4299fi
Matthias Klosea0bea5d2010-05-08 10:00:284300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4301$as_echo "$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:334302if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:034303 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:334304elif test $ac_cv_prog_cc_g = yes; then
4305 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:364306 CFLAGS="-g -O2"
4307 else
Guido van Rossume6c2cf11999-01-08 21:08:334308 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:544309 fi
4310else
Guido van Rossume6c2cf11999-01-08 21:08:334311 if test "$GCC" = yes; then
4312 CFLAGS="-O2"
4313 else
4314 CFLAGS=
4315 fi
Guido van Rossum76be6ed1995-01-02 18:33:544316fi
Matthias Klosea0bea5d2010-05-08 10:00:284317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4318$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334319if ${ac_cv_prog_cc_c89+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284320 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:044321else
Martin v. Löwiseba40652007-08-30 20:10:574322 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:044323ac_save_CC=$CC
Matthias Klosea0bea5d2010-05-08 10:00:284324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044325/* end confdefs.h. */
4326#include <stdarg.h>
4327#include <stdio.h>
Charles-François Natalibe2b9072013-01-08 18:47:004328struct stat;
Skip Montanaro6dead952003-09-25 14:50:044329/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4330struct buf { int x; };
4331FILE * (*rcsopen) (struct buf *, struct stat *, int);
4332static char *e (p, i)
4333 char **p;
4334 int i;
4335{
4336 return p[i];
4337}
4338static char *f (char * (*g) (char **, int), char **p, ...)
4339{
4340 char *s;
4341 va_list v;
4342 va_start (v,p);
4343 s = g (p, va_arg (v,int));
4344 va_end (v);
4345 return s;
4346}
Skip Montanarof0d5f792004-08-15 14:08:234347
4348/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4349 function prototypes and stuff, but not '\xHH' hex character constants.
4350 These don't provoke an error unfortunately, instead are silently treated
Martin v. Löwiseba40652007-08-30 20:10:574351 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:234352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4353 array size at least. It's necessary to write '\x00'==0 to get something
Martin v. Löwiseba40652007-08-30 20:10:574354 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:234355int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4356
Martin v. Löwiseba40652007-08-30 20:10:574357/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4358 inside strings and character constants. */
4359#define FOO(x) 'x'
4360int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4361
Skip Montanaro6dead952003-09-25 14:50:044362int test (int i, double x);
4363struct s1 {int (*f) (int a);};
4364struct s2 {int (*f) (double a);};
4365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4366int argc;
4367char **argv;
4368int
4369main ()
4370{
4371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4372 ;
4373 return 0;
4374}
4375_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:574376for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:044378do
4379 CC="$ac_save_CC $ac_arg"
Matthias Klosea0bea5d2010-05-08 10:00:284380 if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwiseba40652007-08-30 20:10:574381 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:044382fi
Martin v. Löwiseba40652007-08-30 20:10:574383rm -f core conftest.err conftest.$ac_objext
4384 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:044385done
Martin v. Löwiseba40652007-08-30 20:10:574386rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044387CC=$ac_save_CC
4388
4389fi
Martin v. Löwiseba40652007-08-30 20:10:574390# AC_CACHE_VAL
4391case "x$ac_cv_prog_cc_c89" in
4392 x)
Matthias Klosea0bea5d2010-05-08 10:00:284393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4394$as_echo "none needed" >&6; } ;;
Martin v. Löwiseba40652007-08-30 20:10:574395 xno)
Matthias Klosea0bea5d2010-05-08 10:00:284396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4397$as_echo "unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044398 *)
Martin v. Löwiseba40652007-08-30 20:10:574399 CC="$CC $ac_cv_prog_cc_c89"
Matthias Klosea0bea5d2010-05-08 10:00:284400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4401$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044402esac
Matthias Klosea0bea5d2010-05-08 10:00:284403if test "x$ac_cv_prog_cc_c89" != xno; then :
Skip Montanaro6dead952003-09-25 14:50:044404
Matthias Klosea0bea5d2010-05-08 10:00:284405fi
Skip Montanaro6dead952003-09-25 14:50:044406
Martin v. Löwis11437992002-04-12 09:54:034407ac_ext=c
4408ac_cpp='$CPP $CPPFLAGS'
4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:544412
Marc-André Lemburg6d5e5792010-04-30 17:20:144413if test ! -z "$preset_cflags"
4414then
4415 CFLAGS=$preset_cflags
4416fi
Martin v. Löwis1d5ecb72001-08-09 10:29:444417
Martin v. Löwis0f48d982006-04-14 14:34:264418
4419
Matthias Klosea0bea5d2010-05-08 10:00:284420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4421$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:264422
Martin v. Löwiseba40652007-08-30 20:10:574423# Check whether --with-cxx_main was given.
Matthias Klosea0bea5d2010-05-08 10:00:284424if test "${with_cxx_main+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:574425 withval=$with_cxx_main;
Martin v. Löwis0f48d982006-04-14 14:34:264426
4427 case $withval in
4428 no) with_cxx_main=no
4429 MAINCC='$(CC)';;
4430 yes) with_cxx_main=yes
4431 MAINCC='$(CXX)';;
4432 *) with_cxx_main=yes
4433 MAINCC=$withval
4434 if test -z "$CXX"
4435 then
4436 CXX=$withval
4437 fi;;
4438 esac
4439else
4440
4441 with_cxx_main=no
4442 MAINCC='$(CC)'
4443
Martin v. Löwiseba40652007-08-30 20:10:574444fi
4445
Matthias Klosea0bea5d2010-05-08 10:00:284446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4447$as_echo "$with_cxx_main" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:264448
4449preset_cxx="$CXX"
4450if test -z "$CXX"
4451then
4452 case "$CC" in
doko@python.orgd65e2ba2013-01-31 22:52:034453 gcc) if test -n "$ac_tool_prefix"; then
4454 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4455set dummy ${ac_tool_prefix}g++; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if ${ac_cv_path_CXX+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 case $CXX in
4462 [\\/]* | ?:[\\/]*)
4463 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4464 ;;
4465 *)
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in notfound
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477done
4478 done
4479IFS=$as_save_IFS
4480
4481 ;;
4482esac
4483fi
4484CXX=$ac_cv_path_CXX
4485if test -n "$CXX"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4487$as_echo "$CXX" >&6; }
4488else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$ac_cv_path_CXX"; then
4496 ac_pt_CXX=$CXX
4497 # Extract the first word of "g++", so it can be a program name with args.
Martin v. Löwis0f48d982006-04-14 14:34:264498set dummy g++; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:284499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500$as_echo_n "checking for $ac_word... " >&6; }
doko@python.orgd65e2ba2013-01-31 22:52:034501if ${ac_cv_path_ac_pt_CXX+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284502 $as_echo_n "(cached) " >&6
Martin v. Löwis0f48d982006-04-14 14:34:264503else
doko@python.orgd65e2ba2013-01-31 22:52:034504 case $ac_pt_CXX in
Martin v. Löwis0f48d982006-04-14 14:34:264505 [\\/]* | ?:[\\/]*)
doko@python.orgd65e2ba2013-01-31 22:52:034506 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
Martin v. Löwis0f48d982006-04-14 14:34:264507 ;;
4508 *)
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in notfound
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:284514 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:004515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@python.orgd65e2ba2013-01-31 22:52:034516 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Klosea0bea5d2010-05-08 10:00:284517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis0f48d982006-04-14 14:34:264518 break 2
4519 fi
4520done
Matthias Klosea0bea5d2010-05-08 10:00:284521 done
Martin v. Löwiseba40652007-08-30 20:10:574522IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:264523
Martin v. Löwis0f48d982006-04-14 14:34:264524 ;;
4525esac
4526fi
doko@python.orgd65e2ba2013-01-31 22:52:034527ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4528if test -n "$ac_pt_CXX"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4530$as_echo "$ac_pt_CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:214531else
Matthias Klosea0bea5d2010-05-08 10:00:284532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:214534fi
Martin v. Löwiseba40652007-08-30 20:10:574535
doko@python.orgd65e2ba2013-01-31 22:52:034536 if test "x$ac_pt_CXX" = x; then
4537 CXX="g++"
4538 else
4539 case $cross_compiling:$ac_tool_warned in
4540yes:)
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543ac_tool_warned=yes ;;
4544esac
4545 CXX=$ac_pt_CXX
4546 fi
4547else
4548 CXX="$ac_cv_path_CXX"
4549fi
Martin v. Löwis0f48d982006-04-14 14:34:264550 ;;
doko@python.orgd65e2ba2013-01-31 22:52:034551 cc) if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4553set dummy ${ac_tool_prefix}c++; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:284554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334556if ${ac_cv_path_CXX+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284557 $as_echo_n "(cached) " >&6
Martin v. Löwis0f48d982006-04-14 14:34:264558else
4559 case $CXX in
4560 [\\/]* | ?:[\\/]*)
4561 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4562 ;;
4563 *)
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in notfound
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:284569 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:004570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis0f48d982006-04-14 14:34:264571 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Klosea0bea5d2010-05-08 10:00:284572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis0f48d982006-04-14 14:34:264573 break 2
4574 fi
4575done
Matthias Klosea0bea5d2010-05-08 10:00:284576 done
Martin v. Löwiseba40652007-08-30 20:10:574577IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:264578
Martin v. Löwis0f48d982006-04-14 14:34:264579 ;;
4580esac
4581fi
4582CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:214583if test -n "$CXX"; then
Matthias Klosea0bea5d2010-05-08 10:00:284584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4585$as_echo "$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:214586else
Matthias Klosea0bea5d2010-05-08 10:00:284587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:214589fi
Martin v. Löwiseba40652007-08-30 20:10:574590
doko@python.orgd65e2ba2013-01-31 22:52:034591
4592fi
4593if test -z "$ac_cv_path_CXX"; then
4594 ac_pt_CXX=$CXX
4595 # Extract the first word of "c++", so it can be a program name with args.
4596set dummy c++; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
4599if ${ac_cv_path_ac_pt_CXX+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601else
4602 case $ac_pt_CXX in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4605 ;;
4606 *)
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in notfound
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619 done
4620IFS=$as_save_IFS
4621
4622 ;;
4623esac
4624fi
4625ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4626if test -n "$ac_pt_CXX"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4628$as_echo "$ac_pt_CXX" >&6; }
4629else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
4632fi
4633
4634 if test "x$ac_pt_CXX" = x; then
4635 CXX="c++"
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638yes:)
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641ac_tool_warned=yes ;;
4642esac
4643 CXX=$ac_pt_CXX
4644 fi
4645else
4646 CXX="$ac_cv_path_CXX"
4647fi
Martin v. Löwis0f48d982006-04-14 14:34:264648 ;;
4649 esac
4650 if test "$CXX" = "notfound"
4651 then
4652 CXX=""
4653 fi
4654fi
4655if test -z "$CXX"
4656then
doko@python.orgd65e2ba2013-01-31 22:52:034657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4659 do
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:284662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334664if ${ac_cv_prog_CXX+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284665 $as_echo_n "(cached) " >&6
Martin v. Löwis0f48d982006-04-14 14:34:264666else
4667 if test -n "$CXX"; then
4668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:284675 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:004676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@python.orgd65e2ba2013-01-31 22:52:034677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Matthias Klosea0bea5d2010-05-08 10:00:284678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis0f48d982006-04-14 14:34:264679 break 2
4680 fi
4681done
Matthias Klosea0bea5d2010-05-08 10:00:284682 done
Martin v. Löwiseba40652007-08-30 20:10:574683IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:264684
4685fi
4686fi
4687CXX=$ac_cv_prog_CXX
4688if test -n "$CXX"; then
Matthias Klosea0bea5d2010-05-08 10:00:284689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4690$as_echo "$CXX" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:264691else
Matthias Klosea0bea5d2010-05-08 10:00:284692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:264694fi
4695
Martin v. Löwiseba40652007-08-30 20:10:574696
doko@python.orgd65e2ba2013-01-31 22:52:034697 test -n "$CXX" && break
4698 done
4699fi
4700if test -z "$CXX"; then
4701 ac_ct_CXX=$CXX
4702 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4703do
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705set dummy $ac_prog; ac_word=$2
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707$as_echo_n "checking for $ac_word... " >&6; }
4708if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710else
4711 if test -n "$ac_ct_CXX"; then
4712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_ac_ct_CXX="$ac_prog"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
Martin v. Löwis0f48d982006-04-14 14:34:264725done
doko@python.orgd65e2ba2013-01-31 22:52:034726 done
4727IFS=$as_save_IFS
4728
4729fi
4730fi
4731ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4732if test -n "$ac_ct_CXX"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4734$as_echo "$ac_ct_CXX" >&6; }
4735else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
4738fi
4739
4740
4741 test -n "$ac_ct_CXX" && break
4742done
4743
4744 if test "x$ac_ct_CXX" = x; then
4745 CXX="notfound"
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748yes:)
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751ac_tool_warned=yes ;;
4752esac
4753 CXX=$ac_ct_CXX
4754 fi
4755fi
Martin v. Löwis0f48d982006-04-14 14:34:264756
4757 if test "$CXX" = "notfound"
4758 then
4759 CXX=""
4760 fi
4761fi
4762if test "$preset_cxx" != "$CXX"
4763then
Matthias Klosea0bea5d2010-05-08 10:00:284764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Martin v. Löwis0f48d982006-04-14 14:34:264765
4766 By default, distutils will build C++ extension modules with \"$CXX\".
4767 If this is not intended, then set CXX on the configure command line.
4768 " >&5
Matthias Klosea0bea5d2010-05-08 10:00:284769$as_echo "$as_me: WARNING:
Martin v. Löwis0f48d982006-04-14 14:34:264770
4771 By default, distutils will build C++ extension modules with \"$CXX\".
4772 If this is not intended, then set CXX on the configure command line.
4773 " >&2;}
4774fi
4775
doko@python.org4e63fbe2013-01-25 12:08:274776MULTIARCH=$($CC --print-multiarch 2>/dev/null)
4777
4778
Martin v. Löwis0f48d982006-04-14 14:34:264779
Martin v. Löwis1d5ecb72001-08-09 10:29:444780# checks for UNIX variants that set C preprocessor variables
Martin v. Löwis11437992002-04-12 09:54:034781
4782ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
Matthias Klosea0bea5d2010-05-08 10:00:284787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4788$as_echo_n "checking how to run the C preprocessor... " >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:444789# On Suns, sometimes $CPP names a directory.
4790if test -n "$CPP" && test -d "$CPP"; then
4791 CPP=
4792fi
4793if test -z "$CPP"; then
Matthias Klose3cef2a92012-03-14 22:39:334794 if ${ac_cv_prog_CPP+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284795 $as_echo_n "(cached) " >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:444796else
Martin v. Löwis11437992002-04-12 09:54:034797 # Double quotes because CPP needs to be expanded
4798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4799 do
4800 ac_preproc_ok=false
4801for ac_c_preproc_warn_flag in '' yes
4802do
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:044805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis1d5ecb72001-08-09 10:29:444807 # On the NeXT, cc -E runs the code through the compiler's parser,
Martin v. Löwis11437992002-04-12 09:54:034808 # not just through cpp. "Syntax error" is here to catch this case.
Matthias Klosea0bea5d2010-05-08 10:00:284809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044810/* end confdefs.h. */
4811#ifdef __STDC__
4812# include <limits.h>
4813#else
4814# include <assert.h>
4815#endif
Skip Montanarof0d5f792004-08-15 14:08:234816 Syntax error
Martin v. Löwis11437992002-04-12 09:54:034817_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284818if ac_fn_c_try_cpp "$LINENO"; then :
Skip Montanaro6dead952003-09-25 14:50:044819
Matthias Klosea0bea5d2010-05-08 10:00:284820else
Martin v. Löwis11437992002-04-12 09:54:034821 # Broken: fails on valid input.
4822continue
Jack Jansendd19cf82001-12-06 22:36:174823fi
Georg Brandl71f4fbb2011-02-25 11:04:504824rm -f conftest.err conftest.i conftest.$ac_ext
Jack Jansendd19cf82001-12-06 22:36:174825
Martin v. Löwiseba40652007-08-30 20:10:574826 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:034827 # can be detected and how.
Matthias Klosea0bea5d2010-05-08 10:00:284828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044829/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034830#include <ac_nonexistent.h>
4831_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284832if ac_fn_c_try_cpp "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:034833 # Broken: success on invalid input.
4834continue
4835else
Martin v. Löwis11437992002-04-12 09:54:034836 # Passes both tests.
4837ac_preproc_ok=:
4838break
4839fi
Georg Brandl71f4fbb2011-02-25 11:04:504840rm -f conftest.err conftest.i conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034841
4842done
4843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Georg Brandl71f4fbb2011-02-25 11:04:504844rm -f conftest.i conftest.err conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:284845if $ac_preproc_ok; then :
Martin v. Löwis11437992002-04-12 09:54:034846 break
4847fi
4848
4849 done
4850 ac_cv_prog_CPP=$CPP
4851
4852fi
4853 CPP=$ac_cv_prog_CPP
4854else
4855 ac_cv_prog_CPP=$CPP
4856fi
Matthias Klosea0bea5d2010-05-08 10:00:284857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4858$as_echo "$CPP" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034859ac_preproc_ok=false
4860for ac_c_preproc_warn_flag in '' yes
4861do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:044864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis11437992002-04-12 09:54:034866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
Matthias Klosea0bea5d2010-05-08 10:00:284868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044869/* end confdefs.h. */
4870#ifdef __STDC__
4871# include <limits.h>
4872#else
4873# include <assert.h>
4874#endif
Skip Montanarof0d5f792004-08-15 14:08:234875 Syntax error
Martin v. Löwis11437992002-04-12 09:54:034876_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284877if ac_fn_c_try_cpp "$LINENO"; then :
Skip Montanaro6dead952003-09-25 14:50:044878
Matthias Klosea0bea5d2010-05-08 10:00:284879else
Martin v. Löwis11437992002-04-12 09:54:034880 # Broken: fails on valid input.
4881continue
4882fi
Georg Brandl71f4fbb2011-02-25 11:04:504883rm -f conftest.err conftest.i conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034884
Martin v. Löwiseba40652007-08-30 20:10:574885 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:034886 # can be detected and how.
Matthias Klosea0bea5d2010-05-08 10:00:284887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044888/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034889#include <ac_nonexistent.h>
4890_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:284891if ac_fn_c_try_cpp "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:034892 # Broken: success on invalid input.
4893continue
4894else
Martin v. Löwis11437992002-04-12 09:54:034895 # Passes both tests.
4896ac_preproc_ok=:
4897break
4898fi
Georg Brandl71f4fbb2011-02-25 11:04:504899rm -f conftest.err conftest.i conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034900
4901done
4902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Georg Brandl71f4fbb2011-02-25 11:04:504903rm -f conftest.i conftest.err conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:284904if $ac_preproc_ok; then :
4905
Martin v. Löwis11437992002-04-12 09:54:034906else
Matthias Klosea0bea5d2010-05-08 10:00:284907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:504909as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Matthias Klose3cef2a92012-03-14 22:39:334910See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:034911fi
4912
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919
Matthias Klosea0bea5d2010-05-08 10:00:284920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4921$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334922if ${ac_cv_path_GREP+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284923 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:044924else
Matthias Klosea0bea5d2010-05-08 10:00:284925 if test -z "$GREP"; then
Martin v. Löwiseba40652007-08-30 20:10:574926 ac_path_GREP_found=false
Matthias Klosea0bea5d2010-05-08 10:00:284927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwiseba40652007-08-30 20:10:574929for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:284933 for ac_prog in grep ggrep; do
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Charles-François Natalibe2b9072013-01-08 18:47:004936 as_fn_executable_p "$ac_path_GREP" || continue
Matthias Klosea0bea5d2010-05-08 10:00:284937# Check for GNU ac_path_GREP and select it if it is found.
Martin v. Löwiseba40652007-08-30 20:10:574938 # Check for GNU $ac_path_GREP
4939case `"$ac_path_GREP" --version 2>&1` in
4940*GNU*)
4941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4942*)
4943 ac_count=0
Matthias Klosea0bea5d2010-05-08 10:00:284944 $as_echo_n 0123456789 >"conftest.in"
Martin v. Löwiseba40652007-08-30 20:10:574945 while :
4946 do
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
Matthias Klosea0bea5d2010-05-08 10:00:284950 $as_echo 'GREP' >> "conftest.nl"
Martin v. Löwiseba40652007-08-30 20:10:574951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Klosea0bea5d2010-05-08 10:00:284953 as_fn_arith $ac_count + 1 && ac_count=$as_val
Martin v. Löwiseba40652007-08-30 20:10:574954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_GREP="$ac_path_GREP"
4957 ac_path_GREP_max=$ac_count
Skip Montanaro6dead952003-09-25 14:50:044958 fi
Martin v. Löwiseba40652007-08-30 20:10:574959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4961 done
4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963esac
4964
Matthias Klosea0bea5d2010-05-08 10:00:284965 $ac_path_GREP_found && break 3
4966 done
Martin v. Löwiseba40652007-08-30 20:10:574967 done
Matthias Klosea0bea5d2010-05-08 10:00:284968 done
Martin v. Löwiseba40652007-08-30 20:10:574969IFS=$as_save_IFS
Matthias Klosea0bea5d2010-05-08 10:00:284970 if test -z "$ac_cv_path_GREP"; then
Georg Brandl71f4fbb2011-02-25 11:04:504971 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Klosea0bea5d2010-05-08 10:00:284972 fi
Martin v. Löwiseba40652007-08-30 20:10:574973else
4974 ac_cv_path_GREP=$GREP
4975fi
4976
Martin v. Löwiseba40652007-08-30 20:10:574977fi
Matthias Klosea0bea5d2010-05-08 10:00:284978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4979$as_echo "$ac_cv_path_GREP" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:574980 GREP="$ac_cv_path_GREP"
4981
4982
Matthias Klosea0bea5d2010-05-08 10:00:284983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4984$as_echo_n "checking for egrep... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:334985if ${ac_cv_path_EGREP+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:284986 $as_echo_n "(cached) " >&6
Martin v. Löwiseba40652007-08-30 20:10:574987else
4988 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4989 then ac_cv_path_EGREP="$GREP -E"
4990 else
Matthias Klosea0bea5d2010-05-08 10:00:284991 if test -z "$EGREP"; then
Martin v. Löwiseba40652007-08-30 20:10:574992 ac_path_EGREP_found=false
Matthias Klosea0bea5d2010-05-08 10:00:284993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwiseba40652007-08-30 20:10:574995for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:284999 for ac_prog in egrep; do
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Charles-François Natalibe2b9072013-01-08 18:47:005002 as_fn_executable_p "$ac_path_EGREP" || continue
Matthias Klosea0bea5d2010-05-08 10:00:285003# Check for GNU ac_path_EGREP and select it if it is found.
Martin v. Löwiseba40652007-08-30 20:10:575004 # Check for GNU $ac_path_EGREP
5005case `"$ac_path_EGREP" --version 2>&1` in
5006*GNU*)
5007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5008*)
5009 ac_count=0
Matthias Klosea0bea5d2010-05-08 10:00:285010 $as_echo_n 0123456789 >"conftest.in"
Martin v. Löwiseba40652007-08-30 20:10:575011 while :
5012 do
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
Matthias Klosea0bea5d2010-05-08 10:00:285016 $as_echo 'EGREP' >> "conftest.nl"
Martin v. Löwiseba40652007-08-30 20:10:575017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Klosea0bea5d2010-05-08 10:00:285019 as_fn_arith $ac_count + 1 && ac_count=$as_val
Martin v. Löwiseba40652007-08-30 20:10:575020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_EGREP="$ac_path_EGREP"
5023 ac_path_EGREP_max=$ac_count
5024 fi
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5027 done
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029esac
5030
Matthias Klosea0bea5d2010-05-08 10:00:285031 $ac_path_EGREP_found && break 3
5032 done
Martin v. Löwiseba40652007-08-30 20:10:575033 done
Matthias Klosea0bea5d2010-05-08 10:00:285034 done
Martin v. Löwiseba40652007-08-30 20:10:575035IFS=$as_save_IFS
Matthias Klosea0bea5d2010-05-08 10:00:285036 if test -z "$ac_cv_path_EGREP"; then
Georg Brandl71f4fbb2011-02-25 11:04:505037 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Klosea0bea5d2010-05-08 10:00:285038 fi
Martin v. Löwiseba40652007-08-30 20:10:575039else
5040 ac_cv_path_EGREP=$EGREP
5041fi
5042
Martin v. Löwiseba40652007-08-30 20:10:575043 fi
5044fi
Matthias Klosea0bea5d2010-05-08 10:00:285045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5046$as_echo "$ac_cv_path_EGREP" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:575047 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:045048
5049
Matthias Klosea0bea5d2010-05-08 10:00:285050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5051$as_echo_n "checking for ANSI C header files... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:335052if ${ac_cv_header_stdc+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285053 $as_echo_n "(cached) " >&6
5054else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitrouf2caeed2009-05-24 20:23:575056/* end confdefs.h. */
Matthias Klosea0bea5d2010-05-08 10:00:285057#include <stdlib.h>
5058#include <stdarg.h>
5059#include <string.h>
5060#include <float.h>
5061
5062int
5063main ()
5064{
5065
5066 ;
5067 return 0;
5068}
5069_ACEOF
5070if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_header_stdc=yes
5072else
5073 ac_cv_header_stdc=no
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076
5077if test $ac_cv_header_stdc = yes; then
5078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h. */
5081#include <string.h>
Antoine Pitrouf2caeed2009-05-24 20:23:575082
Antoine Pitrouf2caeed2009-05-24 20:23:575083_ACEOF
Alexandre Vassalottibd7569b2009-07-17 23:09:025084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:285085 $EGREP "memchr" >/dev/null 2>&1; then :
Alexandre Vassalottia2db6872009-07-17 07:46:465086
Alexandre Vassalottibd7569b2009-07-17 23:09:025087else
Matthias Klosea0bea5d2010-05-08 10:00:285088 ac_cv_header_stdc=no
Alexandre Vassalottibd7569b2009-07-17 23:09:025089fi
Marc-André Lemburg6d5e5792010-04-30 17:20:145090rm -f conftest*
Alexandre Vassalottia2db6872009-07-17 07:46:465091
Matthias Klosea0bea5d2010-05-08 10:00:285092fi
5093
5094if test $ac_cv_header_stdc = yes; then
5095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h. */
5098#include <stdlib.h>
5099
5100_ACEOF
5101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "free" >/dev/null 2>&1; then :
5103
5104else
5105 ac_cv_header_stdc=no
5106fi
5107rm -f conftest*
5108
5109fi
5110
5111if test $ac_cv_header_stdc = yes; then
5112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5113 if test "$cross_compiling" = yes; then :
5114 :
5115else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h. */
5118#include <ctype.h>
5119#include <stdlib.h>
5120#if ((' ' & 0x0FF) == 0x020)
5121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5123#else
5124# define ISLOWER(c) \
5125 (('a' <= (c) && (c) <= 'i') \
5126 || ('j' <= (c) && (c) <= 'r') \
5127 || ('s' <= (c) && (c) <= 'z'))
5128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5129#endif
5130
5131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5132int
5133main ()
5134{
5135 int i;
5136 for (i = 0; i < 256; i++)
5137 if (XOR (islower (i), ISLOWER (i))
5138 || toupper (i) != TOUPPER (i))
5139 return 2;
5140 return 0;
5141}
5142_ACEOF
5143if ac_fn_c_try_run "$LINENO"; then :
5144
5145else
5146 ac_cv_header_stdc=no
5147fi
5148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5149 conftest.$ac_objext conftest.beam conftest.$ac_ext
5150fi
5151
5152fi
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5155$as_echo "$ac_cv_header_stdc" >&6; }
5156if test $ac_cv_header_stdc = yes; then
5157
5158$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5159
5160fi
5161
5162# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5163for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5164 inttypes.h stdint.h unistd.h
5165do :
5166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5167ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5168"
Georg Brandl71f4fbb2011-02-25 11:04:505169if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Matthias Klosea0bea5d2010-05-08 10:00:285170 cat >>confdefs.h <<_ACEOF
5171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172_ACEOF
5173
5174fi
5175
5176done
5177
5178
5179
5180 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:335181if test "x$ac_cv_header_minix_config_h" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:285182 MINIX=yes
5183else
5184 MINIX=
5185fi
5186
5187
5188 if test "$MINIX" = yes; then
5189
5190$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5191
5192
5193$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5194
5195
5196$as_echo "#define _MINIX 1" >>confdefs.h
5197
5198 fi
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5202$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:335203if ${ac_cv_safe_to_define___extensions__+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285204 $as_echo_n "(cached) " >&6
5205else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h. */
5208
Charles-François Natalibe2b9072013-01-08 18:47:005209# define __EXTENSIONS__ 1
5210 $ac_includes_default
Matthias Klosea0bea5d2010-05-08 10:00:285211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_safe_to_define___extensions__=yes
5221else
5222 ac_cv_safe_to_define___extensions__=no
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5227$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5228 test $ac_cv_safe_to_define___extensions__ = yes &&
5229 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5230
5231 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5232
5233 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5234
5235 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5236
5237 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5238
5239
Alexandre Vassalottia2db6872009-07-17 07:46:465240
Alexandre Vassalottia2db6872009-07-17 07:46:465241# Check for unsupported systems
5242case $ac_sys_system/$ac_sys_release in
5243atheos*|Linux*/1*)
5244 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5245 echo See README for details.
5246 exit 1;;
5247esac
5248
5249
Matthias Klosea0bea5d2010-05-08 10:00:285250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5251$as_echo_n "checking for --with-suffix... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465252
5253# Check whether --with-suffix was given.
Matthias Klosea0bea5d2010-05-08 10:00:285254if test "${with_suffix+set}" = set; then :
Alexandre Vassalottia2db6872009-07-17 07:46:465255 withval=$with_suffix;
5256 case $withval in
5257 no) EXEEXT=;;
5258 yes) EXEEXT=.exe;;
5259 *) EXEEXT=$withval;;
5260 esac
5261fi
5262
Matthias Klosea0bea5d2010-05-08 10:00:285263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5264$as_echo "$EXEEXT" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465265
5266# Test whether we're running on a non-case-sensitive system, in which
5267# case we give a warning if no ext is given
5268
Matthias Klosea0bea5d2010-05-08 10:00:285269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5270$as_echo_n "checking for case-insensitive build directory... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465271if test ! -d CaseSensitiveTestDir; then
5272mkdir CaseSensitiveTestDir
5273fi
5274
5275if test -d casesensitivetestdir
5276then
Matthias Klosea0bea5d2010-05-08 10:00:285277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278$as_echo "yes" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465279 BUILDEXEEXT=.exe
5280else
Matthias Klosea0bea5d2010-05-08 10:00:285281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465283 BUILDEXEEXT=$EXEEXT
5284fi
5285rmdir CaseSensitiveTestDir
5286
5287case $MACHDEP in
5288bsdos*)
5289 case $CC in
5290 gcc) CC="$CC -D_HAVE_BSDI";;
5291 esac;;
5292esac
5293
5294case $ac_sys_system in
5295hp*|HP*)
5296 case $CC in
5297 cc|*/cc) CC="$CC -Ae";;
5298 esac;;
Alexandre Vassalottia2db6872009-07-17 07:46:465299SunOS*)
5300 # Some functions have a prototype only with that define, e.g. confstr
5301
Matthias Klosea0bea5d2010-05-08 10:00:285302$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Alexandre Vassalottia2db6872009-07-17 07:46:465303
5304 ;;
5305esac
5306
5307
5308
Matthias Klosea0bea5d2010-05-08 10:00:285309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5310$as_echo_n "checking LIBRARY... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465311if test -z "$LIBRARY"
5312then
5313 LIBRARY='libpython$(VERSION).a'
5314fi
Matthias Klosea0bea5d2010-05-08 10:00:285315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5316$as_echo "$LIBRARY" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465317
5318# LDLIBRARY is the name of the library to link against (as opposed to the
5319# name of the library into which to insert object files). BLDLIBRARY is also
5320# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5321# is blank as the main program is not linked directly against LDLIBRARY.
5322# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5323# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5324# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5325# DLLLIBRARY is the shared (i.e., DLL) library.
5326#
5327# RUNSHARED is used to run shared python without installed libraries
5328#
5329# INSTSONAME is the name of the shared library that will be use to install
5330# on the system - some systems like version suffix, others don't
5331
5332
5333
5334
5335
5336
5337LDLIBRARY="$LIBRARY"
5338BLDLIBRARY='$(LDLIBRARY)'
5339INSTSONAME='$(LDLIBRARY)'
5340DLLLIBRARY=''
5341LDLIBRARYDIR=''
5342RUNSHARED=''
5343
5344# LINKCC is the command that links the python executable -- default is $(CC).
5345# If CXX is set, and if it is needed to link a main function that was
5346# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5347# python might then depend on the C++ runtime
5348# This is altered for AIX in order to build the export list before
5349# linking.
5350
Matthias Klosea0bea5d2010-05-08 10:00:285351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5352$as_echo_n "checking LINKCC... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465353if test -z "$LINKCC"
5354then
5355 LINKCC='$(PURIFY) $(MAINCC)'
5356 case $ac_sys_system in
5357 AIX*)
5358 exp_extra="\"\""
5359 if test $ac_sys_release -ge 5 -o \
5360 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5361 exp_extra="."
5362 fi
5363 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Alexandre Vassalottia2db6872009-07-17 07:46:465364 QNX*)
5365 # qcc must be used because the other compilers do not
5366 # support -N.
5367 LINKCC=qcc;;
5368 esac
5369fi
Matthias Klosea0bea5d2010-05-08 10:00:285370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5371$as_echo "$LINKCC" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465372
5373# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5374# make sure we default having it set to "no": this is used by
5375# distutils.unixccompiler to know if it should add --enable-new-dtags
5376# to linker command lines, and failing to detect GNU ld simply results
5377# in the same bahaviour as before.
5378
Matthias Klosea0bea5d2010-05-08 10:00:285379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5380$as_echo_n "checking for GNU ld... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465381ac_prog=ld
5382if test "$GCC" = yes; then
5383 ac_prog=`$CC -print-prog-name=ld`
5384fi
5385case `"$ac_prog" -V 2>&1 < /dev/null` in
5386 *GNU*)
5387 GNULD=yes;;
5388 *)
5389 GNULD=no;;
5390esac
Matthias Klosea0bea5d2010-05-08 10:00:285391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5392$as_echo "$GNULD" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465393
Matthias Klosea0bea5d2010-05-08 10:00:285394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5395$as_echo_n "checking for --enable-shared... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465396# Check whether --enable-shared was given.
Matthias Klosea0bea5d2010-05-08 10:00:285397if test "${enable_shared+set}" = set; then :
Alexandre Vassalottia2db6872009-07-17 07:46:465398 enableval=$enable_shared;
5399fi
5400
5401
5402if test -z "$enable_shared"
5403then
5404 case $ac_sys_system in
5405 CYGWIN* | atheos*)
5406 enable_shared="yes";;
5407 *)
5408 enable_shared="no";;
5409 esac
5410fi
Matthias Klosea0bea5d2010-05-08 10:00:285411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5412$as_echo "$enable_shared" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465413
Matthias Klosea0bea5d2010-05-08 10:00:285414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5415$as_echo_n "checking for --enable-profiling... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465416# Check whether --enable-profiling was given.
Matthias Klosea0bea5d2010-05-08 10:00:285417if test "${enable_profiling+set}" = set; then :
doko@python.orgd65e2ba2013-01-31 22:52:035418 enableval=$enable_profiling;
5419fi
5420
5421if test "x$enable_profiling" = xyes; then
5422 ac_save_cc="$CC"
Benjamin Petersonb9be7bb2013-03-26 12:55:375423 CC="$CC -pg"
Matthias Klosea0bea5d2010-05-08 10:00:285424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:465425/* end confdefs.h. */
5426int main() { return 0; }
5427_ACEOF
doko@python.orgd65e2ba2013-01-31 22:52:035428if ac_fn_c_try_link "$LINENO"; then :
5429
Alexandre Vassalottia2db6872009-07-17 07:46:465430else
doko@python.orgd65e2ba2013-01-31 22:52:035431 enable_profiling=no
Alexandre Vassalottia2db6872009-07-17 07:46:465432fi
doko@python.orgd65e2ba2013-01-31 22:52:035433rm -f core conftest.err conftest.$ac_objext \
5434 conftest$ac_exeext conftest.$ac_ext
5435 CC="$ac_save_cc"
5436else
5437 enable_profiling=no
Alexandre Vassalottia2db6872009-07-17 07:46:465438fi
doko@python.orgd65e2ba2013-01-31 22:52:035439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5440$as_echo "$enable_profiling" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465441
doko@python.orgd65e2ba2013-01-31 22:52:035442if test "x$enable_profiling" = xyes; then
5443 BASECFLAGS="-pg $BASECFLAGS"
5444 LDFLAGS="-pg $LDFLAGS"
Alexandre Vassalottia2db6872009-07-17 07:46:465445fi
5446
Matthias Klosea0bea5d2010-05-08 10:00:285447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5448$as_echo_n "checking LDLIBRARY... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465449
5450# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5451# library that we build, but we do not want to link against it (we
5452# will find it with a -framework option). For this reason there is an
5453# extra variable BLDLIBRARY against which Python and the extension
5454# modules are linked, BLDLIBRARY. This is normally the same as
5455# LDLIBRARY, but empty for MacOSX framework builds.
5456if test "$enable_framework"
5457then
5458 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
doko@ubuntu.com9ba90c92014-05-07 02:41:265459 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
Alexandre Vassalottia2db6872009-07-17 07:46:465460 BLDLIBRARY=''
5461else
5462 BLDLIBRARY='$(LDLIBRARY)'
5463fi
5464
5465# Other platforms follow
5466if test $enable_shared = "yes"; then
5467
Matthias Klosea0bea5d2010-05-08 10:00:285468$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
Alexandre Vassalottia2db6872009-07-17 07:46:465469
5470 case $ac_sys_system in
5471 BeOS*)
5472 LDLIBRARY='libpython$(VERSION).so'
5473 ;;
5474 CYGWIN*)
5475 LDLIBRARY='libpython$(VERSION).dll.a'
5476 DLLLIBRARY='libpython$(VERSION).dll'
5477 ;;
5478 SunOS*)
5479 LDLIBRARY='libpython$(VERSION).so'
5480 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
doko@ubuntu.com9ba90c92014-05-07 02:41:265481 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalottia2db6872009-07-17 07:46:465482 INSTSONAME="$LDLIBRARY".$SOVERSION
5483 ;;
Charles-François Natali3de8c732011-07-24 20:33:355484 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
Alexandre Vassalottia2db6872009-07-17 07:46:465485 LDLIBRARY='libpython$(VERSION).so'
5486 BLDLIBRARY='-L. -lpython$(VERSION)'
doko@ubuntu.com9ba90c92014-05-07 02:41:265487 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalottia2db6872009-07-17 07:46:465488 case $ac_sys_system in
5489 FreeBSD*)
5490 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
5491 ;;
5492 esac
5493 INSTSONAME="$LDLIBRARY".$SOVERSION
5494 ;;
5495 hp*|HP*)
5496 case `uname -m` in
5497 ia64)
5498 LDLIBRARY='libpython$(VERSION).so'
5499 ;;
5500 *)
5501 LDLIBRARY='libpython$(VERSION).sl'
5502 ;;
5503 esac
5504 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
doko@ubuntu.com9ba90c92014-05-07 02:41:265505 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
Alexandre Vassalottia2db6872009-07-17 07:46:465506 ;;
5507 OSF*)
5508 LDLIBRARY='libpython$(VERSION).so'
5509 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
doko@ubuntu.com9ba90c92014-05-07 02:41:265510 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalottia2db6872009-07-17 07:46:465511 ;;
5512 atheos*)
5513 LDLIBRARY='libpython$(VERSION).so'
5514 BLDLIBRARY='-L. -lpython$(VERSION)'
5515 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
5516 ;;
5517 Darwin*)
5518 LDLIBRARY='libpython$(VERSION).dylib'
5519 BLDLIBRARY='-L. -lpython$(VERSION)'
doko@ubuntu.com9ba90c92014-05-07 02:41:265520 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
Alexandre Vassalottia2db6872009-07-17 07:46:465521 ;;
Antoine Pitrouaabdceb2010-09-10 20:03:175522 AIX*)
5523 LDLIBRARY='libpython$(VERSION).so'
doko@ubuntu.com9ba90c92014-05-07 02:41:265524 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
Antoine Pitrouaabdceb2010-09-10 20:03:175525 ;;
Alexandre Vassalottia2db6872009-07-17 07:46:465526
5527 esac
5528else # shared is disabled
5529 case $ac_sys_system in
5530 CYGWIN*)
5531 BLDLIBRARY='$(LIBRARY)'
5532 LDLIBRARY='libpython$(VERSION).dll.a'
5533 ;;
5534 esac
5535fi
5536
doko@python.orgd65e2ba2013-01-31 22:52:035537if test "$cross_compiling" = yes; then
5538 RUNSHARED=
5539fi
5540
Matthias Klosea0bea5d2010-05-08 10:00:285541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5542$as_echo "$LDLIBRARY" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465543
5544if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5546set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:285547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:335549if ${ac_cv_prog_RANLIB+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285550 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:465551else
5552 if test -n "$RANLIB"; then
5553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:285560 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:005561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Vassalottia2db6872009-07-17 07:46:465562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Matthias Klosea0bea5d2010-05-08 10:00:285563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalottia2db6872009-07-17 07:46:465564 break 2
5565 fi
5566done
Matthias Klosea0bea5d2010-05-08 10:00:285567 done
Alexandre Vassalottia2db6872009-07-17 07:46:465568IFS=$as_save_IFS
5569
5570fi
5571fi
5572RANLIB=$ac_cv_prog_RANLIB
5573if test -n "$RANLIB"; then
Matthias Klosea0bea5d2010-05-08 10:00:285574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5575$as_echo "$RANLIB" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465576else
Matthias Klosea0bea5d2010-05-08 10:00:285577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465579fi
5580
5581
5582fi
5583if test -z "$ac_cv_prog_RANLIB"; then
5584 ac_ct_RANLIB=$RANLIB
5585 # Extract the first word of "ranlib", so it can be a program name with args.
5586set dummy ranlib; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:285587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:335589if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285590 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:465591else
5592 if test -n "$ac_ct_RANLIB"; then
5593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:285600 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:005601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Vassalottia2db6872009-07-17 07:46:465602 ac_cv_prog_ac_ct_RANLIB="ranlib"
Matthias Klosea0bea5d2010-05-08 10:00:285603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalottia2db6872009-07-17 07:46:465604 break 2
5605 fi
5606done
Matthias Klosea0bea5d2010-05-08 10:00:285607 done
Alexandre Vassalottia2db6872009-07-17 07:46:465608IFS=$as_save_IFS
5609
5610fi
5611fi
5612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5613if test -n "$ac_ct_RANLIB"; then
Matthias Klosea0bea5d2010-05-08 10:00:285614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5615$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465616else
Matthias Klosea0bea5d2010-05-08 10:00:285617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465619fi
5620
5621 if test "x$ac_ct_RANLIB" = x; then
5622 RANLIB=":"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625yes:)
Matthias Klosea0bea5d2010-05-08 10:00:285626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:465628ac_tool_warned=yes ;;
5629esac
5630 RANLIB=$ac_ct_RANLIB
5631 fi
5632else
5633 RANLIB="$ac_cv_prog_RANLIB"
5634fi
5635
5636
doko@python.orgd65e2ba2013-01-31 22:52:035637if test -n "$ac_tool_prefix"; then
5638 for ac_prog in ar aal
5639 do
5640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:285642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:335644if ${ac_cv_prog_AR+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285645 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:465646else
5647 if test -n "$AR"; then
5648 ac_cv_prog_AR="$AR" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:285655 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:005656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@python.orgd65e2ba2013-01-31 22:52:035657 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Matthias Klosea0bea5d2010-05-08 10:00:285658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalottia2db6872009-07-17 07:46:465659 break 2
5660 fi
5661done
Matthias Klosea0bea5d2010-05-08 10:00:285662 done
Alexandre Vassalottia2db6872009-07-17 07:46:465663IFS=$as_save_IFS
5664
5665fi
5666fi
5667AR=$ac_cv_prog_AR
5668if test -n "$AR"; then
Matthias Klosea0bea5d2010-05-08 10:00:285669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5670$as_echo "$AR" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465671else
Matthias Klosea0bea5d2010-05-08 10:00:285672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465674fi
5675
5676
doko@python.orgd65e2ba2013-01-31 22:52:035677 test -n "$AR" && break
5678 done
5679fi
5680if test -z "$AR"; then
5681 ac_ct_AR=$AR
5682 for ac_prog in ar aal
5683do
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685set dummy $ac_prog; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if ${ac_cv_prog_ac_ct_AR+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 if test -n "$ac_ct_AR"; then
5692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_AR="$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
Alexandre Vassalottia2db6872009-07-17 07:46:465705done
doko@python.orgd65e2ba2013-01-31 22:52:035706 done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711ac_ct_AR=$ac_cv_prog_ac_ct_AR
5712if test -n "$ac_ct_AR"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5714$as_echo "$ac_ct_AR" >&6; }
5715else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721 test -n "$ac_ct_AR" && break
5722done
5723
5724 if test "x$ac_ct_AR" = x; then
5725 AR="ar"
5726 else
5727 case $cross_compiling:$ac_tool_warned in
5728yes:)
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731ac_tool_warned=yes ;;
5732esac
5733 AR=$ac_ct_AR
5734 fi
5735fi
Alexandre Vassalottia2db6872009-07-17 07:46:465736
5737
5738# tweak ARFLAGS only if the user didn't set it on the command line
5739
5740if test -z "$ARFLAGS"
5741then
5742 ARFLAGS="rc"
5743fi
5744
5745
Victor Stinner2c7085f2017-05-02 14:55:505746
5747
5748
Victor Stinnerdf569252017-05-02 22:05:455749if test -e $srcdir/.git
Victor Stinner2c7085f2017-05-02 14:55:505750then
5751# Extract the first word of "git", so it can be a program name with args.
5752set dummy git; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:285753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinner2c7085f2017-05-02 14:55:505755if ${ac_cv_prog_HAS_GIT+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285756 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:465757else
Victor Stinner2c7085f2017-05-02 14:55:505758 if test -n "$HAS_GIT"; then
5759 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
Alexandre Vassalottia2db6872009-07-17 07:46:465760else
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:285766 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:005767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Victor Stinner2c7085f2017-05-02 14:55:505768 ac_cv_prog_HAS_GIT="found"
Matthias Klosea0bea5d2010-05-08 10:00:285769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalottia2db6872009-07-17 07:46:465770 break 2
5771 fi
5772done
Matthias Klosea0bea5d2010-05-08 10:00:285773 done
Alexandre Vassalottia2db6872009-07-17 07:46:465774IFS=$as_save_IFS
5775
Victor Stinner2c7085f2017-05-02 14:55:505776 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
Alexandre Vassalottia2db6872009-07-17 07:46:465777fi
5778fi
Victor Stinner2c7085f2017-05-02 14:55:505779HAS_GIT=$ac_cv_prog_HAS_GIT
5780if test -n "$HAS_GIT"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
5782$as_echo "$HAS_GIT" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465783else
Matthias Klosea0bea5d2010-05-08 10:00:285784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465786fi
5787
5788
Victor Stinner2c7085f2017-05-02 14:55:505789else
5790HAS_GIT=no-repository
5791fi
5792if test $HAS_GIT = found
Alexandre Vassalottia2db6872009-07-17 07:46:465793then
Xiang Zhang95f9e142018-08-20 15:15:075794 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
5795 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
5796 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
Alexandre Vassalottia2db6872009-07-17 07:46:465797else
Victor Stinner2c7085f2017-05-02 14:55:505798 GITVERSION=""
5799 GITTAG=""
5800 GITBRANCH=""
Georg Brandl3a5508e2011-03-06 09:42:215801fi
5802
Alexandre Vassalottia2db6872009-07-17 07:46:465803case $MACHDEP in
5804bsdos*|hp*|HP*)
5805 # install -d does not work on BSDI or HP-UX
5806 if test -z "$INSTALL"
5807 then
5808 INSTALL="${srcdir}/install-sh -c"
5809 fi
5810esac
Alexandre Vassalottia2db6872009-07-17 07:46:465811# Find a good install program. We prefer a C program (faster),
5812# so one script is as good as another. But avoid the broken or
5813# incompatible versions:
5814# SysV /etc/install, /usr/sbin/install
5815# SunOS /usr/etc/install
5816# IRIX /sbin/install
5817# AIX /bin/install
5818# AmigaOS /C/install, which installs bootblocks on floppy discs
5819# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5820# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5821# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5822# OS/2's system install, which has a completely different semantic
5823# ./install, which can be erroneously created by make from ./install.sh.
Matthias Klosea0bea5d2010-05-08 10:00:285824# Reject install programs that cannot install multiple files.
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5826$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465827if test -z "$INSTALL"; then
Matthias Klose3cef2a92012-03-14 22:39:335828if ${ac_cv_path_install+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:285829 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:465830else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:285836 # Account for people who put trailing slashes in PATH elements.
5837case $as_dir/ in #((
5838 ./ | .// | /[cC]/* | \
Alexandre Vassalottia2db6872009-07-17 07:46:465839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Matthias Klosea0bea5d2010-05-08 10:00:285840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Vassalottia2db6872009-07-17 07:46:465841 /usr/ucb/* ) ;;
5842 *)
5843 # OSF1 and SCO ODT 3.0 have their own names for install.
5844 # Don't use installbsd from OSF since it installs stuff as root
5845 # by default.
5846 for ac_prog in ginstall scoinst install; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:005848 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Alexandre Vassalottia2db6872009-07-17 07:46:465849 if test $ac_prog = install &&
5850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5851 # AIX install. It has an incompatible calling convention.
5852 :
5853 elif test $ac_prog = install &&
5854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5855 # program-specific install script used by HP pwplus--don't use.
5856 :
5857 else
Matthias Klosea0bea5d2010-05-08 10:00:285858 rm -rf conftest.one conftest.two conftest.dir
5859 echo one > conftest.one
5860 echo two > conftest.two
5861 mkdir conftest.dir
5862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5863 test -s conftest.one && test -s conftest.two &&
5864 test -s conftest.dir/conftest.one &&
5865 test -s conftest.dir/conftest.two
5866 then
5867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5868 break 3
5869 fi
Alexandre Vassalottia2db6872009-07-17 07:46:465870 fi
5871 fi
5872 done
5873 done
5874 ;;
5875esac
Matthias Klosea0bea5d2010-05-08 10:00:285876
5877 done
Alexandre Vassalottia2db6872009-07-17 07:46:465878IFS=$as_save_IFS
5879
Matthias Klosea0bea5d2010-05-08 10:00:285880rm -rf conftest.one conftest.two conftest.dir
Alexandre Vassalottia2db6872009-07-17 07:46:465881
5882fi
5883 if test "${ac_cv_path_install+set}" = set; then
5884 INSTALL=$ac_cv_path_install
5885 else
5886 # As a last resort, use the slow shell script. Don't cache a
5887 # value for INSTALL within a source directory, because that will
5888 # break other packages using the cache if that directory is
5889 # removed, or if the value is a relative name.
5890 INSTALL=$ac_install_sh
5891 fi
5892fi
Matthias Klosea0bea5d2010-05-08 10:00:285893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5894$as_echo "$INSTALL" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465895
5896# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5897# It thinks the first close brace ends the variable substitution.
5898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5899
5900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5901
5902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5903
Trent Nelsonf6407a12012-08-30 14:56:135904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5905$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5906if test -z "$MKDIR_P"; then
5907 if ${ac_cv_path_mkdir+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5912do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_prog in mkdir gmkdir; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:005917 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Trent Nelsonf6407a12012-08-30 14:56:135918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5919 'mkdir (GNU coreutils) '* | \
5920 'mkdir (coreutils) '* | \
5921 'mkdir (fileutils) '4.1*)
5922 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5923 break 3;;
5924 esac
5925 done
5926 done
5927 done
5928IFS=$as_save_IFS
5929
5930fi
5931
5932 test -d ./--version && rmdir ./--version
5933 if test "${ac_cv_path_mkdir+set}" = set; then
5934 MKDIR_P="$ac_cv_path_mkdir -p"
5935 else
5936 # As a last resort, use the slow shell script. Don't cache a
5937 # value for MKDIR_P within a source directory, because that will
5938 # break other packages using the cache if that directory is
5939 # removed, or if the value is a relative name.
5940 MKDIR_P="$ac_install_sh -d"
5941 fi
5942fi
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5944$as_echo "$MKDIR_P" >&6; }
5945
Alexandre Vassalottia2db6872009-07-17 07:46:465946
5947# Not every filesystem supports hard links
5948
5949if test -z "$LN" ; then
5950 case $ac_sys_system in
5951 BeOS*) LN="ln -s";;
5952 CYGWIN*) LN="ln -s";;
5953 atheos*) LN="ln -s";;
5954 *) LN=ln;;
5955 esac
5956fi
5957
5958# Check for --with-pydebug
Matthias Klosea0bea5d2010-05-08 10:00:285959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5960$as_echo_n "checking for --with-pydebug... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465961
5962# Check whether --with-pydebug was given.
Matthias Klosea0bea5d2010-05-08 10:00:285963if test "${with_pydebug+set}" = set; then :
Alexandre Vassalottia2db6872009-07-17 07:46:465964 withval=$with_pydebug;
5965if test "$withval" != no
5966then
5967
Matthias Klosea0bea5d2010-05-08 10:00:285968$as_echo "#define Py_DEBUG 1" >>confdefs.h
Alexandre Vassalottia2db6872009-07-17 07:46:465969
Matthias Klosea0bea5d2010-05-08 10:00:285970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5971$as_echo "yes" >&6; };
Alexandre Vassalottia2db6872009-07-17 07:46:465972 Py_DEBUG='true'
Matthias Klosea0bea5d2010-05-08 10:00:285973else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }; Py_DEBUG='false'
Alexandre Vassalottia2db6872009-07-17 07:46:465975fi
5976else
Matthias Klosea0bea5d2010-05-08 10:00:285977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:465979fi
5980
5981
5982# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5983# merged with this chunk of code?
5984
5985# Optimizer/debugger flags
5986# ------------------------
5987# (The following bit of code is complicated enough - please keep things
5988# indented properly. Just pretend you're editing Python code. ;-)
5989
5990# There are two parallel sets of case statements below, one that checks to
5991# see if OPT was set and one that does BASECFLAGS setting based upon
5992# compiler and platform. BASECFLAGS tweaks need to be made even if the
5993# user set OPT.
5994
5995# tweak OPT based on compiler and platform, only if the user didn't set
5996# it on the command line
5997
Benjamin Petersond4b721b2010-03-23 20:58:375998if test "${OPT-unset}" = "unset"
Alexandre Vassalottia2db6872009-07-17 07:46:465999then
6000 case $GCC in
6001 yes)
6002 if test "$CC" != 'g++' ; then
6003 STRICT_PROTO="-Wstrict-prototypes"
6004 fi
6005 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6006 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6007 WRAP="-fwrapv"
6008 fi
Stefan Krah503e5e12011-09-14 13:19:426009
6010 # Clang also needs -fwrapv
Stefan Krah2bc1e8f2011-12-08 21:26:066011 case $CC in
6012 *clang*) WRAP="-fwrapv"
6013 ;;
6014 esac
Stefan Krah503e5e12011-09-14 13:19:426015
Alexandre Vassalottia2db6872009-07-17 07:46:466016 case $ac_cv_prog_cc_g in
6017 yes)
6018 if test "$Py_DEBUG" = 'true' ; then
6019 # Optimization messes up debuggers, so turn it off for
6020 # debug builds.
Mark Dickinsond2f3e3f2010-05-05 22:23:586021 OPT="-g -O0 -Wall $STRICT_PROTO"
Alexandre Vassalottia2db6872009-07-17 07:46:466022 else
6023 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
6024 fi
6025 ;;
6026 *)
6027 OPT="-O3 -Wall $STRICT_PROTO"
6028 ;;
6029 esac
6030 case $ac_sys_system in
6031 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6032 ;;
6033 esac
6034 ;;
6035
6036 *)
6037 OPT="-O"
6038 ;;
6039 esac
Alexandre Vassalottia2db6872009-07-17 07:46:466040fi
6041
6042
6043
6044# The -arch flags for universal builds on OSX
6045UNIVERSAL_ARCH_FLAGS=
6046
6047
6048# tweak BASECFLAGS based on compiler and platform
6049case $GCC in
6050yes)
6051 # Python violates C99 rules, by casting between incompatible
6052 # pointer types. GCC may generate bad code as a result of that,
6053 # so use -fno-strict-aliasing if supported.
Matthias Klosea0bea5d2010-05-08 10:00:286054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
6055$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466056 ac_save_cc="$CC"
6057 CC="$CC -fno-strict-aliasing"
Matthias Klose3cef2a92012-03-14 22:39:336058 if ${ac_cv_no_strict_aliasing_ok+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286059 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:486060else
Matthias Klosea0bea5d2010-05-08 10:00:286061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466062/* end confdefs.h. */
Gregory P. Smith373469a2009-11-01 21:03:386063
6064int
6065main ()
6066{
Mark Dickinson5e13e292010-05-11 08:55:066067
Gregory P. Smith373469a2009-11-01 21:03:386068 ;
6069 return 0;
6070}
Alexandre Vassalottia2db6872009-07-17 07:46:466071_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286072if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466073 ac_cv_no_strict_aliasing_ok=yes
6074else
Matthias Klosea0bea5d2010-05-08 10:00:286075 ac_cv_no_strict_aliasing_ok=no
Alexandre Vassalottia2db6872009-07-17 07:46:466076fi
Gregory P. Smith373469a2009-11-01 21:03:386077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalotti2ccefe12009-07-17 23:17:486078fi
6079
Alexandre Vassalottia2db6872009-07-17 07:46:466080 CC="$ac_save_cc"
Matthias Klosea0bea5d2010-05-08 10:00:286081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
6082$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466083 if test $ac_cv_no_strict_aliasing_ok = yes
6084 then
6085 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6086 fi
6087
6088 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
6089 # support. Without this, treatment of subnormals doesn't follow
6090 # the standard.
doko@python.orgd65e2ba2013-01-31 22:52:036091 case $host in
Alexandre Vassalottia2db6872009-07-17 07:46:466092 alpha*)
6093 BASECFLAGS="$BASECFLAGS -mieee"
6094 ;;
6095 esac
6096
6097 case $ac_sys_system in
6098 SCO_SV*)
6099 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
6100 ;;
Ned Deilyee8e4b62018-04-14 14:37:286101 # is there any other compiler on Darwin besides gcc?
6102 Darwin*)
6103 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
6104 # used to be here, but non-Apple gcc doesn't accept them.
6105 if test "${CC}" = gcc
6106 then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
Matthias Klosea0bea5d2010-05-08 10:00:286108$as_echo_n "checking which compiler should be used... " >&6; }
Ned Deilyee8e4b62018-04-14 14:37:286109 case "${UNIVERSALSDK}" in
6110 */MacOSX10.4u.sdk)
6111 # Build using 10.4 SDK, force usage of gcc when the
6112 # compiler is gcc, otherwise the user will get very
6113 # confusing error messages when building on OSX 10.6
6114 CC=gcc-4.0
6115 CPP=cpp-4.0
6116 ;;
6117 esac
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Matthias Klosea0bea5d2010-05-08 10:00:286119$as_echo "$CC" >&6; }
Ned Deilyee8e4b62018-04-14 14:37:286120 fi
Alexandre Vassalottia2db6872009-07-17 07:46:466121
Ned Deilyee8e4b62018-04-14 14:37:286122 if test "${enable_universalsdk}"
6123 then
6124 case "$UNIVERSAL_ARCHS" in
6125 32-bit)
6126 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
6127 LIPO_32BIT_FLAGS=""
6128 ARCH_RUN_32BIT=""
6129 ;;
6130 64-bit)
6131 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
6132 LIPO_32BIT_FLAGS=""
6133 ARCH_RUN_32BIT=""
6134 ;;
6135 all)
6136 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
6137 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6138 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6139 ;;
6140 intel)
6141 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
6142 LIPO_32BIT_FLAGS="-extract i386"
6143 ARCH_RUN_32BIT="/usr/bin/arch -i386"
6144 ;;
6145 intel-32)
6146 UNIVERSAL_ARCH_FLAGS="-arch i386"
6147 LIPO_32BIT_FLAGS=""
6148 ARCH_RUN_32BIT=""
6149 ;;
6150 intel-64)
6151 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
6152 LIPO_32BIT_FLAGS=""
6153 ARCH_RUN_32BIT=""
6154 ;;
6155 3-way)
6156 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
6157 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6158 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6159 ;;
6160 *)
6161 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
6162 ;;
6163 esac
Ronald Oussoren23d92532009-09-07 06:12:006164
Ned Deilyee8e4b62018-04-14 14:37:286165 if test "${UNIVERSALSDK}" != "/"
6166 then
6167 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
6168 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
6169 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
6170 else
6171 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
6172 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
6173 fi
6174 fi
Ronald Oussoren23d92532009-09-07 06:12:006175
Ned Deilyee8e4b62018-04-14 14:37:286176 # Calculate an appropriate deployment target for this build:
6177 # The deployment target value is used explicitly to enable certain
6178 # features are enabled (such as builtin libedit support for readline)
6179 # through the use of Apple's Availability Macros and is used as a
6180 # component of the string returned by distutils.get_platform().
6181 #
6182 # Use the value from:
6183 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
6184 # 2. the operating system version of the build machine if >= 10.6
6185 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
6186 # below to pick either 10.3, 10.4, or 10.5 as the target.
6187 # 4. If we are running on OS X 10.2 or earlier, good luck!
Ronald Oussoren23d92532009-09-07 06:12:006188
Ned Deilyee8e4b62018-04-14 14:37:286189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
6190$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
6191 cur_target_major=`sw_vers -productVersion | \
6192 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
6193 cur_target_minor=`sw_vers -productVersion | \
6194 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
6195 cur_target="${cur_target_major}.${cur_target_minor}"
6196 if test ${cur_target_major} -eq 10 && \
6197 test ${cur_target_minor} -ge 3 && \
6198 test ${cur_target_minor} -le 5
6199 then
6200 # OS X 10.3 through 10.5
6201 cur_target=10.3
6202 if test ${enable_universalsdk}
6203 then
6204 case "$UNIVERSAL_ARCHS" in
6205 all|3-way|intel|64-bit)
6206 # These configurations were first supported in 10.5
6207 cur_target='10.5'
6208 ;;
6209 esac
6210 else
6211 if test `/usr/bin/arch` = "i386"
6212 then
6213 # 10.4 was the first release to support Intel archs
6214 cur_target="10.4"
6215 fi
6216 fi
6217 fi
6218 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
Alexandre Vassalottia2db6872009-07-17 07:46:466219
Ned Deilyee8e4b62018-04-14 14:37:286220 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
6221 # environment with a value that is the same as what we'll use
6222 # in the Makefile to ensure that we'll get the same compiler
6223 # environment during configure and build time.
6224 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
6225 export MACOSX_DEPLOYMENT_TARGET
6226 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
6228$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466229
Ned Deilyee8e4b62018-04-14 14:37:286230 # end of Darwin* tests
6231 ;;
Alexandre Vassalottia2db6872009-07-17 07:46:466232 OSF*)
6233 BASECFLAGS="$BASECFLAGS -mieee"
6234 ;;
6235 esac
6236 ;;
6237
6238*)
6239 case $ac_sys_system in
6240 OpenUNIX*|UnixWare*)
6241 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
6242 ;;
6243 OSF*)
6244 BASECFLAGS="$BASECFLAGS -ieee -std"
6245 ;;
6246 SCO_SV*)
6247 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
6248 ;;
6249 esac
6250 ;;
6251esac
6252
Zachary Ware6ed42ea2015-12-21 17:43:036253# ICC needs -fp-model strict or floats behave badly
6254case "$CC" in
6255*icc*)
6256 BASECFLAGS="$BASECFLAGS -fp-model strict"
6257 ;;
6258esac
6259
Alexandre Vassalottia2db6872009-07-17 07:46:466260if test "$Py_DEBUG" = 'true'; then
6261 :
6262else
6263 OPT="-DNDEBUG $OPT"
6264fi
6265
6266if test "$ac_arch_flags"
6267then
6268 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
6269fi
6270
6271# disable check for icc since it seems to pass, but generates a warning
6272if test "$CC" = icc
6273then
6274 ac_cv_opt_olimit_ok=no
6275fi
6276
Matthias Klosea0bea5d2010-05-08 10:00:286277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
6278$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:336279if ${ac_cv_opt_olimit_ok+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286280 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466281else
6282 ac_save_cc="$CC"
6283CC="$CC -OPT:Olimit=0"
Matthias Klosea0bea5d2010-05-08 10:00:286284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466285/* end confdefs.h. */
Gregory P. Smith373469a2009-11-01 21:03:386286
6287int
6288main ()
6289{
Mark Dickinson5e13e292010-05-11 08:55:066290
Gregory P. Smith373469a2009-11-01 21:03:386291 ;
6292 return 0;
6293}
Alexandre Vassalottia2db6872009-07-17 07:46:466294_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286295if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466296 ac_cv_opt_olimit_ok=yes
6297else
Matthias Klosea0bea5d2010-05-08 10:00:286298 ac_cv_opt_olimit_ok=no
Matthias Klosec511b472010-05-08 11:01:396299
Alexandre Vassalottia2db6872009-07-17 07:46:466300fi
Gregory P. Smith373469a2009-11-01 21:03:386301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466302CC="$ac_save_cc"
6303fi
6304
Matthias Klosea0bea5d2010-05-08 10:00:286305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
6306$as_echo "$ac_cv_opt_olimit_ok" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466307if test $ac_cv_opt_olimit_ok = yes; then
6308 case $ac_sys_system in
6309 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
6310 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
6311 # environment?
6312 Darwin*)
6313 ;;
Trent Nelson34562e12012-10-17 22:01:126314 # XXX thankfully this useless troublemaker of a flag has been
6315 # eradicated in the 3.x line. For now, make sure it isn't picked
6316 # up by any of our other platforms that use CC.
6317 AIX*|SunOS*|HP-UX*|IRIX*)
6318 ;;
Alexandre Vassalottia2db6872009-07-17 07:46:466319 *)
6320 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
6321 ;;
6322 esac
6323else
Matthias Klosea0bea5d2010-05-08 10:00:286324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
6325$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:336326 if ${ac_cv_olimit_ok+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286327 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466328else
6329 ac_save_cc="$CC"
6330 CC="$CC -Olimit 1500"
Matthias Klosea0bea5d2010-05-08 10:00:286331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466332/* end confdefs.h. */
Gregory P. Smith373469a2009-11-01 21:03:386333
6334int
6335main ()
6336{
Mark Dickinson5e13e292010-05-11 08:55:066337
Gregory P. Smith373469a2009-11-01 21:03:386338 ;
6339 return 0;
6340}
Alexandre Vassalottia2db6872009-07-17 07:46:466341_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286342if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466343 ac_cv_olimit_ok=yes
6344else
Matthias Klosea0bea5d2010-05-08 10:00:286345 ac_cv_olimit_ok=no
Matthias Klosec511b472010-05-08 11:01:396346
Alexandre Vassalottia2db6872009-07-17 07:46:466347fi
Gregory P. Smith373469a2009-11-01 21:03:386348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466349 CC="$ac_save_cc"
6350fi
6351
Matthias Klosea0bea5d2010-05-08 10:00:286352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
6353$as_echo "$ac_cv_olimit_ok" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466354 if test $ac_cv_olimit_ok = yes; then
Stefan Krah67473262012-11-28 23:17:056355 case $ac_sys_system in
6356 # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive.
6357 HP-UX*)
6358 ;;
6359 *)
6360 BASECFLAGS="$BASECFLAGS -Olimit 1500"
6361 ;;
6362 esac
Alexandre Vassalottia2db6872009-07-17 07:46:466363 fi
6364fi
6365
6366# Check whether GCC supports PyArg_ParseTuple format
6367if test "$GCC" = "yes"
6368then
Matthias Klosea0bea5d2010-05-08 10:00:286369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
6370$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466371 save_CFLAGS=$CFLAGS
Benjamin Petersonc8759662013-05-11 18:00:056372 CFLAGS="$CFLAGS -Werror -Wformat"
Matthias Klosea0bea5d2010-05-08 10:00:286373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466374/* end confdefs.h. */
6375
6376 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
Alexandre Vassalottia2db6872009-07-17 07:46:466377int
6378main ()
6379{
6380
6381 ;
6382 return 0;
6383}
Matthias Klosec511b472010-05-08 11:01:396384
Alexandre Vassalottia2db6872009-07-17 07:46:466385_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286386if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466387
Matthias Klosec511b472010-05-08 11:01:396388
Matthias Klosea0bea5d2010-05-08 10:00:286389$as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
Alexandre Vassalottia2db6872009-07-17 07:46:466390
Matthias Klosec511b472010-05-08 11:01:396391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:286392$as_echo "yes" >&6; }
Matthias Klosec511b472010-05-08 11:01:396393
Alexandre Vassalottia2db6872009-07-17 07:46:466394else
Matthias Klosec511b472010-05-08 11:01:396395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Klosea0bea5d2010-05-08 10:00:286397$as_echo "no" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466398
6399fi
Alexandre Vassalottia2db6872009-07-17 07:46:466400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 CFLAGS=$save_CFLAGS
6402fi
6403
Brett Cannon4ff151a2015-09-18 22:09:426404
Gregory P. Smith6d8fdfc2016-09-08 06:28:236405# Enable optimization flags
6406
6407
6408Py_OPT='false'
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)b9999152016-11-20 21:19:366409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6410$as_echo_n "checking for --enable-optimizations... " >&6; }
6411# Check whether --enable-optimizations was given.
6412if test "${enable_optimizations+set}" = set; then :
6413 enableval=$enable_optimizations;
INADA Naoki6a04ef72017-03-28 16:50:486414if test "$enableval" != no
Gregory P. Smith6d8fdfc2016-09-08 06:28:236415then
6416 Py_OPT='true'
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6418$as_echo "yes" >&6; };
6419else
6420 Py_OPT='false'
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; };
6423fi
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429if test "$Py_OPT" = 'true' ; then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)9cbfa792016-09-08 22:44:446430 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
6431 # compile working code using it and both test_distutils and test_gdb are
6432 # broken when you do managed to get a toolchain that works with it. People
6433 # who want LTO need to use --with-lto themselves.
Gregory P. Smith6d8fdfc2016-09-08 06:28:236434 DEF_MAKE_ALL_RULE="profile-opt"
Gregory P. Smith794b2912016-09-08 07:07:406435 REQUIRE_PGO="yes"
Gregory P. Smith6d8fdfc2016-09-08 06:28:236436 DEF_MAKE_RULE="build_all"
6437else
6438 DEF_MAKE_ALL_RULE="build_all"
Gregory P. Smith794b2912016-09-08 07:07:406439 REQUIRE_PGO="no"
Gregory P. Smith6d8fdfc2016-09-08 06:28:236440 DEF_MAKE_RULE="all"
6441fi
6442
6443
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)c543a0f2016-06-02 23:44:406444# Enable LTO flags
6445
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6447$as_echo_n "checking for --with-lto... " >&6; }
6448
6449# Check whether --with-lto was given.
6450if test "${with_lto+set}" = set; then :
6451 withval=$with_lto;
6452if test "$withval" != no
6453then
6454 Py_LTO='true'
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6456$as_echo "yes" >&6; };
6457else
6458 Py_LTO='false'
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; };
6461fi
6462else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467if test "$Py_LTO" = 'true' ; then
6468 case $CC in
6469 *clang*)
6470 # Any changes made here should be reflected in the GCC+Darwin case below
6471 LTOFLAGS="-flto"
6472 ;;
6473 *gcc*)
6474 case $ac_sys_system in
6475 Darwin*)
6476 LTOFLAGS="-flto"
6477 ;;
6478 *)
6479 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6480 ;;
6481 esac
6482 ;;
6483 esac
Victor Stinner319cfb52018-06-22 07:11:336484
6485 if test "$ac_cv_prog_cc_g" = "yes"
6486 then
6487 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6488 # to get debug symbols.
6489 LTOFLAGS="$LTOFLAGS -g"
6490 fi
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)c543a0f2016-06-02 23:44:406491fi
6492
6493
Brett Cannon4ff151a2015-09-18 22:09:426494# Enable PGO flags.
Zachary Ware6ed42ea2015-12-21 17:43:036495
6496
6497
6498
6499
Gregory P. Smith794b2912016-09-08 07:07:406500# Make this work on systems where llvm tools are not installed with their
6501# normal names in the default $PATH (ie: Ubuntu). They exist under the
6502# non-suffixed name in their versioned llvm directory.
6503llvm_bin_dir=''
6504llvm_path="${PATH}"
6505if test "${CC}" = "clang"
6506then
6507 clang_bin=`which clang`
6508 # Some systems install clang elsewhere as a symlink to the real path
6509 # which is where the related llvm tools are located.
6510 if test -L "${clang_bin}"
6511 then
6512 clang_dir=`dirname "${clang_bin}"`
6513 clang_bin=`readlink "${clang_bin}"`
6514 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6515 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6516 fi
6517fi
Zachary Ware6ed42ea2015-12-21 17:43:036518
Gregory P. Smith794b2912016-09-08 07:07:406519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6520$as_echo_n "checking target system type... " >&6; }
6521if ${ac_cv_target+:} false; then :
Brett Cannon4ff151a2015-09-18 22:09:426522 $as_echo_n "(cached) " >&6
6523else
Gregory P. Smith794b2912016-09-08 07:07:406524 if test "x$target_alias" = x; then
6525 ac_cv_target=$ac_cv_host
Brett Cannon4ff151a2015-09-18 22:09:426526else
Gregory P. Smith794b2912016-09-08 07:07:406527 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6528 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6529fi
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6533$as_echo "$ac_cv_target" >&6; }
6534case $ac_cv_target in
6535*-*-*) ;;
6536*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6537esac
6538target=$ac_cv_target
6539ac_save_IFS=$IFS; IFS='-'
6540set x $ac_cv_target
6541shift
6542target_cpu=$1
6543target_vendor=$2
6544shift; shift
6545# Remember, the first character of IFS is used to create $*,
6546# except with old shells:
6547target_os=$*
6548IFS=$ac_save_IFS
6549case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6550
6551
6552# The aliases save the names the user supplied, while $host etc.
6553# will get canonicalized.
6554test -n "$target_alias" &&
6555 test "$program_prefix$program_suffix$program_transform_name" = \
6556 NONENONEs,x,x, &&
6557 program_prefix=${target_alias}-
6558# Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6559set dummy $target_alias-llvm-profdata; ac_word=$2
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561$as_echo_n "checking for $ac_word... " >&6; }
6562if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564else
6565 case $LLVM_PROFDATA in
6566 [\\/]* | ?:[\\/]*)
6567 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6568 ;;
6569 *)
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in ${llvm_path}
Brett Cannon4ff151a2015-09-18 22:09:426572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Gregory P. Smith794b2912016-09-08 07:07:406577 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
Brett Cannon4ff151a2015-09-18 22:09:426578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582 done
6583IFS=$as_save_IFS
6584
Gregory P. Smith794b2912016-09-08 07:07:406585 ;;
6586esac
Brett Cannon4ff151a2015-09-18 22:09:426587fi
Gregory P. Smith794b2912016-09-08 07:07:406588LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6589if test -n "$LLVM_PROFDATA"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6591$as_echo "$LLVM_PROFDATA" >&6; }
Brett Cannon4ff151a2015-09-18 22:09:426592else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597
Gregory P. Smith794b2912016-09-08 07:07:406598if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6599 if test "$build" = "$target"; then
6600 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6601 # Extract the first word of "llvm-profdata", so it can be a program name with args.
6602set dummy llvm-profdata; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607else
6608 case $ac_pt_LLVM_PROFDATA in
6609 [\\/]* | ?:[\\/]*)
6610 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6611 ;;
6612 *)
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in ${llvm_path}
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625 done
6626IFS=$as_save_IFS
6627
6628 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
6629 ;;
6630esac
6631fi
6632ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6633if test -n "$ac_pt_LLVM_PROFDATA"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6635$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6636else
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6642 else
6643 LLVM_PROFDATA="''"
6644 fi
6645else
6646 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6647fi
6648
6649
6650if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6651then
6652 LLVM_PROF_FOUND="found"
6653else
6654 LLVM_PROF_FOUND="not-found"
6655fi
6656if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6657then
6658 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6659 if test -n "${found_llvm_profdata}"
6660 then
6661 # llvm-profdata isn't directly in $PATH in some cases.
6662 # https://apple.stackexchange.com/questions/197053/
6663 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6664 LLVM_PROF_FOUND=found
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6666$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6667 fi
6668fi
Brett Cannon4ff151a2015-09-18 22:09:426669LLVM_PROF_ERR=no
6670case $CC in
6671 *clang*)
6672 # Any changes made here should be reflected in the GCC+Darwin case below
6673 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6674 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith794b2912016-09-08 07:07:406675 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon4ff151a2015-09-18 22:09:426676 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6677 if test $LLVM_PROF_FOUND = not-found
6678 then
6679 LLVM_PROF_ERR=yes
Gregory P. Smith794b2912016-09-08 07:07:406680 if test "${REQUIRE_PGO}" = "yes"
6681 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)b9999152016-11-20 21:19:366682 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
Gregory P. Smith794b2912016-09-08 07:07:406683 fi
Brett Cannon4ff151a2015-09-18 22:09:426684 fi
6685 ;;
6686 *gcc*)
6687 case $ac_sys_system in
6688 Darwin*)
6689 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6690 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith794b2912016-09-08 07:07:406691 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon4ff151a2015-09-18 22:09:426692 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
Gregory P. Smith794b2912016-09-08 07:07:406693 if test "${LLVM_PROF_FOUND}" = "not-found"
Brett Cannon4ff151a2015-09-18 22:09:426694 then
6695 LLVM_PROF_ERR=yes
Gregory P. Smith794b2912016-09-08 07:07:406696 if test "${REQUIRE_PGO}" = "yes"
6697 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)b9999152016-11-20 21:19:366698 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
Gregory P. Smith794b2912016-09-08 07:07:406699 fi
Brett Cannon4ff151a2015-09-18 22:09:426700 fi
6701 ;;
6702 *)
6703 PGO_PROF_GEN_FLAG="-fprofile-generate"
6704 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6705 LLVM_PROF_MERGER="true"
6706 LLVM_PROF_FILE=""
6707 ;;
6708 esac
6709 ;;
Zachary Ware6ed42ea2015-12-21 17:43:036710 *icc*)
6711 PGO_PROF_GEN_FLAG="-prof-gen"
6712 PGO_PROF_USE_FLAG="-prof-use"
6713 LLVM_PROF_MERGER="true"
6714 LLVM_PROF_FILE=""
6715 ;;
Brett Cannon4ff151a2015-09-18 22:09:426716esac
6717
6718
Alexandre Vassalottia2db6872009-07-17 07:46:466719# On some compilers, pthreads are available without further options
6720# (e.g. MacOS X). On some of these systems, the compiler will not
6721# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
6722# So we have to see first whether pthreads are available without
6723# options before we can check whether -Kpthread improves anything.
Matthias Klosea0bea5d2010-05-08 10:00:286724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
6725$as_echo_n "checking whether pthreads are available without options... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:336726if ${ac_cv_pthread_is_default+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286727 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466728else
Matthias Klosea0bea5d2010-05-08 10:00:286729 if test "$cross_compiling" = yes; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466730 ac_cv_pthread_is_default=no
6731else
Matthias Klosea0bea5d2010-05-08 10:00:286732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466733/* end confdefs.h. */
6734
Stefan Krahae66ca62012-11-22 21:36:576735#include <stdio.h>
Alexandre Vassalottia2db6872009-07-17 07:46:466736#include <pthread.h>
6737
6738void* routine(void* p){return NULL;}
6739
6740int main(){
6741 pthread_t p;
6742 if(pthread_create(&p,NULL,routine,NULL)!=0)
6743 return 1;
6744 (void)pthread_detach(p);
6745 return 0;
6746}
6747
6748_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286749if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466750
6751 ac_cv_pthread_is_default=yes
6752 ac_cv_kthread=no
6753 ac_cv_pthread=no
6754
6755else
Matthias Klosea0bea5d2010-05-08 10:00:286756 ac_cv_pthread_is_default=no
Alexandre Vassalottia2db6872009-07-17 07:46:466757fi
Matthias Klosea0bea5d2010-05-08 10:00:286758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6759 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466760fi
6761
6762
Alexandre Vassalottia2db6872009-07-17 07:46:466763fi
6764
Matthias Klosea0bea5d2010-05-08 10:00:286765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
6766$as_echo "$ac_cv_pthread_is_default" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466767
6768
6769if test $ac_cv_pthread_is_default = yes
6770then
6771 ac_cv_kpthread=no
6772else
6773# -Kpthread, if available, provides the right #defines
6774# and linker options to make pthread_create available
6775# Some compilers won't report that they do not support -Kpthread,
6776# so we need to run a program to see whether it really made the
6777# function available.
Matthias Klosea0bea5d2010-05-08 10:00:286778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6779$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:336780if ${ac_cv_kpthread+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286781 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466782else
6783 ac_save_cc="$CC"
6784CC="$CC -Kpthread"
Matthias Klosea0bea5d2010-05-08 10:00:286785if test "$cross_compiling" = yes; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466786 ac_cv_kpthread=no
6787else
Matthias Klosea0bea5d2010-05-08 10:00:286788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466789/* end confdefs.h. */
6790
Stefan Krahae66ca62012-11-22 21:36:576791#include <stdio.h>
Alexandre Vassalottia2db6872009-07-17 07:46:466792#include <pthread.h>
6793
6794void* routine(void* p){return NULL;}
6795
6796int main(){
6797 pthread_t p;
6798 if(pthread_create(&p,NULL,routine,NULL)!=0)
6799 return 1;
6800 (void)pthread_detach(p);
6801 return 0;
6802}
6803
6804_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286805if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466806 ac_cv_kpthread=yes
6807else
Matthias Klosea0bea5d2010-05-08 10:00:286808 ac_cv_kpthread=no
Alexandre Vassalottia2db6872009-07-17 07:46:466809fi
Matthias Klosea0bea5d2010-05-08 10:00:286810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6811 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466812fi
6813
Alexandre Vassalottia2db6872009-07-17 07:46:466814CC="$ac_save_cc"
6815fi
6816
Matthias Klosea0bea5d2010-05-08 10:00:286817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6818$as_echo "$ac_cv_kpthread" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466819fi
6820
6821if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6822then
6823# -Kthread, if available, provides the right #defines
6824# and linker options to make pthread_create available
6825# Some compilers won't report that they do not support -Kthread,
6826# so we need to run a program to see whether it really made the
6827# function available.
Matthias Klosea0bea5d2010-05-08 10:00:286828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6829$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:336830if ${ac_cv_kthread+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286831 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466832else
6833 ac_save_cc="$CC"
6834CC="$CC -Kthread"
Matthias Klosea0bea5d2010-05-08 10:00:286835if test "$cross_compiling" = yes; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466836 ac_cv_kthread=no
6837else
Matthias Klosea0bea5d2010-05-08 10:00:286838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466839/* end confdefs.h. */
6840
Stefan Krahae66ca62012-11-22 21:36:576841#include <stdio.h>
Alexandre Vassalottia2db6872009-07-17 07:46:466842#include <pthread.h>
6843
6844void* routine(void* p){return NULL;}
6845
6846int main(){
6847 pthread_t p;
6848 if(pthread_create(&p,NULL,routine,NULL)!=0)
6849 return 1;
6850 (void)pthread_detach(p);
6851 return 0;
6852}
6853
6854_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286855if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466856 ac_cv_kthread=yes
6857else
Matthias Klosea0bea5d2010-05-08 10:00:286858 ac_cv_kthread=no
Alexandre Vassalottia2db6872009-07-17 07:46:466859fi
Matthias Klosea0bea5d2010-05-08 10:00:286860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6861 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466862fi
6863
Alexandre Vassalottia2db6872009-07-17 07:46:466864CC="$ac_save_cc"
6865fi
6866
Matthias Klosea0bea5d2010-05-08 10:00:286867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6868$as_echo "$ac_cv_kthread" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466869fi
6870
6871if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6872then
6873# -pthread, if available, provides the right #defines
6874# and linker options to make pthread_create available
6875# Some compilers won't report that they do not support -pthread,
6876# so we need to run a program to see whether it really made the
6877# function available.
Matthias Klosea0bea5d2010-05-08 10:00:286878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6879$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
doko@python.orgfa3f9a32013-01-25 14:32:316880if ${ac_cv_pthread+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286881 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466882else
6883 ac_save_cc="$CC"
6884CC="$CC -pthread"
Matthias Klosea0bea5d2010-05-08 10:00:286885if test "$cross_compiling" = yes; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466886 ac_cv_pthread=no
6887else
Matthias Klosea0bea5d2010-05-08 10:00:286888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466889/* end confdefs.h. */
6890
Stefan Krahae66ca62012-11-22 21:36:576891#include <stdio.h>
Alexandre Vassalottia2db6872009-07-17 07:46:466892#include <pthread.h>
6893
6894void* routine(void* p){return NULL;}
6895
6896int main(){
6897 pthread_t p;
6898 if(pthread_create(&p,NULL,routine,NULL)!=0)
6899 return 1;
6900 (void)pthread_detach(p);
6901 return 0;
6902}
6903
6904_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286905if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466906 ac_cv_pthread=yes
6907else
Matthias Klosea0bea5d2010-05-08 10:00:286908 ac_cv_pthread=no
Alexandre Vassalottia2db6872009-07-17 07:46:466909fi
Matthias Klosea0bea5d2010-05-08 10:00:286910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6911 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466912fi
6913
Alexandre Vassalottia2db6872009-07-17 07:46:466914CC="$ac_save_cc"
6915fi
6916
Matthias Klosea0bea5d2010-05-08 10:00:286917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6918$as_echo "$ac_cv_pthread" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466919fi
6920
6921# If we have set a CC compiler flag for thread support then
6922# check if it works for CXX, too.
6923ac_cv_cxx_thread=no
6924if test ! -z "$CXX"
6925then
Matthias Klosea0bea5d2010-05-08 10:00:286926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6927$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466928ac_save_cxx="$CXX"
6929
6930if test "$ac_cv_kpthread" = "yes"
6931then
6932 CXX="$CXX -Kpthread"
6933 ac_cv_cxx_thread=yes
6934elif test "$ac_cv_kthread" = "yes"
6935then
6936 CXX="$CXX -Kthread"
6937 ac_cv_cxx_thread=yes
6938elif test "$ac_cv_pthread" = "yes"
6939then
6940 CXX="$CXX -pthread"
6941 ac_cv_cxx_thread=yes
6942fi
6943
6944if test $ac_cv_cxx_thread = yes
6945then
6946 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
6947 $CXX -c conftest.$ac_ext 2>&5
6948 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
6949 && test -s conftest$ac_exeext && ./conftest$ac_exeext
6950 then
6951 ac_cv_cxx_thread=yes
6952 else
6953 ac_cv_cxx_thread=no
6954 fi
6955 rm -fr conftest*
6956fi
Matthias Klosea0bea5d2010-05-08 10:00:286957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6958$as_echo "$ac_cv_cxx_thread" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:466959fi
6960CXX="$ac_save_cxx"
6961
6962
6963# checks for header files
Matthias Klosea0bea5d2010-05-08 10:00:286964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6965$as_echo_n "checking for ANSI C header files... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:336966if ${ac_cv_header_stdc+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:286967 $as_echo_n "(cached) " >&6
Alexandre Vassalottia2db6872009-07-17 07:46:466968else
Matthias Klosea0bea5d2010-05-08 10:00:286969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466970/* end confdefs.h. */
6971#include <stdlib.h>
6972#include <stdarg.h>
6973#include <string.h>
6974#include <float.h>
6975
6976int
6977main ()
6978{
6979
6980 ;
6981 return 0;
6982}
6983_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:286984if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalottia2db6872009-07-17 07:46:466985 ac_cv_header_stdc=yes
6986else
Matthias Klosea0bea5d2010-05-08 10:00:286987 ac_cv_header_stdc=no
Alexandre Vassalottia2db6872009-07-17 07:46:466988fi
Alexandre Vassalottia2db6872009-07-17 07:46:466989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990
6991if test $ac_cv_header_stdc = yes; then
6992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Matthias Klosea0bea5d2010-05-08 10:00:286993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:466994/* end confdefs.h. */
6995#include <string.h>
6996
6997_ACEOF
6998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:286999 $EGREP "memchr" >/dev/null 2>&1; then :
7000
Alexandre Vassalottia2db6872009-07-17 07:46:467001else
7002 ac_cv_header_stdc=no
7003fi
Marc-André Lemburg6d5e5792010-04-30 17:20:147004rm -f conftest*
Alexandre Vassalottia2db6872009-07-17 07:46:467005
7006fi
7007
7008if test $ac_cv_header_stdc = yes; then
7009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Matthias Klosea0bea5d2010-05-08 10:00:287010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:467011/* end confdefs.h. */
7012#include <stdlib.h>
7013
7014_ACEOF
7015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:287016 $EGREP "free" >/dev/null 2>&1; then :
7017
Alexandre Vassalottia2db6872009-07-17 07:46:467018else
7019 ac_cv_header_stdc=no
7020fi
Marc-André Lemburg6d5e5792010-04-30 17:20:147021rm -f conftest*
Alexandre Vassalottia2db6872009-07-17 07:46:467022
7023fi
7024
7025if test $ac_cv_header_stdc = yes; then
7026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Matthias Klosea0bea5d2010-05-08 10:00:287027 if test "$cross_compiling" = yes; then :
Alexandre Vassalottia2db6872009-07-17 07:46:467028 :
7029else
Matthias Klosea0bea5d2010-05-08 10:00:287030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:467031/* end confdefs.h. */
7032#include <ctype.h>
7033#include <stdlib.h>
7034#if ((' ' & 0x0FF) == 0x020)
7035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7037#else
7038# define ISLOWER(c) \
7039 (('a' <= (c) && (c) <= 'i') \
7040 || ('j' <= (c) && (c) <= 'r') \
7041 || ('s' <= (c) && (c) <= 'z'))
7042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7043#endif
7044
7045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7046int
7047main ()
7048{
7049 int i;
7050 for (i = 0; i < 256; i++)
7051 if (XOR (islower (i), ISLOWER (i))
7052 || toupper (i) != TOUPPER (i))
7053 return 2;
7054 return 0;
7055}
7056_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287057if ac_fn_c_try_run "$LINENO"; then :
7058
Alexandre Vassalottia2db6872009-07-17 07:46:467059else
Matthias Klosea0bea5d2010-05-08 10:00:287060 ac_cv_header_stdc=no
Alexandre Vassalottia2db6872009-07-17 07:46:467061fi
Matthias Klosea0bea5d2010-05-08 10:00:287062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7063 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:467064fi
7065
Alexandre Vassalottia2db6872009-07-17 07:46:467066fi
7067fi
Matthias Klosea0bea5d2010-05-08 10:00:287068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7069$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Vassalottia2db6872009-07-17 07:46:467070if test $ac_cv_header_stdc = yes; then
7071
Matthias Klosea0bea5d2010-05-08 10:00:287072$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Vassalottia2db6872009-07-17 07:46:467073
7074fi
7075
Miss Islington (bot)6ccdad72018-01-24 09:51:397076for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:467077fcntl.h grp.h \
doko@ubuntu.comf27ec3e2014-04-17 18:11:197078ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
Martin v. Löwis40e9aed2006-10-02 15:20:377079shadow.h signal.h stdint.h stropts.h termios.h thread.h \
Martin v. Löwis14e73b12003-01-01 09:51:127080unistd.h utime.h \
Christian Heimes0e9ab5f2008-03-21 23:49:447081sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
7082sys/lock.h sys/mkdev.h sys/modem.h \
Benjamin Peterson6b1c9092016-12-20 07:54:257083sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
Martin v. Löwis8c255e42008-05-23 15:06:507084sys/termio.h sys/time.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:467085sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
Martin v. Löwis0347a9a2006-10-27 07:06:527086sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Christian Heimesffa70112017-09-05 15:08:457087bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h
Matthias Klosea0bea5d2010-05-08 10:00:287088do :
7089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Georg Brandl71f4fbb2011-02-25 11:04:507091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037092 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037094_ACEOF
7095
7096fi
7097
Guido van Rossum627b2d71993-12-24 10:39:167098done
7099
Guido van Rossum76be6ed1995-01-02 18:33:547100ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:037101for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Matthias Klosea0bea5d2010-05-08 10:00:287102 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7104$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337105if eval \${$as_ac_Header+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287106 $as_echo_n "(cached) " >&6
Guido van Rossum627b2d71993-12-24 10:39:167107else
Matthias Klosea0bea5d2010-05-08 10:00:287108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047109/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:547110#include <sys/types.h>
7111#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:037112
Martin v. Löwis11437992002-04-12 09:54:037113int
7114main ()
7115{
7116if ((DIR *) 0)
7117return 0;
7118 ;
7119 return 0;
7120}
7121_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287122if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:037123 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:267124else
Matthias Klosea0bea5d2010-05-08 10:00:287125 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:547126fi
Martin v. Löwiseba40652007-08-30 20:10:577127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:267128fi
Matthias Klosea0bea5d2010-05-08 10:00:287129eval ac_res=\$$as_ac_Header
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131$as_echo "$ac_res" >&6; }
Georg Brandl71f4fbb2011-02-25 11:04:507132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037133 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287134#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037135_ACEOF
7136
7137ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:267138fi
Martin v. Löwis11437992002-04-12 09:54:037139
Guido van Rossum76be6ed1995-01-02 18:33:547140done
7141# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7142if test $ac_header_dirent = dirent.h; then
Matthias Klosea0bea5d2010-05-08 10:00:287143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7144$as_echo_n "checking for library containing opendir... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337145if ${ac_cv_search_opendir+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287146 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:547147else
Martin v. Löwis11437992002-04-12 09:54:037148 ac_func_search_save_LIBS=$LIBS
Matthias Klosea0bea5d2010-05-08 10:00:287149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047150/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:037151
Martin v. Löwiseba40652007-08-30 20:10:577152/* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:037155#ifdef __cplusplus
7156extern "C"
7157#endif
Martin v. Löwis11437992002-04-12 09:54:037158char opendir ();
Martin v. Löwis11437992002-04-12 09:54:037159int
7160main ()
7161{
Martin v. Löwiseba40652007-08-30 20:10:577162return opendir ();
Martin v. Löwis11437992002-04-12 09:54:037163 ;
7164 return 0;
7165}
7166_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:577167for ac_lib in '' dir; do
7168 if test -z "$ac_lib"; then
7169 ac_res="none required"
7170 else
7171 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:217172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:577173 fi
Matthias Klosea0bea5d2010-05-08 10:00:287174 if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwiseba40652007-08-30 20:10:577175 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:297176fi
Matthias Klosea0bea5d2010-05-08 10:00:287177rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext
Matthias Klose3cef2a92012-03-14 22:39:337179 if ${ac_cv_search_opendir+:} false; then :
Martin v. Löwiseba40652007-08-30 20:10:577180 break
Skip Montanaro89e975f2007-08-22 19:05:217181fi
Martin v. Löwiseba40652007-08-30 20:10:577182done
Matthias Klose3cef2a92012-03-14 22:39:337183if ${ac_cv_search_opendir+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287184
Martin v. Löwiseba40652007-08-30 20:10:577185else
7186 ac_cv_search_opendir=no
7187fi
7188rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:037189LIBS=$ac_func_search_save_LIBS
7190fi
Matthias Klosea0bea5d2010-05-08 10:00:287191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7192$as_echo "$ac_cv_search_opendir" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577193ac_res=$ac_cv_search_opendir
Matthias Klosea0bea5d2010-05-08 10:00:287194if test "$ac_res" != no; then :
Martin v. Löwiseba40652007-08-30 20:10:577195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:267196
Guido van Rossum76be6ed1995-01-02 18:33:547197fi
Martin v. Löwis11437992002-04-12 09:54:037198
Michael W. Hudson54241132001-12-07 15:38:267199else
Matthias Klosea0bea5d2010-05-08 10:00:287200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7201$as_echo_n "checking for library containing opendir... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337202if ${ac_cv_search_opendir+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287203 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037204else
7205 ac_func_search_save_LIBS=$LIBS
Matthias Klosea0bea5d2010-05-08 10:00:287206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047207/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:037208
Martin v. Löwiseba40652007-08-30 20:10:577209/* Override any GCC internal prototype to avoid an error.
7210 Use char because int might match the return type of a GCC
7211 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:037212#ifdef __cplusplus
7213extern "C"
7214#endif
Martin v. Löwis11437992002-04-12 09:54:037215char opendir ();
Martin v. Löwis11437992002-04-12 09:54:037216int
7217main ()
7218{
Martin v. Löwiseba40652007-08-30 20:10:577219return opendir ();
Martin v. Löwis11437992002-04-12 09:54:037220 ;
7221 return 0;
7222}
7223_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:577224for ac_lib in '' x; do
7225 if test -z "$ac_lib"; then
7226 ac_res="none required"
7227 else
7228 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:217229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:577230 fi
Matthias Klosea0bea5d2010-05-08 10:00:287231 if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwiseba40652007-08-30 20:10:577232 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:297233fi
Matthias Klosea0bea5d2010-05-08 10:00:287234rm -f core conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext
Matthias Klose3cef2a92012-03-14 22:39:337236 if ${ac_cv_search_opendir+:} false; then :
Martin v. Löwiseba40652007-08-30 20:10:577237 break
Skip Montanaro89e975f2007-08-22 19:05:217238fi
Martin v. Löwiseba40652007-08-30 20:10:577239done
Matthias Klose3cef2a92012-03-14 22:39:337240if ${ac_cv_search_opendir+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287241
Martin v. Löwiseba40652007-08-30 20:10:577242else
7243 ac_cv_search_opendir=no
7244fi
7245rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:037246LIBS=$ac_func_search_save_LIBS
7247fi
Matthias Klosea0bea5d2010-05-08 10:00:287248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7249$as_echo "$ac_cv_search_opendir" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577250ac_res=$ac_cv_search_opendir
Matthias Klosea0bea5d2010-05-08 10:00:287251if test "$ac_res" != no; then :
Martin v. Löwiseba40652007-08-30 20:10:577252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:037253
Guido van Rossum76be6ed1995-01-02 18:33:547254fi
7255
7256fi
Guido van Rossum627b2d71993-12-24 10:39:167257
Matthias Klosea0bea5d2010-05-08 10:00:287258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7259$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337260if ${ac_cv_header_sys_types_h_makedev+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287261 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:307262else
Matthias Klosea0bea5d2010-05-08 10:00:287263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047264/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:307265#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:307266int
7267main ()
7268{
7269return makedev(0, 0);
7270 ;
7271 return 0;
7272}
7273_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287274if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:307275 ac_cv_header_sys_types_h_makedev=yes
7276else
Matthias Klosea0bea5d2010-05-08 10:00:287277 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:307278fi
Matthias Klosea0bea5d2010-05-08 10:00:287279rm -f core conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:307281
7282fi
Matthias Klosea0bea5d2010-05-08 10:00:287283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7284$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:307285
7286if test $ac_cv_header_sys_types_h_makedev = no; then
Matthias Klosea0bea5d2010-05-08 10:00:287287ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337288if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:047289
Matthias Klosea0bea5d2010-05-08 10:00:287290$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:307291
7292fi
7293
7294
7295
7296 if test $ac_cv_header_sys_mkdev_h = no; then
Matthias Klosea0bea5d2010-05-08 10:00:287297 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337298if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:047299
Matthias Klosea0bea5d2010-05-08 10:00:287300$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:307301
7302fi
7303
7304
7305 fi
7306fi
7307
Michael W. Hudson54241132001-12-07 15:38:267308
Martin v. Löwis11017b12006-01-14 18:12:577309# On Linux, netlink.h requires asm/types.h
Martin v. Löwis11017b12006-01-14 18:12:577310for ac_header in linux/netlink.h
Matthias Klosea0bea5d2010-05-08 10:00:287311do :
7312 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
Martin v. Löwis11017b12006-01-14 18:12:577313#ifdef HAVE_ASM_TYPES_H
7314#include <asm/types.h>
7315#endif
7316#ifdef HAVE_SYS_SOCKET_H
7317#include <sys/socket.h>
7318#endif
7319
Matthias Klosea0bea5d2010-05-08 10:00:287320"
Matthias Klose3cef2a92012-03-14 22:39:337321if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
Martin v. Löwis11017b12006-01-14 18:12:577322 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287323#define HAVE_LINUX_NETLINK_H 1
Martin v. Löwis11017b12006-01-14 18:12:577324_ACEOF
7325
7326fi
7327
7328done
7329
7330
Guido van Rossum627b2d71993-12-24 10:39:167331# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:297332was_it_defined=no
Matthias Klosea0bea5d2010-05-08 10:00:287333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
7334$as_echo_n "checking for clock_t in time.h... " >&6; }
7335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047336/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:547337#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:037338
7339_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:547340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:287341 $EGREP "clock_t" >/dev/null 2>&1; then :
Guido van Rossumda88dad1995-01-26 00:46:297342 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:167343else
Martin v. Löwis11437992002-04-12 09:54:037344
7345
Matthias Klosea0bea5d2010-05-08 10:00:287346$as_echo "#define clock_t long" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:167347
Martin v. Löwisc45929e2002-04-06 10:10:497348
Guido van Rossum627b2d71993-12-24 10:39:167349fi
Marc-André Lemburg6d5e5792010-04-30 17:20:147350rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:167351
Matthias Klosea0bea5d2010-05-08 10:00:287352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
7353$as_echo "$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:297354
Neal Norwitz11690112002-07-30 01:08:287355# Check whether using makedev requires defining _OSF_SOURCE
Matthias Klosea0bea5d2010-05-08 10:00:287356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
7357$as_echo_n "checking for makedev... " >&6; }
7358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047359/* end confdefs.h. */
Jesus Cea616de772010-04-28 10:32:307360
7361#if defined(MAJOR_IN_MKDEV)
7362#include <sys/mkdev.h>
7363#elif defined(MAJOR_IN_SYSMACROS)
7364#include <sys/sysmacros.h>
7365#else
Neal Norwitz6eb37f02003-02-23 23:28:157366#include <sys/types.h>
Jesus Cea616de772010-04-28 10:32:307367#endif
Neal Norwitz11690112002-07-30 01:08:287368int
7369main ()
7370{
7371 makedev(0, 0)
7372 ;
7373 return 0;
7374}
7375_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287376if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz11690112002-07-30 01:08:287377 ac_cv_has_makedev=yes
7378else
Matthias Klosea0bea5d2010-05-08 10:00:287379 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:287380fi
Matthias Klosea0bea5d2010-05-08 10:00:287381rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:287383if test "$ac_cv_has_makedev" = "no"; then
7384 # we didn't link, try if _OSF_SOURCE will allow us to link
Matthias Klosea0bea5d2010-05-08 10:00:287385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047386/* end confdefs.h. */
Neal Norwitz11690112002-07-30 01:08:287387
Neal Norwitz6eb37f02003-02-23 23:28:157388#define _OSF_SOURCE 1
7389#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:287390
Neal Norwitz11690112002-07-30 01:08:287391int
7392main ()
7393{
7394 makedev(0, 0)
7395 ;
7396 return 0;
7397}
7398_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287399if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz11690112002-07-30 01:08:287400 ac_cv_has_makedev=yes
7401else
Matthias Klosea0bea5d2010-05-08 10:00:287402 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:287403fi
Matthias Klosea0bea5d2010-05-08 10:00:287404rm -f core conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:287406 if test "$ac_cv_has_makedev" = "yes"; then
7407
Matthias Klosea0bea5d2010-05-08 10:00:287408$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
Neal Norwitz11690112002-07-30 01:08:287409
7410 fi
7411fi
Matthias Klosea0bea5d2010-05-08 10:00:287412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
7413$as_echo "$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:287414if test "$ac_cv_has_makedev" = "yes"; then
7415
Matthias Klosea0bea5d2010-05-08 10:00:287416$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
Neal Norwitz11690112002-07-30 01:08:287417
7418fi
7419
Martin v. Löwis399a6892002-10-04 10:22:027420# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7421# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7422# defined, but the compiler does not support pragma redefine_extname,
7423# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7424# structures (such as rlimit64) without declaring them. As a
7425# work-around, disable LFS on such configurations
7426
7427use_lfs=yes
Matthias Klosea0bea5d2010-05-08 10:00:287428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
7429$as_echo_n "checking Solaris LFS bug... " >&6; }
7430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047431/* end confdefs.h. */
Martin v. Löwis399a6892002-10-04 10:22:027432
7433#define _LARGEFILE_SOURCE 1
7434#define _FILE_OFFSET_BITS 64
7435#include <sys/resource.h>
7436
Martin v. Löwis399a6892002-10-04 10:22:027437int
7438main ()
7439{
7440struct rlimit foo;
7441 ;
7442 return 0;
7443}
7444_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287445if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis399a6892002-10-04 10:22:027446 sol_lfs_bug=no
7447else
Matthias Klosea0bea5d2010-05-08 10:00:287448 sol_lfs_bug=yes
Martin v. Löwis399a6892002-10-04 10:22:027449fi
Martin v. Löwiseba40652007-08-30 20:10:577450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:287451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
7452$as_echo "$sol_lfs_bug" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:027453if test "$sol_lfs_bug" = "yes"; then
7454 use_lfs=no
7455fi
7456
7457if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:397458# Two defines needed to enable largefile support on various platforms
7459# These may affect some typedefs
Georg Brandl94800df2011-02-25 11:09:027460case $ac_sys_system/$ac_sys_release in
7461AIX*)
7462
7463$as_echo "#define _LARGE_FILES 1" >>confdefs.h
7464
7465 ;;
7466esac
Guido van Rossum810cc512001-09-09 23:51:397467
Matthias Klosea0bea5d2010-05-08 10:00:287468$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:037469
7470
Matthias Klosea0bea5d2010-05-08 10:00:287471$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
Guido van Rossum810cc512001-09-09 23:51:397472
Martin v. Löwis399a6892002-10-04 10:22:027473fi
Michael W. Hudson54241132001-12-07 15:38:267474
Guido van Rossum84e7b241996-08-19 21:59:007475# Add some code to confdefs.h so that the test for off_t works on SCO
7476cat >> confdefs.h <<\EOF
7477#if defined(SCO_DS)
7478#undef _OFF_T
7479#endif
7480EOF
7481
Guido van Rossumef2255b2000-03-10 22:30:297482# Type availability checks
Matthias Klosea0bea5d2010-05-08 10:00:287483ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337484if test "x$ac_cv_type_mode_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:047485
Guido van Rossum76be6ed1995-01-02 18:33:547486else
Martin v. Löwis11437992002-04-12 09:54:037487
7488cat >>confdefs.h <<_ACEOF
7489#define mode_t int
7490_ACEOF
7491
7492fi
7493
Matthias Klosea0bea5d2010-05-08 10:00:287494ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337495if test "x$ac_cv_type_off_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:047496
Guido van Rossum76be6ed1995-01-02 18:33:547497else
Martin v. Löwis11437992002-04-12 09:54:037498
7499cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:577500#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:037501_ACEOF
7502
7503fi
7504
Matthias Klosea0bea5d2010-05-08 10:00:287505ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337506if test "x$ac_cv_type_pid_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:047507
Guido van Rossum76be6ed1995-01-02 18:33:547508else
Martin v. Löwis11437992002-04-12 09:54:037509
7510cat >>confdefs.h <<_ACEOF
7511#define pid_t int
7512_ACEOF
7513
7514fi
7515
Guido van Rossum48bdbfc1996-05-28 22:53:487516
Martin v. Löwis11437992002-04-12 09:54:037517cat >>confdefs.h <<_ACEOF
Matthias Klosecbf54b12010-05-08 11:04:187518#define RETSIGTYPE void
Martin v. Löwis11437992002-04-12 09:54:037519_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:167520
Matthias Klosea0bea5d2010-05-08 10:00:287521ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337522if test "x$ac_cv_type_size_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:047523
Guido van Rossum76be6ed1995-01-02 18:33:547524else
Martin v. Löwis11437992002-04-12 09:54:037525
7526cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:577527#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:037528_ACEOF
7529
7530fi
7531
Matthias Klosea0bea5d2010-05-08 10:00:287532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7533$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337534if ${ac_cv_type_uid_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287535 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037536else
Matthias Klosea0bea5d2010-05-08 10:00:287537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047538/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:547539#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:037540
7541_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:547542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:287543 $EGREP "uid_t" >/dev/null 2>&1; then :
Guido van Rossum76be6ed1995-01-02 18:33:547544 ac_cv_type_uid_t=yes
7545else
Guido van Rossum76be6ed1995-01-02 18:33:547546 ac_cv_type_uid_t=no
7547fi
Marc-André Lemburg6d5e5792010-04-30 17:20:147548rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:167549
Guido van Rossum76be6ed1995-01-02 18:33:547550fi
Matthias Klosea0bea5d2010-05-08 10:00:287551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7552$as_echo "$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:267553if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:547554
Matthias Klosea0bea5d2010-05-08 10:00:287555$as_echo "#define uid_t int" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:037556
7557
Matthias Klosea0bea5d2010-05-08 10:00:287558$as_echo "#define gid_t int" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:547559
7560fi
7561
Mark Dickinson17c50cd2012-12-02 13:13:567562
7563# There are two separate checks for each of the exact-width integer types we
7564# need. First we check whether the type is available using the usual
7565# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
7566# and <stdint.h> where available). We then also use the special type checks of
7567# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
7568# directly, #define's uint32_t to be a suitable type.
7569
7570ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7571if test "x$ac_cv_type_uint32_t" = xyes; then :
7572
7573$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
7574
7575fi
7576
Matthias Klosea0bea5d2010-05-08 10:00:287577ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7578case $ac_cv_c_uint32_t in #(
Mark Dickinsonefc82f72009-03-20 15:51:557579 no|yes) ;; #(
7580 *)
7581
Matthias Klosea0bea5d2010-05-08 10:00:287582$as_echo "#define _UINT32_T 1" >>confdefs.h
Mark Dickinsonefc82f72009-03-20 15:51:557583
7584
7585cat >>confdefs.h <<_ACEOF
7586#define uint32_t $ac_cv_c_uint32_t
7587_ACEOF
7588;;
7589 esac
7590
Mark Dickinson17c50cd2012-12-02 13:13:567591
7592ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7593if test "x$ac_cv_type_uint64_t" = xyes; then :
7594
7595$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
7596
7597fi
7598
Matthias Klosea0bea5d2010-05-08 10:00:287599ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7600case $ac_cv_c_uint64_t in #(
Mark Dickinsonefc82f72009-03-20 15:51:557601 no|yes) ;; #(
7602 *)
7603
Matthias Klosea0bea5d2010-05-08 10:00:287604$as_echo "#define _UINT64_T 1" >>confdefs.h
Mark Dickinsonefc82f72009-03-20 15:51:557605
7606
7607cat >>confdefs.h <<_ACEOF
7608#define uint64_t $ac_cv_c_uint64_t
7609_ACEOF
7610;;
7611 esac
7612
Mark Dickinson17c50cd2012-12-02 13:13:567613
7614ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7615if test "x$ac_cv_type_int32_t" = xyes; then :
7616
7617$as_echo "#define HAVE_INT32_T 1" >>confdefs.h
7618
7619fi
7620
Matthias Klosea0bea5d2010-05-08 10:00:287621ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7622case $ac_cv_c_int32_t in #(
Mark Dickinsonefc82f72009-03-20 15:51:557623 no|yes) ;; #(
7624 *)
7625
7626cat >>confdefs.h <<_ACEOF
7627#define int32_t $ac_cv_c_int32_t
7628_ACEOF
7629;;
Mark Dickinsonefc82f72009-03-20 15:51:557630esac
7631
Mark Dickinson17c50cd2012-12-02 13:13:567632
7633ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7634if test "x$ac_cv_type_int64_t" = xyes; then :
7635
7636$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
7637
7638fi
7639
Matthias Klosea0bea5d2010-05-08 10:00:287640ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7641case $ac_cv_c_int64_t in #(
Mark Dickinsonefc82f72009-03-20 15:51:557642 no|yes) ;; #(
7643 *)
7644
7645cat >>confdefs.h <<_ACEOF
7646#define int64_t $ac_cv_c_int64_t
7647_ACEOF
7648;;
Alexandre Vassalottia2db6872009-07-17 07:46:467649esac
Martin v. Löwis18e16552006-02-15 17:27:457650
Mark Dickinson17c50cd2012-12-02 13:13:567651
Matthias Klosea0bea5d2010-05-08 10:00:287652ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:337653if test "x$ac_cv_type_ssize_t" = xyes; then :
Martin v. Löwiseba40652007-08-30 20:10:577654
Matthias Klosea0bea5d2010-05-08 10:00:287655$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
Martin v. Löwis18e16552006-02-15 17:27:457656
7657fi
7658
Jack Jansendd19cf82001-12-06 22:36:177659
Michael W. Hudson54241132001-12-07 15:38:267660# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:127661# ANSI C requires sizeof(char) == 1, so no need to check it
Martin v. Löwiseba40652007-08-30 20:10:577662# The cast to long int works around a bug in the HP C Compiler
7663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7665# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7667$as_echo_n "checking size of int... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337668if ${ac_cv_sizeof_int+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287669 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037670else
Matthias Klosea0bea5d2010-05-08 10:00:287671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037672
Martin v. Löwis11437992002-04-12 09:54:037673else
Matthias Klosea0bea5d2010-05-08 10:00:287674 if test "$ac_cv_type_int" = yes; then
7675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507677as_fn_error 77 "cannot compute sizeof (int)
Matthias Klose3cef2a92012-03-14 22:39:337678See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577679 else
7680 ac_cv_sizeof_int=0
7681 fi
Martin v. Löwis11437992002-04-12 09:54:037682fi
Matthias Klosea0bea5d2010-05-08 10:00:287683
Martin v. Löwis11437992002-04-12 09:54:037684fi
Matthias Klosea0bea5d2010-05-08 10:00:287685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7686$as_echo "$ac_cv_sizeof_int" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577687
7688
7689
Martin v. Löwis11437992002-04-12 09:54:037690cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:167691#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:037692_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:167693
7694
Martin v. Löwiseba40652007-08-30 20:10:577695# The cast to long int works around a bug in the HP C Compiler
7696# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7697# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7698# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7700$as_echo_n "checking size of long... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337701if ${ac_cv_sizeof_long+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287702 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037703else
Matthias Klosea0bea5d2010-05-08 10:00:287704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037705
Martin v. Löwis11437992002-04-12 09:54:037706else
Matthias Klosea0bea5d2010-05-08 10:00:287707 if test "$ac_cv_type_long" = yes; then
7708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507710as_fn_error 77 "cannot compute sizeof (long)
Matthias Klose3cef2a92012-03-14 22:39:337711See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577712 else
7713 ac_cv_sizeof_long=0
7714 fi
Martin v. Löwis11437992002-04-12 09:54:037715fi
Matthias Klosea0bea5d2010-05-08 10:00:287716
Martin v. Löwis11437992002-04-12 09:54:037717fi
Matthias Klosea0bea5d2010-05-08 10:00:287718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7719$as_echo "$ac_cv_sizeof_long" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577720
7721
7722
Martin v. Löwis11437992002-04-12 09:54:037723cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:167724#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:037725_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:167726
7727
Martin v. Löwiseba40652007-08-30 20:10:577728# The cast to long int works around a bug in the HP C Compiler
7729# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7730# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7731# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7733$as_echo_n "checking size of void *... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337734if ${ac_cv_sizeof_void_p+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287735 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037736else
Matthias Klosea0bea5d2010-05-08 10:00:287737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037738
Martin v. Löwis11437992002-04-12 09:54:037739else
Matthias Klosea0bea5d2010-05-08 10:00:287740 if test "$ac_cv_type_void_p" = yes; then
7741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507743as_fn_error 77 "cannot compute sizeof (void *)
Matthias Klose3cef2a92012-03-14 22:39:337744See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577745 else
7746 ac_cv_sizeof_void_p=0
7747 fi
Martin v. Löwis11437992002-04-12 09:54:037748fi
Matthias Klosea0bea5d2010-05-08 10:00:287749
Martin v. Löwis11437992002-04-12 09:54:037750fi
Matthias Klosea0bea5d2010-05-08 10:00:287751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7752$as_echo "$ac_cv_sizeof_void_p" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577753
7754
7755
Martin v. Löwis11437992002-04-12 09:54:037756cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:157757#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:037758_ACEOF
Guido van Rossumad678af1998-10-02 14:42:157759
7760
Martin v. Löwiseba40652007-08-30 20:10:577761# The cast to long int works around a bug in the HP C Compiler
7762# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7763# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7764# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7766$as_echo_n "checking size of short... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337767if ${ac_cv_sizeof_short+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287768 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037769else
Matthias Klosea0bea5d2010-05-08 10:00:287770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037771
Martin v. Löwis11437992002-04-12 09:54:037772else
Matthias Klosea0bea5d2010-05-08 10:00:287773 if test "$ac_cv_type_short" = yes; then
7774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507776as_fn_error 77 "cannot compute sizeof (short)
Matthias Klose3cef2a92012-03-14 22:39:337777See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577778 else
7779 ac_cv_sizeof_short=0
7780 fi
Martin v. Löwis11437992002-04-12 09:54:037781fi
Matthias Klosea0bea5d2010-05-08 10:00:287782
Martin v. Löwis11437992002-04-12 09:54:037783fi
Matthias Klosea0bea5d2010-05-08 10:00:287784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7785$as_echo "$ac_cv_sizeof_short" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577786
7787
7788
Martin v. Löwis11437992002-04-12 09:54:037789cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:297790#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:037791_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:297792
7793
Martin v. Löwiseba40652007-08-30 20:10:577794# The cast to long int works around a bug in the HP C Compiler
7795# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7796# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7797# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7799$as_echo_n "checking size of float... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337800if ${ac_cv_sizeof_float+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287801 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037802else
Matthias Klosea0bea5d2010-05-08 10:00:287803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037804
Martin v. Löwis11437992002-04-12 09:54:037805else
Matthias Klosea0bea5d2010-05-08 10:00:287806 if test "$ac_cv_type_float" = yes; then
7807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507809as_fn_error 77 "cannot compute sizeof (float)
Matthias Klose3cef2a92012-03-14 22:39:337810See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577811 else
7812 ac_cv_sizeof_float=0
7813 fi
Martin v. Löwis11437992002-04-12 09:54:037814fi
Matthias Klosea0bea5d2010-05-08 10:00:287815
Martin v. Löwis11437992002-04-12 09:54:037816fi
Matthias Klosea0bea5d2010-05-08 10:00:287817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7818$as_echo "$ac_cv_sizeof_float" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577819
7820
7821
Martin v. Löwis11437992002-04-12 09:54:037822cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:297823#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:037824_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:297825
7826
Martin v. Löwiseba40652007-08-30 20:10:577827# The cast to long int works around a bug in the HP C Compiler
7828# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7829# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7830# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7832$as_echo_n "checking size of double... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337833if ${ac_cv_sizeof_double+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287834 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037835else
Matthias Klosea0bea5d2010-05-08 10:00:287836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037837
Martin v. Löwis11437992002-04-12 09:54:037838else
Matthias Klosea0bea5d2010-05-08 10:00:287839 if test "$ac_cv_type_double" = yes; then
7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507842as_fn_error 77 "cannot compute sizeof (double)
Matthias Klose3cef2a92012-03-14 22:39:337843See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577844 else
7845 ac_cv_sizeof_double=0
7846 fi
Martin v. Löwis11437992002-04-12 09:54:037847fi
Matthias Klosea0bea5d2010-05-08 10:00:287848
Martin v. Löwis11437992002-04-12 09:54:037849fi
Matthias Klosea0bea5d2010-05-08 10:00:287850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7851$as_echo "$ac_cv_sizeof_double" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577852
7853
7854
Martin v. Löwis11437992002-04-12 09:54:037855cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:297856#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:037857_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:297858
7859
Martin v. Löwiseba40652007-08-30 20:10:577860# The cast to long int works around a bug in the HP C Compiler
7861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7863# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7865$as_echo_n "checking size of fpos_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337866if ${ac_cv_sizeof_fpos_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287867 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037868else
Matthias Klosea0bea5d2010-05-08 10:00:287869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037870
Martin v. Löwis11437992002-04-12 09:54:037871else
Matthias Klosea0bea5d2010-05-08 10:00:287872 if test "$ac_cv_type_fpos_t" = yes; then
7873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507875as_fn_error 77 "cannot compute sizeof (fpos_t)
Matthias Klose3cef2a92012-03-14 22:39:337876See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577877 else
7878 ac_cv_sizeof_fpos_t=0
7879 fi
Martin v. Löwis11437992002-04-12 09:54:037880fi
Matthias Klosea0bea5d2010-05-08 10:00:287881
Martin v. Löwis11437992002-04-12 09:54:037882fi
Matthias Klosea0bea5d2010-05-08 10:00:287883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7884$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577885
7886
7887
Martin v. Löwis11437992002-04-12 09:54:037888cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:537889#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:037890_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:537891
Michael W. Hudson54241132001-12-07 15:38:267892
Martin v. Löwiseba40652007-08-30 20:10:577893# The cast to long int works around a bug in the HP C Compiler
7894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7896# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7898$as_echo_n "checking size of size_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337899if ${ac_cv_sizeof_size_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287900 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:457901else
Matthias Klosea0bea5d2010-05-08 10:00:287902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
Martin v. Löwis18e16552006-02-15 17:27:457903
Martin v. Löwis18e16552006-02-15 17:27:457904else
Matthias Klosea0bea5d2010-05-08 10:00:287905 if test "$ac_cv_type_size_t" = yes; then
7906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507908as_fn_error 77 "cannot compute sizeof (size_t)
Matthias Klose3cef2a92012-03-14 22:39:337909See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:577910 else
7911 ac_cv_sizeof_size_t=0
7912 fi
Martin v. Löwis18e16552006-02-15 17:27:457913fi
Matthias Klosea0bea5d2010-05-08 10:00:287914
Martin v. Löwis18e16552006-02-15 17:27:457915fi
Matthias Klosea0bea5d2010-05-08 10:00:287916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7917$as_echo "$ac_cv_sizeof_size_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:577918
7919
7920
Martin v. Löwis18e16552006-02-15 17:27:457921cat >>confdefs.h <<_ACEOF
7922#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7923_ACEOF
7924
7925
Christian Heimes951cc0f2008-01-31 23:08:237926# The cast to long int works around a bug in the HP C Compiler
7927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7929# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
7931$as_echo_n "checking size of pid_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337932if ${ac_cv_sizeof_pid_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287933 $as_echo_n "(cached) " >&6
Christian Heimes951cc0f2008-01-31 23:08:237934else
Matthias Klosea0bea5d2010-05-08 10:00:287935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
Christian Heimes951cc0f2008-01-31 23:08:237936
Christian Heimes951cc0f2008-01-31 23:08:237937else
Matthias Klosea0bea5d2010-05-08 10:00:287938 if test "$ac_cv_type_pid_t" = yes; then
7939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:507941as_fn_error 77 "cannot compute sizeof (pid_t)
Matthias Klose3cef2a92012-03-14 22:39:337942See \`config.log' for more details" "$LINENO" 5; }
Christian Heimes951cc0f2008-01-31 23:08:237943 else
7944 ac_cv_sizeof_pid_t=0
7945 fi
7946fi
Matthias Klosea0bea5d2010-05-08 10:00:287947
Christian Heimes951cc0f2008-01-31 23:08:237948fi
Matthias Klosea0bea5d2010-05-08 10:00:287949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
7950$as_echo "$ac_cv_sizeof_pid_t" >&6; }
Christian Heimes951cc0f2008-01-31 23:08:237951
7952
7953
7954cat >>confdefs.h <<_ACEOF
7955#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
7956_ACEOF
7957
7958
Michael W. Hudson54241132001-12-07 15:38:267959
Matthias Klosea0bea5d2010-05-08 10:00:287960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7961$as_echo_n "checking for long long support... " >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:567962have_long_long=no
Matthias Klosea0bea5d2010-05-08 10:00:287963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047964/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:567965
Martin v. Löwis11437992002-04-12 09:54:037966int
7967main ()
7968{
Guido van Rossumec95c7b1998-08-04 17:59:567969long long x; x = (long long)0;
Martin v. Löwis11437992002-04-12 09:54:037970 ;
7971 return 0;
7972}
7973_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:287974if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:037975
7976
Matthias Klosea0bea5d2010-05-08 10:00:287977$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:037978
Martin v. Löwisc45929e2002-04-06 10:10:497979 have_long_long=yes
7980
Guido van Rossumec95c7b1998-08-04 17:59:567981fi
Martin v. Löwiseba40652007-08-30 20:10:577982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:287983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
7984$as_echo "$have_long_long" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:187985if test "$have_long_long" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:577986# The cast to long int works around a bug in the HP C Compiler
7987# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7988# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7989# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:287990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7991$as_echo_n "checking size of long long... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:337992if ${ac_cv_sizeof_long_long+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:287993 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:037994else
Matthias Klosea0bea5d2010-05-08 10:00:287995 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:037996
Martin v. Löwis11437992002-04-12 09:54:037997else
Matthias Klosea0bea5d2010-05-08 10:00:287998 if test "$ac_cv_type_long_long" = yes; then
7999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508001as_fn_error 77 "cannot compute sizeof (long long)
Matthias Klose3cef2a92012-03-14 22:39:338002See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:578003 else
8004 ac_cv_sizeof_long_long=0
8005 fi
Martin v. Löwis11437992002-04-12 09:54:038006fi
Matthias Klosea0bea5d2010-05-08 10:00:288007
Martin v. Löwis11437992002-04-12 09:54:038008fi
Matthias Klosea0bea5d2010-05-08 10:00:288009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8010$as_echo "$ac_cv_sizeof_long_long" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:578011
8012
8013
Martin v. Löwis11437992002-04-12 09:54:038014cat >>confdefs.h <<_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:568015#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Martin v. Löwis11437992002-04-12 09:54:038016_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:568017
Michael W. Hudson54241132001-12-07 15:38:268018
Guido van Rossumec95c7b1998-08-04 17:59:568019fi
8020
Matthias Klosea0bea5d2010-05-08 10:00:288021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8022$as_echo_n "checking for long double support... " >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:148023have_long_double=no
Matthias Klosea0bea5d2010-05-08 10:00:288024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsondc1688a2008-06-27 22:20:148025/* end confdefs.h. */
8026
8027int
8028main ()
8029{
Matthias Klosec511b472010-05-08 11:01:398030long double x; x = (long double)0;
Mark Dickinsondc1688a2008-06-27 22:20:148031 ;
8032 return 0;
8033}
8034_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:288035if ac_fn_c_try_compile "$LINENO"; then :
Mark Dickinsondc1688a2008-06-27 22:20:148036
8037
Matthias Klosea0bea5d2010-05-08 10:00:288038$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Mark Dickinsondc1688a2008-06-27 22:20:148039
8040 have_long_double=yes
8041
Mark Dickinsondc1688a2008-06-27 22:20:148042fi
Mark Dickinsondc1688a2008-06-27 22:20:148043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:288044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8045$as_echo "$have_long_double" >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:148046if test "$have_long_double" = yes ; then
Mark Dickinsondc1688a2008-06-27 22:20:148047# The cast to long int works around a bug in the HP C Compiler
8048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8050# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:288051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8052$as_echo_n "checking size of long double... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338053if ${ac_cv_sizeof_long_double+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288054 $as_echo_n "(cached) " >&6
Mark Dickinsondc1688a2008-06-27 22:20:148055else
Matthias Klosea0bea5d2010-05-08 10:00:288056 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
Mark Dickinsondc1688a2008-06-27 22:20:148057
Mark Dickinsondc1688a2008-06-27 22:20:148058else
Matthias Klosea0bea5d2010-05-08 10:00:288059 if test "$ac_cv_type_long_double" = yes; then
8060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508062as_fn_error 77 "cannot compute sizeof (long double)
Matthias Klose3cef2a92012-03-14 22:39:338063See \`config.log' for more details" "$LINENO" 5; }
Mark Dickinsondc1688a2008-06-27 22:20:148064 else
8065 ac_cv_sizeof_long_double=0
8066 fi
8067fi
Matthias Klosea0bea5d2010-05-08 10:00:288068
Mark Dickinsondc1688a2008-06-27 22:20:148069fi
Matthias Klosea0bea5d2010-05-08 10:00:288070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8071$as_echo "$ac_cv_sizeof_long_double" >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:148072
8073
8074
8075cat >>confdefs.h <<_ACEOF
8076#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8077_ACEOF
8078
8079
8080fi
8081
Matthias Klosea0bea5d2010-05-08 10:00:288082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
8083$as_echo_n "checking for _Bool support... " >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:078084have_c99_bool=no
Matthias Klosea0bea5d2010-05-08 10:00:288085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:078086/* end confdefs.h. */
8087
8088int
8089main ()
8090{
8091_Bool x; x = (_Bool)0;
8092 ;
8093 return 0;
8094}
8095_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:288096if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisaef4c6b2007-01-21 09:33:078097
8098
Matthias Klosea0bea5d2010-05-08 10:00:288099$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
Martin v. Löwisaef4c6b2007-01-21 09:33:078100
8101 have_c99_bool=yes
8102
Martin v. Löwisaef4c6b2007-01-21 09:33:078103fi
Martin v. Löwiseba40652007-08-30 20:10:578104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:288105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
8106$as_echo "$have_c99_bool" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:078107if test "$have_c99_bool" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:578108# The cast to long int works around a bug in the HP C Compiler
8109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8111# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:288112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8113$as_echo_n "checking size of _Bool... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338114if ${ac_cv_sizeof__Bool+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288115 $as_echo_n "(cached) " >&6
Martin v. Löwisaef4c6b2007-01-21 09:33:078116else
Matthias Klosea0bea5d2010-05-08 10:00:288117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
Martin v. Löwisaef4c6b2007-01-21 09:33:078118
Martin v. Löwisaef4c6b2007-01-21 09:33:078119else
Matthias Klosea0bea5d2010-05-08 10:00:288120 if test "$ac_cv_type__Bool" = yes; then
8121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508123as_fn_error 77 "cannot compute sizeof (_Bool)
Matthias Klose3cef2a92012-03-14 22:39:338124See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:578125 else
8126 ac_cv_sizeof__Bool=0
8127 fi
Martin v. Löwisaef4c6b2007-01-21 09:33:078128fi
Matthias Klosea0bea5d2010-05-08 10:00:288129
Martin v. Löwisaef4c6b2007-01-21 09:33:078130fi
Matthias Klosea0bea5d2010-05-08 10:00:288131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8132$as_echo "$ac_cv_sizeof__Bool" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:578133
8134
8135
Martin v. Löwisaef4c6b2007-01-21 09:33:078136cat >>confdefs.h <<_ACEOF
8137#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8138_ACEOF
8139
8140
8141fi
8142
Matthias Klosea0bea5d2010-05-08 10:00:288143ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
Martin v. Löwis40e9aed2006-10-02 15:20:378144 #include <stdint.h>
8145 #endif
Antoine Pitrou7be5a652010-10-10 08:14:418146 #ifdef HAVE_INTTYPES_H
8147 #include <inttypes.h>
8148 #endif
Matthias Klosea0bea5d2010-05-08 10:00:288149"
Matthias Klose3cef2a92012-03-14 22:39:338150if test "x$ac_cv_type_uintptr_t" = xyes; then :
Martin v. Löwisebe26702006-10-02 14:55:518151
8152cat >>confdefs.h <<_ACEOF
8153#define HAVE_UINTPTR_T 1
8154_ACEOF
8155
Martin v. Löwiseba40652007-08-30 20:10:578156# The cast to long int works around a bug in the HP C Compiler
8157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8159# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:288160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8161$as_echo_n "checking size of uintptr_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338162if ${ac_cv_sizeof_uintptr_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288163 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038164else
Matthias Klosea0bea5d2010-05-08 10:00:288165 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038166
Martin v. Löwis11437992002-04-12 09:54:038167else
Matthias Klosea0bea5d2010-05-08 10:00:288168 if test "$ac_cv_type_uintptr_t" = yes; then
8169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508171as_fn_error 77 "cannot compute sizeof (uintptr_t)
Matthias Klose3cef2a92012-03-14 22:39:338172See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:578173 else
8174 ac_cv_sizeof_uintptr_t=0
8175 fi
Martin v. Löwis11437992002-04-12 09:54:038176fi
Matthias Klosea0bea5d2010-05-08 10:00:288177
Martin v. Löwis11437992002-04-12 09:54:038178fi
Matthias Klosea0bea5d2010-05-08 10:00:288179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8180$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:578181
8182
8183
Martin v. Löwis11437992002-04-12 09:54:038184cat >>confdefs.h <<_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:338185#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
Martin v. Löwis11437992002-04-12 09:54:038186_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:338187
Michael W. Hudson54241132001-12-07 15:38:268188
Barry Warsawbc7c7f92000-08-18 04:53:338189fi
8190
Martin v. Löwisebe26702006-10-02 14:55:518191
Alexandre Vassalotti2ccefe12009-07-17 23:17:488192# The cast to long int works around a bug in the HP C Compiler
8193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8195# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:288196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8197$as_echo_n "checking size of off_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338198if ${ac_cv_sizeof_off_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288199 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:488200else
Matthias Klosea0bea5d2010-05-08 10:00:288201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
Alexandre Vassalotti2ccefe12009-07-17 23:17:488202#ifdef HAVE_SYS_TYPES_H
8203#include <sys/types.h>
8204#endif
8205
Matthias Klosea0bea5d2010-05-08 10:00:288206"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:488207
Alexandre Vassalotti2ccefe12009-07-17 23:17:488208else
Matthias Klosea0bea5d2010-05-08 10:00:288209 if test "$ac_cv_type_off_t" = yes; then
8210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508212as_fn_error 77 "cannot compute sizeof (off_t)
Matthias Klose3cef2a92012-03-14 22:39:338213See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalotti2ccefe12009-07-17 23:17:488214 else
8215 ac_cv_sizeof_off_t=0
8216 fi
Guido van Rossumf98e2a71999-01-06 18:53:348217fi
Matthias Klosea0bea5d2010-05-08 10:00:288218
Guido van Rossumf98e2a71999-01-06 18:53:348219fi
Matthias Klosea0bea5d2010-05-08 10:00:288220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8221$as_echo "$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:038222
Alexandre Vassalotti2ccefe12009-07-17 23:17:488223
8224
Martin v. Löwis11437992002-04-12 09:54:038225cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:348226#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:038227_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:348228
Michael W. Hudson54241132001-12-07 15:38:268229
Alexandre Vassalotti2ccefe12009-07-17 23:17:488230
Matthias Klosea0bea5d2010-05-08 10:00:288231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8232$as_echo_n "checking whether to enable large file support... " >&6; }
Mark Dickinson0ef0b912009-12-31 21:11:488233if test "$have_long_long" = yes
8234then
8235if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
Guido van Rossum96f2eb91999-04-10 16:02:188236 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:348237
Matthias Klosea0bea5d2010-05-08 10:00:288238$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038239
Matthias Klosea0bea5d2010-05-08 10:00:288240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8241$as_echo "yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:348242else
Matthias Klosea0bea5d2010-05-08 10:00:288243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:348245fi
Mark Dickinson0ef0b912009-12-31 21:11:488246else
Matthias Klosea0bea5d2010-05-08 10:00:288247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
Mark Dickinson0ef0b912009-12-31 21:11:488249fi
Guido van Rossumf98e2a71999-01-06 18:53:348250
Alexandre Vassalotti2ccefe12009-07-17 23:17:488251# The cast to long int works around a bug in the HP C Compiler
8252# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8253# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8254# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:288255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8256$as_echo_n "checking size of time_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338257if ${ac_cv_sizeof_time_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288258 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:488259else
Matthias Klosea0bea5d2010-05-08 10:00:288260 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
Alexandre Vassalotti2ccefe12009-07-17 23:17:488261#ifdef HAVE_SYS_TYPES_H
8262#include <sys/types.h>
8263#endif
8264#ifdef HAVE_TIME_H
8265#include <time.h>
8266#endif
8267
Matthias Klosea0bea5d2010-05-08 10:00:288268"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:488269
Alexandre Vassalotti2ccefe12009-07-17 23:17:488270else
Matthias Klosea0bea5d2010-05-08 10:00:288271 if test "$ac_cv_type_time_t" = yes; then
8272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508274as_fn_error 77 "cannot compute sizeof (time_t)
Matthias Klose3cef2a92012-03-14 22:39:338275See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalotti2ccefe12009-07-17 23:17:488276 else
8277 ac_cv_sizeof_time_t=0
8278 fi
Guido van Rossumb9a22a12000-06-30 02:48:538279fi
Matthias Klosea0bea5d2010-05-08 10:00:288280
Guido van Rossumb9a22a12000-06-30 02:48:538281fi
Matthias Klosea0bea5d2010-05-08 10:00:288282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8283$as_echo "$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:038284
Alexandre Vassalotti2ccefe12009-07-17 23:17:488285
8286
Martin v. Löwis11437992002-04-12 09:54:038287cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538288#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:038289_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538290
Michael W. Hudson54241132001-12-07 15:38:268291
8292
Trent Mick635f6fb2000-08-23 21:33:058293# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:108294ac_save_cc="$CC"
8295if test "$ac_cv_kpthread" = "yes"
8296then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:308297elif test "$ac_cv_kthread" = "yes"
8298then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:518299elif test "$ac_cv_pthread" = "yes"
8300then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:108301fi
Matthias Klosea0bea5d2010-05-08 10:00:288302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8303$as_echo_n "checking for pthread_t... " >&6; }
Trent Mick635f6fb2000-08-23 21:33:058304have_pthread_t=no
Matthias Klosea0bea5d2010-05-08 10:00:288305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048306/* end confdefs.h. */
Matthias Klosec511b472010-05-08 11:01:398307
8308 #include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:038309int
8310main ()
8311{
Guido van Rossum12580492000-09-24 16:47:198312pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:038313 ;
8314 return 0;
8315}
Matthias Klosec511b472010-05-08 11:01:398316
Martin v. Löwis11437992002-04-12 09:54:038317_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:288318if ac_fn_c_try_compile "$LINENO"; then :
Trent Mick635f6fb2000-08-23 21:33:058319 have_pthread_t=yes
Trent Mick635f6fb2000-08-23 21:33:058320fi
Martin v. Löwiseba40652007-08-30 20:10:578321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:288322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8323$as_echo "$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:058324if test "$have_pthread_t" = yes ; then
Matthias Klosea0bea5d2010-05-08 10:00:288325 # The cast to long int works around a bug in the HP C Compiler
Alexandre Vassalotti2ccefe12009-07-17 23:17:488326# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8327# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8328# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:288329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8330$as_echo_n "checking size of pthread_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338331if ${ac_cv_sizeof_pthread_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288332 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:488333else
Matthias Klosea0bea5d2010-05-08 10:00:288334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
Alexandre Vassalotti2ccefe12009-07-17 23:17:488335#ifdef HAVE_PTHREAD_H
8336#include <pthread.h>
8337#endif
8338
Matthias Klosea0bea5d2010-05-08 10:00:288339"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:488340
Alexandre Vassalotti2ccefe12009-07-17 23:17:488341else
Matthias Klosea0bea5d2010-05-08 10:00:288342 if test "$ac_cv_type_pthread_t" = yes; then
8343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:508345as_fn_error 77 "cannot compute sizeof (pthread_t)
Matthias Klose3cef2a92012-03-14 22:39:338346See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalotti2ccefe12009-07-17 23:17:488347 else
8348 ac_cv_sizeof_pthread_t=0
8349 fi
Trent Mick635f6fb2000-08-23 21:33:058350fi
Matthias Klosea0bea5d2010-05-08 10:00:288351
Trent Mick635f6fb2000-08-23 21:33:058352fi
Matthias Klosea0bea5d2010-05-08 10:00:288353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8354$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:038355
Alexandre Vassalotti2ccefe12009-07-17 23:17:488356
8357
Martin v. Löwis11437992002-04-12 09:54:038358cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:058359#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:038360_ACEOF
Trent Mick635f6fb2000-08-23 21:33:058361
Alexandre Vassalotti2ccefe12009-07-17 23:17:488362
Trent Mick635f6fb2000-08-23 21:33:058363fi
Martin v. Löwis123cbd22001-07-19 14:21:108364CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:058365
Matthias Klosea0bea5d2010-05-08 10:00:288366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
8367$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:578368# Check whether --enable-toolbox-glue was given.
Matthias Klosea0bea5d2010-05-08 10:00:288369if test "${enable_toolbox_glue+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:578370 enableval=$enable_toolbox_glue;
8371fi
Jack Jansene578a632001-08-15 01:27:148372
8373
8374if test -z "$enable_toolbox_glue"
Martin v. Löwis11437992002-04-12 09:54:038375then
Jack Jansene578a632001-08-15 01:27:148376 case $ac_sys_system/$ac_sys_release in
8377 Darwin/*)
8378 enable_toolbox_glue="yes";;
8379 *)
8380 enable_toolbox_glue="no";;
8381 esac
8382fi
8383case "$enable_toolbox_glue" in
8384yes)
Jack Jansene578a632001-08-15 01:27:148385 extra_machdep_objs="Python/mactoolboxglue.o"
Anthony Baxtereef2d3b2004-11-06 04:45:338386 extra_undefs="-u _PyMac_Error"
Martin v. Löwis11437992002-04-12 09:54:038387
Matthias Klosea0bea5d2010-05-08 10:00:288388$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
Jack Jansene578a632001-08-15 01:27:148389
8390 ;;
8391*)
Jack Jansene578a632001-08-15 01:27:148392 extra_machdep_objs=""
Jack Jansen591cbed2001-08-15 13:55:158393 extra_undefs=""
Jack Jansene578a632001-08-15 01:27:148394 ;;
8395esac
Matthias Klosea0bea5d2010-05-08 10:00:288396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
8397$as_echo "$enable_toolbox_glue" >&6; }
Michael W. Hudson54241132001-12-07 15:38:268398
Guido van Rossum54ecc3d1999-01-27 17:53:118399
Ronald Oussoren0d236eb2008-06-06 21:31:338400
Guido van Rossum54ecc3d1999-01-27 17:53:118401case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:408402 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:478403 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8404 ;;
8405 Darwin/*)
8406 OTHER_LIBTOOL_OPT=""
8407 ;;
8408esac
8409
8410
Ronald Oussoren25967582009-09-06 10:00:268411
Bob Ippolito7026a0a2005-03-28 23:23:478412case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:408413 Darwin/[01567]\..*)
Ronald Oussoren988117f2006-04-29 11:31:358414 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8415 if test "${enable_universalsdk}"; then
8416 :
8417 else
Ronald Oussorenbc0e83c2010-02-11 13:26:548418 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
Ronald Oussoren988117f2006-04-29 11:31:358419 fi
Jack Jansenb36687a2004-07-16 08:43:478420 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:128421 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:358422 Darwin/*)
Ronald Oussorena55af9a2010-01-17 16:25:578423 gcc_version=`gcc -dumpversion`
Bob Ippolito7026a0a2005-03-28 23:23:478424 if test ${gcc_version} '<' 4.0
8425 then
8426 LIBTOOL_CRUFT="-lcc_dynamic"
8427 else
8428 LIBTOOL_CRUFT=""
8429 fi
Matthias Klosea0bea5d2010-05-08 10:00:288430 if test "$cross_compiling" = yes; then :
Ronald Oussoren23d92532009-09-07 06:12:008431 ac_osx_32bit=yes
Ronald Oussoren25967582009-09-06 10:00:268432else
Matthias Klosea0bea5d2010-05-08 10:00:288433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ronald Oussoren25967582009-09-06 10:00:268434/* end confdefs.h. */
Ronald Oussoren23d92532009-09-07 06:12:008435
Ronald Oussoren25967582009-09-06 10:00:268436 #include <unistd.h>
8437 int main(int argc, char*argv[])
8438 {
8439 if (sizeof(long) == 4) {
8440 return 0;
8441 } else {
8442 return 1;
8443 }
Ronald Oussoren84ddd722009-09-08 07:17:108444 }
Ronald Oussoren23d92532009-09-07 06:12:008445
Ronald Oussoren25967582009-09-06 10:00:268446_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:288447if ac_fn_c_try_run "$LINENO"; then :
Ronald Oussoren25967582009-09-06 10:00:268448 ac_osx_32bit=yes
8449else
Matthias Klosea0bea5d2010-05-08 10:00:288450 ac_osx_32bit=no
Ronald Oussoren25967582009-09-06 10:00:268451fi
Matthias Klosea0bea5d2010-05-08 10:00:288452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
Ronald Oussoren25967582009-09-06 10:00:268454fi
8455
8456
Ronald Oussoren25967582009-09-06 10:00:268457 if test "${ac_osx_32bit}" = "yes"; then
Ronald Oussorenbc0e83c2010-02-11 13:26:548458 case `/usr/bin/arch` in
Ronald Oussoren25967582009-09-06 10:00:268459 i386)
8460 MACOSX_DEFAULT_ARCH="i386"
8461 ;;
8462 ppc)
8463 MACOSX_DEFAULT_ARCH="ppc"
8464 ;;
8465 *)
Georg Brandl71f4fbb2011-02-25 11:04:508466 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren25967582009-09-06 10:00:268467 ;;
8468 esac
8469 else
Ronald Oussorenbc0e83c2010-02-11 13:26:548470 case `/usr/bin/arch` in
Ronald Oussoren25967582009-09-06 10:00:268471 i386)
8472 MACOSX_DEFAULT_ARCH="x86_64"
8473 ;;
8474 ppc)
8475 MACOSX_DEFAULT_ARCH="ppc64"
8476 ;;
8477 *)
Georg Brandl71f4fbb2011-02-25 11:04:508478 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren25967582009-09-06 10:00:268479 ;;
8480 esac
8481
Ronald Oussoren25967582009-09-06 10:00:268482 fi
8483
8484 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
Jack Jansenb36687a2004-07-16 08:43:478485 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:148486 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:118487esac
8488
Matthias Klosea0bea5d2010-05-08 10:00:288489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8490$as_echo_n "checking for --enable-framework... " >&6; }
Jack Jansene578a632001-08-15 01:27:148491if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:118492then
Skip Montanarodecc6a42003-01-01 20:07:498493 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:038494 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:148495 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:118496
Matthias Klosea0bea5d2010-05-08 10:00:288497$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038498
Matthias Klosea0bea5d2010-05-08 10:00:288499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8500$as_echo "yes" >&6; }
Ronald Oussoren450d5612009-06-08 21:12:418501 if test $enable_shared = "yes"
8502 then
Georg Brandl71f4fbb2011-02-25 11:04:508503 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
Ronald Oussoren450d5612009-06-08 21:12:418504 fi
Guido van Rossum54ecc3d1999-01-27 17:53:118505else
Matthias Klosea0bea5d2010-05-08 10:00:288506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:118508fi
8509
Matthias Klosea0bea5d2010-05-08 10:00:288510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8511$as_echo_n "checking for dyld... " >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:148512case $ac_sys_system/$ac_sys_release in
8513 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:118514
Matthias Klosea0bea5d2010-05-08 10:00:288515$as_echo "#define WITH_DYLD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038516
Matthias Klosea0bea5d2010-05-08 10:00:288517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8518$as_echo "always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:148519 ;;
8520 *)
Matthias Klosea0bea5d2010-05-08 10:00:288521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
Jack Jansene578a632001-08-15 01:27:148523 ;;
Jack Jansen9a66b6d2001-08-08 13:56:148524esac
Guido van Rossum54ecc3d1999-01-27 17:53:118525
Guido van Rossum0a516c91994-09-12 10:58:408526# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:408527
Michael W. Hudson54241132001-12-07 15:38:268528
8529
8530
8531
Ronald Oussoren75912852010-04-08 08:13:318532
Guido van Rossum0a516c91994-09-12 10:58:408533# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:128534# -- usually .so, .sl on HP-UX, .dll on Cygwin
Matthias Klosea0bea5d2010-05-08 10:00:288535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
8536$as_echo_n "checking SO... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:408537if test -z "$SO"
8538then
Guido van Rossum76be6ed1995-01-02 18:33:548539 case $ac_sys_system in
Neal Norwitz58e28882006-05-19 07:00:588540 hp*|HP*)
8541 case `uname -m` in
8542 ia64) SO=.so;;
8543 *) SO=.sl;;
8544 esac
8545 ;;
Guido van Rossumaef734b2001-01-10 21:09:128546 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:488547 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:408548 esac
Martin v. Löwis368de8f2003-06-14 14:46:388549else
8550 # this might also be a termcap variable, see #610332
8551 echo
8552 echo '====================================================================='
8553 echo '+ +'
8554 echo '+ WARNING: You have set SO in your environment. +'
8555 echo '+ Do you really mean to change the extension for shared libraries? +'
8556 echo '+ Continuing in 10 seconds to let you to ponder. +'
8557 echo '+ +'
8558 echo '====================================================================='
8559 sleep 10
Guido van Rossum0a516c91994-09-12 10:58:408560fi
Matthias Klosea0bea5d2010-05-08 10:00:288561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
8562$as_echo "$SO" >&6; }
Neal Norwitz58e28882006-05-19 07:00:588563
Ronald Oussoren79f90492009-01-02 10:44:468564
Neal Norwitz58e28882006-05-19 07:00:588565cat >>confdefs.h <<_ACEOF
8566#define SHLIB_EXT "$SO"
8567_ACEOF
8568
Guido van Rossum0a516c91994-09-12 10:58:408569# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis12af0482004-01-31 12:34:178570# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:118571# (Shared libraries in this instance are shared modules to be loaded into
8572# Python, as opposed to building Python itself as a shared library.)
Matthias Klosea0bea5d2010-05-08 10:00:288573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
8574$as_echo_n "checking LDSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:408575if test -z "$LDSHARED"
8576then
Guido van Rossum76be6ed1995-01-02 18:33:548577 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:548578 AIX*)
Martin Panterf75a2eb2016-11-20 09:31:418579 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Guido van Rossumce608b02001-09-28 15:59:388580 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:548581 ;;
8582 BeOS*)
8583 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
Guido van Rossumce608b02001-09-28 15:59:388584 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
Neil Schemenauer4a7bbcb2001-02-16 03:37:548585 ;;
Guido van Rossum07397971997-04-29 21:49:508586 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:138587 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Martin v. Löwis11437992002-04-12 09:54:038588 SunOS/5*)
Ronald Oussoren75912852010-04-08 08:13:318589 if test "$GCC" = "yes" ; then
8590 LDSHARED='$(CC) -shared'
8591 LDCXXSHARED='$(CXX) -shared'
8592 else
8593 LDSHARED='$(CC) -G'
8594 LDCXXSHARED='$(CXX) -G'
Greg Ward57c9a6632000-05-26 12:22:548595 fi ;;
Thomas Hellerdc96a772008-04-04 10:07:558596 hp*|HP*)
Ronald Oussoren75912852010-04-08 08:13:318597 if test "$GCC" = "yes" ; then
8598 LDSHARED='$(CC) -shared'
8599 LDCXXSHARED='$(CXX) -shared'
8600 else
8601 LDSHARED='ld -b'
Thomas Hellerdc96a772008-04-04 10:07:558602 fi ;;
Guido van Rossumda88dad1995-01-26 00:46:298603 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
Jack Jansen418c3b12001-11-14 10:59:578604 Darwin/1.3*)
Stefan Krah3a3e2032010-11-28 15:30:058605 LDSHARED='$(CC) -bundle'
8606 LDCXXSHARED='$(CXX) -bundle'
Jack Jansena3891ea2001-09-07 14:25:128607 if test "$enable_framework" ; then
8608 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:228609 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8610 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Ronald Oussoren75912852010-04-08 08:13:318611 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:128612 else
8613 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:578614 LDSHARED="$LDSHARED -undefined suppress"
Ronald Oussoren75912852010-04-08 08:13:318615 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:128616 fi ;;
Jack Jansen6b08a402004-06-03 12:41:458617 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Stefan Krah3a3e2032010-11-28 15:30:058618 LDSHARED='$(CC) -bundle'
8619 LDCXXSHARED='$(CXX) -bundle'
Jack Jansene578a632001-08-15 01:27:148620 if test "$enable_framework" ; then
8621 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:228622 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8623 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Ronald Oussoren75912852010-04-08 08:13:318624 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:148625 else
Michael W. Hudson594bc802002-03-07 09:59:158626 # No framework, use the Python app as bundle-loader
8627 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:438628 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Ronald Oussoren75912852010-04-08 08:13:318629 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:118630 fi ;;
Jack Jansen6b08a402004-06-03 12:41:458631 Darwin/*)
8632 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
8633 # This allows an extension to be used in any Python
Ronald Oussoren38f1b982007-09-02 09:46:078634
Ned Deilyc40b9032014-06-25 20:48:468635 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8636 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8637 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8638 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8639 if test ${dep_target_major} -eq 10 && \
8640 test ${dep_target_minor} -le 2
Jack Jansen6b08a402004-06-03 12:41:458641 then
Ned Deilyc40b9032014-06-25 20:48:468642 # building for OS X 10.0 through 10.2
Stefan Krah3a3e2032010-11-28 15:30:058643 LDSHARED='$(CC) -bundle'
8644 LDCXXSHARED='$(CXX) -bundle'
Jack Jansen6b08a402004-06-03 12:41:458645 if test "$enable_framework" ; then
8646 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:228647 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8648 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Ronald Oussoren75912852010-04-08 08:13:318649 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:458650 else
8651 # No framework, use the Python app as bundle-loader
8652 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8653 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Ronald Oussoren75912852010-04-08 08:13:318654 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Jack Jansen6b08a402004-06-03 12:41:458655 fi
Ned Deilyc40b9032014-06-25 20:48:468656 else
8657 # building for OS X 10.3 and later
Ned Deilyc40b9032014-06-25 20:48:468658 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
8659 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
8660 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:458661 fi
8662 ;;
Ronald Oussoren75912852010-04-08 08:13:318663 Linux*|GNU*|QNX*)
8664 LDSHARED='$(CC) -shared'
8665 LDCXXSHARED='$(CXX) -shared';;
8666 BSD/OS*/4*)
8667 LDSHARED="gcc -shared"
8668 LDCXXSHARED="g++ -shared";;
Martin v. Löwis222c5152006-06-03 07:37:138669 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:358670 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:498671 then
Stefan Krah3a3e2032010-11-28 15:30:058672 LDSHARED='$(CC) -shared'
8673 LDCXXSHARED='$(CXX) -shared'
Guido van Rossum0286ae82000-08-29 15:06:498674 else
Stefan Krah3a3e2032010-11-28 15:30:058675 LDSHARED="ld -Bshareable"
Guido van Rossum0286ae82000-08-29 15:06:498676 fi;;
Martin v. Löwis222c5152006-06-03 07:37:138677 OpenBSD*)
8678 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8679 then
Stefan Krah3a3e2032010-11-28 15:30:058680 LDSHARED='$(CC) -shared $(CCSHARED)'
8681 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Martin v. Löwis222c5152006-06-03 07:37:138682 else
8683 case `uname -r` in
8684 [01].* | 2.[0-7] | 2.[0-7].*)
8685 LDSHARED="ld -Bshareable ${LDFLAGS}"
8686 ;;
8687 *)
Stefan Krah3a3e2032010-11-28 15:30:058688 LDSHARED='$(CC) -shared $(CCSHARED)'
8689 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Martin v. Löwis222c5152006-06-03 07:37:138690 ;;
8691 esac
8692 fi;;
Ronald Oussoren75912852010-04-08 08:13:318693 NetBSD*|DragonFly*)
Antoine Pitroucb402772011-01-02 20:51:348694 LDSHARED='$(CC) -shared'
8695 LDCXXSHARED='$(CXX) -shared';;
Martin v. Löwis25ae43b2001-10-07 08:39:188696 OpenUNIX*|UnixWare*)
Ronald Oussoren75912852010-04-08 08:13:318697 if test "$GCC" = "yes" ; then
8698 LDSHARED='$(CC) -shared'
8699 LDCXXSHARED='$(CXX) -shared'
8700 else
8701 LDSHARED='$(CC) -G'
8702 LDCXXSHARED='$(CXX) -G'
Martin v. Löwisbec19582001-03-21 15:57:548703 fi;;
Ronald Oussoren75912852010-04-08 08:13:318704 SCO_SV*)
8705 LDSHARED='$(CC) -Wl,-G,-Bexport'
8706 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
8707 CYGWIN*)
8708 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
8709 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
8710 atheos*)
8711 LDSHARED="gcc -shared"
8712 LDCXXSHARED="g++ -shared";;
Guido van Rossum0a516c91994-09-12 10:58:408713 *) LDSHARED="ld";;
8714 esac
Guido van Rossum0a516c91994-09-12 10:58:408715fi
Matthias Klosea0bea5d2010-05-08 10:00:288716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
8717$as_echo "$LDSHARED" >&6; }
Ronald Oussoren75912852010-04-08 08:13:318718LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
Neil Schemenauer4a7bbcb2001-02-16 03:37:548719BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:408720# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:118721# library (module) -- this is only needed for a few systems
Matthias Klosea0bea5d2010-05-08 10:00:288722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
8723$as_echo_n "checking CCSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:408724if test -z "$CCSHARED"
8725then
Guido van Rossum07397971997-04-29 21:49:508726 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:498727 SunOS*) if test "$GCC" = yes;
Martin v. Löwiseb623572007-03-12 10:50:398728 then CCSHARED="-fPIC";
8729 elif test `uname -p` = sparc;
8730 then CCSHARED="-xcode=pic32";
8731 else CCSHARED="-Kpic";
8732 fi;;
Guido van Rossumaf07a441995-02-13 19:45:278733 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:528734 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:278735 else CCSHARED="+z";
8736 fi;;
Martin v. Löwisa6e97582002-01-01 18:41:338737 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:338738 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis86d66262006-02-17 08:40:118739 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:188740 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:548741 if test "$GCC" = "yes"
8742 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:418743 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:548744 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:488745 SCO_SV*)
8746 if test "$GCC" = "yes"
8747 then CCSHARED="-fPIC"
8748 else CCSHARED="-Kpic -belf"
8749 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:098750 IRIX*/6*) case $CC in
8751 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:548752 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:098753 esac;;
Martin v. Löwisf90ae202002-06-11 06:22:318754 atheos*) CCSHARED="-fPIC";;
Guido van Rossum0a516c91994-09-12 10:58:408755 esac
Guido van Rossum0a516c91994-09-12 10:58:408756fi
Matthias Klosea0bea5d2010-05-08 10:00:288757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
8758$as_echo "$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:408759# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:288760# the python executable -- this is only needed for a few systems
Matthias Klosea0bea5d2010-05-08 10:00:288761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
8762$as_echo_n "checking LINKFORSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:408763if test -z "$LINKFORSHARED"
8764then
Guido van Rossum07397971997-04-29 21:49:508765 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:548766 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:168767 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:318768 LINKFORSHARED="-Wl,-E -Wl,+s";;
8769# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:338770 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:338771 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:118772 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:038773 Darwin/*)
Anthony Baxtereef2d3b2004-11-06 04:45:338774 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
8775 # which is
Jack Jansene578a632001-08-15 01:27:148776 # not used by the core itself but which needs to be in the core so
8777 # that dynamically loaded extension modules have access to it.
Jack Jansen97e3f002003-02-23 22:59:018778 # -prebind is no longer used, because it actually seems to give a
8779 # slowdown in stead of a speedup, maybe due to the large number of
8780 # dynamic loads Python does.
Anthony Baxtereef2d3b2004-11-06 04:45:338781
8782 LINKFORSHARED="$extra_undefs"
Jack Jansene578a632001-08-15 01:27:148783 if test "$enable_framework"
8784 then
Jack Jansenda49e192005-01-07 13:08:228785 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:148786 fi
Anthony Baxtereef2d3b2004-11-06 04:45:338787 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:188788 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:488789 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:468790 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:118791 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:418792 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8793 then
8794 LINKFORSHARED="-Wl,--export-dynamic"
8795 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:098796 SunOS/5*) case $CC in
8797 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:368798 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:198799 then
8800 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:098801 fi;;
8802 esac;;
Jason Tishler30765592003-09-04 11:04:068803 CYGWIN*)
8804 if test $enable_shared = "no"
8805 then
8806 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
8807 fi;;
Martin v. Löwis8c255e42008-05-23 15:06:508808 QNX*)
8809 # -Wl,-E causes the symbols to be added to the dynamic
8810 # symbol table so that they can be found when a module
8811 # is loaded. -N 2048K causes the stack size to be set
8812 # to 2048 kilobytes so that the stack doesn't overflow
8813 # when running test_compile.py.
8814 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:408815 esac
Guido van Rossum0a516c91994-09-12 10:58:408816fi
Matthias Klosea0bea5d2010-05-08 10:00:288817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
8818$as_echo "$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:408819
Michael W. Hudson54241132001-12-07 15:38:268820
Ronald Oussoren0d236eb2008-06-06 21:31:338821
Matthias Klosea0bea5d2010-05-08 10:00:288822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
8823$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:208824if test ! "$LIBRARY" = "$LDLIBRARY"
8825then
Neil Schemenauer0c6141f2001-01-27 21:40:548826 case $ac_sys_system in
8827 CYGWIN*)
8828 # Cygwin needs CCSHARED when building extension DLLs
8829 # but not when building the interpreter DLL.
8830 CFLAGSFORSHARED='';;
8831 *)
8832 CFLAGSFORSHARED='$(CCSHARED)'
8833 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:208834fi
Matthias Klosea0bea5d2010-05-08 10:00:288835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
8836$as_echo "$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:208837
Martin v. Löwisf90ae202002-06-11 06:22:318838# SHLIBS are libraries (except -lc and -lm) to link to the python shared
8839# library (with --enable-shared).
8840# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:508841# symbols, this must be set to $(LIBS) (expanded by make). We do this even
8842# if it is not required, since it creates a dependency of the shared library
8843# to LIBS. This, in turn, means that applications linking the shared libpython
8844# don't need to link LIBS explicitly. The default should be only changed
8845# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:318846
Matthias Klosea0bea5d2010-05-08 10:00:288847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
8848$as_echo_n "checking SHLIBS... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:318849case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:318850 *)
Martin v. Löwisd6359c52002-08-04 12:38:508851 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:318852esac
Matthias Klosea0bea5d2010-05-08 10:00:288853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
8854$as_echo "$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:318855
8856
Guido van Rossum627b2d71993-12-24 10:39:168857# checks for libraries
Matthias Klosea0bea5d2010-05-08 10:00:288858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8859$as_echo_n "checking for dlopen in -ldl... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338860if ${ac_cv_lib_dl_dlopen+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288861 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:548862else
Martin v. Löwis11437992002-04-12 09:54:038863 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:288864LIBS="-ldl $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:288865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048866/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038867
Martin v. Löwiseba40652007-08-30 20:10:578868/* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038871#ifdef __cplusplus
8872extern "C"
8873#endif
Martin v. Löwis11437992002-04-12 09:54:038874char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:038875int
8876main ()
8877{
Martin v. Löwiseba40652007-08-30 20:10:578878return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:038879 ;
8880 return 0;
8881}
8882_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:288883if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:038884 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:548885else
Matthias Klosea0bea5d2010-05-08 10:00:288886 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:168887fi
Matthias Klosea0bea5d2010-05-08 10:00:288888rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038890LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:168891fi
Matthias Klosea0bea5d2010-05-08 10:00:288892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8893$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338894if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:038895 cat >>confdefs.h <<_ACEOF
8896#define HAVE_LIBDL 1
8897_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:168898
Guido van Rossum8ddd0ad1995-06-14 23:10:288899 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:308900
Guido van Rossum76be6ed1995-01-02 18:33:548901fi
8902 # Dynamic linking for SunOS/Solaris and SYSV
Matthias Klosea0bea5d2010-05-08 10:00:288903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8904$as_echo_n "checking for shl_load in -ldld... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338905if ${ac_cv_lib_dld_shl_load+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288906 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:548907else
Martin v. Löwis11437992002-04-12 09:54:038908 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:288909LIBS="-ldld $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:288910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048911/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038912
Martin v. Löwiseba40652007-08-30 20:10:578913/* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038916#ifdef __cplusplus
8917extern "C"
8918#endif
Martin v. Löwis11437992002-04-12 09:54:038919char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:038920int
8921main ()
8922{
Martin v. Löwiseba40652007-08-30 20:10:578923return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:038924 ;
8925 return 0;
8926}
8927_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:288928if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:038929 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:548930else
Matthias Klosea0bea5d2010-05-08 10:00:288931 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:168932fi
Matthias Klosea0bea5d2010-05-08 10:00:288933rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038935LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:168936fi
Matthias Klosea0bea5d2010-05-08 10:00:288937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8938$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338939if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:038940 cat >>confdefs.h <<_ACEOF
8941#define HAVE_LIBDLD 1
8942_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:168943
Guido van Rossum8ddd0ad1995-06-14 23:10:288944 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:548945
Guido van Rossum76be6ed1995-01-02 18:33:548946fi
8947 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:478948
Ronald Oussoren79f90492009-01-02 10:44:468949# only check for sem_init if thread support is requested
Martin v. Löwis519adae2003-09-20 10:47:478950if test "$with_threads" = "yes" -o -z "$with_threads"; then
Matthias Klosea0bea5d2010-05-08 10:00:288951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
8952$as_echo_n "checking for library containing sem_init... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:338953if ${ac_cv_search_sem_init+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288954 $as_echo_n "(cached) " >&6
Martin v. Löwis41933dd2002-03-21 15:10:588955else
Martin v. Löwis82c19a72002-10-06 11:48:098956 ac_func_search_save_LIBS=$LIBS
Matthias Klosea0bea5d2010-05-08 10:00:288957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048958/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038959
Martin v. Löwiseba40652007-08-30 20:10:578960/* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038963#ifdef __cplusplus
8964extern "C"
8965#endif
Martin v. Löwis11437992002-04-12 09:54:038966char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:038967int
8968main ()
8969{
Martin v. Löwiseba40652007-08-30 20:10:578970return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:038971 ;
8972 return 0;
8973}
8974_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:578975for ac_lib in '' pthread rt posix4; do
8976 if test -z "$ac_lib"; then
8977 ac_res="none required"
8978 else
8979 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:218980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:578981 fi
Matthias Klosea0bea5d2010-05-08 10:00:288982 if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwiseba40652007-08-30 20:10:578983 ac_cv_search_sem_init=$ac_res
Brett Cannon19fab762007-06-02 03:02:298984fi
Matthias Klosea0bea5d2010-05-08 10:00:288985rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext
Matthias Klose3cef2a92012-03-14 22:39:338987 if ${ac_cv_search_sem_init+:} false; then :
Martin v. Löwiseba40652007-08-30 20:10:578988 break
Skip Montanaro89e975f2007-08-22 19:05:218989fi
Martin v. Löwiseba40652007-08-30 20:10:578990done
Matthias Klose3cef2a92012-03-14 22:39:338991if ${ac_cv_search_sem_init+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:288992
Martin v. Löwiseba40652007-08-30 20:10:578993else
8994 ac_cv_search_sem_init=no
8995fi
8996rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:098997LIBS=$ac_func_search_save_LIBS
8998fi
Matthias Klosea0bea5d2010-05-08 10:00:288999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9000$as_echo "$ac_cv_search_sem_init" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:579001ac_res=$ac_cv_search_sem_init
Matthias Klosea0bea5d2010-05-08 10:00:289002if test "$ac_res" != no; then :
Martin v. Löwiseba40652007-08-30 20:10:579003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:589004
Martin v. Löwis41933dd2002-03-21 15:10:589005fi
Martin v. Löwisd3545ec2003-05-03 11:25:439006 # 'Real Time' functions on Solaris
Martin v. Löwis519adae2003-09-20 10:47:479007 # posix4 on Solaris 2.6
9008 # pthread (first!) on Linux
9009fi
9010
Martin v. Löwis19d17342003-06-14 21:03:059011# check if we need libintl for locale functions
Matthias Klosea0bea5d2010-05-08 10:00:289012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9013$as_echo_n "checking for textdomain in -lintl... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339014if ${ac_cv_lib_intl_textdomain+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289015 $as_echo_n "(cached) " >&6
Martin v. Löwis19d17342003-06-14 21:03:059016else
9017 ac_check_lib_save_LIBS=$LIBS
9018LIBS="-lintl $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049020/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:059021
Martin v. Löwiseba40652007-08-30 20:10:579022/* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:059025#ifdef __cplusplus
9026extern "C"
9027#endif
Martin v. Löwis19d17342003-06-14 21:03:059028char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059029int
9030main ()
9031{
Martin v. Löwiseba40652007-08-30 20:10:579032return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059033 ;
9034 return 0;
9035}
9036_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289037if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis19d17342003-06-14 21:03:059038 ac_cv_lib_intl_textdomain=yes
9039else
Matthias Klosea0bea5d2010-05-08 10:00:289040 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:059041fi
Matthias Klosea0bea5d2010-05-08 10:00:289042rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:059044LIBS=$ac_check_lib_save_LIBS
9045fi
Matthias Klosea0bea5d2010-05-08 10:00:289046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9047$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339048if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
Martin v. Löwis19d17342003-06-14 21:03:059049
Matthias Klosea0bea5d2010-05-08 10:00:289050$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
Martin v. Löwis19d17342003-06-14 21:03:059051
9052fi
9053
Toshio Kuratomi24ff9a42019-05-12 20:47:199054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
9055$as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
9056if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058else
9059 ac_func_search_save_LIBS=$LIBS
9060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h. */
9062
9063/* Override any GCC internal prototype to avoid an error.
9064 Use char because int might match the return type of a GCC
9065 builtin and then its argument prototype would still apply. */
9066#ifdef __cplusplus
9067extern "C"
9068#endif
9069char bind_textdomain_codeset ();
9070int
9071main ()
9072{
9073return bind_textdomain_codeset ();
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078for ac_lib in '' intl; do
9079 if test -z "$ac_lib"; then
9080 ac_res="none required"
9081 else
9082 ac_res=-l$ac_lib
9083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9084 fi
9085 if ac_fn_c_try_link "$LINENO"; then :
9086 ac_cv_search_bind_textdomain_codeset=$ac_res
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext
9090 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
9091 break
9092fi
9093done
9094if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
9095
9096else
9097 ac_cv_search_bind_textdomain_codeset=no
9098fi
9099rm conftest.$ac_ext
9100LIBS=$ac_func_search_save_LIBS
9101fi
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
9103$as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
9104ac_res=$ac_cv_search_bind_textdomain_codeset
9105if test "$ac_res" != no; then :
9106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9107
9108$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
9109
9110fi
9111
Guido van Rossum0eefa3f1999-11-16 15:57:379112
9113# checks for system dependent C++ extensions support
9114case "$ac_sys_system" in
Matthias Klosea0bea5d2010-05-08 10:00:289115 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9116$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049118/* end confdefs.h. */
Matthias Klosec511b472010-05-08 11:01:399119
Georg Brandl94800df2011-02-25 11:09:029120 #include <load.h>
Martin v. Löwis11437992002-04-12 09:54:039121int
9122main ()
9123{
Guido van Rossum0eefa3f1999-11-16 15:57:379124loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:039125 ;
9126 return 0;
9127}
Matthias Klosec511b472010-05-08 11:01:399128
Martin v. Löwis11437992002-04-12 09:54:039129_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289130if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum0eefa3f1999-11-16 15:57:379131
Matthias Klosec511b472010-05-08 11:01:399132
Matthias Klosea0bea5d2010-05-08 10:00:289133$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039134
Matthias Klosec511b472010-05-08 11:01:399135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:289136$as_echo "yes" >&6; }
Matthias Klosec511b472010-05-08 11:01:399137
Guido van Rossum0eefa3f1999-11-16 15:57:379138else
Matthias Klosec511b472010-05-08 11:01:399139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Klosea0bea5d2010-05-08 10:00:289141$as_echo "no" >&6; }
Matthias Klosec511b472010-05-08 11:01:399142
Guido van Rossum0eefa3f1999-11-16 15:57:379143fi
Matthias Klosea0bea5d2010-05-08 10:00:289144rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:379146 *) ;;
9147esac
9148
Guido van Rossum70c7f481998-03-26 18:44:109149# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Guido van Rossumec95c7b1998-08-04 17:59:569150# BeOS' sockets are stashed in libnet.
Matthias Klosea0bea5d2010-05-08 10:00:289151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
9152$as_echo_n "checking for t_open in -lnsl... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339153if ${ac_cv_lib_nsl_t_open+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289154 $as_echo_n "(cached) " >&6
Guido van Rossum79dddcb1995-01-12 12:25:429155else
Martin v. Löwis11437992002-04-12 09:54:039156 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289157LIBS="-lnsl $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049159/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039160
Martin v. Löwiseba40652007-08-30 20:10:579161/* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039164#ifdef __cplusplus
9165extern "C"
9166#endif
Martin v. Löwis11437992002-04-12 09:54:039167char t_open ();
Martin v. Löwis11437992002-04-12 09:54:039168int
9169main ()
9170{
Martin v. Löwiseba40652007-08-30 20:10:579171return t_open ();
Martin v. Löwis11437992002-04-12 09:54:039172 ;
9173 return 0;
9174}
9175_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289176if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039177 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:429178else
Matthias Klosea0bea5d2010-05-08 10:00:289179 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:429180fi
Matthias Klosea0bea5d2010-05-08 10:00:289181rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039183LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:429184fi
Matthias Klosea0bea5d2010-05-08 10:00:289185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
9186$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339187if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
Guido van Rossum79dddcb1995-01-12 12:25:429188 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:429189fi
Guido van Rossum0ddb0281995-01-17 16:46:149190 # SVR4
Matthias Klosea0bea5d2010-05-08 10:00:289191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9192$as_echo_n "checking for socket in -lsocket... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339193if ${ac_cv_lib_socket_socket+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289194 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549195else
Martin v. Löwis11437992002-04-12 09:54:039196 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289197LIBS="-lsocket $LIBS $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049199/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039200
Martin v. Löwiseba40652007-08-30 20:10:579201/* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039204#ifdef __cplusplus
9205extern "C"
9206#endif
Martin v. Löwis11437992002-04-12 09:54:039207char socket ();
Martin v. Löwis11437992002-04-12 09:54:039208int
9209main ()
9210{
Martin v. Löwiseba40652007-08-30 20:10:579211return socket ();
Martin v. Löwis11437992002-04-12 09:54:039212 ;
9213 return 0;
9214}
9215_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289216if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039217 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:569218else
Matthias Klosea0bea5d2010-05-08 10:00:289219 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:569220fi
Matthias Klosea0bea5d2010-05-08 10:00:289221rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039223LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:569224fi
Matthias Klosea0bea5d2010-05-08 10:00:289225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9226$as_echo "$ac_cv_lib_socket_socket" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339227if test "x$ac_cv_lib_socket_socket" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:159228 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:159229fi
9230 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:139231
Jeremy Hyltoncb25d5e2000-07-27 21:23:289232case "$ac_sys_system" in
9233BeOS*)
Matthias Klosea0bea5d2010-05-08 10:00:289234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
9235$as_echo_n "checking for socket in -lnet... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339236if ${ac_cv_lib_net_socket+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289237 $as_echo_n "(cached) " >&6
Guido van Rossumad678af1998-10-02 14:42:159238else
Martin v. Löwis11437992002-04-12 09:54:039239 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumad678af1998-10-02 14:42:159240LIBS="-lnet $LIBS $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049242/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039243
Martin v. Löwiseba40652007-08-30 20:10:579244/* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039247#ifdef __cplusplus
9248extern "C"
9249#endif
Martin v. Löwis11437992002-04-12 09:54:039250char socket ();
Martin v. Löwis11437992002-04-12 09:54:039251int
9252main ()
9253{
Martin v. Löwiseba40652007-08-30 20:10:579254return socket ();
Martin v. Löwis11437992002-04-12 09:54:039255 ;
9256 return 0;
9257}
9258_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289259if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039260 ac_cv_lib_net_socket=yes
Guido van Rossumad678af1998-10-02 14:42:159261else
Matthias Klosea0bea5d2010-05-08 10:00:289262 ac_cv_lib_net_socket=no
Guido van Rossumad678af1998-10-02 14:42:159263fi
Matthias Klosea0bea5d2010-05-08 10:00:289264rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039266LIBS=$ac_check_lib_save_LIBS
Guido van Rossumad678af1998-10-02 14:42:159267fi
Matthias Klosea0bea5d2010-05-08 10:00:289268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
9269$as_echo "$ac_cv_lib_net_socket" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339270if test "x$ac_cv_lib_net_socket" = xyes; then :
Guido van Rossumec95c7b1998-08-04 17:59:569271 LIBS="-lnet $LIBS"
Guido van Rossumec95c7b1998-08-04 17:59:569272fi
9273 # BeOS
9274;;
9275esac
Guido van Rossum70c7f481998-03-26 18:44:109276
Matthias Klosea0bea5d2010-05-08 10:00:289277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
9278$as_echo_n "checking for --with-libs... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:039279
Martin v. Löwiseba40652007-08-30 20:10:579280# Check whether --with-libs was given.
Matthias Klosea0bea5d2010-05-08 10:00:289281if test "${with_libs+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:579282 withval=$with_libs;
Matthias Klosea0bea5d2010-05-08 10:00:289283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9284$as_echo "$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:399285LIBS="$withval $LIBS"
9286
9287else
Matthias Klosea0bea5d2010-05-08 10:00:289288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:579290fi
9291
Guido van Rossum7f43da71994-08-01 12:15:309292
Benjamin Peterson64e8f6e2014-12-15 05:00:239293
9294
9295
9296
9297
9298
9299
9300if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9301 if test -n "$ac_tool_prefix"; then
Benjamin Peterson1c335e62010-01-01 15:16:299302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9303set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:289304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339306if ${ac_cv_path_PKG_CONFIG+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289307 $as_echo_n "(cached) " >&6
Benjamin Peterson1c335e62010-01-01 15:16:299308else
9309 case $PKG_CONFIG in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9312 ;;
9313 *)
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315for as_dir in $PATH
9316do
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:289319 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:009320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benjamin Peterson1c335e62010-01-01 15:16:299321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Matthias Klosea0bea5d2010-05-08 10:00:289322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benjamin Peterson1c335e62010-01-01 15:16:299323 break 2
9324 fi
9325done
Matthias Klosea0bea5d2010-05-08 10:00:289326 done
Benjamin Peterson1c335e62010-01-01 15:16:299327IFS=$as_save_IFS
9328
9329 ;;
9330esac
9331fi
9332PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9333if test -n "$PKG_CONFIG"; then
Matthias Klosea0bea5d2010-05-08 10:00:289334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9335$as_echo "$PKG_CONFIG" >&6; }
Benjamin Peterson1c335e62010-01-01 15:16:299336else
Matthias Klosea0bea5d2010-05-08 10:00:289337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338$as_echo "no" >&6; }
Benjamin Peterson1c335e62010-01-01 15:16:299339fi
9340
9341
9342fi
9343if test -z "$ac_cv_path_PKG_CONFIG"; then
9344 ac_pt_PKG_CONFIG=$PKG_CONFIG
9345 # Extract the first word of "pkg-config", so it can be a program name with args.
9346set dummy pkg-config; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:289347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339349if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289350 $as_echo_n "(cached) " >&6
Benjamin Peterson1c335e62010-01-01 15:16:299351else
9352 case $ac_pt_PKG_CONFIG in
9353 [\\/]* | ?:[\\/]*)
9354 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9355 ;;
9356 *)
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:289362 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:009363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benjamin Peterson1c335e62010-01-01 15:16:299364 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Matthias Klosea0bea5d2010-05-08 10:00:289365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benjamin Peterson1c335e62010-01-01 15:16:299366 break 2
9367 fi
9368done
Matthias Klosea0bea5d2010-05-08 10:00:289369 done
Benjamin Peterson1c335e62010-01-01 15:16:299370IFS=$as_save_IFS
9371
9372 ;;
9373esac
9374fi
9375ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9376if test -n "$ac_pt_PKG_CONFIG"; then
Matthias Klosea0bea5d2010-05-08 10:00:289377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9378$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Benjamin Peterson1c335e62010-01-01 15:16:299379else
Matthias Klosea0bea5d2010-05-08 10:00:289380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381$as_echo "no" >&6; }
Benjamin Peterson1c335e62010-01-01 15:16:299382fi
9383
9384 if test "x$ac_pt_PKG_CONFIG" = x; then
9385 PKG_CONFIG=""
9386 else
9387 case $cross_compiling:$ac_tool_warned in
9388yes:)
Matthias Klosea0bea5d2010-05-08 10:00:289389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Benjamin Peterson1c335e62010-01-01 15:16:299391ac_tool_warned=yes ;;
9392esac
9393 PKG_CONFIG=$ac_pt_PKG_CONFIG
9394 fi
9395else
9396 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9397fi
9398
Benjamin Peterson64e8f6e2014-12-15 05:00:239399fi
9400if test -n "$PKG_CONFIG"; then
9401 _pkg_min_version=0.9.0
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9403$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9404 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9406$as_echo "yes" >&6; }
9407 else
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409$as_echo "no" >&6; }
9410 PKG_CONFIG=""
9411 fi
9412fi
Benjamin Petersone9e07bf2010-03-09 21:46:549413
9414# Check for use of the system expat library
Matthias Klosea0bea5d2010-05-08 10:00:289415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
9416$as_echo_n "checking for --with-system-expat... " >&6; }
Benjamin Petersone9e07bf2010-03-09 21:46:549417
9418# Check whether --with-system_expat was given.
Matthias Klosea0bea5d2010-05-08 10:00:289419if test "${with_system_expat+set}" = set; then :
Benjamin Petersone9e07bf2010-03-09 21:46:549420 withval=$with_system_expat;
Benjamin Petersonf2d1b2a2010-10-31 16:53:539421else
9422 with_system_expat="no"
Benjamin Petersone9e07bf2010-03-09 21:46:549423fi
9424
9425
Matthias Klosea0bea5d2010-05-08 10:00:289426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
9427$as_echo "$with_system_expat" >&6; }
Benjamin Petersone9e07bf2010-03-09 21:46:549428
9429# Check for use of the system libffi library
Matthias Klosea0bea5d2010-05-08 10:00:289430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
9431$as_echo_n "checking for --with-system-ffi... " >&6; }
Benjamin Petersone9e07bf2010-03-09 21:46:549432
9433# Check whether --with-system_ffi was given.
Matthias Klosea0bea5d2010-05-08 10:00:289434if test "${with_system_ffi+set}" = set; then :
Benjamin Petersone9e07bf2010-03-09 21:46:549435 withval=$with_system_ffi;
Benjamin Petersonf2d1b2a2010-10-31 16:53:539436else
9437 with_system_ffi="no"
Benjamin Petersone9e07bf2010-03-09 21:46:549438fi
9439
9440
9441if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
Benjamin Peterson1c335e62010-01-01 15:16:299442 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
9443else
9444 LIBFFI_INCLUDEDIR=""
9445fi
9446
9447
Matthias Klosea0bea5d2010-05-08 10:00:289448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
9449$as_echo "$with_system_ffi" >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:439450
Ned Deilya2a9f572013-10-25 07:30:109451# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
9452
9453
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
9455$as_echo_n "checking for --with-tcltk-includes... " >&6; }
9456
9457# Check whether --with-tcltk-includes was given.
9458if test "${with_tcltk_includes+set}" = set; then :
9459 withval=$with_tcltk_includes;
9460else
9461 with_tcltk_includes="default"
9462fi
9463
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
9465$as_echo "$with_tcltk_includes" >&6; }
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
9467$as_echo_n "checking for --with-tcltk-libs... " >&6; }
9468
9469# Check whether --with-tcltk-libs was given.
9470if test "${with_tcltk_libs+set}" = set; then :
9471 withval=$with_tcltk_libs;
9472else
9473 with_tcltk_libs="default"
9474fi
9475
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
9477$as_echo "$with_tcltk_libs" >&6; }
9478if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
9479then
9480 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
9481 then
9482 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
9483 fi
9484 TCLTK_INCLUDES=""
9485 TCLTK_LIBS=""
9486else
9487 TCLTK_INCLUDES="$with_tcltk_includes"
9488 TCLTK_LIBS="$with_tcltk_libs"
9489fi
9490
Benjamin Peterson867475c2009-04-29 20:36:259491# Check for --with-dbmliborder
Matthias Klosea0bea5d2010-05-08 10:00:289492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
9493$as_echo_n "checking for --with-dbmliborder... " >&6; }
Benjamin Peterson867475c2009-04-29 20:36:259494
9495# Check whether --with-dbmliborder was given.
Matthias Klosea0bea5d2010-05-08 10:00:289496if test "${with_dbmliborder+set}" = set; then :
Benjamin Peterson867475c2009-04-29 20:36:259497 withval=$with_dbmliborder;
9498if test x$with_dbmliborder = xyes
9499then
Georg Brandl71f4fbb2011-02-25 11:04:509500as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Benjamin Peterson867475c2009-04-29 20:36:259501else
9502 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
9503 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
9504 then
Georg Brandl71f4fbb2011-02-25 11:04:509505 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Benjamin Peterson867475c2009-04-29 20:36:259506 fi
9507 done
9508fi
9509fi
9510
Matthias Klosea0bea5d2010-05-08 10:00:289511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
9512$as_echo "$with_dbmliborder" >&6; }
Benjamin Peterson867475c2009-04-29 20:36:259513
Martin v. Löwis3e2c6322002-10-29 10:07:439514# Determine if signalmodule should be used.
Neil Schemenauerd32c2492001-01-24 17:25:289515
9516
Matthias Klosea0bea5d2010-05-08 10:00:289517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
9518$as_echo_n "checking for --with-signal-module... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:039519
Martin v. Löwiseba40652007-08-30 20:10:579520# Check whether --with-signal-module was given.
Matthias Klosea0bea5d2010-05-08 10:00:289521if test "${with_signal_module+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:579522 withval=$with_signal_module;
9523fi
Neil Schemenauerd32c2492001-01-24 17:25:289524
9525
9526if test -z "$with_signal_module"
9527then with_signal_module="yes"
9528fi
Matthias Klosea0bea5d2010-05-08 10:00:289529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
9530$as_echo "$with_signal_module" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:289531
9532if test "${with_signal_module}" = "yes"; then
9533 USE_SIGNAL_MODULE=""
9534 SIGNAL_OBJS=""
9535else
9536 USE_SIGNAL_MODULE="#"
9537 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9538fi
9539
Guido van Rossum3d15bd82001-01-10 18:53:489540# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:429541
Barry Warsawc0d24d8b2000-06-29 16:12:009542USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:429543
Matthias Klosea0bea5d2010-05-08 10:00:289544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
9545$as_echo_n "checking for --with-dec-threads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:039546
Guido van Rossumec2f0731997-01-22 20:54:019547
Martin v. Löwiseba40652007-08-30 20:10:579548# Check whether --with-dec-threads was given.
Matthias Klosea0bea5d2010-05-08 10:00:289549if test "${with_dec_threads+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:579550 withval=$with_dec_threads;
Matthias Klosea0bea5d2010-05-08 10:00:289551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9552$as_echo "$withval" >&6; }
Guido van Rossumec2f0731997-01-22 20:54:019553LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:369554if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:019555 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:369556fi
Guido van Rossumec2f0731997-01-22 20:54:019557else
Matthias Klosea0bea5d2010-05-08 10:00:289558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:579560fi
9561
Martin v. Löwis11437992002-04-12 09:54:039562
9563# Templates for things AC_DEFINEd more than once.
9564# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:019565
9566
Martin v. Löwis11437992002-04-12 09:54:039567
9568
Matthias Klosea0bea5d2010-05-08 10:00:289569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
9570$as_echo_n "checking for --with-threads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:039571
Martin v. Löwiseba40652007-08-30 20:10:579572# Check whether --with-threads was given.
Matthias Klosea0bea5d2010-05-08 10:00:289573if test "${with_threads+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:579574 withval=$with_threads;
9575fi
Guido van Rossumec2f0731997-01-22 20:54:019576
9577
Barry Warsawc0d24d8b2000-06-29 16:12:009578# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:039579
Martin v. Löwiseba40652007-08-30 20:10:579580# Check whether --with-thread was given.
Matthias Klosea0bea5d2010-05-08 10:00:289581if test "${with_thread+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:579582 withval=$with_thread; with_threads=$with_thread
9583fi
9584
Barry Warsawc0d24d8b2000-06-29 16:12:009585
9586if test -z "$with_threads"
9587then with_threads="yes"
9588fi
Matthias Klosea0bea5d2010-05-08 10:00:289589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
9590$as_echo "$with_threads" >&6; }
Barry Warsawc0d24d8b2000-06-29 16:12:009591
Martin v. Löwis2d7e2642002-04-05 16:50:539592
Barry Warsawc0d24d8b2000-06-29 16:12:009593if test "$with_threads" = "no"
9594then
9595 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:299596elif test "$ac_cv_pthread_is_default" = yes
9597then
Matthias Klosea0bea5d2010-05-08 10:00:289598 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:299599
Martin v. Löwisa5f73f92001-10-15 08:06:299600 # Defining _REENTRANT on system with POSIX threads should not hurt.
Matthias Klosea0bea5d2010-05-08 10:00:289601 $as_echo "#define _REENTRANT 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:299602
9603 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:039604 THREADOBJ="Python/thread.o"
Jesús Cea598f6762019-09-28 03:09:249605 if test "$ac_sys_system" = "SunOS"; then
9606 CFLAGS="$CFLAGS -D_REENTRANT"
9607 fi
Martin v. Löwis130fb172001-07-19 11:00:419608elif test "$ac_cv_kpthread" = "yes"
9609then
9610 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:479611 if test "$ac_cv_cxx_thread" = "yes"; then
9612 CXX="$CXX -Kpthread"
9613 fi
Matthias Klosea0bea5d2010-05-08 10:00:289614 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum2242f2f2001-04-11 20:58:209615
Guido van Rossumd0b69ec2001-09-10 14:10:549616 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:539617 THREADOBJ="Python/thread.o"
Martin v. Löwis5f433f02003-05-05 05:05:309618elif test "$ac_cv_kthread" = "yes"
9619then
9620 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:479621 if test "$ac_cv_cxx_thread" = "yes"; then
9622 CXX="$CXX -Kthread"
9623 fi
Matthias Klosea0bea5d2010-05-08 10:00:289624 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis5f433f02003-05-05 05:05:309625
9626 posix_threads=yes
9627 THREADOBJ="Python/thread.o"
Martin v. Löwis4ee6eef2003-05-26 05:37:519628elif test "$ac_cv_pthread" = "yes"
9629then
9630 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:479631 if test "$ac_cv_cxx_thread" = "yes"; then
9632 CXX="$CXX -pthread"
9633 fi
Matthias Klosea0bea5d2010-05-08 10:00:289634 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:519635
9636 posix_threads=yes
9637 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:419638else
9639 if test ! -z "$with_threads" -a -d "$with_threads"
9640 then LDFLAGS="$LDFLAGS -L$with_threads"
9641 fi
9642 if test ! -z "$withval" -a -d "$withval"
9643 then LDFLAGS="$LDFLAGS -L$withval"
9644 fi
Martin v. Löwis69c0ff32001-10-15 14:34:429645
9646 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:519647 # define _POSIX_THREADS in unistd.h. Some apparently don't
9648 # (e.g. gnu pth with pthread emulation)
Matthias Klosea0bea5d2010-05-08 10:00:289649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
9650$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049652/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:159653
Martin v. Löwis69c0ff32001-10-15 14:34:429654#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:159655#ifdef _POSIX_THREADS
9656yes
9657#endif
Martin v. Löwis11437992002-04-12 09:54:039658
9659_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:429660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:289661 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis69c0ff32001-10-15 14:34:429662 unistd_defines_pthreads=yes
9663else
Martin v. Löwis69c0ff32001-10-15 14:34:429664 unistd_defines_pthreads=no
9665fi
Marc-André Lemburg6d5e5792010-04-30 17:20:149666rm -f conftest*
Martin v. Löwis69c0ff32001-10-15 14:34:429667
Matthias Klosea0bea5d2010-05-08 10:00:289668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
9669$as_echo "$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:429670
Matthias Klosea0bea5d2010-05-08 10:00:289671 $as_echo "#define _REENTRANT 1" >>confdefs.h
Guido van Rossum9caf77a1996-08-01 00:52:269672
Matthias Klosea0bea5d2010-05-08 10:00:289673 ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:339674if test "x$ac_cv_header_cthreads_h" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289675 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:049676
Matthias Klosea0bea5d2010-05-08 10:00:289677 $as_echo "#define C_THREADS 1" >>confdefs.h
Guido van Rossum7b3853f1996-07-30 18:09:359678
Martin v. Löwis11437992002-04-12 09:54:039679
Matthias Klosea0bea5d2010-05-08 10:00:289680$as_echo "#define HURD_C_THREADS 1" >>confdefs.h
Martin v. Löwisa6e97582002-01-01 18:41:339681
9682 LIBS="$LIBS -lthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:539683 THREADOBJ="Python/thread.o"
Martin v. Löwisa6e97582002-01-01 18:41:339684else
Martin v. Löwisa6e97582002-01-01 18:41:339685
Matthias Klosea0bea5d2010-05-08 10:00:289686 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:339687if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289688 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:049689
Matthias Klosea0bea5d2010-05-08 10:00:289690 $as_echo "#define C_THREADS 1" >>confdefs.h
Martin v. Löwisa6e97582002-01-01 18:41:339691
Martin v. Löwis11437992002-04-12 09:54:039692
Matthias Klosea0bea5d2010-05-08 10:00:289693$as_echo "#define MACH_C_THREADS 1" >>confdefs.h
Martin v. Löwisa6e97582002-01-01 18:41:339694
Martin v. Löwis2d7e2642002-04-05 16:50:539695 THREADOBJ="Python/thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:359696else
Guido van Rossum7b3853f1996-07-30 18:09:359697
Matthias Klosea0bea5d2010-05-08 10:00:289698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
9699$as_echo_n "checking for --with-pth... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:039700
Martin v. Löwiseba40652007-08-30 20:10:579701# Check whether --with-pth was given.
Matthias Klosea0bea5d2010-05-08 10:00:289702if test "${with_pth+set}" = set; then :
9703 withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9704$as_echo "$withval" >&6; }
9705 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039706
9707
Matthias Klosea0bea5d2010-05-08 10:00:289708$as_echo "#define HAVE_PTH 1" >>confdefs.h
Guido van Rossum9e8181b2000-09-19 00:46:469709
Martin v. Löwis3e2c6322002-10-29 10:07:439710 LIBS="-lpth $LIBS"
9711 THREADOBJ="Python/thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:469712else
Matthias Klosea0bea5d2010-05-08 10:00:289713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
Martin v. Löwis8158b5a2001-10-08 13:17:289715
9716 # Just looking for pthread_create in libpthread is not enough:
9717 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9718 # So we really have to include pthread.h, and then link.
9719 _libs=$LIBS
9720 LIBS="$LIBS -lpthread"
Matthias Klosea0bea5d2010-05-08 10:00:289721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
9722$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049724/* end confdefs.h. */
Stefan Krahae66ca62012-11-22 21:36:579725
9726#include <stdio.h>
Martin v. Löwis8158b5a2001-10-08 13:17:289727#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:319728
Martin v. Löwis8158b5a2001-10-08 13:17:289729void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:039730int
9731main ()
9732{
Martin v. Löwis8158b5a2001-10-08 13:17:289733
9734pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:039735 ;
9736 return 0;
9737}
9738_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289739if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039740
Matthias Klosea0bea5d2010-05-08 10:00:289741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742$as_echo "yes" >&6; }
9743 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum02a1c402000-02-25 19:26:319744
Martin v. Löwis69c0ff32001-10-15 14:34:429745 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:539746 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:319747else
Martin v. Löwis11437992002-04-12 09:54:039748
Martin v. Löwis8158b5a2001-10-08 13:17:289749 LIBS=$_libs
Matthias Klosea0bea5d2010-05-08 10:00:289750 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
Matthias Klose3cef2a92012-03-14 22:39:339751if test "x$ac_cv_func_pthread_detach" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289752 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossumad678af1998-10-02 14:42:159753
Martin v. Löwis69c0ff32001-10-15 14:34:429754 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:539755 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:159756else
Guido van Rossumad678af1998-10-02 14:42:159757
Matthias Klosea0bea5d2010-05-08 10:00:289758 ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:339759if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289760 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwisf90ae202002-06-11 06:22:319761
9762
Matthias Klosea0bea5d2010-05-08 10:00:289763$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
Martin v. Löwisf90ae202002-06-11 06:22:319764
9765 THREADOBJ="Python/thread.o"
9766else
9767
Matthias Klosea0bea5d2010-05-08 10:00:289768 ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:339769if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289770 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039771
9772
Matthias Klosea0bea5d2010-05-08 10:00:289773$as_echo "#define BEOS_THREADS 1" >>confdefs.h
Guido van Rossumec95c7b1998-08-04 17:59:569774
Martin v. Löwis2d7e2642002-04-05 16:50:539775 THREADOBJ="Python/thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:569776else
Guido van Rossumec95c7b1998-08-04 17:59:569777
Matthias Klosea0bea5d2010-05-08 10:00:289778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
9779$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339780if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289781 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549782else
Martin v. Löwis11437992002-04-12 09:54:039783 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289784LIBS="-lpthreads $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049786/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039787
Martin v. Löwiseba40652007-08-30 20:10:579788/* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039791#ifdef __cplusplus
9792extern "C"
9793#endif
Martin v. Löwis11437992002-04-12 09:54:039794char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:039795int
9796main ()
9797{
Martin v. Löwiseba40652007-08-30 20:10:579798return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:039799 ;
9800 return 0;
9801}
9802_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289803if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039804 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:099805else
Matthias Klosea0bea5d2010-05-08 10:00:289806 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:099807fi
Matthias Klosea0bea5d2010-05-08 10:00:289808rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039810LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:099811fi
Matthias Klosea0bea5d2010-05-08 10:00:289812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
9813$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339814if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289815 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Greg Steinadf63d62000-07-05 10:38:099816
Guido van Rossumd0b69ec2001-09-10 14:10:549817 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:419818 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:539819 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:099820else
Greg Steinadf63d62000-07-05 10:38:099821
Matthias Klosea0bea5d2010-05-08 10:00:289822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
9823$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339824if ${ac_cv_lib_c_r_pthread_create+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289825 $as_echo_n "(cached) " >&6
Greg Steinadf63d62000-07-05 10:38:099826else
Martin v. Löwis11437992002-04-12 09:54:039827 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:099828LIBS="-lc_r $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049830/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039831
Martin v. Löwiseba40652007-08-30 20:10:579832/* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039835#ifdef __cplusplus
9836extern "C"
9837#endif
Martin v. Löwis11437992002-04-12 09:54:039838char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:039839int
9840main ()
9841{
Martin v. Löwiseba40652007-08-30 20:10:579842return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:039843 ;
9844 return 0;
9845}
9846_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289847if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039848 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:299849else
Matthias Klosea0bea5d2010-05-08 10:00:289850 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:299851fi
Matthias Klosea0bea5d2010-05-08 10:00:289852rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039854LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:299855fi
Matthias Klosea0bea5d2010-05-08 10:00:289856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
9857$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339858if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289859 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum49545951997-12-02 19:28:299860
Guido van Rossumd0b69ec2001-09-10 14:10:549861 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:419862 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:539863 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:389864else
Guido van Rossum07bd90e2000-05-08 13:41:389865
Matthias Klosea0bea5d2010-05-08 10:00:289866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
9867$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339868if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289869 $as_echo_n "(cached) " >&6
Guido van Rossum8d6e8af2000-10-30 17:45:079870else
Martin v. Löwis11437992002-04-12 09:54:039871 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:079872LIBS="-lpthread $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049874/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039875
Martin v. Löwiseba40652007-08-30 20:10:579876/* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039879#ifdef __cplusplus
9880extern "C"
9881#endif
Martin v. Löwis11437992002-04-12 09:54:039882char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:039883int
9884main ()
9885{
Martin v. Löwiseba40652007-08-30 20:10:579886return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:039887 ;
9888 return 0;
9889}
9890_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289891if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039892 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:079893else
Matthias Klosea0bea5d2010-05-08 10:00:289894 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:079895fi
Matthias Klosea0bea5d2010-05-08 10:00:289896rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039898LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:079899fi
Matthias Klosea0bea5d2010-05-08 10:00:289900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
9901$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339902if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289903 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum8d6e8af2000-10-30 17:45:079904
Guido van Rossumd0b69ec2001-09-10 14:10:549905 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:419906 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:539907 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:079908else
Guido van Rossum8d6e8af2000-10-30 17:45:079909
Matthias Klosea0bea5d2010-05-08 10:00:289910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
9911$as_echo_n "checking for pthread_create in -lcma... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339912if ${ac_cv_lib_cma_pthread_create+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289913 $as_echo_n "(cached) " >&6
Guido van Rossumb93a8621998-05-07 13:27:329914else
Martin v. Löwis11437992002-04-12 09:54:039915 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:329916LIBS="-lcma $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049918/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039919
Martin v. Löwiseba40652007-08-30 20:10:579920/* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039923#ifdef __cplusplus
9924extern "C"
9925#endif
Martin v. Löwis11437992002-04-12 09:54:039926char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:039927int
9928main ()
9929{
Martin v. Löwiseba40652007-08-30 20:10:579930return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:039931 ;
9932 return 0;
9933}
9934_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:289935if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039936 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:329937else
Matthias Klosea0bea5d2010-05-08 10:00:289938 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:329939fi
Matthias Klosea0bea5d2010-05-08 10:00:289940rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039942LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:329943fi
Matthias Klosea0bea5d2010-05-08 10:00:289944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
9945$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339946if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:289947 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossumb93a8621998-05-07 13:27:329948
Guido van Rossumd0b69ec2001-09-10 14:10:549949 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:419950 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:539951 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:329952else
Thomas Wouters0db2b2b2000-08-26 11:33:439953
Martin v. Löwis130fb172001-07-19 11:00:419954 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:019955fi
9956
Guido van Rossum627b2d71993-12-24 10:39:169957
Guido van Rossum7b3853f1996-07-30 18:09:359958fi
9959
Guido van Rossum0be3e491997-05-22 20:33:339960fi
9961
Guido van Rossum49545951997-12-02 19:28:299962fi
9963
Guido van Rossumb93a8621998-05-07 13:27:329964fi
9965
Guido van Rossum07bd90e2000-05-08 13:41:389966
Michael W. Hudson54241132001-12-07 15:38:269967fi
9968
Martin v. Löwisf90ae202002-06-11 06:22:319969
9970fi
9971
Martin v. Löwisa6e97582002-01-01 18:41:339972fi
Matthias Klosea0bea5d2010-05-08 10:00:289973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:579975fi
9976
Martin v. Löwis11437992002-04-12 09:54:039977fi
9978
9979
9980fi
9981
Martin v. Löwisa6e97582002-01-01 18:41:339982
Michael W. Hudson54241132001-12-07 15:38:269983
Matthias Klosea0bea5d2010-05-08 10:00:289984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
9985$as_echo_n "checking for usconfig in -lmpc... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:339986if ${ac_cv_lib_mpc_usconfig+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:289987 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549988else
Martin v. Löwis11437992002-04-12 09:54:039989 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289990LIBS="-lmpc $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:289991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049992/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039993
Martin v. Löwiseba40652007-08-30 20:10:579994/* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039997#ifdef __cplusplus
9998extern "C"
9999#endif
Martin v. Löwis11437992002-04-12 09:54:0310000char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310001int
10002main ()
10003{
Martin v. Löwiseba40652007-08-30 20:10:5710004return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310005 ;
10006 return 0;
10007}
10008_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810009if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310010 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:5410011else
Matthias Klosea0bea5d2010-05-08 10:00:2810012 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:1610013fi
Matthias Klosea0bea5d2010-05-08 10:00:2810014rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310016LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5410017fi
Matthias Klosea0bea5d2010-05-08 10:00:2810018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10019$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3310020if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2810021 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1610022
Martin v. Löwis130fb172001-07-19 11:00:4110023 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:5310024 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:4110025 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:1610026fi
10027
Martin v. Löwis3d2b5492002-03-15 13:48:2110028
Neal Norwitza978ab02002-11-02 16:58:0510029 if test "$posix_threads" != "yes"; then
Matthias Klosea0bea5d2010-05-08 10:00:2810030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
10031$as_echo_n "checking for thr_create in -lthread... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3310032if ${ac_cv_lib_thread_thr_create+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2810033 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410034else
Martin v. Löwis11437992002-04-12 09:54:0310035 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810036LIBS="-lthread $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2810037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410038/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310039
Martin v. Löwiseba40652007-08-30 20:10:5710040/* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310043#ifdef __cplusplus
10044extern "C"
10045#endif
Martin v. Löwis11437992002-04-12 09:54:0310046char thr_create ();
Martin v. Löwis11437992002-04-12 09:54:0310047int
10048main ()
10049{
Martin v. Löwiseba40652007-08-30 20:10:5710050return thr_create ();
Martin v. Löwis11437992002-04-12 09:54:0310051 ;
10052 return 0;
10053}
10054_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810055if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310056 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:5410057else
Matthias Klosea0bea5d2010-05-08 10:00:2810058 ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:1610059fi
Matthias Klosea0bea5d2010-05-08 10:00:2810060rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310062LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5410063fi
Matthias Klosea0bea5d2010-05-08 10:00:2810064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
10065$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3310066if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2810067 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1610068
Martin v. Löwis3d2b5492002-03-15 13:48:2110069 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:5310070 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:2110071 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:1610072fi
10073
Martin v. Löwis3d2b5492002-03-15 13:48:2110074 fi
Michael W. Hudson54241132001-12-07 15:38:2610075
Martin v. Löwis130fb172001-07-19 11:00:4110076 if test "$USE_THREAD_MODULE" != "#"
10077 then
10078 # If the above checks didn't disable threads, (at least) OSF1
10079 # needs this '-threads' argument during linking.
10080 case $ac_sys_system in
10081 OSF1) LDLAST=-threads;;
10082 esac
Jeremy Hylton1a2ca862000-10-16 16:59:1210083 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:5110084fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410085
Martin v. Löwis4ee6eef2003-05-26 05:37:5110086if test "$posix_threads" = "yes"; then
10087 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:2410088
Matthias Klosea0bea5d2010-05-08 10:00:2810089$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110090
10091 fi
10092
10093 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10094 case $ac_sys_system/$ac_sys_release in
Charles-François Natali4929eb92011-07-21 17:41:0410095 SunOS/5.6)
Matthias Klosea0bea5d2010-05-08 10:00:2810096$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
Martin v. Löwisa7a76d32002-10-04 07:21:2410097
Martin v. Löwis4ee6eef2003-05-26 05:37:5110098 ;;
10099 SunOS/5.8)
Matthias Klosea0bea5d2010-05-08 10:00:2810100$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110101
10102 ;;
Charles-François Natali4929eb92011-07-21 17:41:0410103 AIX/*)
Matthias Klosea0bea5d2010-05-08 10:00:2810104$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Christian Heimescba36bb2008-01-30 22:54:1810105
10106 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:5110107 esac
10108
Matthias Klosea0bea5d2010-05-08 10:00:2810109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10110$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3310111 if ${ac_cv_pthread_system_supported+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2810112 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5110113else
Matthias Klosea0bea5d2010-05-08 10:00:2810114 if test "$cross_compiling" = yes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110115 ac_cv_pthread_system_supported=no
10116else
Matthias Klosea0bea5d2010-05-08 10:00:2810117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410118/* end confdefs.h. */
Stefan Krahae66ca62012-11-22 21:36:5710119
10120 #include <stdio.h>
10121 #include <pthread.h>
Martin v. Löwis4ee6eef2003-05-26 05:37:5110122 void *foo(void *parm) {
10123 return NULL;
10124 }
10125 main() {
10126 pthread_attr_t attr;
10127 pthread_t id;
10128 if (pthread_attr_init(&attr)) exit(-1);
10129 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10130 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10131 exit(0);
10132 }
10133_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810134if ac_fn_c_try_run "$LINENO"; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110135 ac_cv_pthread_system_supported=yes
10136else
Matthias Klosea0bea5d2010-05-08 10:00:2810137 ac_cv_pthread_system_supported=no
Martin v. Löwis4ee6eef2003-05-26 05:37:5110138fi
Matthias Klosea0bea5d2010-05-08 10:00:2810139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10140 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:5110141fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410142
Martin v. Löwiseba40652007-08-30 20:10:5710143
Guido van Rossum627b2d71993-12-24 10:39:1610144fi
10145
Matthias Klosea0bea5d2010-05-08 10:00:2810146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10147$as_echo "$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5110148 if test "$ac_cv_pthread_system_supported" = "yes"; then
10149
Matthias Klosea0bea5d2010-05-08 10:00:2810150$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110151
10152 fi
Matthias Klosea0bea5d2010-05-08 10:00:2810153 for ac_func in pthread_sigmask
10154do :
10155 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
Matthias Klose3cef2a92012-03-14 22:39:3310156if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110157 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810158#define HAVE_PTHREAD_SIGMASK 1
Martin v. Löwis4ee6eef2003-05-26 05:37:5110159_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:4910160 case $ac_sys_system in
10161 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:5110162
Matthias Klosea0bea5d2010-05-08 10:00:2810163$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
Jason Tishlerfac083d2003-07-22 15:20:4910164
10165 ;;
10166 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:5110167fi
10168done
10169
Christian Heimes0d604cf2013-08-21 11:26:0510170 for ac_func in pthread_atfork
10171do :
10172 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
10173if test "x$ac_cv_func_pthread_atfork" = xyes; then :
10174 cat >>confdefs.h <<_ACEOF
10175#define HAVE_PTHREAD_ATFORK 1
10176_ACEOF
10177
10178fi
10179done
10180
Martin v. Löwis4ee6eef2003-05-26 05:37:5110181fi
10182
10183
Martin v. Löwisa2ac6022001-08-09 11:40:1410184# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:0310185
Matthias Klosea0bea5d2010-05-08 10:00:2810186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10187$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5710188# Check whether --enable-ipv6 was given.
Matthias Klosea0bea5d2010-05-08 10:00:2810189if test "${enable_ipv6+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5710190 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:1410191 no)
Matthias Klosea0bea5d2010-05-08 10:00:2810192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410194 ipv6=no
10195 ;;
Matthias Klosea0bea5d2010-05-08 10:00:2810196 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10197$as_echo "yes" >&6; }
10198 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa2ac6022001-08-09 11:40:1410199
10200 ipv6=yes
10201 ;;
Martin v. Löwis11437992002-04-12 09:54:0310202 esac
Martin v. Löwisa2ac6022001-08-09 11:40:1410203else
Martin v. Löwis11437992002-04-12 09:54:0310204
Matthias Klosea0bea5d2010-05-08 10:00:2810205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410206/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:1410207 /* AF_INET6 available check */
10208#include <sys/types.h>
10209#include <sys/socket.h>
Charles-François Natalibe2b9072013-01-08 18:47:0010210int
10211main ()
Martin v. Löwisa2ac6022001-08-09 11:40:1410212{
Charles-François Natalibe2b9072013-01-08 18:47:0010213int domain = AF_INET6;
10214 ;
10215 return 0;
Martin v. Löwisa2ac6022001-08-09 11:40:1410216}
Martin v. Löwis11437992002-04-12 09:54:0310217_ACEOF
Charles-François Natalibe2b9072013-01-08 18:47:0010218if ac_fn_c_try_compile "$LINENO"; then :
Matthias Klosec511b472010-05-08 11:01:3910219
Matthias Klosea0bea5d2010-05-08 10:00:2810220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10221$as_echo "yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410222 ipv6=yes
Matthias Klosec511b472010-05-08 11:01:3910223
Martin v. Löwisa2ac6022001-08-09 11:40:1410224else
Matthias Klosec511b472010-05-08 11:01:3910225
Matthias Klosea0bea5d2010-05-08 10:00:2810226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410228 ipv6=no
Matthias Klosec511b472010-05-08 11:01:3910229
Martin v. Löwisa2ac6022001-08-09 11:40:1410230fi
Charles-François Natalibe2b9072013-01-08 18:47:0010231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:5710232
Martin v. Löwisa5f8bb52001-09-05 08:22:3410233if test "$ipv6" = "yes"; then
Matthias Klosea0bea5d2010-05-08 10:00:2810234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10235$as_echo_n "checking if RFC2553 API is available... " >&6; }
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410237/* end confdefs.h. */
Matthias Klosec511b472010-05-08 11:01:3910238
10239 #include <sys/types.h>
Martin v. Löwisa5f8bb52001-09-05 08:22:3410240#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:0310241int
10242main ()
10243{
Martin v. Löwisa5f8bb52001-09-05 08:22:3410244struct sockaddr_in6 x;
Matthias Klosec511b472010-05-08 11:01:3910245 x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:0310246 ;
10247 return 0;
10248}
Matthias Klosec511b472010-05-08 11:01:3910249
Martin v. Löwis11437992002-04-12 09:54:0310250_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810251if ac_fn_c_try_compile "$LINENO"; then :
Matthias Klosec511b472010-05-08 11:01:3910252
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810254$as_echo "yes" >&6; }
Matthias Klosec511b472010-05-08 11:01:3910255 ipv6=yes
10256
Martin v. Löwisa5f8bb52001-09-05 08:22:3410257else
Matthias Klosec511b472010-05-08 11:01:3910258
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810260$as_echo "no" >&6; }
Matthias Klosec511b472010-05-08 11:01:3910261 ipv6=no
10262
Martin v. Löwisa5f8bb52001-09-05 08:22:3410263fi
Martin v. Löwiseba40652007-08-30 20:10:5710264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:3410265fi
10266
10267if test "$ipv6" = "yes"; then
Matthias Klosea0bea5d2010-05-08 10:00:2810268 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa5f8bb52001-09-05 08:22:3410269
10270fi
10271
Martin v. Löwiseba40652007-08-30 20:10:5710272fi
10273
Martin v. Löwisa2ac6022001-08-09 11:40:1410274
10275ipv6type=unknown
10276ipv6lib=none
10277ipv6trylibc=no
10278
10279if test "$ipv6" = "yes"; then
Matthias Klosea0bea5d2010-05-08 10:00:2810280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10281$as_echo_n "checking ipv6 stack type... " >&6; }
Guido van Rossumb8552162001-09-05 14:58:1110282 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10283 do
Martin v. Löwisa2ac6022001-08-09 11:40:1410284 case $i in
10285 inria)
Matthias Klosea0bea5d2010-05-08 10:00:2810286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410287/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2910288
Martin v. Löwisa2ac6022001-08-09 11:40:1410289#include <netinet/in.h>
10290#ifdef IPV6_INRIA_VERSION
10291yes
10292#endif
Martin v. Löwis11437992002-04-12 09:54:0310293_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1410294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2810295 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis44ddbde2001-12-02 10:15:3710296 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:1410297fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1410298rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1410299
10300 ;;
10301 kame)
Matthias Klosea0bea5d2010-05-08 10:00:2810302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410303/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2910304
Martin v. Löwisa2ac6022001-08-09 11:40:1410305#include <netinet/in.h>
10306#ifdef __KAME__
10307yes
10308#endif
Martin v. Löwis11437992002-04-12 09:54:0310309_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1410310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2810311 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1410312 ipv6type=$i;
10313 ipv6lib=inet6
10314 ipv6libdir=/usr/local/v6/lib
10315 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1410316fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1410317rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1410318
10319 ;;
10320 linux-glibc)
Matthias Klosea0bea5d2010-05-08 10:00:2810321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410322/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2910323
Martin v. Löwisa2ac6022001-08-09 11:40:1410324#include <features.h>
10325#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
10326yes
10327#endif
Martin v. Löwis11437992002-04-12 09:54:0310328_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1410329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2810330 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1410331 ipv6type=$i;
10332 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1410333fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1410334rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1410335
10336 ;;
10337 linux-inet6)
10338 if test -d /usr/inet6; then
10339 ipv6type=$i
10340 ipv6lib=inet6
10341 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:4910342 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1410343 fi
10344 ;;
10345 solaris)
10346 if test -f /etc/netconfig; then
Antoine Pitrou31e85952011-01-03 18:57:1410347 if $GREP -q tcp6 /etc/netconfig; then
Martin v. Löwisa2ac6022001-08-09 11:40:1410348 ipv6type=$i
10349 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1410350 fi
10351 fi
10352 ;;
10353 toshiba)
Matthias Klosea0bea5d2010-05-08 10:00:2810354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410355/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2910356
Martin v. Löwisa2ac6022001-08-09 11:40:1410357#include <sys/param.h>
10358#ifdef _TOSHIBA_INET6
10359yes
10360#endif
Martin v. Löwis11437992002-04-12 09:54:0310361_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1410362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2810363 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1410364 ipv6type=$i;
10365 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3710366 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1410367fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1410368rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1410369
10370 ;;
10371 v6d)
Matthias Klosea0bea5d2010-05-08 10:00:2810372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410373/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2910374
Martin v. Löwisa2ac6022001-08-09 11:40:1410375#include </usr/local/v6/include/sys/v6config.h>
10376#ifdef __V6D__
10377yes
10378#endif
Martin v. Löwis11437992002-04-12 09:54:0310379_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1410380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2810381 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1410382 ipv6type=$i;
10383 ipv6lib=v6;
10384 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:4910385 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1410386fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1410387rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1410388
10389 ;;
10390 zeta)
Matthias Klosea0bea5d2010-05-08 10:00:2810391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410392/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2910393
Martin v. Löwisa2ac6022001-08-09 11:40:1410394#include <sys/param.h>
10395#ifdef _ZETA_MINAMI_INET6
10396yes
10397#endif
Martin v. Löwis11437992002-04-12 09:54:0310398_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1410399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2810400 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1410401 ipv6type=$i;
10402 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3710403 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1410404fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1410405rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1410406
10407 ;;
10408 esac
10409 if test "$ipv6type" != "unknown"; then
10410 break
10411 fi
10412 done
Matthias Klosea0bea5d2010-05-08 10:00:2810413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
10414$as_echo "$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410415fi
10416
10417if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
10418 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
10419 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
10420 echo "using lib$ipv6lib"
10421 else
10422 if test $ipv6trylibc = "yes"; then
10423 echo "using libc"
10424 else
10425 echo 'Fatal: no $ipv6lib library found. cannot continue.'
10426 echo "You need to fetch lib$ipv6lib.a from appropriate"
10427 echo 'ipv6 kit and compile beforehand.'
10428 exit 1
10429 fi
10430 fi
10431fi
10432
Matthias Klosea0bea5d2010-05-08 10:00:2810433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
10434$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ronald Oussoren0d236eb2008-06-06 21:31:3310436/* end confdefs.h. */
Matthias Klosec511b472010-05-08 11:01:3910437
10438 #include <Carbon/Carbon.h>
Ronald Oussoren0d236eb2008-06-06 21:31:3310439int
10440main ()
10441{
10442FSIORefNum fRef = 0
10443 ;
10444 return 0;
10445}
Mark Dickinson0712b562010-05-08 19:13:2110446
Ronald Oussoren0d236eb2008-06-06 21:31:3310447_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810448if ac_fn_c_try_compile "$LINENO"; then :
Matthias Klosec511b472010-05-08 11:01:3910449
Ronald Oussoren0d236eb2008-06-06 21:31:3310450
Matthias Klosea0bea5d2010-05-08 10:00:2810451$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
Ronald Oussoren0d236eb2008-06-06 21:31:3310452
Matthias Klosea0bea5d2010-05-08 10:00:2810453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454$as_echo "yes" >&6; }
Ronald Oussoren0d236eb2008-06-06 21:31:3310455
Mark Dickinson0712b562010-05-08 19:13:2110456else
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
10460
Ronald Oussoren0d236eb2008-06-06 21:31:3310461fi
Ronald Oussoren0d236eb2008-06-06 21:31:3310462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463
Martin v. Löwisa3fb4f72002-06-09 13:33:5410464# Check for --with-doc-strings
Matthias Klosea0bea5d2010-05-08 10:00:2810465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
10466$as_echo_n "checking for --with-doc-strings... " >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5410467
Martin v. Löwiseba40652007-08-30 20:10:5710468# Check whether --with-doc-strings was given.
Matthias Klosea0bea5d2010-05-08 10:00:2810469if test "${with_doc_strings+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5710470 withval=$with_doc_strings;
10471fi
Martin v. Löwisa3fb4f72002-06-09 13:33:5410472
Martin v. Löwisa3fb4f72002-06-09 13:33:5410473
10474if test -z "$with_doc_strings"
10475then with_doc_strings="yes"
10476fi
10477if test "$with_doc_strings" != "no"
10478then
10479
Matthias Klosea0bea5d2010-05-08 10:00:2810480$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
Martin v. Löwisa3fb4f72002-06-09 13:33:5410481
10482fi
Matthias Klosea0bea5d2010-05-08 10:00:2810483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
10484$as_echo "$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5410485
Neil Schemenauera35c6882001-02-27 04:45:0510486# Check for Python-specific malloc support
Matthias Klosea0bea5d2010-05-08 10:00:2810487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
10488$as_echo_n "checking for --with-tsc... " >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:4410489
Martin v. Löwiseba40652007-08-30 20:10:5710490# Check whether --with-tsc was given.
Matthias Klosea0bea5d2010-05-08 10:00:2810491if test "${with_tsc+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5710492 withval=$with_tsc;
Martin v. Löwisf30d60e2004-06-08 08:17:4410493if test "$withval" != no
10494then
10495
Matthias Klosea0bea5d2010-05-08 10:00:2810496$as_echo "#define WITH_TSC 1" >>confdefs.h
Martin v. Löwisf30d60e2004-06-08 08:17:4410497
Matthias Klosea0bea5d2010-05-08 10:00:2810498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499$as_echo "yes" >&6; }
10500else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:4410502fi
10503else
Matthias Klosea0bea5d2010-05-08 10:00:2810504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5710506fi
10507
Martin v. Löwisf30d60e2004-06-08 08:17:4410508
10509# Check for Python-specific malloc support
Matthias Klosea0bea5d2010-05-08 10:00:2810510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
10511$as_echo_n "checking for --with-pymalloc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0310512
Martin v. Löwiseba40652007-08-30 20:10:5710513# Check whether --with-pymalloc was given.
Matthias Klosea0bea5d2010-05-08 10:00:2810514if test "${with_pymalloc+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5710515 withval=$with_pymalloc;
10516fi
Michael W. Hudson54241132001-12-07 15:38:2610517
Neil Schemenauera35c6882001-02-27 04:45:0510518
Neil Schemenauer16c22972002-03-22 15:34:4910519if test -z "$with_pymalloc"
10520then with_pymalloc="yes"
10521fi
10522if test "$with_pymalloc" != "no"
10523then
Martin v. Löwis11437992002-04-12 09:54:0310524
Matthias Klosea0bea5d2010-05-08 10:00:2810525$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
Neil Schemenauer16c22972002-03-22 15:34:4910526
10527fi
Matthias Klosea0bea5d2010-05-08 10:00:2810528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
10529$as_echo "$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:4910530
Benjamin Peterson91c12eb2009-12-03 02:52:3910531# Check for Valgrind support
Matthias Klosea0bea5d2010-05-08 10:00:2810532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
10533$as_echo_n "checking for --with-valgrind... " >&6; }
Benjamin Peterson91c12eb2009-12-03 02:52:3910534
10535# Check whether --with-valgrind was given.
Matthias Klosea0bea5d2010-05-08 10:00:2810536if test "${with_valgrind+set}" = set; then :
Benjamin Peterson91c12eb2009-12-03 02:52:3910537 withval=$with_valgrind;
10538else
10539 with_valgrind=no
10540fi
10541
Matthias Klosea0bea5d2010-05-08 10:00:2810542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
10543$as_echo "$with_valgrind" >&6; }
Benjamin Peterson91c12eb2009-12-03 02:52:3910544if test "$with_valgrind" != no; then
Matthias Klosea0bea5d2010-05-08 10:00:2810545 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3310546if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
Benjamin Peterson91c12eb2009-12-03 02:52:3910547
Matthias Klosea0bea5d2010-05-08 10:00:2810548$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
Benjamin Peterson91c12eb2009-12-03 02:52:3910549
10550else
Georg Brandl71f4fbb2011-02-25 11:04:5010551 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
Benjamin Peterson91c12eb2009-12-03 02:52:3910552
10553fi
10554
10555
10556fi
10557
Barry Warsawef82cd72000-06-30 16:21:0110558# Check for --with-wctype-functions
Matthias Klosea0bea5d2010-05-08 10:00:2810559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
10560$as_echo_n "checking for --with-wctype-functions... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0310561
Martin v. Löwiseba40652007-08-30 20:10:5710562# Check whether --with-wctype-functions was given.
Matthias Klosea0bea5d2010-05-08 10:00:2810563if test "${with_wctype_functions+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5710564 withval=$with_wctype_functions;
Barry Warsawef82cd72000-06-30 16:21:0110565if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:0310566then
10567
Matthias Klosea0bea5d2010-05-08 10:00:2810568$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0310569
Matthias Klosea0bea5d2010-05-08 10:00:2810570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10571$as_echo "yes" >&6; }
10572else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
Barry Warsawef82cd72000-06-30 16:21:0110574fi
10575else
Matthias Klosea0bea5d2010-05-08 10:00:2810576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5710578fi
10579
Barry Warsawef82cd72000-06-30 16:21:0110580
Guido van Rossum48bdbfc1996-05-28 22:53:4810581# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:3010582
Guido van Rossum98935bf2001-09-05 19:13:1610583DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:3010584
Guido van Rossume97ee181999-12-20 21:27:2210585# the dlopen() function means we might want to use dynload_shlib.o. some
10586# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:5110587for ac_func in dlopen
Matthias Klosea0bea5d2010-05-08 10:00:2810588do :
10589 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Matthias Klose3cef2a92012-03-14 22:39:3310590if test "x$ac_cv_func_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0310591 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810592#define HAVE_DLOPEN 1
Martin v. Löwis11437992002-04-12 09:54:0310593_ACEOF
Guido van Rossume97ee181999-12-20 21:27:2210594
Guido van Rossume97ee181999-12-20 21:27:2210595fi
Thomas Wouters3a584202000-08-05 23:28:5110596done
Guido van Rossume97ee181999-12-20 21:27:2210597
Michael W. Hudson54241132001-12-07 15:38:2610598
Guido van Rossume97ee181999-12-20 21:27:2210599# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
10600# loading of modules.
10601
Matthias Klosea0bea5d2010-05-08 10:00:2810602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
10603$as_echo_n "checking DYNLOADFILE... " >&6; }
Guido van Rossume97ee181999-12-20 21:27:2210604if test -z "$DYNLOADFILE"
10605then
10606 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:4410607 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
10608 if test "$ac_cv_func_dlopen" = yes
10609 then DYNLOADFILE="dynload_shlib.o"
10610 else DYNLOADFILE="dynload_aix.o"
10611 fi
10612 ;;
Guido van Rossume97ee181999-12-20 21:27:2210613 BeOS*) DYNLOADFILE="dynload_beos.o";;
10614 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Anthony Baxter82201742006-04-09 15:07:4010615 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
10616 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
Martin v. Löwisf90ae202002-06-11 06:22:3110617 atheos*) DYNLOADFILE="dynload_atheos.o";;
Guido van Rossume97ee181999-12-20 21:27:2210618 *)
10619 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
10620 # out any dynamic loading
10621 if test "$ac_cv_func_dlopen" = yes
10622 then DYNLOADFILE="dynload_shlib.o"
10623 else DYNLOADFILE="dynload_stub.o"
10624 fi
10625 ;;
10626 esac
10627fi
Matthias Klosea0bea5d2010-05-08 10:00:2810628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
10629$as_echo "$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:2210630if test "$DYNLOADFILE" != "dynload_stub.o"
10631then
Martin v. Löwis11437992002-04-12 09:54:0310632
Matthias Klosea0bea5d2010-05-08 10:00:2810633$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
Guido van Rossume97ee181999-12-20 21:27:2210634
10635fi
10636
Neil Schemenauer4e425612001-06-19 15:44:1510637# MACHDEP_OBJS can be set to platform-specific object files needed by Python
10638
Michael W. Hudson54241132001-12-07 15:38:2610639
Matthias Klosea0bea5d2010-05-08 10:00:2810640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
10641$as_echo_n "checking MACHDEP_OBJS... " >&6; }
Neil Schemenauer4e425612001-06-19 15:44:1510642if test -z "$MACHDEP_OBJS"
10643then
Jack Jansene578a632001-08-15 01:27:1410644 MACHDEP_OBJS=$extra_machdep_objs
10645else
10646 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:1510647fi
Matthias Klosea0bea5d2010-05-08 10:00:2810648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
10649$as_echo "MACHDEP_OBJS" >&6; }
Neil Schemenauer4e425612001-06-19 15:44:1510650
Guido van Rossum627b2d71993-12-24 10:39:1610651# checks for library functions
Toshio Kuratomi24ff9a42019-05-12 20:47:1910652for ac_func in alarm setitimer getitimer chown \
Martin v. Löwisaef18b12008-03-24 13:31:1610653 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
doko@ubuntu.coma50b0de2015-04-13 19:55:5910654 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
10655 getentropy \
Martin v. Löwis50ea4562009-11-27 13:56:0110656 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
Benjamin Peterson69e96912018-09-12 23:31:1710657 initgroups kill killpg lchown lstat mkfifo mknod mktime mmap \
Martin v. Löwisa5f09072002-10-11 05:37:5910658 mremap nice pathconf pause plock poll pthread_init \
Guido van Rossum162e38c2003-02-19 15:25:1010659 putenv readlink realpath \
Jesse Noller355b1262009-04-02 00:03:2810660 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
10661 setgid \
Martin v. Löwis4daacb12003-03-28 18:37:0110662 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
Martin v. Löwis50ea4562009-11-27 13:56:0110663 setlocale setregid setreuid setresuid setresgid \
10664 setsid setpgid setpgrp setuid setvbuf snprintf \
Skip Montanaro7e11a012004-02-07 12:55:4610665 sigaction siginterrupt sigrelse strftime \
Michael W. Hudson34f20ea2002-05-27 15:08:2410666 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Neal Norwitz05a45592006-03-20 06:30:0810667 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
Matthias Klosea0bea5d2010-05-08 10:00:2810668do :
10669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Georg Brandl71f4fbb2011-02-25 11:04:5010671if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0310672 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810673#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0310674_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3810675
Guido van Rossumd0b69ec2001-09-10 14:10:5410676fi
10677done
10678
Michael W. Hudson54241132001-12-07 15:38:2610679
Benjamin Peterson69e96912018-09-12 23:31:1710680# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
10681# links. Some libc implementations have a stub lchmod implementation that always
10682# returns an error.
10683if test "$MACHDEP" != linux; then
Joshua Root0fd5a732019-04-12 15:51:3510684 for ac_func in lchmod
10685do :
Benjamin Peterson69e96912018-09-12 23:31:1710686 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
10687if test "x$ac_cv_func_lchmod" = xyes; then :
Joshua Root0fd5a732019-04-12 15:51:3510688 cat >>confdefs.h <<_ACEOF
10689#define HAVE_LCHMOD 1
10690_ACEOF
Benjamin Peterson69e96912018-09-12 23:31:1710691
10692fi
Joshua Root0fd5a732019-04-12 15:51:3510693done
Benjamin Peterson69e96912018-09-12 23:31:1710694
10695fi
10696
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510697# For some functions, having a definition is not sufficient, since
10698# we want to take their address.
Matthias Klosea0bea5d2010-05-08 10:00:2810699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
10700$as_echo_n "checking for chroot... " >&6; }
10701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410702/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510703#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510704int
10705main ()
10706{
10707void *x=chroot
10708 ;
10709 return 0;
10710}
10711_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810712if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510713
Matthias Klosea0bea5d2010-05-08 10:00:2810714$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510715
Matthias Klosec511b472010-05-08 11:01:3910716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810717$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510718else
Matthias Klosea0bea5d2010-05-08 10:00:2810719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510721
10722fi
Martin v. Löwiseba40652007-08-30 20:10:5710723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
10725$as_echo_n "checking for link... " >&6; }
10726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410727/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510728#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510729int
10730main ()
10731{
10732void *x=link
10733 ;
10734 return 0;
10735}
10736_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810737if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510738
Matthias Klosea0bea5d2010-05-08 10:00:2810739$as_echo "#define HAVE_LINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510740
Matthias Klosec511b472010-05-08 11:01:3910741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810742$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510743else
Matthias Klosea0bea5d2010-05-08 10:00:2810744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510746
10747fi
Martin v. Löwiseba40652007-08-30 20:10:5710748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
10750$as_echo_n "checking for symlink... " >&6; }
10751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410752/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510753#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510754int
10755main ()
10756{
10757void *x=symlink
10758 ;
10759 return 0;
10760}
10761_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810762if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510763
Matthias Klosea0bea5d2010-05-08 10:00:2810764$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510765
Matthias Klosec511b472010-05-08 11:01:3910766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810767$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510768else
Matthias Klosea0bea5d2010-05-08 10:00:2810769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510771
10772fi
Martin v. Löwiseba40652007-08-30 20:10:5710773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
10775$as_echo_n "checking for fchdir... " >&6; }
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410777/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2010778#include <unistd.h>
10779int
10780main ()
10781{
10782void *x=fchdir
10783 ;
10784 return 0;
10785}
10786_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810787if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2010788
Matthias Klosea0bea5d2010-05-08 10:00:2810789$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2010790
Matthias Klosec511b472010-05-08 11:01:3910791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810792$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2010793else
Matthias Klosea0bea5d2010-05-08 10:00:2810794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2010796
10797fi
Martin v. Löwiseba40652007-08-30 20:10:5710798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
10800$as_echo_n "checking for fsync... " >&6; }
10801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410802/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2010803#include <unistd.h>
10804int
10805main ()
10806{
10807void *x=fsync
10808 ;
10809 return 0;
10810}
10811_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810812if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2010813
Matthias Klosea0bea5d2010-05-08 10:00:2810814$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2010815
Matthias Klosec511b472010-05-08 11:01:3910816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810817$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2010818else
Matthias Klosea0bea5d2010-05-08 10:00:2810819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2010821
10822fi
Martin v. Löwiseba40652007-08-30 20:10:5710823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
10825$as_echo_n "checking for fdatasync... " >&6; }
10826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410827/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2010828#include <unistd.h>
10829int
10830main ()
10831{
10832void *x=fdatasync
10833 ;
10834 return 0;
10835}
10836_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810837if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2010838
Matthias Klosea0bea5d2010-05-08 10:00:2810839$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2010840
Matthias Klosec511b472010-05-08 11:01:3910841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810842$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2010843else
Matthias Klosea0bea5d2010-05-08 10:00:2810844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2010846
10847fi
Martin v. Löwiseba40652007-08-30 20:10:5710848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
10850$as_echo_n "checking for epoll... " >&6; }
10851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes0e9ab5f2008-03-21 23:49:4410852/* end confdefs.h. */
10853#include <sys/epoll.h>
10854int
10855main ()
10856{
10857void *x=epoll_create
10858 ;
10859 return 0;
10860}
10861_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810862if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4510863
Matthias Klosea0bea5d2010-05-08 10:00:2810864$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
Christian Heimes0e9ab5f2008-03-21 23:49:4410865
Matthias Klosec511b472010-05-08 11:01:3910866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810867$as_echo "yes" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:4410868else
Matthias Klosea0bea5d2010-05-08 10:00:2810869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:4410871
10872fi
Christian Heimes0e9ab5f2008-03-21 23:49:4410873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2810874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
10875$as_echo_n "checking for kqueue... " >&6; }
10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes0e9ab5f2008-03-21 23:49:4410877/* end confdefs.h. */
10878
10879#include <sys/types.h>
10880#include <sys/event.h>
10881
10882int
10883main ()
10884{
10885int x=kqueue()
10886 ;
10887 return 0;
10888}
10889_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810890if ac_fn_c_try_compile "$LINENO"; then :
Christian Heimes0e9ab5f2008-03-21 23:49:4410891
Matthias Klosea0bea5d2010-05-08 10:00:2810892$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
Christian Heimes0e9ab5f2008-03-21 23:49:4410893
Matthias Klosec511b472010-05-08 11:01:3910894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810895$as_echo "yes" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:4410896else
Matthias Klosea0bea5d2010-05-08 10:00:2810897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:4410899
10900fi
Christian Heimes0e9ab5f2008-03-21 23:49:4410901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:2810902# On some systems (eg. FreeBSD 5), we would find a definition of the
10903# functions ctermid_r, setgroups in the library, but no prototype
10904# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
10905# address to avoid compiler warnings and potential miscompilations
10906# because of the missing prototypes.
10907
Matthias Klosea0bea5d2010-05-08 10:00:2810908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
10909$as_echo_n "checking for ctermid_r... " >&6; }
10910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410911/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2810912
Martin v. Löwisd5843682002-11-21 20:41:2810913#include <stdio.h>
10914
Martin v. Löwisd5843682002-11-21 20:41:2810915int
10916main ()
10917{
10918void* p = ctermid_r
10919 ;
10920 return 0;
10921}
10922_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810923if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2810924
Matthias Klosea0bea5d2010-05-08 10:00:2810925$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2810926
Matthias Klosec511b472010-05-08 11:01:3910927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2810928$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2810929else
Matthias Klosea0bea5d2010-05-08 10:00:2810930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2810932
10933fi
Martin v. Löwiseba40652007-08-30 20:10:5710934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935
Antoine Pitroub170f172010-09-10 18:47:3610936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
10937$as_echo_n "checking for flock declaration... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3310938if ${ac_cv_flock_decl+:} false; then :
Antoine Pitroub170f172010-09-10 18:47:3610939 $as_echo_n "(cached) " >&6
10940else
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410942/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4910943#include <sys/file.h>
Martin v. Löwisf26d63b2003-03-30 17:23:4910944int
10945main ()
10946{
10947void* p = flock
Antoine Pitroub170f172010-09-10 18:47:3610948
Martin v. Löwisf26d63b2003-03-30 17:23:4910949 ;
10950 return 0;
10951}
10952_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2810953if ac_fn_c_try_compile "$LINENO"; then :
Antoine Pitroub170f172010-09-10 18:47:3610954 ac_cv_flock_decl=yes
10955else
10956 ac_cv_flock_decl=no
Martin v. Löwisf26d63b2003-03-30 17:23:4910957
10958fi
Martin v. Löwiseba40652007-08-30 20:10:5710959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Antoine Pitrou85729812010-09-07 14:55:2410960
Antoine Pitroub170f172010-09-10 18:47:3610961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
10963$as_echo "$ac_cv_flock_decl" >&6; }
10964if test "x${ac_cv_flock_decl}" = xyes; then
10965 for ac_func in flock
10966do :
10967 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
Matthias Klose3cef2a92012-03-14 22:39:3310968if test "x$ac_cv_func_flock" = xyes; then :
Antoine Pitroub170f172010-09-10 18:47:3610969 cat >>confdefs.h <<_ACEOF
10970#define HAVE_FLOCK 1
Antoine Pitrou85729812010-09-07 14:55:2410971_ACEOF
Antoine Pitroub170f172010-09-10 18:47:3610972
Antoine Pitrou85729812010-09-07 14:55:2410973else
Antoine Pitroub170f172010-09-10 18:47:3610974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
Antoine Pitrou85729812010-09-07 14:55:2410975$as_echo_n "checking for flock in -lbsd... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3310976if ${ac_cv_lib_bsd_flock+:} false; then :
Antoine Pitrou85729812010-09-07 14:55:2410977 $as_echo_n "(cached) " >&6
10978else
10979 ac_check_lib_save_LIBS=$LIBS
10980LIBS="-lbsd $LIBS"
10981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h. */
10983
10984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987#ifdef __cplusplus
10988extern "C"
10989#endif
10990char flock ();
10991int
10992main ()
10993{
10994return flock ();
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999if ac_fn_c_try_link "$LINENO"; then :
11000 ac_cv_lib_bsd_flock=yes
11001else
11002 ac_cv_lib_bsd_flock=no
11003fi
11004rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006LIBS=$ac_check_lib_save_LIBS
11007fi
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
11009$as_echo "$ac_cv_lib_bsd_flock" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311010if test "x$ac_cv_lib_bsd_flock" = xyes; then :
Antoine Pitroub170f172010-09-10 18:47:3611011 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
Antoine Pitrou85729812010-09-07 14:55:2411012
11013
11014$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
11015
11016
11017fi
11018
11019
11020fi
Antoine Pitroub170f172010-09-10 18:47:3611021done
11022
Antoine Pitrou85729812010-09-07 14:55:2411023fi
Martin v. Löwiseba40652007-08-30 20:10:5711024
Matthias Klosea0bea5d2010-05-08 10:00:2811025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
11026$as_echo_n "checking for getpagesize... " >&6; }
11027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411028/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4911029
Martin v. Löwisf26d63b2003-03-30 17:23:4911030#include <unistd.h>
11031
Martin v. Löwisf26d63b2003-03-30 17:23:4911032int
11033main ()
11034{
11035void* p = getpagesize
11036 ;
11037 return 0;
11038}
11039_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811040if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisf26d63b2003-03-30 17:23:4911041
Matthias Klosea0bea5d2010-05-08 10:00:2811042$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
Martin v. Löwisf26d63b2003-03-30 17:23:4911043
Matthias Klosec511b472010-05-08 11:01:3911044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2811045$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4911046else
Matthias Klosea0bea5d2010-05-08 10:00:2811047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4911049
11050fi
Martin v. Löwiseba40652007-08-30 20:10:5711051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:4911052
Charles-François Natali93a11752011-11-27 12:01:3511053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
11054$as_echo_n "checking for broken unsetenv... " >&6; }
11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056/* end confdefs.h. */
11057
11058#include <stdlib.h>
11059
11060int
11061main ()
11062{
11063int res = unsetenv("DUMMY")
11064 ;
11065 return 0;
11066}
11067_ACEOF
11068if ac_fn_c_try_compile "$LINENO"; then :
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070$as_echo "no" >&6; }
11071else
11072
11073$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076$as_echo "yes" >&6; }
11077
11078fi
11079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080
Martin v. Löwis4ee6eef2003-05-26 05:37:5111081for ac_prog in true
11082do
11083 # Extract the first word of "$ac_prog", so it can be a program name with args.
11084set dummy $ac_prog; ac_word=$2
Matthias Klosea0bea5d2010-05-08 10:00:2811085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311087if ${ac_cv_prog_TRUE+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811088 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5111089else
11090 if test -n "$TRUE"; then
11091 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
11092else
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:2811098 for ac_exec_ext in '' $ac_executable_extensions; do
Charles-François Natalibe2b9072013-01-08 18:47:0011099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis4ee6eef2003-05-26 05:37:5111100 ac_cv_prog_TRUE="$ac_prog"
Matthias Klosea0bea5d2010-05-08 10:00:2811101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:5111102 break 2
11103 fi
11104done
Matthias Klosea0bea5d2010-05-08 10:00:2811105 done
Martin v. Löwiseba40652007-08-30 20:10:5711106IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:5111107
11108fi
11109fi
11110TRUE=$ac_cv_prog_TRUE
11111if test -n "$TRUE"; then
Matthias Klosea0bea5d2010-05-08 10:00:2811112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
11113$as_echo "$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5111114else
Matthias Klosea0bea5d2010-05-08 10:00:2811115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5111117fi
11118
Martin v. Löwiseba40652007-08-30 20:10:5711119
Martin v. Löwis4ee6eef2003-05-26 05:37:5111120 test -n "$TRUE" && break
11121done
11122test -n "$TRUE" || TRUE="/bin/true"
11123
11124
Matthias Klosea0bea5d2010-05-08 10:00:2811125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
11126$as_echo_n "checking for inet_aton in -lc... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311127if ${ac_cv_lib_c_inet_aton+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811128 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4811129else
11130 ac_check_lib_save_LIBS=$LIBS
11131LIBS="-lc $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411133/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4811134
Martin v. Löwiseba40652007-08-30 20:10:5711135/* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4811138#ifdef __cplusplus
11139extern "C"
11140#endif
Martin v. Löwis95c419b2003-05-03 12:10:4811141char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4811142int
11143main ()
11144{
Martin v. Löwiseba40652007-08-30 20:10:5711145return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4811146 ;
11147 return 0;
11148}
11149_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811150if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4811151 ac_cv_lib_c_inet_aton=yes
11152else
Matthias Klosea0bea5d2010-05-08 10:00:2811153 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4811154fi
Matthias Klosea0bea5d2010-05-08 10:00:2811155rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4811157LIBS=$ac_check_lib_save_LIBS
11158fi
Matthias Klosea0bea5d2010-05-08 10:00:2811159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11160$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311161if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5111162 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:4811163else
Matthias Klosea0bea5d2010-05-08 10:00:2811164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
11165$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311166if ${ac_cv_lib_resolv_inet_aton+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811167 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4811168else
11169 ac_check_lib_save_LIBS=$LIBS
11170LIBS="-lresolv $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411172/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4811173
Martin v. Löwiseba40652007-08-30 20:10:5711174/* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4811177#ifdef __cplusplus
11178extern "C"
11179#endif
Martin v. Löwis95c419b2003-05-03 12:10:4811180char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4811181int
11182main ()
11183{
Martin v. Löwiseba40652007-08-30 20:10:5711184return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4811185 ;
11186 return 0;
11187}
11188_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811189if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4811190 ac_cv_lib_resolv_inet_aton=yes
11191else
Matthias Klosea0bea5d2010-05-08 10:00:2811192 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4811193fi
Matthias Klosea0bea5d2010-05-08 10:00:2811194rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4811196LIBS=$ac_check_lib_save_LIBS
11197fi
Matthias Klosea0bea5d2010-05-08 10:00:2811198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
11199$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311200if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
Martin v. Löwis95c419b2003-05-03 12:10:4811201 cat >>confdefs.h <<_ACEOF
11202#define HAVE_LIBRESOLV 1
11203_ACEOF
11204
11205 LIBS="-lresolv $LIBS"
11206
11207fi
11208
11209
11210fi
11211
11212
Martin v. Löwisa51d5c82007-12-04 08:37:5911213# On Tru64, chflags seems to be present, but calling it will
11214# exit Python
Matthias Klosea0bea5d2010-05-08 10:00:2811215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
11216$as_echo_n "checking for chflags... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311217if ${ac_cv_have_chflags+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811218 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811219else
Matthias Klosea0bea5d2010-05-08 10:00:2811220 if test "$cross_compiling" = yes; then :
Gregory P. Smith49437c22009-11-02 01:38:3511221 ac_cv_have_chflags=cross
Martin v. Löwisa51d5c82007-12-04 08:37:5911222else
Matthias Klosea0bea5d2010-05-08 10:00:2811223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisa51d5c82007-12-04 08:37:5911224/* end confdefs.h. */
Ned Deily43e10542011-06-28 06:41:5311225
Martin v. Löwisa51d5c82007-12-04 08:37:5911226#include <sys/stat.h>
11227#include <unistd.h>
11228int main(int argc, char*argv[])
11229{
11230 if(chflags(argv[0], 0) != 0)
11231 return 1;
11232 return 0;
11233}
Ned Deily43e10542011-06-28 06:41:5311234
Martin v. Löwisa51d5c82007-12-04 08:37:5911235_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811236if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811237 ac_cv_have_chflags=yes
Alexandre Vassalottibd7569b2009-07-17 23:09:0211238else
Matthias Klosea0bea5d2010-05-08 10:00:2811239 ac_cv_have_chflags=no
Alexandre Vassalottibd7569b2009-07-17 23:09:0211240fi
Matthias Klosea0bea5d2010-05-08 10:00:2811241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11242 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:4611243fi
11244
Alexandre Vassalottibd7569b2009-07-17 23:09:0211245
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811246fi
Matthias Klosea0bea5d2010-05-08 10:00:2811247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
11248$as_echo "$ac_cv_have_chflags" >&6; }
Gregory P. Smith49437c22009-11-02 01:38:3511249if test "$ac_cv_have_chflags" = cross ; then
Matthias Klosea0bea5d2010-05-08 10:00:2811250 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
Matthias Klose3cef2a92012-03-14 22:39:3311251if test "x$ac_cv_func_chflags" = xyes; then :
Gregory P. Smith49437c22009-11-02 01:38:3511252 ac_cv_have_chflags="yes"
11253else
11254 ac_cv_have_chflags="no"
11255fi
11256
11257fi
11258if test "$ac_cv_have_chflags" = yes ; then
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811259
Matthias Klosea0bea5d2010-05-08 10:00:2811260$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811261
11262fi
11263
Matthias Klosea0bea5d2010-05-08 10:00:2811264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
11265$as_echo_n "checking for lchflags... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311266if ${ac_cv_have_lchflags+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811267 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811268else
Matthias Klosea0bea5d2010-05-08 10:00:2811269 if test "$cross_compiling" = yes; then :
Gregory P. Smith49437c22009-11-02 01:38:3511270 ac_cv_have_lchflags=cross
Martin v. Löwisa51d5c82007-12-04 08:37:5911271else
Matthias Klosea0bea5d2010-05-08 10:00:2811272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisa51d5c82007-12-04 08:37:5911273/* end confdefs.h. */
Ned Deily43e10542011-06-28 06:41:5311274
Martin v. Löwisa51d5c82007-12-04 08:37:5911275#include <sys/stat.h>
11276#include <unistd.h>
11277int main(int argc, char*argv[])
11278{
11279 if(lchflags(argv[0], 0) != 0)
11280 return 1;
11281 return 0;
11282}
Ned Deily43e10542011-06-28 06:41:5311283
Martin v. Löwisa51d5c82007-12-04 08:37:5911284_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811285if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811286 ac_cv_have_lchflags=yes
Alexandre Vassalottibd7569b2009-07-17 23:09:0211287else
Matthias Klosea0bea5d2010-05-08 10:00:2811288 ac_cv_have_lchflags=no
Martin v. Löwisa51d5c82007-12-04 08:37:5911289fi
Matthias Klosea0bea5d2010-05-08 10:00:2811290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11291 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottibd7569b2009-07-17 23:09:0211292fi
11293
11294
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811295fi
Matthias Klosea0bea5d2010-05-08 10:00:2811296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
11297$as_echo "$ac_cv_have_lchflags" >&6; }
Gregory P. Smith49437c22009-11-02 01:38:3511298if test "$ac_cv_have_lchflags" = cross ; then
Matthias Klosea0bea5d2010-05-08 10:00:2811299 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
Matthias Klose3cef2a92012-03-14 22:39:3311300if test "x$ac_cv_func_lchflags" = xyes; then :
Gregory P. Smith49437c22009-11-02 01:38:3511301 ac_cv_have_lchflags="yes"
11302else
11303 ac_cv_have_lchflags="no"
11304fi
11305
11306fi
11307if test "$ac_cv_have_lchflags" = yes ; then
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811308
Matthias Klosea0bea5d2010-05-08 10:00:2811309$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811310
11311fi
11312
Ronald Oussorenf8752642006-07-06 10:13:3511313case $ac_sys_system/$ac_sys_release in
11314Darwin/*)
11315 _CUR_CFLAGS="${CFLAGS}"
11316 _CUR_LDFLAGS="${LDFLAGS}"
11317 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
11318 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
11319 ;;
11320esac
11321
Matthias Klosea0bea5d2010-05-08 10:00:2811322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
11323$as_echo_n "checking for inflateCopy in -lz... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311324if ${ac_cv_lib_z_inflateCopy+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811325 $as_echo_n "(cached) " >&6
Neal Norwitz6e73aaa2006-06-12 03:33:0911326else
11327 ac_check_lib_save_LIBS=$LIBS
11328LIBS="-lz $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Neal Norwitz6e73aaa2006-06-12 03:33:0911330/* end confdefs.h. */
11331
Martin v. Löwiseba40652007-08-30 20:10:5711332/* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
Neal Norwitz6e73aaa2006-06-12 03:33:0911335#ifdef __cplusplus
11336extern "C"
11337#endif
Neal Norwitz6e73aaa2006-06-12 03:33:0911338char inflateCopy ();
11339int
11340main ()
11341{
Martin v. Löwiseba40652007-08-30 20:10:5711342return inflateCopy ();
Neal Norwitz6e73aaa2006-06-12 03:33:0911343 ;
11344 return 0;
11345}
11346_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811347if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz6e73aaa2006-06-12 03:33:0911348 ac_cv_lib_z_inflateCopy=yes
11349else
Matthias Klosea0bea5d2010-05-08 10:00:2811350 ac_cv_lib_z_inflateCopy=no
Neal Norwitz6e73aaa2006-06-12 03:33:0911351fi
Matthias Klosea0bea5d2010-05-08 10:00:2811352rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz6e73aaa2006-06-12 03:33:0911354LIBS=$ac_check_lib_save_LIBS
11355fi
Matthias Klosea0bea5d2010-05-08 10:00:2811356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
11357$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311358if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
Neal Norwitz6e73aaa2006-06-12 03:33:0911359
Matthias Klosea0bea5d2010-05-08 10:00:2811360$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
Neal Norwitz6e73aaa2006-06-12 03:33:0911361
11362fi
11363
11364
Ronald Oussorenf8752642006-07-06 10:13:3511365case $ac_sys_system/$ac_sys_release in
11366Darwin/*)
11367 CFLAGS="${_CUR_CFLAGS}"
11368 LDFLAGS="${_CUR_LDFLAGS}"
11369 ;;
11370esac
11371
Matthias Klosea0bea5d2010-05-08 10:00:2811372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
11373$as_echo_n "checking for hstrerror... " >&6; }
11374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411375/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4511376
Martin v. Löwise9416172003-05-03 10:12:4511377#include <netdb.h>
11378
Martin v. Löwise9416172003-05-03 10:12:4511379int
11380main ()
11381{
Martin v. Löwis95c419b2003-05-03 12:10:4811382void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:4511383 ;
11384 return 0;
11385}
11386_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811387if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4511388
Matthias Klosea0bea5d2010-05-08 10:00:2811389$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4511390
Matthias Klosec511b472010-05-08 11:01:3911391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2811392$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4511393else
Matthias Klosea0bea5d2010-05-08 10:00:2811394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4511396
11397fi
Matthias Klosea0bea5d2010-05-08 10:00:2811398rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:5711400
Matthias Klosea0bea5d2010-05-08 10:00:2811401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11402$as_echo_n "checking for inet_aton... " >&6; }
11403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411404/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4511405
Martin v. Löwis86d66262006-02-17 08:40:1111406#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4511407#include <sys/socket.h>
11408#include <netinet/in.h>
11409#include <arpa/inet.h>
11410
Martin v. Löwise9416172003-05-03 10:12:4511411int
11412main ()
11413{
Martin v. Löwis95c419b2003-05-03 12:10:4811414void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:4511415 ;
11416 return 0;
11417}
11418_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811419if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4511420
Matthias Klosea0bea5d2010-05-08 10:00:2811421$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4511422
Matthias Klosec511b472010-05-08 11:01:3911423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2811424$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4511425else
Matthias Klosea0bea5d2010-05-08 10:00:2811426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4511428
11429fi
Matthias Klosea0bea5d2010-05-08 10:00:2811430rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:5711432
Matthias Klosea0bea5d2010-05-08 10:00:2811433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
11434$as_echo_n "checking for inet_pton... " >&6; }
11435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411436/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4511437
Martin v. Löwisf2e488d2003-05-05 22:00:1111438#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4511439#include <sys/socket.h>
11440#include <netinet/in.h>
11441#include <arpa/inet.h>
11442
Martin v. Löwise9416172003-05-03 10:12:4511443int
11444main ()
11445{
11446void* p = inet_pton
11447 ;
11448 return 0;
11449}
11450_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811451if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4511452
Matthias Klosea0bea5d2010-05-08 10:00:2811453$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4511454
Matthias Klosec511b472010-05-08 11:01:3911455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2811456$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4511457else
Matthias Klosea0bea5d2010-05-08 10:00:2811458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4511460
11461fi
Martin v. Löwiseba40652007-08-30 20:10:5711462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:4511463
Martin v. Löwisd6640d42003-07-06 09:29:5211464# On some systems, setgroups is in unistd.h, on others, in grp.h
Matthias Klosea0bea5d2010-05-08 10:00:2811465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
11466$as_echo_n "checking for setgroups... " >&6; }
11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411468/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2811469
Martin v. Löwisf2e488d2003-05-05 22:00:1111470#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:5211471#ifdef HAVE_GRP_H
11472#include <grp.h>
11473#endif
Martin v. Löwisd5843682002-11-21 20:41:2811474
Martin v. Löwisd5843682002-11-21 20:41:2811475int
11476main ()
11477{
11478void* p = setgroups
11479 ;
11480 return 0;
11481}
11482_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811483if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2811484
Matthias Klosea0bea5d2010-05-08 10:00:2811485$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2811486
Matthias Klosec511b472010-05-08 11:01:3911487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2811488$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811489else
Matthias Klosea0bea5d2010-05-08 10:00:2811490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811492
11493fi
Martin v. Löwiseba40652007-08-30 20:10:5711494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:2811495
Guido van Rossumd0b69ec2001-09-10 14:10:5411496# check for openpty and forkpty
11497
11498for ac_func in openpty
Matthias Klosea0bea5d2010-05-08 10:00:2811499do :
11500 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Matthias Klose3cef2a92012-03-14 22:39:3311501if test "x$ac_cv_func_openpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311502 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811503#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:0311504_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:5411505
Guido van Rossumd0b69ec2001-09-10 14:10:5411506else
Matthias Klosea0bea5d2010-05-08 10:00:2811507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11508$as_echo_n "checking for openpty in -lutil... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311509if ${ac_cv_lib_util_openpty+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811510 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3811511else
Martin v. Löwis11437992002-04-12 09:54:0311512 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3811513LIBS="-lutil $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411515/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0311516
Martin v. Löwiseba40652007-08-30 20:10:5711517/* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0311520#ifdef __cplusplus
11521extern "C"
11522#endif
Martin v. Löwis11437992002-04-12 09:54:0311523char openpty ();
Martin v. Löwis11437992002-04-12 09:54:0311524int
11525main ()
11526{
Martin v. Löwiseba40652007-08-30 20:10:5711527return openpty ();
Martin v. Löwis11437992002-04-12 09:54:0311528 ;
11529 return 0;
11530}
11531_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811532if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0311533 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3811534else
Matthias Klosea0bea5d2010-05-08 10:00:2811535 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3811536fi
Matthias Klosea0bea5d2010-05-08 10:00:2811537rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0311539LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3811540fi
Matthias Klosea0bea5d2010-05-08 10:00:2811541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11542$as_echo "$ac_cv_lib_util_openpty" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311543if test "x$ac_cv_lib_util_openpty" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811544 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3811545 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3311546else
Matthias Klosea0bea5d2010-05-08 10:00:2811547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
11548$as_echo_n "checking for openpty in -lbsd... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311549if ${ac_cv_lib_bsd_openpty+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811550 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3311551else
11552 ac_check_lib_save_LIBS=$LIBS
11553LIBS="-lbsd $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3311555/* end confdefs.h. */
11556
Martin v. Löwiseba40652007-08-30 20:10:5711557/* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3311560#ifdef __cplusplus
11561extern "C"
11562#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3311563char openpty ();
11564int
11565main ()
11566{
Martin v. Löwiseba40652007-08-30 20:10:5711567return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3311568 ;
11569 return 0;
11570}
11571_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811572if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3311573 ac_cv_lib_bsd_openpty=yes
11574else
Matthias Klosea0bea5d2010-05-08 10:00:2811575 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3811576fi
Matthias Klosea0bea5d2010-05-08 10:00:2811577rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3311579LIBS=$ac_check_lib_save_LIBS
11580fi
Matthias Klosea0bea5d2010-05-08 10:00:2811581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
11582$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311583if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811584 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3311585 LIBS="$LIBS -lbsd"
11586fi
11587
11588
11589fi
11590
Fred Drake8cef4cf2000-06-28 16:40:3811591
11592fi
11593done
11594
11595for ac_func in forkpty
Matthias Klosea0bea5d2010-05-08 10:00:2811596do :
11597 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
Matthias Klose3cef2a92012-03-14 22:39:3311598if test "x$ac_cv_func_forkpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311599 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811600#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:0311601_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3811602
Fred Drake8cef4cf2000-06-28 16:40:3811603else
Matthias Klosea0bea5d2010-05-08 10:00:2811604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
11605$as_echo_n "checking for forkpty in -lutil... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311606if ${ac_cv_lib_util_forkpty+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811607 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3811608else
Martin v. Löwis11437992002-04-12 09:54:0311609 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3811610LIBS="-lutil $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411612/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0311613
Martin v. Löwiseba40652007-08-30 20:10:5711614/* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0311617#ifdef __cplusplus
11618extern "C"
11619#endif
Martin v. Löwis11437992002-04-12 09:54:0311620char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0311621int
11622main ()
11623{
Martin v. Löwiseba40652007-08-30 20:10:5711624return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0311625 ;
11626 return 0;
11627}
11628_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811629if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0311630 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3811631else
Matthias Klosea0bea5d2010-05-08 10:00:2811632 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3811633fi
Matthias Klosea0bea5d2010-05-08 10:00:2811634rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0311636LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3811637fi
Matthias Klosea0bea5d2010-05-08 10:00:2811638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
11639$as_echo "$ac_cv_lib_util_forkpty" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311640if test "x$ac_cv_lib_util_forkpty" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811641 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3811642 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3311643else
Matthias Klosea0bea5d2010-05-08 10:00:2811644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
11645$as_echo_n "checking for forkpty in -lbsd... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311646if ${ac_cv_lib_bsd_forkpty+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811647 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3311648else
11649 ac_check_lib_save_LIBS=$LIBS
11650LIBS="-lbsd $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2811651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3311652/* end confdefs.h. */
11653
Martin v. Löwiseba40652007-08-30 20:10:5711654/* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3311657#ifdef __cplusplus
11658extern "C"
11659#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3311660char forkpty ();
11661int
11662main ()
11663{
Martin v. Löwiseba40652007-08-30 20:10:5711664return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3311665 ;
11666 return 0;
11667}
11668_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811669if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3311670 ac_cv_lib_bsd_forkpty=yes
11671else
Matthias Klosea0bea5d2010-05-08 10:00:2811672 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3811673fi
Matthias Klosea0bea5d2010-05-08 10:00:2811674rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3311676LIBS=$ac_check_lib_save_LIBS
11677fi
Matthias Klosea0bea5d2010-05-08 10:00:2811678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
11679$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311680if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811681 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3311682 LIBS="$LIBS -lbsd"
11683fi
11684
11685
11686fi
11687
Fred Drake8cef4cf2000-06-28 16:40:3811688
11689fi
11690done
11691
Jack Jansendd19cf82001-12-06 22:36:1711692
Brett Cannonaa5778d2008-03-18 04:09:0011693# Stuff for expat.
Brett Cannonaa5778d2008-03-18 04:09:0011694for ac_func in memmove
Matthias Klosea0bea5d2010-05-08 10:00:2811695do :
11696 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
Matthias Klose3cef2a92012-03-14 22:39:3311697if test "x$ac_cv_func_memmove" = xyes; then :
Brett Cannonaa5778d2008-03-18 04:09:0011698 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811699#define HAVE_MEMMOVE 1
Brett Cannonaa5778d2008-03-18 04:09:0011700_ACEOF
11701
11702fi
11703done
11704
11705
Michael W. Hudson54241132001-12-07 15:38:2611706# check for long file support functions
Fred Drake8cef4cf2000-06-28 16:40:3811707for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
Matthias Klosea0bea5d2010-05-08 10:00:2811708do :
11709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Georg Brandl71f4fbb2011-02-25 11:04:5011711if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0311712 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0311714_ACEOF
Michael W. Hudson54241132001-12-07 15:38:2611715
Guido van Rossum76be6ed1995-01-02 18:33:5411716fi
Guido van Rossum627b2d71993-12-24 10:39:1611717done
11718
Michael W. Hudson54241132001-12-07 15:38:2611719
Georg Brandl71f4fbb2011-02-25 11:04:5011720ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
Matthias Klose3cef2a92012-03-14 22:39:3311721if test "x$ac_cv_func_dup2" = xyes; then :
Georg Brandl71f4fbb2011-02-25 11:04:5011722 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
Martin v. Löwis1142de32002-03-29 16:28:3111723
Martin v. Löwis1142de32002-03-29 16:28:3111724else
Martin v. Löwiseba40652007-08-30 20:10:5711725 case " $LIBOBJS " in
Georg Brandl71f4fbb2011-02-25 11:04:5011726 *" dup2.$ac_objext "* ) ;;
11727 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
Martin v. Löwiseba40652007-08-30 20:10:5711728 ;;
Skip Montanarof0d5f792004-08-15 14:08:2311729esac
11730
Martin v. Löwis1142de32002-03-29 16:28:3111731fi
Georg Brandl71f4fbb2011-02-25 11:04:5011732
11733ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
Matthias Klose3cef2a92012-03-14 22:39:3311734if test "x$ac_cv_func_getcwd" = xyes; then :
Georg Brandl71f4fbb2011-02-25 11:04:5011735 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
11736
11737else
11738 case " $LIBOBJS " in
11739 *" getcwd.$ac_objext "* ) ;;
11740 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
11741 ;;
11742esac
11743
11744fi
11745
11746ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
Matthias Klose3cef2a92012-03-14 22:39:3311747if test "x$ac_cv_func_strdup" = xyes; then :
Georg Brandl71f4fbb2011-02-25 11:04:5011748 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
11749
11750else
11751 case " $LIBOBJS " in
11752 *" strdup.$ac_objext "* ) ;;
11753 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
11754 ;;
11755esac
11756
11757fi
Martin v. Löwis1142de32002-03-29 16:28:3111758
11759
11760for ac_func in getpgrp
Matthias Klosea0bea5d2010-05-08 10:00:2811761do :
11762 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
Matthias Klose3cef2a92012-03-14 22:39:3311763if test "x$ac_cv_func_getpgrp" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311764 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811765#define HAVE_GETPGRP 1
Martin v. Löwis11437992002-04-12 09:54:0311766_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411768/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5411769#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:0311770int
11771main ()
11772{
Guido van Rossum76be6ed1995-01-02 18:33:5411773getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:0311774 ;
11775 return 0;
11776}
11777_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811778if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0311779
Matthias Klosea0bea5d2010-05-08 10:00:2811780$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0411781
Guido van Rossum627b2d71993-12-24 10:39:1611782fi
Martin v. Löwiseba40652007-08-30 20:10:5711783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4911784
Guido van Rossum627b2d71993-12-24 10:39:1611785fi
Thomas Wouters3a584202000-08-05 23:28:5111786done
Guido van Rossum627b2d71993-12-24 10:39:1611787
Jack Jansen150753c2003-03-29 22:07:4711788for ac_func in setpgrp
Matthias Klosea0bea5d2010-05-08 10:00:2811789do :
11790 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
Matthias Klose3cef2a92012-03-14 22:39:3311791if test "x$ac_cv_func_setpgrp" = xyes; then :
Jack Jansen150753c2003-03-29 22:07:4711792 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811793#define HAVE_SETPGRP 1
Jack Jansen150753c2003-03-29 22:07:4711794_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411796/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:4711797#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:4711798int
11799main ()
11800{
11801setpgrp(0,0);
11802 ;
11803 return 0;
11804}
11805_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811806if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0311807
Matthias Klosea0bea5d2010-05-08 10:00:2811808$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0411809
Guido van Rossum8eee56f1994-10-20 22:18:3711810fi
Martin v. Löwiseba40652007-08-30 20:10:5711811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:4711812
11813fi
11814done
Guido van Rossum8eee56f1994-10-20 22:18:3711815
Thomas Wouters3a584202000-08-05 23:28:5111816for ac_func in gettimeofday
Matthias Klosea0bea5d2010-05-08 10:00:2811817do :
11818 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
Matthias Klose3cef2a92012-03-14 22:39:3311819if test "x$ac_cv_func_gettimeofday" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311820 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811821#define HAVE_GETTIMEOFDAY 1
Martin v. Löwis11437992002-04-12 09:54:0311822_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411824/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1611825#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:0311826int
11827main ()
11828{
Guido van Rossum76be6ed1995-01-02 18:33:5411829gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:0311830 ;
11831 return 0;
11832}
11833_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811834if ac_fn_c_try_compile "$LINENO"; then :
11835
Guido van Rossum627b2d71993-12-24 10:39:1611836else
Skip Montanaro6dead952003-09-25 14:50:0411837
Matthias Klosea0bea5d2010-05-08 10:00:2811838$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1611839
Martin v. Löwis11437992002-04-12 09:54:0311840
Guido van Rossum627b2d71993-12-24 10:39:1611841fi
Martin v. Löwiseba40652007-08-30 20:10:5711842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4911843
Guido van Rossum76be6ed1995-01-02 18:33:5411844fi
Thomas Wouters3a584202000-08-05 23:28:5111845done
Guido van Rossum76be6ed1995-01-02 18:33:5411846
Michael W. Hudson54241132001-12-07 15:38:2611847
Matthias Klosea0bea5d2010-05-08 10:00:2811848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
11849$as_echo_n "checking for major... " >&6; }
11850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411851/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:3011852
Neal Norwitz6eb37f02003-02-23 23:28:1511853#if defined(MAJOR_IN_MKDEV)
11854#include <sys/mkdev.h>
11855#elif defined(MAJOR_IN_SYSMACROS)
11856#include <sys/sysmacros.h>
11857#else
11858#include <sys/types.h>
11859#endif
Martin v. Löwisdbe3f762002-10-10 14:27:3011860
Martin v. Löwisdbe3f762002-10-10 14:27:3011861int
11862main ()
11863{
11864
11865 makedev(major(0),minor(0));
11866
11867 ;
11868 return 0;
11869}
11870_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811871if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:3011872
11873
Matthias Klosea0bea5d2010-05-08 10:00:2811874$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:3011875
Matthias Klosea0bea5d2010-05-08 10:00:2811876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11877$as_echo "yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3011878
11879else
Skip Montanaro6dead952003-09-25 14:50:0411880
Matthias Klosea0bea5d2010-05-08 10:00:2811881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3011883
11884fi
Matthias Klosea0bea5d2010-05-08 10:00:2811885rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2611887
Martin v. Löwis861a65b2001-10-24 14:36:0011888# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:0311889# for [no]getaddrinfo in netdb.h.
Matthias Klosea0bea5d2010-05-08 10:00:2811890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11891$as_echo_n "checking for getaddrinfo... " >&6; }
11892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411893/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:0011894
Martin v. Löwisc010b6d2001-11-09 17:50:5211895#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:0011896#include <sys/socket.h>
11897#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:5211898#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1311899
Martin v. Löwis11437992002-04-12 09:54:0311900int
11901main ()
11902{
Martin v. Löwis861a65b2001-10-24 14:36:0011903getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis11437992002-04-12 09:54:0311904 ;
11905 return 0;
11906}
11907_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2811908if ac_fn_c_try_link "$LINENO"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811909 have_getaddrinfo=yes
11910else
Matthias Klosea0bea5d2010-05-08 10:00:2811911 have_getaddrinfo=no
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811912fi
Matthias Klosea0bea5d2010-05-08 10:00:2811913rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
11916$as_echo "$have_getaddrinfo" >&6; }
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811917if test $have_getaddrinfo = yes
11918then
Matthias Klosea0bea5d2010-05-08 10:00:2811919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
11920$as_echo_n "checking getaddrinfo bug... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3311921 if ${ac_cv_buggy_getaddrinfo+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2811922 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811923else
Matthias Klosea0bea5d2010-05-08 10:00:2811924 if test "$cross_compiling" = yes; then :
doko@python.orgd65e2ba2013-01-31 22:52:0311925
11926if test "${enable_ipv6+set}" = set; then
11927 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
11928else
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811929 ac_cv_buggy_getaddrinfo=yes
doko@python.orgd65e2ba2013-01-31 22:52:0311930fi
Martin v. Löwis01dfdb32001-06-23 16:30:1311931else
Matthias Klosea0bea5d2010-05-08 10:00:2811932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411933/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1311934
Stefan Krah0afe4e42012-11-22 22:56:5111935#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1311936#include <sys/types.h>
11937#include <netdb.h>
11938#include <string.h>
11939#include <sys/socket.h>
11940#include <netinet/in.h>
11941
Alexandre Vassalotti2ccefe12009-07-17 23:17:4811942int main()
Martin v. Löwis01dfdb32001-06-23 16:30:1311943{
11944 int passive, gaierr, inet4 = 0, inet6 = 0;
11945 struct addrinfo hints, *ai, *aitop;
11946 char straddr[INET6_ADDRSTRLEN], strport[16];
11947
11948 for (passive = 0; passive <= 1; passive++) {
11949 memset(&hints, 0, sizeof(hints));
11950 hints.ai_family = AF_UNSPEC;
11951 hints.ai_flags = passive ? AI_PASSIVE : 0;
11952 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:3111953 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:1311954 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
11955 (void)gai_strerror(gaierr);
11956 goto bad;
11957 }
11958 for (ai = aitop; ai; ai = ai->ai_next) {
11959 if (ai->ai_addr == NULL ||
11960 ai->ai_addrlen == 0 ||
11961 getnameinfo(ai->ai_addr, ai->ai_addrlen,
11962 straddr, sizeof(straddr), strport, sizeof(strport),
11963 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
11964 goto bad;
11965 }
11966 switch (ai->ai_family) {
11967 case AF_INET:
11968 if (strcmp(strport, "54321") != 0) {
11969 goto bad;
11970 }
11971 if (passive) {
11972 if (strcmp(straddr, "0.0.0.0") != 0) {
11973 goto bad;
11974 }
11975 } else {
11976 if (strcmp(straddr, "127.0.0.1") != 0) {
11977 goto bad;
11978 }
11979 }
11980 inet4++;
11981 break;
11982 case AF_INET6:
11983 if (strcmp(strport, "54321") != 0) {
11984 goto bad;
11985 }
11986 if (passive) {
11987 if (strcmp(straddr, "::") != 0) {
11988 goto bad;
11989 }
11990 } else {
11991 if (strcmp(straddr, "::1") != 0) {
11992 goto bad;
11993 }
11994 }
11995 inet6++;
11996 break;
11997 case AF_UNSPEC:
11998 goto bad;
11999 break;
12000 default:
12001 /* another family support? */
12002 break;
12003 }
12004 }
Benjamin Petersond34677c2016-09-06 22:54:2412005 freeaddrinfo(aitop);
12006 aitop = NULL;
Martin v. Löwis01dfdb32001-06-23 16:30:1312007 }
12008
12009 if (!(inet4 == 0 || inet4 == 2))
12010 goto bad;
12011 if (!(inet6 == 0 || inet6 == 2))
12012 goto bad;
12013
12014 if (aitop)
12015 freeaddrinfo(aitop);
Alexandre Vassalotti2ccefe12009-07-17 23:17:4812016 return 0;
Martin v. Löwis01dfdb32001-06-23 16:30:1312017
12018 bad:
12019 if (aitop)
12020 freeaddrinfo(aitop);
Alexandre Vassalotti2ccefe12009-07-17 23:17:4812021 return 1;
Martin v. Löwis01dfdb32001-06-23 16:30:1312022}
12023
Martin v. Löwis11437992002-04-12 09:54:0312024_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812025if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:4812026 ac_cv_buggy_getaddrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1312027else
Matthias Klosea0bea5d2010-05-08 10:00:2812028 ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:1312029fi
Matthias Klosea0bea5d2010-05-08 10:00:2812030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12031 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1312032fi
Martin v. Löwiseba40652007-08-30 20:10:5712033
Alexandre Vassalotti2ccefe12009-07-17 23:17:4812034fi
Martin v. Löwis01dfdb32001-06-23 16:30:1312035
Martin v. Löwis861a65b2001-10-24 14:36:0012036fi
Martin v. Löwiseba40652007-08-30 20:10:5712037
Benjamin Peterson75fed812010-11-01 01:47:1912038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
12039$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
12040
Mark Dickinson0ef0b912009-12-31 21:11:4812041if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
Alexandre Vassalotti2ccefe12009-07-17 23:17:4812042then
12043 if test $ipv6 = yes
12044 then
Martin v. Löwis01dfdb32001-06-23 16:30:1312045 echo 'Fatal: You must get working getaddrinfo() function.'
12046 echo ' or you can specify "--disable-ipv6"'.
12047 exit 1
12048 fi
Martin v. Löwis861a65b2001-10-24 14:36:0012049else
Martin v. Löwis11437992002-04-12 09:54:0312050
Matthias Klosea0bea5d2010-05-08 10:00:2812051$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
Martin v. Löwis861a65b2001-10-24 14:36:0012052
Martin v. Löwis01dfdb32001-06-23 16:30:1312053fi
Benjamin Peterson75fed812010-11-01 01:47:1912054
Jack Jansen9a66b6d2001-08-08 13:56:1412055for ac_func in getnameinfo
Matthias Klosea0bea5d2010-05-08 10:00:2812056do :
12057 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
Matthias Klose3cef2a92012-03-14 22:39:3312058if test "x$ac_cv_func_getnameinfo" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312059 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812060#define HAVE_GETNAMEINFO 1
Martin v. Löwis11437992002-04-12 09:54:0312061_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:1312062
Martin v. Löwis01dfdb32001-06-23 16:30:1312063fi
12064done
12065
Michael W. Hudson54241132001-12-07 15:38:2612066
Guido van Rossum76be6ed1995-01-02 18:33:5412067# checks for structures
Matthias Klosea0bea5d2010-05-08 10:00:2812068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12069$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312070if ${ac_cv_header_time+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812071 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5412072else
Matthias Klosea0bea5d2010-05-08 10:00:2812073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412074/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412075#include <sys/types.h>
12076#include <sys/time.h>
12077#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0312078
Martin v. Löwis11437992002-04-12 09:54:0312079int
12080main ()
12081{
12082if ((struct tm *) 0)
12083return 0;
12084 ;
12085 return 0;
12086}
12087_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812088if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5412089 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:1612090else
Matthias Klosea0bea5d2010-05-08 10:00:2812091 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:1612092fi
Martin v. Löwiseba40652007-08-30 20:10:5712093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5412094fi
Matthias Klosea0bea5d2010-05-08 10:00:2812095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12096$as_echo "$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2612097if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:0312098
Matthias Klosea0bea5d2010-05-08 10:00:2812099$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5412100
12101fi
12102
Matthias Klosea0bea5d2010-05-08 10:00:2812103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12104$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312105if ${ac_cv_struct_tm+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812106 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5412107else
Matthias Klosea0bea5d2010-05-08 10:00:2812108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412109/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412110#include <sys/types.h>
12111#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0312112
Martin v. Löwis11437992002-04-12 09:54:0312113int
12114main ()
12115{
Martin v. Löwiseba40652007-08-30 20:10:5712116struct tm tm;
12117 int *p = &tm.tm_sec;
Matthias Klosea0bea5d2010-05-08 10:00:2812118 return !p;
Martin v. Löwis11437992002-04-12 09:54:0312119 ;
12120 return 0;
12121}
12122_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812123if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5412124 ac_cv_struct_tm=time.h
12125else
Matthias Klosea0bea5d2010-05-08 10:00:2812126 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:5412127fi
Martin v. Löwiseba40652007-08-30 20:10:5712128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5412129fi
Matthias Klosea0bea5d2010-05-08 10:00:2812130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12131$as_echo "$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2612132if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:0312133
Matthias Klosea0bea5d2010-05-08 10:00:2812134$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5412135
12136fi
12137
Matthias Klosea0bea5d2010-05-08 10:00:2812138ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
Guido van Rossum76be6ed1995-01-02 18:33:5412139#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:0312140
Matthias Klosea0bea5d2010-05-08 10:00:2812141"
Matthias Klose3cef2a92012-03-14 22:39:3312142if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312143
12144cat >>confdefs.h <<_ACEOF
12145#define HAVE_STRUCT_TM_TM_ZONE 1
12146_ACEOF
12147
12148
Guido van Rossum76be6ed1995-01-02 18:33:5412149fi
Guido van Rossum48bdbfc1996-05-28 22:53:4812150
Martin v. Löwis11437992002-04-12 09:54:0312151if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12152
Matthias Klosea0bea5d2010-05-08 10:00:2812153$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5412154
12155else
Matthias Klosea0bea5d2010-05-08 10:00:2812156 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12157"
Matthias Klose3cef2a92012-03-14 22:39:3312158if test "x$ac_cv_have_decl_tzname" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812159 ac_have_decl=1
Martin v. Löwiseba40652007-08-30 20:10:5712160else
Matthias Klosea0bea5d2010-05-08 10:00:2812161 ac_have_decl=0
Martin v. Löwiseba40652007-08-30 20:10:5712162fi
12163
Martin v. Löwiseba40652007-08-30 20:10:5712164cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812165#define HAVE_DECL_TZNAME $ac_have_decl
Martin v. Löwiseba40652007-08-30 20:10:5712166_ACEOF
12167
Matthias Klosea0bea5d2010-05-08 10:00:2812168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12169$as_echo_n "checking for tzname... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312170if ${ac_cv_var_tzname+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812171 $as_echo_n "(cached) " >&6
Martin v. Löwiseba40652007-08-30 20:10:5712172else
Matthias Klosea0bea5d2010-05-08 10:00:2812173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412174/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1612175#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:5712176#if !HAVE_DECL_TZNAME
12177extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:1612178#endif
Martin v. Löwis11437992002-04-12 09:54:0312179
Martin v. Löwis11437992002-04-12 09:54:0312180int
12181main ()
12182{
Martin v. Löwiseba40652007-08-30 20:10:5712183return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:0312184 ;
12185 return 0;
12186}
12187_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812188if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5412189 ac_cv_var_tzname=yes
12190else
Matthias Klosea0bea5d2010-05-08 10:00:2812191 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:1612192fi
Matthias Klosea0bea5d2010-05-08 10:00:2812193rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:1612195fi
Matthias Klosea0bea5d2010-05-08 10:00:2812196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12197$as_echo "$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2612198 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:0312199
Matthias Klosea0bea5d2010-05-08 10:00:2812200$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1612201
Guido van Rossum76be6ed1995-01-02 18:33:5412202 fi
12203fi
12204
Matthias Klosea0bea5d2010-05-08 10:00:2812205ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3312206if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312207
12208cat >>confdefs.h <<_ACEOF
12209#define HAVE_STRUCT_STAT_ST_RDEV 1
12210_ACEOF
12211
12212
Guido van Rossum98bf58f2001-10-18 20:34:2512213fi
12214
Matthias Klosea0bea5d2010-05-08 10:00:2812215ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3312216if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1712217
Martin v. Löwis11437992002-04-12 09:54:0312218cat >>confdefs.h <<_ACEOF
12219#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12220_ACEOF
12221
12222
Guido van Rossum98bf58f2001-10-18 20:34:2512223fi
12224
Matthias Klosea0bea5d2010-05-08 10:00:2812225ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3312226if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
Hye-Shik Chang5f937a72005-06-02 13:09:3012227
12228cat >>confdefs.h <<_ACEOF
12229#define HAVE_STRUCT_STAT_ST_FLAGS 1
12230_ACEOF
12231
12232
12233fi
12234
Matthias Klosea0bea5d2010-05-08 10:00:2812235ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3312236if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5912237
12238cat >>confdefs.h <<_ACEOF
12239#define HAVE_STRUCT_STAT_ST_GEN 1
12240_ACEOF
12241
12242
12243fi
12244
Matthias Klosea0bea5d2010-05-08 10:00:2812245ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3312246if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5912247
12248cat >>confdefs.h <<_ACEOF
12249#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
12250_ACEOF
12251
12252
12253fi
12254
Matthias Klosea0bea5d2010-05-08 10:00:2812255ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3312256if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1712257
Martin v. Löwis11437992002-04-12 09:54:0312258cat >>confdefs.h <<_ACEOF
12259#define HAVE_STRUCT_STAT_ST_BLOCKS 1
12260_ACEOF
12261
12262
Guido van Rossum98bf58f2001-10-18 20:34:2512263fi
12264
Michael W. Hudson54241132001-12-07 15:38:2612265
Matthias Klosea0bea5d2010-05-08 10:00:2812266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
12267$as_echo_n "checking for time.h that defines altzone... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312268if ${ac_cv_header_time_altzone+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812269 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5412270else
Matthias Klosec511b472010-05-08 11:01:3912271
Matthias Klosea0bea5d2010-05-08 10:00:2812272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412273/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3012274#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0312275int
12276main ()
12277{
Guido van Rossum76be6ed1995-01-02 18:33:5412278return altzone;
Martin v. Löwis11437992002-04-12 09:54:0312279 ;
12280 return 0;
12281}
12282_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812283if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5412284 ac_cv_header_time_altzone=yes
12285else
Matthias Klosea0bea5d2010-05-08 10:00:2812286 ac_cv_header_time_altzone=no
Guido van Rossum76be6ed1995-01-02 18:33:5412287fi
Martin v. Löwiseba40652007-08-30 20:10:5712288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosec511b472010-05-08 11:01:3912289
Martin v. Löwiseba40652007-08-30 20:10:5712290fi
12291
Matthias Klosea0bea5d2010-05-08 10:00:2812292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
12293$as_echo "$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5412294if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:0312295
Matthias Klosea0bea5d2010-05-08 10:00:2812296$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5412297
12298fi
12299
Guido van Rossumda88dad1995-01-26 00:46:2912300was_it_defined=no
Matthias Klosea0bea5d2010-05-08 10:00:2812301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12302$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412304/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3012305
12306#include <sys/types.h>
12307#include <sys/select.h>
12308#include <sys/time.h>
12309
Martin v. Löwis11437992002-04-12 09:54:0312310int
12311main ()
12312{
Guido van Rossum76be6ed1995-01-02 18:33:5412313;
Martin v. Löwis11437992002-04-12 09:54:0312314 ;
12315 return 0;
12316}
12317_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812318if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312319
12320
Matthias Klosea0bea5d2010-05-08 10:00:2812321$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0312322
Martin v. Löwisc45929e2002-04-06 10:10:4912323 was_it_defined=yes
12324
Martin v. Löwiseba40652007-08-30 20:10:5712325fi
Martin v. Löwiseba40652007-08-30 20:10:5712326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2812327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
12328$as_echo "$was_it_defined" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5712329
Matthias Klosea0bea5d2010-05-08 10:00:2812330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
12331$as_echo_n "checking for addrinfo... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312332if ${ac_cv_struct_addrinfo+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812333 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1312334else
Matthias Klosea0bea5d2010-05-08 10:00:2812335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412336/* end confdefs.h. */
Matthias Klosec511b472010-05-08 11:01:3912337#include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0312338int
12339main ()
12340{
Martin v. Löwis01dfdb32001-06-23 16:30:1312341struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:0312342 ;
12343 return 0;
12344}
12345_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812346if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1312347 ac_cv_struct_addrinfo=yes
12348else
Matthias Klosea0bea5d2010-05-08 10:00:2812349 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1312350fi
Martin v. Löwiseba40652007-08-30 20:10:5712351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352fi
12353
Matthias Klosea0bea5d2010-05-08 10:00:2812354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
12355$as_echo "$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1312356if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:0312357
Matthias Klosea0bea5d2010-05-08 10:00:2812358$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1312359
12360fi
12361
Matthias Klosea0bea5d2010-05-08 10:00:2812362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
12363$as_echo_n "checking for sockaddr_storage... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312364if ${ac_cv_struct_sockaddr_storage+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812365 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1312366else
Matthias Klosea0bea5d2010-05-08 10:00:2812367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412368/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1312369
12370# include <sys/types.h>
12371# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0312372int
12373main ()
12374{
Martin v. Löwis01dfdb32001-06-23 16:30:1312375struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:0312376 ;
12377 return 0;
12378}
12379_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812380if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1312381 ac_cv_struct_sockaddr_storage=yes
12382else
Matthias Klosea0bea5d2010-05-08 10:00:2812383 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:1312384fi
Martin v. Löwiseba40652007-08-30 20:10:5712385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386fi
12387
Matthias Klosea0bea5d2010-05-08 10:00:2812388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
12389$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1312390if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:0312391
Matthias Klosea0bea5d2010-05-08 10:00:2812392$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1312393
12394fi
12395
Guido van Rossum627b2d71993-12-24 10:39:1612396# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:3012397
Matthias Klosea0bea5d2010-05-08 10:00:2812398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12399$as_echo_n "checking whether char is unsigned... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312400if ${ac_cv_c_char_unsigned+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812401 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:1712402else
Matthias Klosea0bea5d2010-05-08 10:00:2812403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412404/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312405$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0312406int
12407main ()
12408{
12409static int test_array [1 - 2 * !(((char) -1) < 0)];
Charles-François Natalibe2b9072013-01-08 18:47:0012410test_array [0] = 0;
12411return test_array [0];
Martin v. Löwis11437992002-04-12 09:54:0312412
12413 ;
12414 return 0;
Michael W. Hudson54241132001-12-07 15:38:2612415}
Martin v. Löwis11437992002-04-12 09:54:0312416_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812417if ac_fn_c_try_compile "$LINENO"; then :
Michael W. Hudson54241132001-12-07 15:38:2612418 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:0312419else
Matthias Klosea0bea5d2010-05-08 10:00:2812420 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:5412421fi
Martin v. Löwiseba40652007-08-30 20:10:5712422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2612423fi
Matthias Klosea0bea5d2010-05-08 10:00:2812424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12425$as_echo "$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5412426if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Matthias Klosea0bea5d2010-05-08 10:00:2812427 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5412428
12429fi
Guido van Rossum7f43da71994-08-01 12:15:3012430
Matthias Klosea0bea5d2010-05-08 10:00:2812431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12432$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312433if ${ac_cv_c_const+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812434 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0312435else
Matthias Klosea0bea5d2010-05-08 10:00:2812436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412437/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412438
Martin v. Löwis11437992002-04-12 09:54:0312439int
12440main ()
12441{
Charles-François Natalibe2b9072013-01-08 18:47:0012442
Martin v. Löwis11437992002-04-12 09:54:0312443#ifndef __cplusplus
Charles-François Natalibe2b9072013-01-08 18:47:0012444 /* Ultrix mips cc rejects this sort of thing. */
Martin v. Löwis11437992002-04-12 09:54:0312445 typedef int charset[2];
Charles-François Natalibe2b9072013-01-08 18:47:0012446 const charset cs = { 0, 0 };
Martin v. Löwis11437992002-04-12 09:54:0312447 /* SunOS 4.1.1 cc rejects this. */
Martin v. Löwiseba40652007-08-30 20:10:5712448 char const *const *pcpcc;
12449 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:0312450 /* NEC SVR4.0.2 mips cc rejects this. */
12451 struct point {int x, y;};
12452 static struct point const zero = {0,0};
12453 /* AIX XL C 1.02.0.0 rejects this.
12454 It does not let you subtract one const X* pointer from another in
12455 an arm of an if-expression whose if-part is not a constant
12456 expression */
12457 const char *g = "string";
Martin v. Löwiseba40652007-08-30 20:10:5712458 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:0312459 /* HPUX 7.0 cc rejects these. */
Martin v. Löwiseba40652007-08-30 20:10:5712460 ++pcpcc;
12461 ppc = (char**) pcpcc;
12462 pcpcc = (char const *const *) ppc;
Charles-François Natalibe2b9072013-01-08 18:47:0012463 { /* SCO 3.2v4 cc rejects this sort of thing. */
12464 char tx;
12465 char *t = &tx;
Martin v. Löwis11437992002-04-12 09:54:0312466 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:5412467
Martin v. Löwis11437992002-04-12 09:54:0312468 *t++ = 0;
Martin v. Löwiseba40652007-08-30 20:10:5712469 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:0312470 }
12471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12472 int x[] = {25, 17};
12473 const int *foo = &x[0];
12474 ++foo;
12475 }
12476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12477 typedef const int *iptr;
12478 iptr p = 0;
12479 ++p;
12480 }
Charles-François Natalibe2b9072013-01-08 18:47:0012481 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Martin v. Löwis11437992002-04-12 09:54:0312482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Charles-François Natalibe2b9072013-01-08 18:47:0012483 struct s { int j; const int *ap[3]; } bx;
12484 struct s *b = &bx; b->j = 5;
Martin v. Löwis11437992002-04-12 09:54:0312485 }
12486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12487 const int foo = 10;
Martin v. Löwiseba40652007-08-30 20:10:5712488 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:0312489 }
Martin v. Löwiseba40652007-08-30 20:10:5712490 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:0312491#endif
Guido van Rossum627b2d71993-12-24 10:39:1612492
Martin v. Löwis11437992002-04-12 09:54:0312493 ;
12494 return 0;
Guido van Rossum627b2d71993-12-24 10:39:1612495}
Martin v. Löwis11437992002-04-12 09:54:0312496_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812497if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5412498 ac_cv_c_const=yes
12499else
Matthias Klosea0bea5d2010-05-08 10:00:2812500 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:5412501fi
Martin v. Löwiseba40652007-08-30 20:10:5712502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5412503fi
Matthias Klosea0bea5d2010-05-08 10:00:2812504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12505$as_echo "$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5412506if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:0312507
Matthias Klosea0bea5d2010-05-08 10:00:2812508$as_echo "#define const /**/" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5412509
12510fi
12511
Michael W. Hudson54241132001-12-07 15:38:2612512
Guido van Rossumda88dad1995-01-26 00:46:2912513works=no
Matthias Klosea0bea5d2010-05-08 10:00:2812514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12515$as_echo_n "checking for working volatile... " >&6; }
12516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412517/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1612518
Martin v. Löwis11437992002-04-12 09:54:0312519int
12520main ()
12521{
Guido van Rossum76be6ed1995-01-02 18:33:5412522volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:0312523 ;
12524 return 0;
12525}
12526_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812527if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:2912528 works=yes
Guido van Rossum627b2d71993-12-24 10:39:1612529else
Skip Montanaro6dead952003-09-25 14:50:0412530
Matthias Klosea0bea5d2010-05-08 10:00:2812531$as_echo "#define volatile /**/" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1612532
Martin v. Löwisc45929e2002-04-06 10:10:4912533
Guido van Rossum627b2d71993-12-24 10:39:1612534fi
Martin v. Löwiseba40652007-08-30 20:10:5712535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2812536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12537$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:3012538
Guido van Rossumda88dad1995-01-26 00:46:2912539works=no
Matthias Klosea0bea5d2010-05-08 10:00:2812540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
12541$as_echo_n "checking for working signed char... " >&6; }
12542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412543/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:2712544
Martin v. Löwis11437992002-04-12 09:54:0312545int
12546main ()
12547{
Guido van Rossum76be6ed1995-01-02 18:33:5412548signed char c;
Martin v. Löwis11437992002-04-12 09:54:0312549 ;
12550 return 0;
12551}
12552_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812553if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:2912554 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:2712555else
Skip Montanaro6dead952003-09-25 14:50:0412556
Matthias Klosea0bea5d2010-05-08 10:00:2812557$as_echo "#define signed /**/" >>confdefs.h
Guido van Rossum7f43da71994-08-01 12:15:3012558
Martin v. Löwisc45929e2002-04-06 10:10:4912559
Guido van Rossum7f43da71994-08-01 12:15:3012560fi
Martin v. Löwiseba40652007-08-30 20:10:5712561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2812562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12563$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:3012564
Guido van Rossumda88dad1995-01-26 00:46:2912565have_prototypes=no
Matthias Klosea0bea5d2010-05-08 10:00:2812566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
12567$as_echo_n "checking for prototypes... " >&6; }
12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412569/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3012570int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:0312571int
12572main ()
12573{
Guido van Rossum76be6ed1995-01-02 18:33:5412574return foo(10);
Martin v. Löwis11437992002-04-12 09:54:0312575 ;
12576 return 0;
12577}
12578_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812579if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312580
Matthias Klosea0bea5d2010-05-08 10:00:2812581$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0312582
Matthias Klosec511b472010-05-08 11:01:3912583 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:3012584fi
Martin v. Löwiseba40652007-08-30 20:10:5712585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2812586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
12587$as_echo "$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5412588
Guido van Rossumda88dad1995-01-26 00:46:2912589works=no
Matthias Klosea0bea5d2010-05-08 10:00:2812590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
12591$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
12592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412593/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3012594
12595#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:5712596int foo(int x, ...) {
12597 va_list va;
12598 va_start(va, x);
12599 va_arg(va, int);
12600 va_arg(va, char *);
12601 va_arg(va, double);
12602 return 0;
12603}
Guido van Rossum7f43da71994-08-01 12:15:3012604
Martin v. Löwis11437992002-04-12 09:54:0312605int
12606main ()
12607{
Guido van Rossum90eea071996-08-30 20:58:5712608return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:0312609 ;
12610 return 0;
12611}
12612_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812613if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312614
12615
Matthias Klosea0bea5d2010-05-08 10:00:2812616$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0312617
Martin v. Löwisc45929e2002-04-06 10:10:4912618 works=yes
12619
Guido van Rossum627b2d71993-12-24 10:39:1612620fi
Martin v. Löwiseba40652007-08-30 20:10:5712621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2812622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12623$as_echo "$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5412624
Martin v. Löwisd6320502004-08-12 13:45:0812625# check for socketpair
Matthias Klosea0bea5d2010-05-08 10:00:2812626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
12627$as_echo_n "checking for socketpair... " >&6; }
12628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0812629/* end confdefs.h. */
12630
12631#include <sys/types.h>
12632#include <sys/socket.h>
12633
12634int
12635main ()
12636{
12637void *x=socketpair
12638 ;
12639 return 0;
12640}
12641_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812642if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd6320502004-08-12 13:45:0812643
Matthias Klosea0bea5d2010-05-08 10:00:2812644$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:0812645
Matthias Klosec511b472010-05-08 11:01:3912646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2812647$as_echo "yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0812648else
Matthias Klosea0bea5d2010-05-08 10:00:2812649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650$as_echo "no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0812651
12652fi
Martin v. Löwiseba40652007-08-30 20:10:5712653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0812654
Martin v. Löwis01dfdb32001-06-23 16:30:1312655# check if sockaddr has sa_len member
Matthias Klosea0bea5d2010-05-08 10:00:2812656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
12657$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
12658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412659/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1312660#include <sys/types.h>
12661#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0312662int
12663main ()
12664{
Martin v. Löwis01dfdb32001-06-23 16:30:1312665struct sockaddr x;
12666x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:0312667 ;
12668 return 0;
12669}
12670_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812671if ac_fn_c_try_compile "$LINENO"; then :
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312674
Matthias Klosea0bea5d2010-05-08 10:00:2812675$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1312676
12677else
Matthias Klosea0bea5d2010-05-08 10:00:2812678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
Matthias Klosec511b472010-05-08 11:01:3912680
Martin v. Löwis01dfdb32001-06-23 16:30:1312681fi
Martin v. Löwiseba40652007-08-30 20:10:5712682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1312683
Guido van Rossumda88dad1995-01-26 00:46:2912684va_list_is_array=no
Matthias Klosea0bea5d2010-05-08 10:00:2812685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
12686$as_echo_n "checking whether va_list is an array... " >&6; }
12687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412688/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412689
12690#ifdef HAVE_STDARG_PROTOTYPES
12691#include <stdarg.h>
12692#else
12693#include <varargs.h>
12694#endif
12695
Martin v. Löwis11437992002-04-12 09:54:0312696int
12697main ()
12698{
Guido van Rossum76be6ed1995-01-02 18:33:5412699va_list list1, list2; list1 = list2;
Martin v. Löwis11437992002-04-12 09:54:0312700 ;
12701 return 0;
12702}
12703_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812704if ac_fn_c_try_compile "$LINENO"; then :
12705
Guido van Rossum76be6ed1995-01-02 18:33:5412706else
Skip Montanaro6dead952003-09-25 14:50:0412707
Martin v. Löwis11437992002-04-12 09:54:0312708
Matthias Klosea0bea5d2010-05-08 10:00:2812709$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0312710
Guido van Rossumda88dad1995-01-26 00:46:2912711 va_list_is_array=yes
Martin v. Löwisc45929e2002-04-06 10:10:4912712
Guido van Rossum76be6ed1995-01-02 18:33:5412713fi
Martin v. Löwiseba40652007-08-30 20:10:5712714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2812715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
12716$as_echo "$va_list_is_array" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5412717
Guido van Rossuma96f0ba1999-03-22 21:49:5112718# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:0312719
12720
Matthias Klosea0bea5d2010-05-08 10:00:2812721ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
Matthias Klose3cef2a92012-03-14 22:39:3312722if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312723
Matthias Klosea0bea5d2010-05-08 10:00:2812724 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Martin v. Löwis4ddc78a2006-01-29 09:53:4412725
Matthias Klosea0bea5d2010-05-08 10:00:2812726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
12727$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:5112728 OLD_CFLAGS=$CFLAGS
12729 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Matthias Klosea0bea5d2010-05-08 10:00:2812730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412731/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5112732
12733# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0312734
Martin v. Löwis11437992002-04-12 09:54:0312735int
12736main ()
12737{
Guido van Rossuma96f0ba1999-03-22 21:49:5112738
12739 char *name;
12740 struct hostent *he, *res;
12741 char buffer[2048];
12742 int buflen = 2048;
12743 int h_errnop;
12744
12745 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0312746
12747 ;
12748 return 0;
12749}
12750_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812751if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312752
Matthias Klosea0bea5d2010-05-08 10:00:2812753 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3312754
Martin v. Löwis11437992002-04-12 09:54:0312755
Matthias Klosea0bea5d2010-05-08 10:00:2812756$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5112757
Matthias Klosea0bea5d2010-05-08 10:00:2812758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312760
Guido van Rossuma96f0ba1999-03-22 21:49:5112761else
Skip Montanaro6dead952003-09-25 14:50:0412762
Matthias Klosea0bea5d2010-05-08 10:00:2812763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
12766$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412768/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5112769
Guido van Rossuma96f0ba1999-03-22 21:49:5112770# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0312771
Martin v. Löwis11437992002-04-12 09:54:0312772int
12773main ()
12774{
Guido van Rossuma96f0ba1999-03-22 21:49:5112775
12776 char *name;
12777 struct hostent *he;
Matthias Klosec511b472010-05-08 11:01:3912778 char buffer[2048];
12779 int buflen = 2048;
12780 int h_errnop;
Guido van Rossuma96f0ba1999-03-22 21:49:5112781
Matthias Klosec511b472010-05-08 11:01:3912782 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0312783
12784 ;
12785 return 0;
12786}
12787_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812788if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312789
Matthias Klosea0bea5d2010-05-08 10:00:2812790 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3312791
Martin v. Löwis11437992002-04-12 09:54:0312792
Matthias Klosec511b472010-05-08 11:01:3912793$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5112794
Matthias Klosea0bea5d2010-05-08 10:00:2812795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312797
Guido van Rossuma96f0ba1999-03-22 21:49:5112798else
Skip Montanaro6dead952003-09-25 14:50:0412799
Matthias Klosea0bea5d2010-05-08 10:00:2812800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
Matthias Klosec511b472010-05-08 11:01:3912802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
12803$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805/* end confdefs.h. */
12806
12807# include <netdb.h>
12808
12809int
12810main ()
12811{
12812
12813 char *name;
12814 struct hostent *he;
12815 struct hostent_data data;
12816
12817 (void) gethostbyname_r(name, he, &data);
12818
12819 ;
12820 return 0;
12821}
12822_ACEOF
12823if ac_fn_c_try_compile "$LINENO"; then :
12824
12825 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12826
12827
12828$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12831$as_echo "yes" >&6; }
12832
12833else
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312837
Guido van Rossuma96f0ba1999-03-22 21:49:5112838fi
Martin v. Löwiseba40652007-08-30 20:10:5712839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312840
Guido van Rossuma96f0ba1999-03-22 21:49:5112841fi
Martin v. Löwiseba40652007-08-30 20:10:5712842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312843
Guido van Rossuma96f0ba1999-03-22 21:49:5112844fi
Martin v. Löwiseba40652007-08-30 20:10:5712845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:5112846 CFLAGS=$OLD_CFLAGS
12847
12848else
Guido van Rossuma96f0ba1999-03-22 21:49:5112849
Matthias Klosea0bea5d2010-05-08 10:00:2812850 for ac_func in gethostbyname
12851do :
12852 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Matthias Klose3cef2a92012-03-14 22:39:3312853if test "x$ac_cv_func_gethostbyname" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312854 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812855#define HAVE_GETHOSTBYNAME 1
Martin v. Löwis11437992002-04-12 09:54:0312856_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:5112857
Guido van Rossuma96f0ba1999-03-22 21:49:5112858fi
Thomas Wouters3a584202000-08-05 23:28:5112859done
Guido van Rossuma96f0ba1999-03-22 21:49:5112860
Michael W. Hudson54241132001-12-07 15:38:2612861
Guido van Rossuma96f0ba1999-03-22 21:49:5112862fi
12863
Michael W. Hudson54241132001-12-07 15:38:2612864
12865
12866
12867
12868
12869
Guido van Rossum627b2d71993-12-24 10:39:1612870# checks for system services
12871# (none yet)
12872
Guido van Rossum76be6ed1995-01-02 18:33:5412873# Linux requires this for correct f.p. operations
Matthias Klosea0bea5d2010-05-08 10:00:2812874ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
Matthias Klose3cef2a92012-03-14 22:39:3312875if test "x$ac_cv_func___fpu_control" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812876
Jeremy Hyltonbe28f5b2000-07-27 21:03:0412877else
Matthias Klosea0bea5d2010-05-08 10:00:2812878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
12879$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312880if ${ac_cv_lib_ieee___fpu_control+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2812881 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5412882else
Martin v. Löwis11437992002-04-12 09:54:0312883 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2812884LIBS="-lieee $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2812885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412886/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312887
Martin v. Löwiseba40652007-08-30 20:10:5712888/* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312891#ifdef __cplusplus
12892extern "C"
12893#endif
Martin v. Löwis11437992002-04-12 09:54:0312894char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0312895int
12896main ()
12897{
Martin v. Löwiseba40652007-08-30 20:10:5712898return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0312899 ;
12900 return 0;
12901}
12902_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2812903if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312904 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:1612905else
Matthias Klosea0bea5d2010-05-08 10:00:2812906 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:1612907fi
Matthias Klosea0bea5d2010-05-08 10:00:2812908rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312910LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5412911fi
Matthias Klosea0bea5d2010-05-08 10:00:2812912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
12913$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3312914if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312915 cat >>confdefs.h <<_ACEOF
12916#define HAVE_LIBIEEE 1
12917_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5412918
Guido van Rossum8ddd0ad1995-06-14 23:10:2812919 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:5412920
Guido van Rossum627b2d71993-12-24 10:39:1612921fi
12922
Michael W. Hudson54241132001-12-07 15:38:2612923
Jeremy Hyltonbe28f5b2000-07-27 21:03:0412924fi
12925
Michael W. Hudson54241132001-12-07 15:38:2612926
Guido van Rossum7f253911997-05-09 02:42:4812927# Check for --with-fpectl
Matthias Klosea0bea5d2010-05-08 10:00:2812928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
12929$as_echo_n "checking for --with-fpectl... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312930
Martin v. Löwiseba40652007-08-30 20:10:5712931# Check whether --with-fpectl was given.
Matthias Klosea0bea5d2010-05-08 10:00:2812932if test "${with_fpectl+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5712933 withval=$with_fpectl;
Guido van Rossum7f253911997-05-09 02:42:4812934if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:0312935then
12936
Matthias Klosea0bea5d2010-05-08 10:00:2812937$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0312938
Matthias Klosea0bea5d2010-05-08 10:00:2812939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12940$as_echo "yes" >&6; }
12941else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4812943fi
Guido van Rossumef2255b2000-03-10 22:30:2912944else
Matthias Klosea0bea5d2010-05-08 10:00:2812945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5712947fi
12948
Guido van Rossum7f253911997-05-09 02:42:4812949
Guido van Rossum7f43da71994-08-01 12:15:3012950# check for --with-libm=...
12951
Guido van Rossum563e7081996-09-10 18:20:4812952case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:0612953Darwin) ;;
Guido van Rossumec95c7b1998-08-04 17:59:5612954BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:4812955*) LIBM=-lm
12956esac
Matthias Klosea0bea5d2010-05-08 10:00:2812957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
12958$as_echo_n "checking for --with-libm=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312959
Martin v. Löwiseba40652007-08-30 20:10:5712960# Check whether --with-libm was given.
Matthias Klosea0bea5d2010-05-08 10:00:2812961if test "${with_libm+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5712962 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:4812963if test "$withval" = no
12964then LIBM=
Matthias Klosea0bea5d2010-05-08 10:00:2812965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
12966$as_echo "force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4812967elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3012968then LIBM=$withval
Matthias Klosea0bea5d2010-05-08 10:00:2812969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
12970$as_echo "set LIBM=\"$withval\"" >&6; }
Georg Brandl71f4fbb2011-02-25 11:04:5012971else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3012972fi
Guido van Rossum7f253911997-05-09 02:42:4812973else
Matthias Klosea0bea5d2010-05-08 10:00:2812974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
12975$as_echo "default LIBM=\"$LIBM\"" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5712976fi
12977
Guido van Rossum7f43da71994-08-01 12:15:3012978
12979# check for --with-libc=...
12980
Matthias Klosea0bea5d2010-05-08 10:00:2812981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
12982$as_echo_n "checking for --with-libc=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0312983
Martin v. Löwiseba40652007-08-30 20:10:5712984# Check whether --with-libc was given.
Matthias Klosea0bea5d2010-05-08 10:00:2812985if test "${with_libc+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5712986 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:4812987if test "$withval" = no
12988then LIBC=
Matthias Klosea0bea5d2010-05-08 10:00:2812989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
12990$as_echo "force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4812991elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3012992then LIBC=$withval
Matthias Klosea0bea5d2010-05-08 10:00:2812993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
12994$as_echo "set LIBC=\"$withval\"" >&6; }
Georg Brandl71f4fbb2011-02-25 11:04:5012995else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3012996fi
Guido van Rossum7f253911997-05-09 02:42:4812997else
Matthias Klosea0bea5d2010-05-08 10:00:2812998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
12999$as_echo "default LIBC=\"$LIBC\"" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5713000fi
13001
Guido van Rossum7f43da71994-08-01 12:15:3013002
Mark Dickinson1d6e2e12009-10-24 13:28:3813003# **************************************************
13004# * Check for various properties of floating point *
13005# **************************************************
Mark Dickinson265d7382008-04-21 22:32:2413006
Matthias Klosea0bea5d2010-05-08 10:00:2813007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
13008$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313009if ${ac_cv_little_endian_double+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813010 $as_echo_n "(cached) " >&6
Mark Dickinson1d6e2e12009-10-24 13:28:3813011else
13012
Matthias Klosea0bea5d2010-05-08 10:00:2813013if test "$cross_compiling" = yes; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813014 ac_cv_little_endian_double=no
13015else
Matthias Klosea0bea5d2010-05-08 10:00:2813016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813017/* end confdefs.h. */
13018
13019#include <string.h>
13020int main() {
13021 double x = 9006104071832581.0;
13022 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
13023 return 0;
13024 else
13025 return 1;
13026}
13027
13028_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813029if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813030 ac_cv_little_endian_double=yes
13031else
Matthias Klosea0bea5d2010-05-08 10:00:2813032 ac_cv_little_endian_double=no
Mark Dickinson1d6e2e12009-10-24 13:28:3813033fi
Matthias Klosea0bea5d2010-05-08 10:00:2813034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13035 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813036fi
13037
Mark Dickinson1d6e2e12009-10-24 13:28:3813038fi
13039
Matthias Klosea0bea5d2010-05-08 10:00:2813040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
13041$as_echo "$ac_cv_little_endian_double" >&6; }
Mark Dickinson1d6e2e12009-10-24 13:28:3813042if test "$ac_cv_little_endian_double" = yes
13043then
13044
Matthias Klosea0bea5d2010-05-08 10:00:2813045$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinson1d6e2e12009-10-24 13:28:3813046
13047fi
13048
Matthias Klosea0bea5d2010-05-08 10:00:2813049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
13050$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313051if ${ac_cv_big_endian_double+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813052 $as_echo_n "(cached) " >&6
Mark Dickinson1d6e2e12009-10-24 13:28:3813053else
13054
Matthias Klosea0bea5d2010-05-08 10:00:2813055if test "$cross_compiling" = yes; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813056 ac_cv_big_endian_double=no
13057else
Matthias Klosea0bea5d2010-05-08 10:00:2813058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813059/* end confdefs.h. */
13060
13061#include <string.h>
13062int main() {
13063 double x = 9006104071832581.0;
13064 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
13065 return 0;
13066 else
13067 return 1;
13068}
13069
13070_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813071if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813072 ac_cv_big_endian_double=yes
13073else
Matthias Klosea0bea5d2010-05-08 10:00:2813074 ac_cv_big_endian_double=no
Mark Dickinson1d6e2e12009-10-24 13:28:3813075fi
Matthias Klosea0bea5d2010-05-08 10:00:2813076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13077 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813078fi
13079
Mark Dickinson1d6e2e12009-10-24 13:28:3813080fi
13081
Matthias Klosea0bea5d2010-05-08 10:00:2813082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
13083$as_echo "$ac_cv_big_endian_double" >&6; }
Mark Dickinson1d6e2e12009-10-24 13:28:3813084if test "$ac_cv_big_endian_double" = yes
13085then
13086
Matthias Klosea0bea5d2010-05-08 10:00:2813087$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinson1d6e2e12009-10-24 13:28:3813088
13089fi
13090
13091# Some ARM platforms use a mixed-endian representation for doubles.
13092# While Python doesn't currently have full support for these platforms
13093# (see e.g., issue 1762561), we can at least make sure that float <-> string
13094# conversions work.
Matthias Klosea0bea5d2010-05-08 10:00:2813095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
13096$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313097if ${ac_cv_mixed_endian_double+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813098 $as_echo_n "(cached) " >&6
Mark Dickinson1d6e2e12009-10-24 13:28:3813099else
13100
Matthias Klosea0bea5d2010-05-08 10:00:2813101if test "$cross_compiling" = yes; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813102 ac_cv_mixed_endian_double=no
13103else
Matthias Klosea0bea5d2010-05-08 10:00:2813104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813105/* end confdefs.h. */
13106
13107#include <string.h>
13108int main() {
13109 double x = 9006104071832581.0;
13110 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
13111 return 0;
13112 else
13113 return 1;
13114}
13115
13116_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813117if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813118 ac_cv_mixed_endian_double=yes
13119else
Matthias Klosea0bea5d2010-05-08 10:00:2813120 ac_cv_mixed_endian_double=no
Mark Dickinson1d6e2e12009-10-24 13:28:3813121fi
Matthias Klosea0bea5d2010-05-08 10:00:2813122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13123 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813124fi
13125
Mark Dickinson1d6e2e12009-10-24 13:28:3813126fi
13127
Matthias Klosea0bea5d2010-05-08 10:00:2813128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
13129$as_echo "$ac_cv_mixed_endian_double" >&6; }
Mark Dickinson1d6e2e12009-10-24 13:28:3813130if test "$ac_cv_mixed_endian_double" = yes
13131then
13132
Matthias Klosea0bea5d2010-05-08 10:00:2813133$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinson1d6e2e12009-10-24 13:28:3813134
13135fi
13136
13137# The short float repr introduced in Python 3.1 requires the
13138# correctly-rounded string <-> double conversion functions from
13139# Python/dtoa.c, which in turn require that the FPU uses 53-bit
13140# rounding; this is a problem on x86, where the x87 FPU has a default
Mark Dickinsona548dee2009-11-15 13:12:4313141# rounding precision of 64 bits. For gcc/x86, we can fix this by
Mark Dickinson1d6e2e12009-10-24 13:28:3813142# using inline assembler to get and set the x87 FPU control word.
Mark Dickinsona548dee2009-11-15 13:12:4313143
13144# This inline assembler syntax may also work for suncc and icc,
13145# so we try it on all platforms.
13146
Matthias Klosea0bea5d2010-05-08 10:00:2813147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
13148$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
13149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson1d6e2e12009-10-24 13:28:3813150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
Mark Dickinsona548dee2009-11-15 13:12:4313156 unsigned short cw;
13157 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13158 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
Mark Dickinson1d6e2e12009-10-24 13:28:3813159
13160 ;
13161 return 0;
13162}
13163_ACEOF
Stefan Krah99e36b92015-07-03 13:30:5413164if ac_fn_c_try_link "$LINENO"; then :
Mark Dickinson1d6e2e12009-10-24 13:28:3813165 have_gcc_asm_for_x87=yes
13166else
Matthias Klosea0bea5d2010-05-08 10:00:2813167 have_gcc_asm_for_x87=no
Mark Dickinson1d6e2e12009-10-24 13:28:3813168fi
Stefan Krah99e36b92015-07-03 13:30:5413169rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2813171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
13172$as_echo "$have_gcc_asm_for_x87" >&6; }
Mark Dickinsona548dee2009-11-15 13:12:4313173if test "$have_gcc_asm_for_x87" = yes
13174then
Mark Dickinson1d6e2e12009-10-24 13:28:3813175
Matthias Klosea0bea5d2010-05-08 10:00:2813176$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
Mark Dickinson1d6e2e12009-10-24 13:28:3813177
Mark Dickinson1d6e2e12009-10-24 13:28:3813178fi
Mark Dickinson7a3d8642008-04-22 00:54:2713179
Mark Dickinson04b27232009-01-04 12:29:3613180# Detect whether system arithmetic is subject to x87-style double
13181# rounding issues. The result of this test has little meaning on non
13182# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
13183# mode is round-to-nearest and double rounding issues are present, and
13184# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
Matthias Klosea0bea5d2010-05-08 10:00:2813185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
13186$as_echo_n "checking for x87-style double rounding... " >&6; }
Mark Dickinson99abd142009-10-24 13:44:1613187# $BASECFLAGS may affect the result
13188ac_save_cc="$CC"
13189CC="$CC $BASECFLAGS"
Matthias Klosea0bea5d2010-05-08 10:00:2813190if test "$cross_compiling" = yes; then :
Mark Dickinson04b27232009-01-04 12:29:3613191 ac_cv_x87_double_rounding=no
13192else
Matthias Klosea0bea5d2010-05-08 10:00:2813193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson04b27232009-01-04 12:29:3613194/* end confdefs.h. */
13195
13196#include <stdlib.h>
13197#include <math.h>
13198int main() {
13199 volatile double x, y, z;
13200 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
13201 x = 0.99999999999999989; /* 1-2**-53 */
13202 y = 1./x;
13203 if (y != 1.)
13204 exit(0);
13205 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
13206 x = 1e16;
13207 y = 2.99999;
13208 z = x + y;
13209 if (z != 1e16+4.)
13210 exit(0);
13211 /* both tests show evidence of double rounding */
13212 exit(1);
13213}
13214
13215_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813216if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson04b27232009-01-04 12:29:3613217 ac_cv_x87_double_rounding=no
13218else
Matthias Klosea0bea5d2010-05-08 10:00:2813219 ac_cv_x87_double_rounding=yes
Mark Dickinson04b27232009-01-04 12:29:3613220fi
Matthias Klosea0bea5d2010-05-08 10:00:2813221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13222 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson04b27232009-01-04 12:29:3613223fi
13224
Mark Dickinson99abd142009-10-24 13:44:1613225CC="$ac_save_cc"
Matthias Klosea0bea5d2010-05-08 10:00:2813226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
13227$as_echo "$ac_cv_x87_double_rounding" >&6; }
Mark Dickinson04b27232009-01-04 12:29:3613228if test "$ac_cv_x87_double_rounding" = yes
13229then
13230
Matthias Klosea0bea5d2010-05-08 10:00:2813231$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
Mark Dickinson04b27232009-01-04 12:29:3613232
13233fi
13234
Mark Dickinson1d6e2e12009-10-24 13:28:3813235# ************************************
13236# * Check for mathematical functions *
13237# ************************************
13238
13239LIBS_SAVE=$LIBS
13240LIBS="$LIBS $LIBM"
13241
Mark Dickinson265d7382008-04-21 22:32:2413242# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
13243# -0. on some architectures.
Matthias Klosea0bea5d2010-05-08 10:00:2813244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
13245$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313246if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813247 $as_echo_n "(cached) " >&6
Mark Dickinson265d7382008-04-21 22:32:2413248else
13249
Matthias Klosea0bea5d2010-05-08 10:00:2813250if test "$cross_compiling" = yes; then :
Mark Dickinson265d7382008-04-21 22:32:2413251 ac_cv_tanh_preserves_zero_sign=no
13252else
Matthias Klosea0bea5d2010-05-08 10:00:2813253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson265d7382008-04-21 22:32:2413254/* end confdefs.h. */
13255
13256#include <math.h>
Mark Dickinson7a3d8642008-04-22 00:54:2713257#include <stdlib.h>
Mark Dickinson265d7382008-04-21 22:32:2413258int main() {
13259 /* return 0 if either negative zeros don't exist
13260 on this platform or if negative zeros exist
13261 and tanh(-0.) == -0. */
13262 if (atan2(0., -1.) == atan2(-0., -1.) ||
13263 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
13264 else exit(1);
13265}
13266
13267_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813268if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson265d7382008-04-21 22:32:2413269 ac_cv_tanh_preserves_zero_sign=yes
13270else
Matthias Klosea0bea5d2010-05-08 10:00:2813271 ac_cv_tanh_preserves_zero_sign=no
Mark Dickinson265d7382008-04-21 22:32:2413272fi
Matthias Klosea0bea5d2010-05-08 10:00:2813273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13274 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson265d7382008-04-21 22:32:2413275fi
13276
Mark Dickinson265d7382008-04-21 22:32:2413277fi
13278
Matthias Klosea0bea5d2010-05-08 10:00:2813279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
13280$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
Mark Dickinson265d7382008-04-21 22:32:2413281if test "$ac_cv_tanh_preserves_zero_sign" = yes
13282then
13283
Matthias Klosea0bea5d2010-05-08 10:00:2813284$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
Mark Dickinson265d7382008-04-21 22:32:2413285
13286fi
13287
Mark Dickinson65898e02009-09-05 10:27:0013288for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
Matthias Klosea0bea5d2010-05-08 10:00:2813289do :
13290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Georg Brandl71f4fbb2011-02-25 11:04:5013292if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinson65898e02009-09-05 10:27:0013293 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Mark Dickinson65898e02009-09-05 10:27:0013295_ACEOF
13296
13297fi
13298done
13299
Mark Dickinson65898e02009-09-05 10:27:0013300for ac_func in hypot lgamma log1p round tgamma
Matthias Klosea0bea5d2010-05-08 10:00:2813301do :
13302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Georg Brandl71f4fbb2011-02-25 11:04:5013304if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Christian Heimes0a8143f2007-12-18 23:22:5413305 cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Christian Heimes0a8143f2007-12-18 23:22:5413307_ACEOF
13308
13309fi
13310done
13311
Matthias Klosea0bea5d2010-05-08 10:00:2813312ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
13313"
Matthias Klose3cef2a92012-03-14 22:39:3313314if test "x$ac_cv_have_decl_isinf" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813315 ac_have_decl=1
Mark Dickinsond181e3a2009-01-04 13:57:2613316else
Matthias Klosea0bea5d2010-05-08 10:00:2813317 ac_have_decl=0
Mark Dickinsond181e3a2009-01-04 13:57:2613318fi
13319
Mark Dickinsond181e3a2009-01-04 13:57:2613320cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813321#define HAVE_DECL_ISINF $ac_have_decl
Mark Dickinsond181e3a2009-01-04 13:57:2613322_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813323ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
13324"
Matthias Klose3cef2a92012-03-14 22:39:3313325if test "x$ac_cv_have_decl_isnan" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813326 ac_have_decl=1
Mark Dickinsond181e3a2009-01-04 13:57:2613327else
Matthias Klosea0bea5d2010-05-08 10:00:2813328 ac_have_decl=0
Mark Dickinsond181e3a2009-01-04 13:57:2613329fi
Mark Dickinsond181e3a2009-01-04 13:57:2613330
13331cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813332#define HAVE_DECL_ISNAN $ac_have_decl
Mark Dickinsond181e3a2009-01-04 13:57:2613333_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813334ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
13335"
Matthias Klose3cef2a92012-03-14 22:39:3313336if test "x$ac_cv_have_decl_isfinite" = xyes; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813337 ac_have_decl=1
Mark Dickinsond181e3a2009-01-04 13:57:2613338else
Matthias Klosea0bea5d2010-05-08 10:00:2813339 ac_have_decl=0
Mark Dickinsond181e3a2009-01-04 13:57:2613340fi
Mark Dickinsond181e3a2009-01-04 13:57:2613341
13342cat >>confdefs.h <<_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813343#define HAVE_DECL_ISFINITE $ac_have_decl
Mark Dickinsond181e3a2009-01-04 13:57:2613344_ACEOF
13345
13346
Guido van Rossumaf5b83e1995-01-04 19:02:3513347LIBS=$LIBS_SAVE
13348
Mark Dickinsonc63392c2009-11-28 13:13:1313349# For multiprocessing module, check that sem_open
13350# actually works. For FreeBSD versions <= 7.2,
13351# the kernel module that provides POSIX semaphores
13352# isn't loaded by default, so an attempt to call
13353# sem_open results in a 'Signal 12' error.
Matthias Klosea0bea5d2010-05-08 10:00:2813354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
13355$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313356if ${ac_cv_posix_semaphores_enabled+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813357 $as_echo_n "(cached) " >&6
Mark Dickinsonc63392c2009-11-28 13:13:1313358else
Matthias Klosea0bea5d2010-05-08 10:00:2813359 if test "$cross_compiling" = yes; then :
Mark Dickinsonc63392c2009-11-28 13:13:1313360 ac_cv_posix_semaphores_enabled=yes
13361else
Matthias Klosea0bea5d2010-05-08 10:00:2813362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonc63392c2009-11-28 13:13:1313363/* end confdefs.h. */
13364
13365#include <unistd.h>
13366#include <fcntl.h>
13367#include <stdio.h>
13368#include <semaphore.h>
13369#include <sys/stat.h>
13370
13371int main(void) {
13372 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
13373 if (a == SEM_FAILED) {
13374 perror("sem_open");
13375 return 1;
13376 }
13377 sem_close(a);
Mark Dickinson59dc89e2009-12-13 21:06:0613378 sem_unlink("/autoconf");
Mark Dickinsonc63392c2009-11-28 13:13:1313379 return 0;
13380}
13381
13382_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813383if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonc63392c2009-11-28 13:13:1313384 ac_cv_posix_semaphores_enabled=yes
13385else
Matthias Klosea0bea5d2010-05-08 10:00:2813386 ac_cv_posix_semaphores_enabled=no
Mark Dickinsonc63392c2009-11-28 13:13:1313387fi
Matthias Klosea0bea5d2010-05-08 10:00:2813388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13389 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonc63392c2009-11-28 13:13:1313390fi
13391
13392
Mark Dickinsonc63392c2009-11-28 13:13:1313393fi
13394
Matthias Klosea0bea5d2010-05-08 10:00:2813395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
13396$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
Mark Dickinsonc63392c2009-11-28 13:13:1313397if test $ac_cv_posix_semaphores_enabled = no
13398then
13399
Matthias Klosea0bea5d2010-05-08 10:00:2813400$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
Mark Dickinsonc63392c2009-11-28 13:13:1313401
13402fi
13403
13404# Multiprocessing check for broken sem_getvalue
Matthias Klosea0bea5d2010-05-08 10:00:2813405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
13406$as_echo_n "checking for broken sem_getvalue... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313407if ${ac_cv_broken_sem_getvalue+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813408 $as_echo_n "(cached) " >&6
Mark Dickinsonc63392c2009-11-28 13:13:1313409else
Matthias Klosea0bea5d2010-05-08 10:00:2813410 if test "$cross_compiling" = yes; then :
Mark Dickinsonc63392c2009-11-28 13:13:1313411 ac_cv_broken_sem_getvalue=yes
13412else
Matthias Klosea0bea5d2010-05-08 10:00:2813413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonc63392c2009-11-28 13:13:1313414/* end confdefs.h. */
13415
13416#include <unistd.h>
13417#include <fcntl.h>
13418#include <stdio.h>
13419#include <semaphore.h>
13420#include <sys/stat.h>
13421
13422int main(void){
Mark Dickinson59dc89e2009-12-13 21:06:0613423 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
Mark Dickinsonc63392c2009-11-28 13:13:1313424 int count;
13425 int res;
13426 if(a==SEM_FAILED){
13427 perror("sem_open");
13428 return 1;
13429
13430 }
13431 res = sem_getvalue(a, &count);
13432 sem_close(a);
Mark Dickinson59dc89e2009-12-13 21:06:0613433 sem_unlink("/autocftw");
Mark Dickinsonc63392c2009-11-28 13:13:1313434 return res==-1 ? 1 : 0;
13435}
13436
13437_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813438if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonc63392c2009-11-28 13:13:1313439 ac_cv_broken_sem_getvalue=no
13440else
Matthias Klosea0bea5d2010-05-08 10:00:2813441 ac_cv_broken_sem_getvalue=yes
Mark Dickinsonc63392c2009-11-28 13:13:1313442fi
Matthias Klosea0bea5d2010-05-08 10:00:2813443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13444 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonc63392c2009-11-28 13:13:1313445fi
13446
13447
Mark Dickinsonc63392c2009-11-28 13:13:1313448fi
13449
Matthias Klosea0bea5d2010-05-08 10:00:2813450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
13451$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
Mark Dickinsonc63392c2009-11-28 13:13:1313452if test $ac_cv_broken_sem_getvalue = yes
13453then
13454
Matthias Klosea0bea5d2010-05-08 10:00:2813455$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
Mark Dickinsonc63392c2009-11-28 13:13:1313456
13457fi
13458
Mark Dickinsonefc82f72009-03-20 15:51:5513459# determine what size digit to use for Python's longs
Matthias Klosea0bea5d2010-05-08 10:00:2813460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
13461$as_echo_n "checking digit size for Python's longs... " >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:5513462# Check whether --enable-big-digits was given.
Matthias Klosea0bea5d2010-05-08 10:00:2813463if test "${enable_big_digits+set}" = set; then :
Mark Dickinsonefc82f72009-03-20 15:51:5513464 enableval=$enable_big_digits; case $enable_big_digits in
13465yes)
13466 enable_big_digits=30 ;;
13467no)
13468 enable_big_digits=15 ;;
1346915|30)
13470 ;;
13471*)
Matthias Klose3cef2a92012-03-14 22:39:3313472 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
Mark Dickinsonefc82f72009-03-20 15:51:5513473esac
Matthias Klosea0bea5d2010-05-08 10:00:2813474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
13475$as_echo "$enable_big_digits" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:5513476
13477cat >>confdefs.h <<_ACEOF
13478#define PYLONG_BITS_IN_DIGIT $enable_big_digits
13479_ACEOF
13480
13481
13482else
Matthias Klosea0bea5d2010-05-08 10:00:2813483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
13484$as_echo "no value specified" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:5513485fi
13486
13487
Guido van Rossumef2255b2000-03-10 22:30:2913488# check for wchar.h
Matthias Klosea0bea5d2010-05-08 10:00:2813489ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
Matthias Klose3cef2a92012-03-14 22:39:3313490if test "x$ac_cv_header_wchar_h" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313491
13492
Matthias Klosea0bea5d2010-05-08 10:00:2813493$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313494
Martin v. Löwisc45929e2002-04-06 10:10:4913495 wchar_h="yes"
13496
Guido van Rossumef2255b2000-03-10 22:30:2913497else
Martin v. Löwis11437992002-04-12 09:54:0313498 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:2913499
13500fi
13501
Michael W. Hudson54241132001-12-07 15:38:2613502
Martin v. Löwis11437992002-04-12 09:54:0313503
Martin v. Löwis0ba70cc2001-06-26 22:22:3713504# determine wchar_t size
13505if test "$wchar_h" = yes
13506then
Matthias Klosea0bea5d2010-05-08 10:00:2813507 # The cast to long int works around a bug in the HP C Compiler
Martin v. Löwiseba40652007-08-30 20:10:5713508# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13509# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13510# This bug is HP SR number 8606223364.
Matthias Klosea0bea5d2010-05-08 10:00:2813511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13512$as_echo_n "checking size of wchar_t... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313513if ${ac_cv_sizeof_wchar_t+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813514 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0313515else
Matthias Klosea0bea5d2010-05-08 10:00:2813516 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
13517"; then :
Martin v. Löwis11437992002-04-12 09:54:0313518
Martin v. Löwis11437992002-04-12 09:54:0313519else
Matthias Klosea0bea5d2010-05-08 10:00:2813520 if test "$ac_cv_type_wchar_t" = yes; then
13521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Georg Brandl71f4fbb2011-02-25 11:04:5013523as_fn_error 77 "cannot compute sizeof (wchar_t)
Matthias Klose3cef2a92012-03-14 22:39:3313524See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwiseba40652007-08-30 20:10:5713525 else
13526 ac_cv_sizeof_wchar_t=0
13527 fi
Martin v. Löwis11437992002-04-12 09:54:0313528fi
Matthias Klosea0bea5d2010-05-08 10:00:2813529
Martin v. Löwis11437992002-04-12 09:54:0313530fi
Matthias Klosea0bea5d2010-05-08 10:00:2813531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13532$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5713533
13534
13535
Martin v. Löwis11437992002-04-12 09:54:0313536cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3713537#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:0313538_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3713539
Michael W. Hudson54241132001-12-07 15:38:2613540
Martin v. Löwis0ba70cc2001-06-26 22:22:3713541fi
13542
Matthias Klosea0bea5d2010-05-08 10:00:2813543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
13544$as_echo_n "checking for UCS-4 tcl... " >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5413545have_ucs4_tcl=no
Matthias Klosea0bea5d2010-05-08 10:00:2813546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413547/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:5413548
13549#include <tcl.h>
13550#if TCL_UTF_MAX != 6
13551# error "NOT UCS4_TCL"
13552#endif
13553int
13554main ()
13555{
13556
13557 ;
13558 return 0;
13559}
13560_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813561if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisfa3bdea2003-09-04 18:50:5413562
13563
Matthias Klosea0bea5d2010-05-08 10:00:2813564$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
Martin v. Löwisfa3bdea2003-09-04 18:50:5413565
13566 have_ucs4_tcl=yes
13567
Martin v. Löwisfa3bdea2003-09-04 18:50:5413568fi
Martin v. Löwiseba40652007-08-30 20:10:5713569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2813570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
13571$as_echo "$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5413572
Skip Montanaro6dead952003-09-25 14:50:0413573# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:4013574if test "$wchar_h" = yes
13575then
13576 # check whether wchar_t is signed or not
Matthias Klosea0bea5d2010-05-08 10:00:2813577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
13578$as_echo_n "checking whether wchar_t is signed... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313579 if ${ac_cv_wchar_t_signed+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813580 $as_echo_n "(cached) " >&6
Marc-André Lemburgd7160f82003-09-22 11:14:4013581else
13582
Matthias Klosea0bea5d2010-05-08 10:00:2813583 if test "$cross_compiling" = yes; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4013584 ac_cv_wchar_t_signed=yes
13585else
Matthias Klosea0bea5d2010-05-08 10:00:2813586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413587/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:4013588
13589 #include <wchar.h>
13590 int main()
13591 {
Martin v. Löwis44fe0e42006-04-11 07:15:3013592 /* Success: exit code 0 */
13593 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:4013594 }
13595
13596_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813597if ac_fn_c_try_run "$LINENO"; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4013598 ac_cv_wchar_t_signed=yes
13599else
Matthias Klosea0bea5d2010-05-08 10:00:2813600 ac_cv_wchar_t_signed=no
Marc-André Lemburgd7160f82003-09-22 11:14:4013601fi
Matthias Klosea0bea5d2010-05-08 10:00:2813602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13603 conftest.$ac_objext conftest.beam conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:4013604fi
13605
Marc-André Lemburgd7160f82003-09-22 11:14:4013606fi
13607
Matthias Klosea0bea5d2010-05-08 10:00:2813608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
13609$as_echo "$ac_cv_wchar_t_signed" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5713610fi
13611
Matthias Klosea0bea5d2010-05-08 10:00:2813612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
13613$as_echo_n "checking what type to use for unicode... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:5713614# Check whether --enable-unicode was given.
Matthias Klosea0bea5d2010-05-08 10:00:2813615if test "${enable_unicode+set}" = set; then :
Martin v. Löwiseba40652007-08-30 20:10:5713616 enableval=$enable_unicode;
Martin v. Löwis0ba70cc2001-06-26 22:22:3713617else
13618 enable_unicode=yes
Martin v. Löwiseba40652007-08-30 20:10:5713619fi
13620
Martin v. Löwis0ba70cc2001-06-26 22:22:3713621
13622if test $enable_unicode = yes
13623then
Martin v. Löwisfd917792001-06-27 20:22:0413624 # Without any arguments, Py_UNICODE defaults to two-byte mode
Martin v. Löwisfa3bdea2003-09-04 18:50:5413625 case "$have_ucs4_tcl" in
13626 yes) enable_unicode="ucs4"
13627 ;;
13628 *) enable_unicode="ucs2"
13629 ;;
13630 esac
Martin v. Löwis0ba70cc2001-06-26 22:22:3713631fi
13632
Martin v. Löwis0036cba2002-04-12 09:58:4513633
Martin v. Löwis0ba70cc2001-06-26 22:22:3713634case "$enable_unicode" in
13635ucs2) unicode_size="2"
Matthias Klosea0bea5d2010-05-08 10:00:2813636 $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
Martin v. Löwis0ba70cc2001-06-26 22:22:3713637
13638 ;;
13639ucs4) unicode_size="4"
Matthias Klosea0bea5d2010-05-08 10:00:2813640 $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
Martin v. Löwis0ba70cc2001-06-26 22:22:3713641
13642 ;;
Martin v. Löwised11a5d2012-05-20 08:42:1713643no) ;; # To allow --disable-unicode
Matthias Klose3cef2a92012-03-14 22:39:3313644*) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
Martin v. Löwis0ba70cc2001-06-26 22:22:3713645esac
13646
Michael W. Hudson54241132001-12-07 15:38:2613647
Martin v. Löwis11437992002-04-12 09:54:0313648
13649
Martin v. Löwis0ba70cc2001-06-26 22:22:3713650if test "$enable_unicode" = "no"
13651then
Martin v. Löwis339d0f72001-08-17 18:39:2513652 UNICODE_OBJS=""
Matthias Klosea0bea5d2010-05-08 10:00:2813653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
13654$as_echo "not used" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:3713655else
Martin v. Löwis339d0f72001-08-17 18:39:2513656 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
Martin v. Löwis11437992002-04-12 09:54:0313657
Matthias Klosea0bea5d2010-05-08 10:00:2813658$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
Martin v. Löwis0ba70cc2001-06-26 22:22:3713659
Marc-André Lemburgd7160f82003-09-22 11:14:4013660
13661 # wchar_t is only usable if it maps to an unsigned type
13662 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
Matthias Klose7dbeed72004-12-24 08:22:1713663 -a "$ac_cv_wchar_t_signed" = "no"
Martin v. Löwis0ba70cc2001-06-26 22:22:3713664 then
13665 PY_UNICODE_TYPE="wchar_t"
Martin v. Löwis0ba70cc2001-06-26 22:22:3713666
Matthias Klosea0bea5d2010-05-08 10:00:2813667$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313668
Matthias Klosea0bea5d2010-05-08 10:00:2813669 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
Martin v. Löwis0ba70cc2001-06-26 22:22:3713670
13671 elif test "$ac_cv_sizeof_short" = "$unicode_size"
13672 then
13673 PY_UNICODE_TYPE="unsigned short"
Matthias Klosea0bea5d2010-05-08 10:00:2813674 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
Martin v. Löwis0ba70cc2001-06-26 22:22:3713675
13676 elif test "$ac_cv_sizeof_long" = "$unicode_size"
13677 then
13678 PY_UNICODE_TYPE="unsigned long"
Matthias Klosea0bea5d2010-05-08 10:00:2813679 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
Martin v. Löwis0ba70cc2001-06-26 22:22:3713680
13681 else
13682 PY_UNICODE_TYPE="no type found"
13683 fi
Matthias Klosea0bea5d2010-05-08 10:00:2813684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
13685$as_echo "$PY_UNICODE_TYPE" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:3713686fi
Guido van Rossumef2255b2000-03-10 22:30:2913687
13688# check for endianness
Matthias Klosea0bea5d2010-05-08 10:00:2813689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13690$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313691if ${ac_cv_c_bigendian+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813692 $as_echo_n "(cached) " >&6
Guido van Rossumef2255b2000-03-10 22:30:2913693else
Matthias Klosea0bea5d2010-05-08 10:00:2813694 ac_cv_c_bigendian=unknown
13695 # See if we're dealing with a universal compiler.
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697/* end confdefs.h. */
13698#ifndef __APPLE_CC__
13699 not a universal capable compiler
13700 #endif
13701 typedef int dummy;
13702
Skip Montanaro6dead952003-09-25 14:50:0413703_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813704if ac_fn_c_try_compile "$LINENO"; then :
13705
13706 # Check for potential -arch flags. It is not universal unless
13707 # there are at least two -arch flags with different values.
13708 ac_arch=
13709 ac_prev=
13710 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13711 if test -n "$ac_prev"; then
13712 case $ac_word in
13713 i?86 | x86_64 | ppc | ppc64)
13714 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13715 ac_arch=$ac_word
13716 else
13717 ac_cv_c_bigendian=universal
13718 break
13719 fi
13720 ;;
13721 esac
13722 ac_prev=
13723 elif test "x$ac_word" = "x-arch"; then
13724 ac_prev=arch
13725 fi
13726 done
13727fi
13728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 if test $ac_cv_c_bigendian = unknown; then
13730 # See if sys/param.h defines the BYTE_ORDER macro.
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413732/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2913733#include <sys/types.h>
Matthias Klosea0bea5d2010-05-08 10:00:2813734 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2913735
Martin v. Löwis11437992002-04-12 09:54:0313736int
13737main ()
13738{
Matthias Klosea0bea5d2010-05-08 10:00:2813739#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13740 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13741 && LITTLE_ENDIAN)
13742 bogus endian macros
13743 #endif
Martin v. Löwis11437992002-04-12 09:54:0313744
13745 ;
13746 return 0;
13747}
13748_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813749if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2913750 # It does; now see whether it defined to BIG_ENDIAN or not.
Matthias Klosea0bea5d2010-05-08 10:00:2813751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413752/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2913753#include <sys/types.h>
Matthias Klosea0bea5d2010-05-08 10:00:2813754 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2913755
Martin v. Löwis11437992002-04-12 09:54:0313756int
13757main ()
13758{
Guido van Rossumef2255b2000-03-10 22:30:2913759#if BYTE_ORDER != BIG_ENDIAN
Matthias Klosea0bea5d2010-05-08 10:00:2813760 not big endian
13761 #endif
Martin v. Löwis11437992002-04-12 09:54:0313762
13763 ;
13764 return 0;
13765}
13766_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813767if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2913768 ac_cv_c_bigendian=yes
13769else
Matthias Klosea0bea5d2010-05-08 10:00:2813770 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:2913771fi
Martin v. Löwiseba40652007-08-30 20:10:5713772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Klosea0bea5d2010-05-08 10:00:2813773fi
13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 if test $ac_cv_c_bigendian = unknown; then
13777 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413779/* end confdefs.h. */
Matthias Klosea0bea5d2010-05-08 10:00:2813780#include <limits.h>
13781
Martin v. Löwis11437992002-04-12 09:54:0313782int
13783main ()
13784{
Matthias Klosea0bea5d2010-05-08 10:00:2813785#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13786 bogus endian macros
13787 #endif
13788
Martin v. Löwis11437992002-04-12 09:54:0313789 ;
13790 return 0;
13791}
13792_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813793if ac_fn_c_try_compile "$LINENO"; then :
13794 # It does; now see whether it defined to _BIG_ENDIAN or not.
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796/* end confdefs.h. */
13797#include <limits.h>
13798
13799int
13800main ()
13801{
13802#ifndef _BIG_ENDIAN
13803 not big endian
13804 #endif
13805
13806 ;
13807 return 0;
13808}
13809_ACEOF
13810if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313811 ac_cv_c_bigendian=yes
Alexandre Vassalottia2db6872009-07-17 07:46:4613812else
Matthias Klosea0bea5d2010-05-08 10:00:2813813 ac_cv_c_bigendian=no
Martin v. Löwis11437992002-04-12 09:54:0313814fi
Matthias Klosea0bea5d2010-05-08 10:00:2813815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816fi
13817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 fi
13819 if test $ac_cv_c_bigendian = unknown; then
13820 # Compile a test program.
13821 if test "$cross_compiling" = yes; then :
13822 # Try to guess by grepping values from an object file.
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824/* end confdefs.h. */
13825short int ascii_mm[] =
13826 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13827 short int ascii_ii[] =
13828 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13829 int use_ascii (int i) {
13830 return ascii_mm[i] + ascii_ii[i];
13831 }
13832 short int ebcdic_ii[] =
13833 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13834 short int ebcdic_mm[] =
13835 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13836 int use_ebcdic (int i) {
13837 return ebcdic_mm[i] + ebcdic_ii[i];
13838 }
13839 extern int foo;
Martin v. Löwiseba40652007-08-30 20:10:5713840
Matthias Klosea0bea5d2010-05-08 10:00:2813841int
13842main ()
13843{
13844return use_ascii (foo) == use_ebcdic (foo);
13845 ;
13846 return 0;
13847}
13848_ACEOF
13849if ac_fn_c_try_compile "$LINENO"; then :
13850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13851 ac_cv_c_bigendian=yes
13852 fi
13853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13854 if test "$ac_cv_c_bigendian" = unknown; then
13855 ac_cv_c_bigendian=no
13856 else
13857 # finding both strings is unlikely to happen, but who knows?
13858 ac_cv_c_bigendian=unknown
13859 fi
13860 fi
13861fi
Martin v. Löwiseba40652007-08-30 20:10:5713862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0313863else
Matthias Klosea0bea5d2010-05-08 10:00:2813864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413865/* end confdefs.h. */
Martin v. Löwiseba40652007-08-30 20:10:5713866$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0313867int
13868main ()
13869{
Martin v. Löwiseba40652007-08-30 20:10:5713870
Matthias Klosea0bea5d2010-05-08 10:00:2813871 /* Are we little or big endian? From Harbison&Steele. */
13872 union
13873 {
13874 long int l;
13875 char c[sizeof (long int)];
13876 } u;
13877 u.l = 1;
13878 return u.c[sizeof (long int) - 1] == 1;
Martin v. Löwiseba40652007-08-30 20:10:5713879
13880 ;
13881 return 0;
Guido van Rossumef2255b2000-03-10 22:30:2913882}
Martin v. Löwis11437992002-04-12 09:54:0313883_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813884if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2913885 ac_cv_c_bigendian=no
13886else
Matthias Klosea0bea5d2010-05-08 10:00:2813887 ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:2913888fi
Matthias Klosea0bea5d2010-05-08 10:00:2813889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13890 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:2913891fi
Martin v. Löwiseba40652007-08-30 20:10:5713892
Matthias Klosea0bea5d2010-05-08 10:00:2813893 fi
Martin v. Löwis11437992002-04-12 09:54:0313894fi
Matthias Klosea0bea5d2010-05-08 10:00:2813895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13896$as_echo "$ac_cv_c_bigendian" >&6; }
13897 case $ac_cv_c_bigendian in #(
13898 yes)
13899 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13900;; #(
13901 no)
13902 ;; #(
13903 universal)
Alexandre Vassalottibd7569b2009-07-17 23:09:0213904
Matthias Klosea0bea5d2010-05-08 10:00:2813905$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Alexandre Vassalottia2db6872009-07-17 07:46:4613906
Matthias Klosea0bea5d2010-05-08 10:00:2813907 ;; #(
13908 *)
Georg Brandl71f4fbb2011-02-25 11:04:5013909 as_fn_error $? "unknown endianness
Matthias Klose3cef2a92012-03-14 22:39:3313910 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Matthias Klosea0bea5d2010-05-08 10:00:2813911 esac
Guido van Rossumef2255b2000-03-10 22:30:2913912
Michael W. Hudson54241132001-12-07 15:38:2613913
Vladimir Marangozov676aa882000-07-12 03:02:4313914# Check whether right shifting a negative integer extends the sign bit
13915# or fills with zeros (like the Cray J90, according to Tim Peters).
Matthias Klosea0bea5d2010-05-08 10:00:2813916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
13917$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313918if ${ac_cv_rshift_extends_sign+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813919 $as_echo_n "(cached) " >&6
Vladimir Marangozova6180282000-07-12 05:05:0613920else
Martin v. Löwis11437992002-04-12 09:54:0313921
Matthias Klosea0bea5d2010-05-08 10:00:2813922if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1413923 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:4313924else
Matthias Klosea0bea5d2010-05-08 10:00:2813925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413926/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:4313927
13928int main()
13929{
Vladimir Marangozova6180282000-07-12 05:05:0613930 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:4313931}
13932
Martin v. Löwis11437992002-04-12 09:54:0313933_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813934if ac_fn_c_try_run "$LINENO"; then :
Vladimir Marangozova6180282000-07-12 05:05:0613935 ac_cv_rshift_extends_sign=yes
13936else
Matthias Klosea0bea5d2010-05-08 10:00:2813937 ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:0613938fi
Matthias Klosea0bea5d2010-05-08 10:00:2813939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13940 conftest.$ac_objext conftest.beam conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:0613941fi
13942
Martin v. Löwiseba40652007-08-30 20:10:5713943fi
13944
Matthias Klosea0bea5d2010-05-08 10:00:2813945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
13946$as_echo "$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:0613947if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:4313948then
Martin v. Löwis11437992002-04-12 09:54:0313949
Matthias Klosea0bea5d2010-05-08 10:00:2813950$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
Vladimir Marangozov676aa882000-07-12 03:02:4313951
Vladimir Marangozov676aa882000-07-12 03:02:4313952fi
13953
Guido van Rossumcadfaec2001-01-05 14:45:4913954# check for getc_unlocked and related locking functions
Matthias Klosea0bea5d2010-05-08 10:00:2813955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
13956$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3313957if ${ac_cv_have_getc_unlocked+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2813958 $as_echo_n "(cached) " >&6
Guido van Rossumcadfaec2001-01-05 14:45:4913959else
Martin v. Löwis11437992002-04-12 09:54:0313960
Matthias Klosea0bea5d2010-05-08 10:00:2813961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413962/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:4913963#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:0313964int
13965main ()
13966{
Guido van Rossumcadfaec2001-01-05 14:45:4913967
13968 FILE *f = fopen("/dev/null", "r");
13969 flockfile(f);
13970 getc_unlocked(f);
13971 funlockfile(f);
13972
Martin v. Löwis11437992002-04-12 09:54:0313973 ;
13974 return 0;
13975}
13976_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2813977if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossumcadfaec2001-01-05 14:45:4913978 ac_cv_have_getc_unlocked=yes
13979else
Matthias Klosea0bea5d2010-05-08 10:00:2813980 ac_cv_have_getc_unlocked=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:4913984fi
Martin v. Löwiseba40652007-08-30 20:10:5713985
Matthias Klosea0bea5d2010-05-08 10:00:2813986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
13987$as_echo "$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:4913988if test "$ac_cv_have_getc_unlocked" = yes
13989then
Martin v. Löwis11437992002-04-12 09:54:0313990
Matthias Klosea0bea5d2010-05-08 10:00:2813991$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
Guido van Rossumcadfaec2001-01-05 14:45:4913992
13993fi
Vladimir Marangozov676aa882000-07-12 03:02:4313994
Neal Norwitzfe8e3d92006-01-07 21:07:2013995# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:3013996# save the value of LIBS so we don't actually link Python with readline
13997LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:2013998
Gregory P. Smithcc023f12008-09-07 05:15:5813999# On some systems we need to link readline to a termcap compatible
14000# library. NOTE: Keep the precedence of listed libraries synchronised
14001# with setup.py.
14002py_cv_lib_readline=no
Matthias Klosea0bea5d2010-05-08 10:00:2814003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
14004$as_echo_n "checking how to link readline libs... " >&6; }
Gregory P. Smithcc023f12008-09-07 05:15:5814005for py_libtermcap in "" ncursesw ncurses curses termcap; do
14006 if test -z "$py_libtermcap"; then
14007 READLINE_LIBS="-lreadline"
14008 else
14009 READLINE_LIBS="-lreadline -l$py_libtermcap"
14010 fi
14011 LIBS="$READLINE_LIBS $LIBS_no_readline"
Matthias Klosea0bea5d2010-05-08 10:00:2814012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Neal Norwitzfe8e3d92006-01-07 21:07:2014013/* end confdefs.h. */
14014
Martin v. Löwiseba40652007-08-30 20:10:5714015/* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:2014018#ifdef __cplusplus
14019extern "C"
14020#endif
Neal Norwitzfe8e3d92006-01-07 21:07:2014021char readline ();
14022int
14023main ()
14024{
Martin v. Löwiseba40652007-08-30 20:10:5714025return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:2014026 ;
14027 return 0;
14028}
14029_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814030if ac_fn_c_try_link "$LINENO"; then :
Gregory P. Smithcc023f12008-09-07 05:15:5814031 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:2014032fi
Matthias Klosea0bea5d2010-05-08 10:00:2814033rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smithcc023f12008-09-07 05:15:5814035 if test $py_cv_lib_readline = yes; then
14036 break
14037 fi
14038done
14039# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
14040#AC_SUBST([READLINE_LIBS])
Gregory P. Smithe080cdf2008-09-07 19:19:0414041if test $py_cv_lib_readline = no; then
Matthias Klosea0bea5d2010-05-08 10:00:2814042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14043$as_echo "none" >&6; }
Gregory P. Smithcc023f12008-09-07 05:15:5814044else
Matthias Klosea0bea5d2010-05-08 10:00:2814045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
14046$as_echo "$READLINE_LIBS" >&6; }
Gregory P. Smithcc023f12008-09-07 05:15:5814047
Matthias Klosea0bea5d2010-05-08 10:00:2814048$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
Neal Norwitzfe8e3d92006-01-07 21:07:2014049
Neal Norwitzfe8e3d92006-01-07 21:07:2014050fi
14051
Michael W. Hudson30ea2f22004-07-07 17:44:1214052# check for readline 2.1
Matthias Klosea0bea5d2010-05-08 10:00:2814053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
14054$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314055if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814056 $as_echo_n "(cached) " >&6
Michael W. Hudson30ea2f22004-07-07 17:44:1214057else
14058 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:4814059LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2814060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1214061/* end confdefs.h. */
14062
Martin v. Löwiseba40652007-08-30 20:10:5714063/* Override any GCC internal prototype to avoid an error.
14064 Use char because int might match the return type of a GCC
14065 builtin and then its argument prototype would still apply. */
Michael W. Hudson30ea2f22004-07-07 17:44:1214066#ifdef __cplusplus
14067extern "C"
14068#endif
Michael W. Hudson30ea2f22004-07-07 17:44:1214069char rl_callback_handler_install ();
14070int
14071main ()
14072{
Martin v. Löwiseba40652007-08-30 20:10:5714073return rl_callback_handler_install ();
Michael W. Hudson30ea2f22004-07-07 17:44:1214074 ;
14075 return 0;
14076}
14077_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814078if ac_fn_c_try_link "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1214079 ac_cv_lib_readline_rl_callback_handler_install=yes
14080else
Matthias Klosea0bea5d2010-05-08 10:00:2814081 ac_cv_lib_readline_rl_callback_handler_install=no
Michael W. Hudson30ea2f22004-07-07 17:44:1214082fi
Matthias Klosea0bea5d2010-05-08 10:00:2814083rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1214085LIBS=$ac_check_lib_save_LIBS
14086fi
Matthias Klosea0bea5d2010-05-08 10:00:2814087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
14088$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314089if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1214090
Matthias Klosea0bea5d2010-05-08 10:00:2814091$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:1214092
14093fi
14094
14095
Guido van Rossumfaf5e4d2002-12-30 16:25:4114096# check for readline 2.2
Matthias Klosea0bea5d2010-05-08 10:00:2814097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414098/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4114099#include <readline/readline.h>
14100_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814101if ac_fn_c_try_cpp "$LINENO"; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4114102 have_readline=yes
14103else
Guido van Rossumfaf5e4d2002-12-30 16:25:4114104 have_readline=no
Matthias Klosec511b472010-05-08 11:01:3914105
Guido van Rossumfaf5e4d2002-12-30 16:25:4114106fi
Georg Brandl71f4fbb2011-02-25 11:04:5014107rm -f conftest.err conftest.i conftest.$ac_ext
Guido van Rossumfaf5e4d2002-12-30 16:25:4114108if test $have_readline = yes
14109then
Matthias Klosea0bea5d2010-05-08 10:00:2814110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414111/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4114112#include <readline/readline.h>
14113
14114_ACEOF
14115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2814116 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4114117
Matthias Klosea0bea5d2010-05-08 10:00:2814118$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
Guido van Rossumfaf5e4d2002-12-30 16:25:4114119
14120fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1414121rm -f conftest*
Antoine Pitroud9ff74e2009-10-26 19:16:4614122
Matthias Klosea0bea5d2010-05-08 10:00:2814123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroud9ff74e2009-10-26 19:16:4614124/* end confdefs.h. */
14125#include <readline/readline.h>
14126
14127_ACEOF
14128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2814129 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
Antoine Pitroud9ff74e2009-10-26 19:16:4614130
Matthias Klosea0bea5d2010-05-08 10:00:2814131$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
Antoine Pitroud9ff74e2009-10-26 19:16:4614132
14133fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1414134rm -f conftest*
Guido van Rossumfaf5e4d2002-12-30 16:25:4114135
14136fi
14137
Martin v. Löwis0daad592001-09-30 21:09:5914138# check for readline 4.0
Matthias Klosea0bea5d2010-05-08 10:00:2814139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
14140$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314141if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814142 $as_echo_n "(cached) " >&6
Guido van Rossum353ae582001-07-10 16:45:3214143else
Martin v. Löwis11437992002-04-12 09:54:0314144 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:4814145LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2814146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414147/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0314148
Martin v. Löwiseba40652007-08-30 20:10:5714149/* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0314152#ifdef __cplusplus
14153extern "C"
14154#endif
Martin v. Löwis11437992002-04-12 09:54:0314155char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0314156int
14157main ()
14158{
Martin v. Löwiseba40652007-08-30 20:10:5714159return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0314160 ;
14161 return 0;
14162}
14163_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814164if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314165 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:5914166else
Matthias Klosea0bea5d2010-05-08 10:00:2814167 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:5914168fi
Matthias Klosea0bea5d2010-05-08 10:00:2814169rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314171LIBS=$ac_check_lib_save_LIBS
14172fi
Matthias Klosea0bea5d2010-05-08 10:00:2814173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
14174$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314175if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2614176
Matthias Klosea0bea5d2010-05-08 10:00:2814177$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
Martin v. Löwis0daad592001-09-30 21:09:5914178
Martin v. Löwis0daad592001-09-30 21:09:5914179fi
14180
Michael W. Hudson54241132001-12-07 15:38:2614181
Martin v. Löwis58bd49f2007-09-04 13:13:1414182# also in 4.0
Matthias Klosea0bea5d2010-05-08 10:00:2814183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
14184$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314185if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814186 $as_echo_n "(cached) " >&6
Martin v. Löwis58bd49f2007-09-04 13:13:1414187else
14188 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:4814189LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2814190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwis58bd49f2007-09-04 13:13:1414191/* end confdefs.h. */
14192
14193/* Override any GCC internal prototype to avoid an error.
14194 Use char because int might match the return type of a GCC
14195 builtin and then its argument prototype would still apply. */
14196#ifdef __cplusplus
14197extern "C"
14198#endif
14199char rl_completion_display_matches_hook ();
14200int
14201main ()
14202{
14203return rl_completion_display_matches_hook ();
14204 ;
14205 return 0;
14206}
14207_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814208if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis58bd49f2007-09-04 13:13:1414209 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
14210else
Matthias Klosea0bea5d2010-05-08 10:00:2814211 ac_cv_lib_readline_rl_completion_display_matches_hook=no
Martin v. Löwis58bd49f2007-09-04 13:13:1414212fi
Matthias Klosea0bea5d2010-05-08 10:00:2814213rm -f core conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis58bd49f2007-09-04 13:13:1414215LIBS=$ac_check_lib_save_LIBS
14216fi
Matthias Klosea0bea5d2010-05-08 10:00:2814217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
14218$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314219if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
Martin v. Löwis58bd49f2007-09-04 13:13:1414220
Matthias Klosea0bea5d2010-05-08 10:00:2814221$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
Martin v. Löwis58bd49f2007-09-04 13:13:1414222
14223fi
14224
14225
Martin Pantera70c3232016-04-03 02:54:5814226# also in 4.0, but not in editline
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
14228$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
14229if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231else
14232 ac_check_lib_save_LIBS=$LIBS
14233LIBS="-lreadline $READLINE_LIBS $LIBS"
14234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235/* end confdefs.h. */
14236
14237/* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240#ifdef __cplusplus
14241extern "C"
14242#endif
14243char rl_resize_terminal ();
14244int
14245main ()
14246{
14247return rl_resize_terminal ();
14248 ;
14249 return 0;
14250}
14251_ACEOF
14252if ac_fn_c_try_link "$LINENO"; then :
14253 ac_cv_lib_readline_rl_resize_terminal=yes
14254else
14255 ac_cv_lib_readline_rl_resize_terminal=no
14256fi
14257rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259LIBS=$ac_check_lib_save_LIBS
14260fi
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
14262$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
14263if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
14264
14265$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
14266
14267fi
14268
14269
Martin v. Löwis0daad592001-09-30 21:09:5914270# check for readline 4.2
Matthias Klosea0bea5d2010-05-08 10:00:2814271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14272$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314273if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814274 $as_echo_n "(cached) " >&6
Martin v. Löwis0daad592001-09-30 21:09:5914275else
Martin v. Löwis11437992002-04-12 09:54:0314276 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:4814277LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Klosea0bea5d2010-05-08 10:00:2814278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414279/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0314280
Martin v. Löwiseba40652007-08-30 20:10:5714281/* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0314284#ifdef __cplusplus
14285extern "C"
14286#endif
Martin v. Löwis11437992002-04-12 09:54:0314287char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0314288int
14289main ()
14290{
Martin v. Löwiseba40652007-08-30 20:10:5714291return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0314292 ;
14293 return 0;
14294}
14295_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814296if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314297 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:3214298else
Matthias Klosea0bea5d2010-05-08 10:00:2814299 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:3214300fi
Matthias Klosea0bea5d2010-05-08 10:00:2814301rm -f core conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314303LIBS=$ac_check_lib_save_LIBS
14304fi
Matthias Klosea0bea5d2010-05-08 10:00:2814305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14306$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314307if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2614308
Matthias Klosea0bea5d2010-05-08 10:00:2814309$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
Guido van Rossum353ae582001-07-10 16:45:3214310
Guido van Rossum353ae582001-07-10 16:45:3214311fi
14312
Jack Jansendd19cf82001-12-06 22:36:1714313
Michael W. Hudson30ea2f22004-07-07 17:44:1214314# also in readline 4.2
Matthias Klosea0bea5d2010-05-08 10:00:2814315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1214316/* end confdefs.h. */
14317#include <readline/readline.h>
14318_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814319if ac_fn_c_try_cpp "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1214320 have_readline=yes
14321else
Michael W. Hudson30ea2f22004-07-07 17:44:1214322 have_readline=no
Matthias Klosec511b472010-05-08 11:01:3914323
Michael W. Hudson30ea2f22004-07-07 17:44:1214324fi
Georg Brandl71f4fbb2011-02-25 11:04:5014325rm -f conftest.err conftest.i conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1214326if test $have_readline = yes
14327then
Matthias Klosea0bea5d2010-05-08 10:00:2814328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1214329/* end confdefs.h. */
14330#include <readline/readline.h>
14331
14332_ACEOF
14333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Klosea0bea5d2010-05-08 10:00:2814334 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1214335
Matthias Klosea0bea5d2010-05-08 10:00:2814336$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:1214337
14338fi
Marc-André Lemburg6d5e5792010-04-30 17:20:1414339rm -f conftest*
Michael W. Hudson30ea2f22004-07-07 17:44:1214340
14341fi
14342
Martin v. Löwis82bca632006-02-10 20:49:3014343# End of readline checks: restore LIBS
14344LIBS=$LIBS_no_readline
14345
Matthias Klosea0bea5d2010-05-08 10:00:2814346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
14347$as_echo_n "checking for broken nice()... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314348if ${ac_cv_broken_nice+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814349 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:2614350else
Martin v. Löwis11437992002-04-12 09:54:0314351
Matthias Klosea0bea5d2010-05-08 10:00:2814352if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1414353 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3114354else
Matthias Klosea0bea5d2010-05-08 10:00:2814355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414356/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:3114357
Benjamin Petersonaf837702019-02-26 05:56:2714358#include <stdlib.h>
14359#include <unistd.h>
Thomas Wouterse38b2f12001-07-11 22:35:3114360int main()
14361{
14362 int val1 = nice(1);
14363 if (val1 != -1 && val1 == nice(2))
14364 exit(0);
14365 exit(1);
14366}
14367
Martin v. Löwis11437992002-04-12 09:54:0314368_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814369if ac_fn_c_try_run "$LINENO"; then :
Thomas Wouterse38b2f12001-07-11 22:35:3114370 ac_cv_broken_nice=yes
14371else
Matthias Klosea0bea5d2010-05-08 10:00:2814372 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3114373fi
Matthias Klosea0bea5d2010-05-08 10:00:2814374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14375 conftest.$ac_objext conftest.beam conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:3114376fi
14377
Martin v. Löwiseba40652007-08-30 20:10:5714378fi
14379
Matthias Klosea0bea5d2010-05-08 10:00:2814380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
14381$as_echo "$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:3114382if test "$ac_cv_broken_nice" = yes
14383then
Martin v. Löwis11437992002-04-12 09:54:0314384
Matthias Klosea0bea5d2010-05-08 10:00:2814385$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
Thomas Wouterse38b2f12001-07-11 22:35:3114386
14387fi
14388
Matthias Klosea0bea5d2010-05-08 10:00:2814389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
14390$as_echo_n "checking for broken poll()... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314391if ${ac_cv_broken_poll+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814392 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814393else
Matthias Klosea0bea5d2010-05-08 10:00:2814394 if test "$cross_compiling" = yes; then :
Nicholas Bastine62c5c82004-03-21 23:45:4214395 ac_cv_broken_poll=no
14396else
Matthias Klosea0bea5d2010-05-08 10:00:2814397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4214398/* end confdefs.h. */
14399
14400#include <poll.h>
14401
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814402int main()
14403{
Nicholas Bastine62c5c82004-03-21 23:45:4214404 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814405 int poll_test;
Nicholas Bastine62c5c82004-03-21 23:45:4214406
14407 close (42);
14408
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814409 poll_test = poll(&poll_struct, 1, 0);
Nicholas Bastine62c5c82004-03-21 23:45:4214410 if (poll_test < 0)
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814411 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4214412 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814413 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4214414 else
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814415 return 1;
14416}
Nicholas Bastine62c5c82004-03-21 23:45:4214417
14418_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814419if ac_fn_c_try_run "$LINENO"; then :
Nicholas Bastine62c5c82004-03-21 23:45:4214420 ac_cv_broken_poll=yes
14421else
Matthias Klosea0bea5d2010-05-08 10:00:2814422 ac_cv_broken_poll=no
Nicholas Bastine62c5c82004-03-21 23:45:4214423fi
Matthias Klosea0bea5d2010-05-08 10:00:2814424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14425 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4214426fi
Martin v. Löwiseba40652007-08-30 20:10:5714427
Alexandre Vassalotti2ccefe12009-07-17 23:17:4814428fi
14429
Matthias Klosea0bea5d2010-05-08 10:00:2814430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
14431$as_echo "$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:4214432if test "$ac_cv_broken_poll" = yes
14433then
14434
Matthias Klosea0bea5d2010-05-08 10:00:2814435$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
Nicholas Bastine62c5c82004-03-21 23:45:4214436
14437fi
14438
Martin v. Löwis1d459062005-03-14 21:23:3314439# check tzset(3) exists and works like we expect it to
Matthias Klosea0bea5d2010-05-08 10:00:2814440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
14441$as_echo_n "checking for working tzset()... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314442if ${ac_cv_working_tzset+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814443 $as_echo_n "(cached) " >&6
Guido van Rossumd11b62e2003-03-14 21:51:3614444else
14445
Matthias Klosea0bea5d2010-05-08 10:00:2814446if test "$cross_compiling" = yes; then :
Guido van Rossumd11b62e2003-03-14 21:51:3614447 ac_cv_working_tzset=no
14448else
Matthias Klosea0bea5d2010-05-08 10:00:2814449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414450/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:3614451
14452#include <stdlib.h>
14453#include <time.h>
Brett Cannon18367812003-09-19 00:59:1614454#include <string.h>
Brett Cannon43802422005-02-10 20:48:0314455
14456#if HAVE_TZNAME
14457extern char *tzname[];
14458#endif
14459
Guido van Rossumd11b62e2003-03-14 21:51:3614460int main()
14461{
Brett Cannon18367812003-09-19 00:59:1614462 /* Note that we need to ensure that not only does tzset(3)
14463 do 'something' with localtime, but it works as documented
14464 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:3314465 This includes making sure that tzname is set properly if
14466 tm->tm_zone does not exist since it is the alternative way
14467 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:1614468
14469 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:3314470 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:1614471 */
14472
Martin v. Löwis1d459062005-03-14 21:23:3314473 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:1614474 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
14475
Neal Norwitz7f2588c2003-04-11 15:35:5314476 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:3614477 tzset();
Brett Cannon18367812003-09-19 00:59:1614478 if (localtime(&groundhogday)->tm_hour != 0)
14479 exit(1);
Brett Cannon43802422005-02-10 20:48:0314480#if HAVE_TZNAME
14481 /* For UTC, tzname[1] is sometimes "", sometimes " " */
14482 if (strcmp(tzname[0], "UTC") ||
14483 (tzname[1][0] != 0 && tzname[1][0] != ' '))
14484 exit(1);
14485#endif
Brett Cannon18367812003-09-19 00:59:1614486
Neal Norwitz7f2588c2003-04-11 15:35:5314487 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:3614488 tzset();
Brett Cannon18367812003-09-19 00:59:1614489 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:3614490 exit(1);
Brett Cannon43802422005-02-10 20:48:0314491#if HAVE_TZNAME
14492 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
14493 exit(1);
14494#endif
Brett Cannon18367812003-09-19 00:59:1614495
14496 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
14497 tzset();
14498 if (localtime(&groundhogday)->tm_hour != 11)
14499 exit(1);
Brett Cannon43802422005-02-10 20:48:0314500#if HAVE_TZNAME
14501 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
14502 exit(1);
14503#endif
14504
14505#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:1614506 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
14507 exit(1);
14508 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
14509 exit(1);
Brett Cannon43802422005-02-10 20:48:0314510#endif
Brett Cannon18367812003-09-19 00:59:1614511
Guido van Rossumd11b62e2003-03-14 21:51:3614512 exit(0);
14513}
14514
14515_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814516if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumd11b62e2003-03-14 21:51:3614517 ac_cv_working_tzset=yes
14518else
Matthias Klosea0bea5d2010-05-08 10:00:2814519 ac_cv_working_tzset=no
Guido van Rossumd11b62e2003-03-14 21:51:3614520fi
Matthias Klosea0bea5d2010-05-08 10:00:2814521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14522 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:3614523fi
14524
Martin v. Löwiseba40652007-08-30 20:10:5714525fi
14526
Matthias Klosea0bea5d2010-05-08 10:00:2814527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
14528$as_echo "$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:3614529if test "$ac_cv_working_tzset" = yes
14530then
14531
Matthias Klosea0bea5d2010-05-08 10:00:2814532$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
Guido van Rossumd11b62e2003-03-14 21:51:3614533
14534fi
14535
Martin v. Löwis94717ed2002-09-09 14:24:1614536# Look for subsecond timestamps in struct stat
Matthias Klosea0bea5d2010-05-08 10:00:2814537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
14538$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314539if ${ac_cv_stat_tv_nsec+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814540 $as_echo_n "(cached) " >&6
Martin v. Löwis94717ed2002-09-09 14:24:1614541else
Matthias Klosea0bea5d2010-05-08 10:00:2814542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414543/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:1614544#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:1614545int
14546main ()
14547{
14548
14549struct stat st;
14550st.st_mtim.tv_nsec = 1;
14551
14552 ;
14553 return 0;
14554}
14555_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814556if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa32c9942002-09-09 16:17:4714557 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:1614558else
Matthias Klosea0bea5d2010-05-08 10:00:2814559 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:1614560fi
Martin v. Löwiseba40652007-08-30 20:10:5714561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
14563
Matthias Klosea0bea5d2010-05-08 10:00:2814564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
14565$as_echo "$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:1614566if test "$ac_cv_stat_tv_nsec" = yes
14567then
14568
Matthias Klosea0bea5d2010-05-08 10:00:2814569$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
Martin v. Löwis94717ed2002-09-09 14:24:1614570
14571fi
14572
Martin v. Löwisebd9d5b2005-08-09 15:00:5914573# Look for BSD style subsecond timestamps in struct stat
Matthias Klosea0bea5d2010-05-08 10:00:2814574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
14575$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314576if ${ac_cv_stat_tv_nsec2+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814577 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:5914578else
Matthias Klosea0bea5d2010-05-08 10:00:2814579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:5914580/* end confdefs.h. */
14581#include <sys/stat.h>
14582int
14583main ()
14584{
14585
14586struct stat st;
14587st.st_mtimespec.tv_nsec = 1;
14588
14589 ;
14590 return 0;
14591}
14592_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814593if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5914594 ac_cv_stat_tv_nsec2=yes
14595else
Matthias Klosea0bea5d2010-05-08 10:00:2814596 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:5914597fi
Martin v. Löwiseba40652007-08-30 20:10:5714598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599fi
14600
Matthias Klosea0bea5d2010-05-08 10:00:2814601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
14602$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:5914603if test "$ac_cv_stat_tv_nsec2" = yes
14604then
14605
Matthias Klosea0bea5d2010-05-08 10:00:2814606$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
Martin v. Löwisebd9d5b2005-08-09 15:00:5914607
14608fi
14609
doko@ubuntu.comf27ec3e2014-04-17 18:11:1914610# first curses configure check
14611ac_save_cppflags="$CPPFLAGS"
14612CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
14613
14614for ac_header in curses.h ncurses.h
14615do :
14616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14617ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14619 cat >>confdefs.h <<_ACEOF
14620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14621_ACEOF
14622
14623fi
14624
14625done
14626
14627
14628# On Solaris, term.h requires curses.h
14629for ac_header in term.h
14630do :
14631 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
14632#ifdef HAVE_CURSES_H
14633#include <curses.h>
14634#endif
14635
14636"
14637if test "x$ac_cv_header_term_h" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639#define HAVE_TERM_H 1
14640_ACEOF
14641
14642fi
14643
14644done
14645
14646
Jack Jansen666b1e72001-10-31 12:11:4814647# On HP/UX 11.0, mvwdelch is a block with a return statement
Matthias Klosea0bea5d2010-05-08 10:00:2814648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
14649$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314650if ${ac_cv_mvwdelch_is_expression+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814651 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4814652else
Matthias Klosea0bea5d2010-05-08 10:00:2814653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414654/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:4814655#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:0314656int
14657main ()
14658{
Jack Jansen666b1e72001-10-31 12:11:4814659
14660 int rtn;
14661 rtn = mvwdelch(0,0,0);
14662
Martin v. Löwis11437992002-04-12 09:54:0314663 ;
14664 return 0;
14665}
14666_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814667if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4814668 ac_cv_mvwdelch_is_expression=yes
14669else
Matthias Klosea0bea5d2010-05-08 10:00:2814670 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:4814671fi
Martin v. Löwiseba40652007-08-30 20:10:5714672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673fi
14674
Matthias Klosea0bea5d2010-05-08 10:00:2814675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
14676$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:4814677
14678if test "$ac_cv_mvwdelch_is_expression" = yes
14679then
Martin v. Löwis11437992002-04-12 09:54:0314680
Matthias Klosea0bea5d2010-05-08 10:00:2814681$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4814682
14683fi
14684
Miss Islington (bot)6ba0b582017-11-01 12:36:4814685# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
14686# structs since version 5.7. If the macro is defined as zero before including
14687# [n]curses.h, ncurses will expose fields of the structs regardless of the
14688# configuration.
Matthias Klosea0bea5d2010-05-08 10:00:2814689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
14690$as_echo_n "checking whether WINDOW has _flags... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3314691if ${ac_cv_window_has_flags+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2814692 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4814693else
Matthias Klosea0bea5d2010-05-08 10:00:2814694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414695/* end confdefs.h. */
Miss Islington (bot)6ba0b582017-11-01 12:36:4814696
14697 #define NCURSES_OPAQUE 0
14698 #include <curses.h>
14699
Martin v. Löwis11437992002-04-12 09:54:0314700int
14701main ()
14702{
Jack Jansen666b1e72001-10-31 12:11:4814703
14704 WINDOW *w;
14705 w->_flags = 0;
14706
Martin v. Löwis11437992002-04-12 09:54:0314707 ;
14708 return 0;
14709}
14710_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814711if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4814712 ac_cv_window_has_flags=yes
14713else
Matthias Klosea0bea5d2010-05-08 10:00:2814714 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:4814715fi
Martin v. Löwiseba40652007-08-30 20:10:5714716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717fi
14718
Matthias Klosea0bea5d2010-05-08 10:00:2814719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
14720$as_echo "$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2614721
Jack Jansen666b1e72001-10-31 12:11:4814722
14723if test "$ac_cv_window_has_flags" = yes
14724then
Martin v. Löwis11437992002-04-12 09:54:0314725
Matthias Klosea0bea5d2010-05-08 10:00:2814726$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4814727
14728fi
14729
Miss Islington (bot)6ba0b582017-11-01 12:36:4814730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
14731$as_echo_n "checking for is_pad... " >&6; }
14732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733/* end confdefs.h. */
14734#include <curses.h>
14735int
14736main ()
14737{
14738
14739#ifndef is_pad
14740void *x=is_pad
14741#endif
14742
14743 ;
14744 return 0;
14745}
14746_ACEOF
14747if ac_fn_c_try_compile "$LINENO"; then :
14748
14749$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14752$as_echo "yes" >&6; }
14753else
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755$as_echo "no" >&6; }
14756
14757fi
14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759
Matthias Klosea0bea5d2010-05-08 10:00:2814760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
14761$as_echo_n "checking for is_term_resized... " >&6; }
14762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Walter Dörwald4994d952006-06-19 08:07:5014763/* end confdefs.h. */
14764#include <curses.h>
14765int
14766main ()
14767{
14768void *x=is_term_resized
14769 ;
14770 return 0;
14771}
14772_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814773if ac_fn_c_try_compile "$LINENO"; then :
Walter Dörwald4994d952006-06-19 08:07:5014774
Matthias Klosea0bea5d2010-05-08 10:00:2814775$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
Walter Dörwald4994d952006-06-19 08:07:5014776
Matthias Klosec511b472010-05-08 11:01:3914777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2814778$as_echo "yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:5014779else
Matthias Klosea0bea5d2010-05-08 10:00:2814780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781$as_echo "no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:5014782
14783fi
Martin v. Löwiseba40652007-08-30 20:10:5714784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785
Matthias Klosea0bea5d2010-05-08 10:00:2814786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
14787$as_echo_n "checking for resize_term... " >&6; }
14788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Walter Dörwald4994d952006-06-19 08:07:5014789/* end confdefs.h. */
14790#include <curses.h>
14791int
14792main ()
14793{
14794void *x=resize_term
14795 ;
14796 return 0;
14797}
14798_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814799if ac_fn_c_try_compile "$LINENO"; then :
Walter Dörwald4994d952006-06-19 08:07:5014800
Matthias Klosea0bea5d2010-05-08 10:00:2814801$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
Walter Dörwald4994d952006-06-19 08:07:5014802
Matthias Klosec511b472010-05-08 11:01:3914803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2814804$as_echo "yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:5014805else
Matthias Klosea0bea5d2010-05-08 10:00:2814806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807$as_echo "no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:5014808
14809fi
Martin v. Löwiseba40652007-08-30 20:10:5714810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811
Matthias Klosea0bea5d2010-05-08 10:00:2814812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
14813$as_echo_n "checking for resizeterm... " >&6; }
14814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Walter Dörwald4994d952006-06-19 08:07:5014815/* end confdefs.h. */
14816#include <curses.h>
14817int
14818main ()
14819{
14820void *x=resizeterm
14821 ;
14822 return 0;
14823}
14824_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2814825if ac_fn_c_try_compile "$LINENO"; then :
Walter Dörwald4994d952006-06-19 08:07:5014826
Matthias Klosea0bea5d2010-05-08 10:00:2814827$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
Walter Dörwald4994d952006-06-19 08:07:5014828
Matthias Klosec511b472010-05-08 11:01:3914829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2814830$as_echo "yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:5014831else
Matthias Klosea0bea5d2010-05-08 10:00:2814832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833$as_echo "no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:5014834
14835fi
Martin v. Löwiseba40652007-08-30 20:10:5714836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Serhiy Storchakae0fc1af2017-10-31 14:12:3514837
14838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
14839$as_echo_n "checking for immedok... " >&6; }
14840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841/* end confdefs.h. */
14842#include <curses.h>
14843int
14844main ()
14845{
14846
14847#ifndef immedok
14848void *x=immedok
14849#endif
14850
14851 ;
14852 return 0;
14853}
14854_ACEOF
14855if ac_fn_c_try_compile "$LINENO"; then :
14856
14857$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
14858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14860$as_echo "yes" >&6; }
14861else
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863$as_echo "no" >&6; }
14864
14865fi
14866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
14869$as_echo_n "checking for syncok... " >&6; }
14870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871/* end confdefs.h. */
14872#include <curses.h>
14873int
14874main ()
14875{
14876
14877#ifndef syncok
14878void *x=syncok
14879#endif
14880
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_compile "$LINENO"; then :
14886
14887$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
14888
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14890$as_echo "yes" >&6; }
14891else
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893$as_echo "no" >&6; }
14894
14895fi
14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897
Miss Islington (bot)87c66e42017-11-01 13:11:1814898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
14899$as_echo_n "checking for wchgat... " >&6; }
14900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901/* end confdefs.h. */
14902#include <curses.h>
14903int
14904main ()
14905{
14906
14907#ifndef wchgat
14908void *x=wchgat
14909#endif
14910
14911 ;
14912 return 0;
14913}
14914_ACEOF
14915if ac_fn_c_try_compile "$LINENO"; then :
14916
14917$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
14918
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920$as_echo "yes" >&6; }
14921else
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923$as_echo "no" >&6; }
14924
14925fi
14926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927
Serhiy Storchakae0fc1af2017-10-31 14:12:3514928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
14929$as_echo_n "checking for filter... " >&6; }
14930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h. */
14932#include <curses.h>
14933int
14934main ()
14935{
14936
14937#ifndef filter
14938void *x=filter
14939#endif
14940
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945if ac_fn_c_try_compile "$LINENO"; then :
14946
14947$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14950$as_echo "yes" >&6; }
14951else
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14953$as_echo "no" >&6; }
14954
14955fi
14956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
14959$as_echo_n "checking for has_key... " >&6; }
14960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h. */
14962#include <curses.h>
14963int
14964main ()
14965{
14966
14967#ifndef has_key
14968void *x=has_key
14969#endif
14970
14971 ;
14972 return 0;
14973}
14974_ACEOF
14975if ac_fn_c_try_compile "$LINENO"; then :
14976
14977$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980$as_echo "yes" >&6; }
14981else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983$as_echo "no" >&6; }
14984
14985fi
14986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987
14988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
14989$as_echo_n "checking for typeahead... " >&6; }
14990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991/* end confdefs.h. */
14992#include <curses.h>
14993int
14994main ()
14995{
14996
14997#ifndef typeahead
14998void *x=typeahead
14999#endif
15000
15001 ;
15002 return 0;
15003}
15004_ACEOF
15005if ac_fn_c_try_compile "$LINENO"; then :
15006
15007$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
15008
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15010$as_echo "yes" >&6; }
15011else
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013$as_echo "no" >&6; }
15014
15015fi
15016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15017
15018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
15019$as_echo_n "checking for use_env... " >&6; }
15020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022#include <curses.h>
15023int
15024main ()
15025{
15026
15027#ifndef use_env
15028void *x=use_env
15029#endif
15030
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035if ac_fn_c_try_compile "$LINENO"; then :
15036
15037$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040$as_echo "yes" >&6; }
15041else
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15043$as_echo "no" >&6; }
15044
15045fi
15046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
doko@ubuntu.comf27ec3e2014-04-17 18:11:1915047# last curses configure check
15048CPPFLAGS=$ac_save_cppflags
Martin v. Löwiseba40652007-08-30 20:10:5715049
doko@python.orgd65e2ba2013-01-31 22:52:0315050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
15051$as_echo "$as_me: checking for device files" >&6;}
15052
15053if test "x$cross_compiling" = xyes; then
15054 if test "${ac_cv_file__dev_ptmx+set}" != set; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15056$as_echo_n "checking for /dev/ptmx... " >&6; }
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15058$as_echo "not set" >&6; }
15059 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15060 fi
15061 if test "${ac_cv_file__dev_ptc+set}" != set; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15063$as_echo_n "checking for /dev/ptc... " >&6; }
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15065$as_echo "not set" >&6; }
15066 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15067 fi
15068fi
15069
Matthias Klosea0bea5d2010-05-08 10:00:2815070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15071$as_echo_n "checking for /dev/ptmx... " >&6; }
doko@python.orgd65e2ba2013-01-31 22:52:0315072if ${ac_cv_file__dev_ptmx+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074else
15075 test "$cross_compiling" = yes &&
15076 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15077if test -r "/dev/ptmx"; then
15078 ac_cv_file__dev_ptmx=yes
15079else
15080 ac_cv_file__dev_ptmx=no
15081fi
15082fi
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
15084$as_echo "$ac_cv_file__dev_ptmx" >&6; }
15085if test "x$ac_cv_file__dev_ptmx" = xyes; then :
Martin v. Löwisfefbc202006-10-17 18:59:2315086
doko@python.orgd65e2ba2013-01-31 22:52:0315087fi
15088
15089if test "x$ac_cv_file__dev_ptmx" = xyes; then
Martin v. Löwis24a880b2002-12-31 12:55:1515090
Matthias Klosea0bea5d2010-05-08 10:00:2815091$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
Martin v. Löwis24a880b2002-12-31 12:55:1515092
Martin v. Löwis24a880b2002-12-31 12:55:1515093fi
Matthias Klosea0bea5d2010-05-08 10:00:2815094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15095$as_echo_n "checking for /dev/ptc... " >&6; }
doko@python.orgd65e2ba2013-01-31 22:52:0315096if ${ac_cv_file__dev_ptc+:} false; then :
15097 $as_echo_n "(cached) " >&6
15098else
15099 test "$cross_compiling" = yes &&
15100 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15101if test -r "/dev/ptc"; then
15102 ac_cv_file__dev_ptc=yes
15103else
15104 ac_cv_file__dev_ptc=no
15105fi
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
15108$as_echo "$ac_cv_file__dev_ptc" >&6; }
15109if test "x$ac_cv_file__dev_ptc" = xyes; then :
Martin v. Löwisfefbc202006-10-17 18:59:2315110
doko@python.orgd65e2ba2013-01-31 22:52:0315111fi
15112
15113if test "x$ac_cv_file__dev_ptc" = xyes; then
Neal Norwitz865400f2003-03-21 01:42:5815114
Matthias Klosea0bea5d2010-05-08 10:00:2815115$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
Neal Norwitz865400f2003-03-21 01:42:5815116
Neal Norwitz865400f2003-03-21 01:42:5815117fi
15118
Mark Dickinson82864d12009-11-15 16:18:5815119if test "$have_long_long" = yes
15120then
Matthias Klosea0bea5d2010-05-08 10:00:2815121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
15122$as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3315123 if ${ac_cv_have_long_long_format+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2815124 $as_echo_n "(cached) " >&6
Mark Dickinson82864d12009-11-15 16:18:5815125else
Matthias Klosea0bea5d2010-05-08 10:00:2815126 if test "$cross_compiling" = yes; then :
doko@python.orgd65e2ba2013-01-31 22:52:0315127 ac_cv_have_long_long_format="cross -- assuming no"
15128 if test x$GCC = xyes; then
15129 save_CFLAGS=$CFLAGS
15130 CFLAGS="$CFLAGS -Werror -Wformat"
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132/* end confdefs.h. */
15133
15134 #include <stdio.h>
15135 #include <stddef.h>
15136
15137int
15138main ()
15139{
15140
15141 char *buffer;
15142 sprintf(buffer, "%lld", (long long)123);
15143 sprintf(buffer, "%lld", (long long)-123);
15144 sprintf(buffer, "%llu", (unsigned long long)123);
15145
15146 ;
15147 return 0;
15148}
15149_ACEOF
15150if ac_fn_c_try_compile "$LINENO"; then :
15151 ac_cv_have_long_long_format=yes
15152
15153fi
15154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 CFLAGS=$save_CFLAGS
15156 fi
Mark Dickinson82864d12009-11-15 16:18:5815157else
Matthias Klosea0bea5d2010-05-08 10:00:2815158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson82864d12009-11-15 16:18:5815159/* end confdefs.h. */
15160
15161 #include <stdio.h>
15162 #include <stddef.h>
15163 #include <string.h>
15164
15165 #ifdef HAVE_SYS_TYPES_H
15166 #include <sys/types.h>
15167 #endif
15168
15169 int main()
15170 {
15171 char buffer[256];
15172
15173 if (sprintf(buffer, "%lld", (long long)123) < 0)
15174 return 1;
15175 if (strcmp(buffer, "123"))
15176 return 1;
15177
15178 if (sprintf(buffer, "%lld", (long long)-123) < 0)
15179 return 1;
15180 if (strcmp(buffer, "-123"))
15181 return 1;
15182
15183 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
15184 return 1;
15185 if (strcmp(buffer, "123"))
15186 return 1;
15187
15188 return 0;
15189 }
15190
15191_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2815192if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson82864d12009-11-15 16:18:5815193 ac_cv_have_long_long_format=yes
15194else
Matthias Klosea0bea5d2010-05-08 10:00:2815195 ac_cv_have_long_long_format=no
Mark Dickinson82864d12009-11-15 16:18:5815196fi
Matthias Klosea0bea5d2010-05-08 10:00:2815197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15198 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson82864d12009-11-15 16:18:5815199fi
15200
15201
Mark Dickinson82864d12009-11-15 16:18:5815202fi
15203
Matthias Klosea0bea5d2010-05-08 10:00:2815204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
15205$as_echo "$ac_cv_have_long_long_format" >&6; }
Mark Dickinson82864d12009-11-15 16:18:5815206fi
15207
Mark Dickinson5ce84742009-12-31 20:48:0415208if test "$ac_cv_have_long_long_format" = yes
Mark Dickinson82864d12009-11-15 16:18:5815209then
15210
Matthias Klosea0bea5d2010-05-08 10:00:2815211$as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
Mark Dickinson82864d12009-11-15 16:18:5815212
15213fi
15214
Ronald Oussoren315cd0c2009-11-19 16:25:2115215if test $ac_sys_system = Darwin
15216then
15217 LIBS="$LIBS -framework CoreFoundation"
15218fi
15219
Mark Dickinson82864d12009-11-15 16:18:5815220
Matthias Klosea0bea5d2010-05-08 10:00:2815221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
15222$as_echo_n "checking for %zd printf() format support... " >&6; }
Matthias Klose3cef2a92012-03-14 22:39:3315223if ${ac_cv_have_size_t_format+:} false; then :
Matthias Klosea0bea5d2010-05-08 10:00:2815224 $as_echo_n "(cached) " >&6
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815225else
Matthias Klosea0bea5d2010-05-08 10:00:2815226 if test "$cross_compiling" = yes; then :
Gregory P. Smithc9ff3a72009-11-02 02:03:1615227 ac_cv_have_size_t_format="cross -- assuming yes"
15228
Brett Cannon09d12362006-05-11 05:11:3315229else
Matthias Klosea0bea5d2010-05-08 10:00:2815230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brett Cannon09d12362006-05-11 05:11:3315231/* end confdefs.h. */
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815232
Brett Cannon09d12362006-05-11 05:11:3315233#include <stdio.h>
15234#include <stddef.h>
15235#include <string.h>
15236
Christian Heimesdb3d6cb2007-12-16 21:39:4315237#ifdef HAVE_SYS_TYPES_H
15238#include <sys/types.h>
15239#endif
Neal Norwitz4a8fbdb2006-09-22 08:16:2615240
15241#ifdef HAVE_SSIZE_T
15242typedef ssize_t Py_ssize_t;
15243#elif SIZEOF_VOID_P == SIZEOF_LONG
15244typedef long Py_ssize_t;
15245#else
15246typedef int Py_ssize_t;
15247#endif
Brett Cannon09d12362006-05-11 05:11:3315248
Christian Heimesdb3d6cb2007-12-16 21:39:4315249int main()
15250{
15251 char buffer[256];
15252
Brett Cannon09d12362006-05-11 05:11:3315253 if(sprintf(buffer, "%zd", (size_t)123) < 0)
15254 return 1;
15255
Neal Norwitz4a8fbdb2006-09-22 08:16:2615256 if (strcmp(buffer, "123"))
15257 return 1;
15258
15259 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
15260 return 1;
15261
15262 if (strcmp(buffer, "-123"))
Brett Cannon09d12362006-05-11 05:11:3315263 return 1;
15264
15265 return 0;
15266}
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815267
Brett Cannon09d12362006-05-11 05:11:3315268_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2815269if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815270 ac_cv_have_size_t_format=yes
Alexandre Vassalottibd7569b2009-07-17 23:09:0215271else
Matthias Klosea0bea5d2010-05-08 10:00:2815272 ac_cv_have_size_t_format=no
Alexandre Vassalottibd7569b2009-07-17 23:09:0215273fi
Matthias Klosea0bea5d2010-05-08 10:00:2815274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15275 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:4615276fi
15277
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815278fi
Matthias Klosea0bea5d2010-05-08 10:00:2815279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
15280$as_echo "$ac_cv_have_size_t_format" >&6; }
Gregory P. Smithc9ff3a72009-11-02 02:03:1615281if test "$ac_cv_have_size_t_format" != no ; then
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815282
Matthias Klosea0bea5d2010-05-08 10:00:2815283$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
Alexandre Vassalotti2ccefe12009-07-17 23:17:4815284
15285fi
15286
Matthias Klosea0bea5d2010-05-08 10:00:2815287ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
Martin v. Löwis01c04012002-11-11 14:58:4415288#ifdef HAVE_SYS_TYPES_H
15289#include <sys/types.h>
15290#endif
15291#ifdef HAVE_SYS_SOCKET_H
15292#include <sys/socket.h>
15293#endif
15294
Matthias Klosea0bea5d2010-05-08 10:00:2815295"
Matthias Klose3cef2a92012-03-14 22:39:3315296if test "x$ac_cv_type_socklen_t" = xyes; then :
Martin v. Löwis01c04012002-11-11 14:58:4415297
Martin v. Löwis11437992002-04-12 09:54:0315298else
Guido van Rossum95713eb2000-05-18 20:53:3115299
Matthias Klosea0bea5d2010-05-08 10:00:2815300$as_echo "#define socklen_t int" >>confdefs.h
Guido van Rossum95713eb2000-05-18 20:53:3115301
15302fi
15303
Michael W. Hudson54241132001-12-07 15:38:2615304
Benjamin Peterson7497e912010-10-16 00:53:3915305case $ac_sys_system in
15306AIX*)
15307
15308$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
15309 ;;
15310esac
15311
15312
Michael W. Hudson54241132001-12-07 15:38:2615313
15314
Martin v. Löwis06f15bb2001-12-02 13:02:3215315for h in `(cd $srcdir;echo Python/thread_*.h)`
15316do
15317 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
15318done
15319
Michael W. Hudson54241132001-12-07 15:38:2615320
Victor Stinner44a2c4a2019-04-13 00:50:2415321SRCDIRS="Parser Objects Python Modules Modules/_io"
Matthias Klosea0bea5d2010-05-08 10:00:2815322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
15323$as_echo_n "checking for build directories... " >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:2815324for dir in $SRCDIRS; do
15325 if test ! -d $dir; then
15326 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:5315327 fi
Neil Schemenauerd32c2492001-01-24 17:25:2815328done
Benjamin Peterson2c992a02015-05-28 17:45:3115329
15330# BEGIN_COMPUTED_GOTO
15331# Check for --with-computed-gotos
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
15333$as_echo_n "checking for --with-computed-gotos... " >&6; }
15334
15335# Check whether --with-computed-gotos was given.
15336if test "${with_computed_gotos+set}" = set; then :
15337 withval=$with_computed_gotos;
15338if test "$withval" = yes
15339then
15340
15341$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15344$as_echo "yes" >&6; }
15345fi
15346if test "$withval" = no
15347then
15348
15349$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
15350
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15352$as_echo "no" >&6; }
15353fi
15354
15355else
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
15357$as_echo "no value specified" >&6; }
15358fi
15359
15360
15361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
15362$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
15363if ${ac_cv_computed_gotos+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365else
15366 if test "$cross_compiling" = yes; then :
15367 if test "${with_computed_gotos+set}" = set; then
15368 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
15369 else
15370 ac_cv_computed_gotos=no
15371 fi
15372else
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374/* end confdefs.h. */
15375
15376int main(int argc, char **argv)
15377{
15378 static void *targets[1] = { &&LABEL1 };
15379 goto LABEL2;
15380LABEL1:
15381 return 0;
15382LABEL2:
15383 goto *targets[0];
15384 return 1;
15385}
15386
15387_ACEOF
15388if ac_fn_c_try_run "$LINENO"; then :
15389 ac_cv_computed_gotos=yes
15390else
15391 ac_cv_computed_gotos=no
15392fi
15393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15394 conftest.$ac_objext conftest.beam conftest.$ac_ext
15395fi
15396
15397fi
15398
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
15400$as_echo "$ac_cv_computed_gotos" >&6; }
15401case "$ac_cv_computed_gotos" in yes*)
15402
15403$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
15404
15405esac
15406# END_COMPUTED_GOTO
15407
Matthias Klosea0bea5d2010-05-08 10:00:2815408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15409$as_echo "done" >&6; }
Fred Drake036144d2000-10-26 17:09:3515410
Ned Deily3f1d0b32014-11-20 10:11:0315411# ensurepip option
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
15413$as_echo_n "checking for ensurepip... " >&6; }
15414
15415# Check whether --with-ensurepip was given.
15416if test "${with_ensurepip+set}" = set; then :
15417 withval=$with_ensurepip;
15418else
15419 with_ensurepip=no
15420fi
15421
15422case $with_ensurepip in #(
15423 yes|upgrade) :
15424 ENSUREPIP=upgrade ;; #(
15425 install) :
15426 ENSUREPIP=install ;; #(
15427 no) :
15428 ENSUREPIP=no ;; #(
15429 *) :
15430 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
15431esac
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
15433$as_echo "$ENSUREPIP" >&6; }
15434
15435
Guido van Rossum627b2d71993-12-24 10:39:1615436# generate output files
Antoine Pitrouf2caeed2009-05-24 20:23:5715437ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
Martin v. Löwis88afe662002-10-26 13:47:4415438
Antoine Pitrouaabdceb2010-09-10 20:03:1715439ac_config_files="$ac_config_files Modules/ld_so_aix"
15440
Martin v. Löwis11437992002-04-12 09:54:0315441cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5415442# This file is a shell script that caches the results of configure
15443# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:0315444# scripts and configure runs, see configure's option --config-cache.
15445# It is not useful on other systems. If it contains results you don't
15446# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:5415447#
Martin v. Löwis11437992002-04-12 09:54:0315448# config.status only pays attention to the cache file if you give it
15449# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:5415450#
Skip Montanaro6dead952003-09-25 14:50:0415451# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:0315452# loading this file, other *unset* `ac_cv_foo' will be assigned the
15453# following values.
15454
15455_ACEOF
15456
Guido van Rossumf78abae1997-01-21 22:02:3615457# The following way of writing the cache mishandles newlines in values,
15458# but we know of no workaround that is simple, portable, and efficient.
Martin v. Löwiseba40652007-08-30 20:10:5715459# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:2815460# Ultrix sh set writes to stderr and can't be redirected directly,
15461# and sets the high bit in the cache file unless we assign to the vars.
Martin v. Löwiseba40652007-08-30 20:10:5715462(
15463 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15464 eval ac_val=\$$ac_var
15465 case $ac_val in #(
15466 *${as_nl}*)
15467 case $ac_var in #(
Matthias Klosea0bea5d2010-05-08 10:00:2815468 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15469$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Martin v. Löwiseba40652007-08-30 20:10:5715470 esac
15471 case $ac_var in #(
15472 _ | IFS | as_nl) ;; #(
Matthias Klosea0bea5d2010-05-08 10:00:2815473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15474 *) { eval $ac_var=; unset $ac_var;} ;;
Martin v. Löwiseba40652007-08-30 20:10:5715475 esac ;;
15476 esac
15477 done
15478
Martin v. Löwis11437992002-04-12 09:54:0315479 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:5715480 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15481 *${as_nl}ac_space=\ *)
Matthias Klosea0bea5d2010-05-08 10:00:2815482 # `set' does not quote correctly, so add quotes: double-quote
15483 # substitution turns \\\\ into \\, and sed turns \\ into \.
Martin v. Löwis11437992002-04-12 09:54:0315484 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:2315485 "s/'/'\\\\''/g;
15486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Martin v. Löwiseba40652007-08-30 20:10:5715487 ;; #(
Martin v. Löwis11437992002-04-12 09:54:0315488 *)
15489 # `set' quotes correctly as required by POSIX, so do not add quotes.
Martin v. Löwiseba40652007-08-30 20:10:5715490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:0315491 ;;
Martin v. Löwiseba40652007-08-30 20:10:5715492 esac |
15493 sort
15494) |
Martin v. Löwis11437992002-04-12 09:54:0315495 sed '
Martin v. Löwiseba40652007-08-30 20:10:5715496 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:0315497 t clear
Martin v. Löwiseba40652007-08-30 20:10:5715498 :clear
Martin v. Löwis11437992002-04-12 09:54:0315499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15500 t end
Martin v. Löwiseba40652007-08-30 20:10:5715501 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15502 :end' >>confcache
15503if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15504 if test -w "$cache_file"; then
Matthias Klose3cef2a92012-03-14 22:39:3315505 if test "x$cache_file" != "x/dev/null"; then
Matthias Klosea0bea5d2010-05-08 10:00:2815506 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15507$as_echo "$as_me: updating cache $cache_file" >&6;}
Matthias Klose3cef2a92012-03-14 22:39:3315508 if test ! -f "$cache_file" || test -h "$cache_file"; then
15509 cat confcache >"$cache_file"
15510 else
15511 case $cache_file in #(
15512 */* | ?:*)
15513 mv -f confcache "$cache_file"$$ &&
15514 mv -f "$cache_file"$$ "$cache_file" ;; #(
15515 *)
15516 mv -f confcache "$cache_file" ;;
15517 esac
15518 fi
15519 fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2815520 else
Matthias Klosea0bea5d2010-05-08 10:00:2815521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:2815523 fi
Guido van Rossum76be6ed1995-01-02 18:33:5415524fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2815525rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:4015526
Guido van Rossum76be6ed1995-01-02 18:33:5415527test "x$prefix" = xNONE && prefix=$ac_default_prefix
15528# Let make expand exec_prefix.
15529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:4015530
Guido van Rossum76be6ed1995-01-02 18:33:5415531DEFS=-DHAVE_CONFIG_H
15532
Skip Montanaro6dead952003-09-25 14:50:0415533ac_libobjs=
15534ac_ltlibobjs=
Georg Brandl71f4fbb2011-02-25 11:04:5015535U=
Skip Montanaro6dead952003-09-25 14:50:0415536for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15537 # 1. Remove the extension, and $U if already installed.
Martin v. Löwiseba40652007-08-30 20:10:5715538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Matthias Klosea0bea5d2010-05-08 10:00:2815539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Martin v. Löwiseba40652007-08-30 20:10:5715540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15541 # will be set to the directory where LIBOBJS objects are built.
Matthias Klosea0bea5d2010-05-08 10:00:2815542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:0415544done
15545LIBOBJS=$ac_libobjs
15546
15547LTLIBOBJS=$ac_ltlibobjs
15548
15549
Martin v. Löwis11437992002-04-12 09:54:0315550
Matthias Klosea0bea5d2010-05-08 10:00:2815551
Matthias Klose3cef2a92012-03-14 22:39:3315552: "${CONFIG_STATUS=./config.status}"
Matthias Klosea0bea5d2010-05-08 10:00:2815553ac_write_fail=0
Martin v. Löwis11437992002-04-12 09:54:0315554ac_clean_files_save=$ac_clean_files
15555ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Matthias Klosea0bea5d2010-05-08 10:00:2815556{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15557$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15558as_write_fail=0
15559cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0315560#! $SHELL
15561# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:1615562# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:5415563# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:0315564# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:1615565
Martin v. Löwis11437992002-04-12 09:54:0315566debug=false
Skip Montanaro6dead952003-09-25 14:50:0415567ac_cs_recheck=false
15568ac_cs_silent=false
Jack Jansendd19cf82001-12-06 22:36:1715569
Matthias Klosea0bea5d2010-05-08 10:00:2815570SHELL=\${CONFIG_SHELL-$SHELL}
15571export SHELL
15572_ASEOF
15573cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15574## -------------------- ##
15575## M4sh Initialization. ##
15576## -------------------- ##
Jack Jansendd19cf82001-12-06 22:36:1715577
Martin v. Löwiseba40652007-08-30 20:10:5715578# Be more Bourne compatible
15579DUALCASE=1; export DUALCASE # for MKS sh
Matthias Klosea0bea5d2010-05-08 10:00:2815580if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0315581 emulate sh
15582 NULLCMD=:
Matthias Klosea0bea5d2010-05-08 10:00:2815583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0415584 # is contrary to our usage. Disable this feature.
15585 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:5715586 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:2115587else
Matthias Klosea0bea5d2010-05-08 10:00:2815588 case `(set -o) 2>/dev/null` in #(
15589 *posix*) :
15590 set -o posix ;; #(
15591 *) :
15592 ;;
Martin v. Löwiseba40652007-08-30 20:10:5715593esac
Martin v. Löwis11437992002-04-12 09:54:0315594fi
Michael W. Hudson54241132001-12-07 15:38:2615595
Skip Montanaro6dead952003-09-25 14:50:0415596
Matthias Klosea0bea5d2010-05-08 10:00:2815597as_nl='
15598'
15599export as_nl
15600# Printing a long string crashes Solaris 7 /usr/bin/printf.
15601as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15604# Prefer a ksh shell builtin over an external printf program on Solaris,
15605# but without wasting forks for bash or zsh.
15606if test -z "$BASH_VERSION$ZSH_VERSION" \
15607 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15608 as_echo='print -r --'
15609 as_echo_n='print -rn --'
15610elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15611 as_echo='printf %s\n'
15612 as_echo_n='printf %s'
15613else
15614 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15615 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15616 as_echo_n='/usr/ucb/echo -n'
15617 else
15618 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15619 as_echo_n_body='eval
15620 arg=$1;
15621 case $arg in #(
15622 *"$as_nl"*)
15623 expr "X$arg" : "X\\(.*\\)$as_nl";
15624 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15625 esac;
15626 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15627 '
15628 export as_echo_n_body
15629 as_echo_n='sh -c $as_echo_n_body as_echo'
15630 fi
15631 export as_echo_body
15632 as_echo='sh -c $as_echo_body as_echo'
15633fi
Martin v. Löwis11437992002-04-12 09:54:0315634
15635# The user is always right.
15636if test "${PATH_SEPARATOR+set}" != set; then
Matthias Klosea0bea5d2010-05-08 10:00:2815637 PATH_SEPARATOR=:
15638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15640 PATH_SEPARATOR=';'
15641 }
Martin v. Löwiseba40652007-08-30 20:10:5715642fi
Martin v. Löwis11437992002-04-12 09:54:0315643
Martin v. Löwiseba40652007-08-30 20:10:5715644
15645# IFS
15646# We need space, tab and new line, in precisely that order. Quoting is
15647# there to prevent editors from complaining about space-tab.
15648# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15649# splitting by setting IFS to empty value.)
Martin v. Löwiseba40652007-08-30 20:10:5715650IFS=" "" $as_nl"
15651
15652# Find who we are. Look in the path if we contain no directory separator.
Matthias Klose3cef2a92012-03-14 22:39:3315653as_myself=
Matthias Klosea0bea5d2010-05-08 10:00:2815654case $0 in #((
Martin v. Löwiseba40652007-08-30 20:10:5715655 *[\\/]* ) as_myself=$0 ;;
15656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0315657for as_dir in $PATH
15658do
15659 IFS=$as_save_IFS
15660 test -z "$as_dir" && as_dir=.
Matthias Klosea0bea5d2010-05-08 10:00:2815661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15662 done
Martin v. Löwiseba40652007-08-30 20:10:5715663IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:0315664
Martin v. Löwiseba40652007-08-30 20:10:5715665 ;;
15666esac
15667# We did not find ourselves, most probably we were run as `sh COMMAND'
15668# in which case we are not to be found in the path.
15669if test "x$as_myself" = x; then
15670 as_myself=$0
15671fi
15672if test ! -f "$as_myself"; then
Matthias Klosea0bea5d2010-05-08 10:00:2815673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15674 exit 1
Martin v. Löwiseba40652007-08-30 20:10:5715675fi
15676
Matthias Klosea0bea5d2010-05-08 10:00:2815677# Unset variables that we do not need and which cause bugs (e.g. in
15678# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15679# suppresses any "Segmentation fault" message there. '((' could
15680# trigger a bug in pdksh 5.2.14.
15681for as_var in BASH_ENV ENV MAIL MAILPATH
15682do eval test x\${$as_var+set} = xset \
15683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Martin v. Löwiseba40652007-08-30 20:10:5715684done
15685PS1='$ '
15686PS2='> '
15687PS4='+ '
15688
15689# NLS nuisances.
Matthias Klosea0bea5d2010-05-08 10:00:2815690LC_ALL=C
15691export LC_ALL
15692LANGUAGE=C
15693export LANGUAGE
Martin v. Löwiseba40652007-08-30 20:10:5715694
Matthias Klosea0bea5d2010-05-08 10:00:2815695# CDPATH.
15696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15697
15698
Georg Brandl71f4fbb2011-02-25 11:04:5015699# as_fn_error STATUS ERROR [LINENO LOG_FD]
15700# ----------------------------------------
Matthias Klosea0bea5d2010-05-08 10:00:2815701# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15702# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Georg Brandl71f4fbb2011-02-25 11:04:5015703# script with STATUS, using 1 if that was 0.
Matthias Klosea0bea5d2010-05-08 10:00:2815704as_fn_error ()
15705{
Georg Brandl71f4fbb2011-02-25 11:04:5015706 as_status=$1; test $as_status -eq 0 && as_status=1
15707 if test "$4"; then
15708 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Klosea0bea5d2010-05-08 10:00:2815710 fi
Georg Brandl71f4fbb2011-02-25 11:04:5015711 $as_echo "$as_me: error: $2" >&2
Matthias Klosea0bea5d2010-05-08 10:00:2815712 as_fn_exit $as_status
15713} # as_fn_error
15714
15715
15716# as_fn_set_status STATUS
15717# -----------------------
15718# Set $? to STATUS, without forking.
15719as_fn_set_status ()
15720{
15721 return $1
15722} # as_fn_set_status
15723
15724# as_fn_exit STATUS
15725# -----------------
15726# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15727as_fn_exit ()
15728{
15729 set +e
15730 as_fn_set_status $1
15731 exit $1
15732} # as_fn_exit
15733
15734# as_fn_unset VAR
15735# ---------------
15736# Portably unset VAR.
15737as_fn_unset ()
15738{
15739 { eval $1=; unset $1;}
15740}
15741as_unset=as_fn_unset
15742# as_fn_append VAR VALUE
15743# ----------------------
15744# Append the text in VALUE to the end of the definition contained in VAR. Take
15745# advantage of any shell optimizations that allow amortized linear growth over
15746# repeated appends, instead of the typical quadratic growth present in naive
15747# implementations.
15748if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15749 eval 'as_fn_append ()
15750 {
15751 eval $1+=\$2
15752 }'
15753else
15754 as_fn_append ()
15755 {
15756 eval $1=\$$1\$2
15757 }
15758fi # as_fn_append
15759
15760# as_fn_arith ARG...
15761# ------------------
15762# Perform arithmetic evaluation on the ARGs, and store the result in the
15763# global $as_val. Take advantage of shells that can avoid forks. The arguments
15764# must be portable across $(()) and expr.
15765if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15766 eval 'as_fn_arith ()
15767 {
15768 as_val=$(( $* ))
15769 }'
15770else
15771 as_fn_arith ()
15772 {
15773 as_val=`expr "$@" || test $? -eq 1`
15774 }
15775fi # as_fn_arith
15776
15777
Martin v. Löwiseba40652007-08-30 20:10:5715778if expr a : '\(a\)' >/dev/null 2>&1 &&
15779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15780 as_expr=expr
15781else
15782 as_expr=false
15783fi
15784
15785if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15786 as_basename=basename
15787else
15788 as_basename=false
15789fi
15790
Matthias Klosea0bea5d2010-05-08 10:00:2815791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15792 as_dirname=dirname
15793else
15794 as_dirname=false
15795fi
Martin v. Löwiseba40652007-08-30 20:10:5715796
Martin v. Löwiseba40652007-08-30 20:10:5715797as_me=`$as_basename -- "$0" ||
15798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15799 X"$0" : 'X\(//\)$' \| \
15800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Klosea0bea5d2010-05-08 10:00:2815801$as_echo X/"$0" |
Martin v. Löwiseba40652007-08-30 20:10:5715802 sed '/^.*\/\([^/][^/]*\)\/*$/{
15803 s//\1/
15804 q
15805 }
15806 /^X\/\(\/\/\)$/{
15807 s//\1/
15808 q
15809 }
15810 /^X\/\(\/\).*/{
15811 s//\1/
15812 q
15813 }
15814 s/.*/./; q'`
15815
Matthias Klosea0bea5d2010-05-08 10:00:2815816# Avoid depending upon Character Ranges.
15817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15820as_cr_digits='0123456789'
15821as_cr_alnum=$as_cr_Letters$as_cr_digits
Martin v. Löwiseba40652007-08-30 20:10:5715822
15823ECHO_C= ECHO_N= ECHO_T=
Matthias Klosea0bea5d2010-05-08 10:00:2815824case `echo -n x` in #(((((
Martin v. Löwiseba40652007-08-30 20:10:5715825-n*)
Matthias Klosea0bea5d2010-05-08 10:00:2815826 case `echo 'xy\c'` in
Martin v. Löwiseba40652007-08-30 20:10:5715827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Klosea0bea5d2010-05-08 10:00:2815828 xy) ECHO_C='\c';;
15829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15830 ECHO_T=' ';;
Martin v. Löwiseba40652007-08-30 20:10:5715831 esac;;
15832*)
15833 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:0315834esac
Alexandre Vassalottibd7569b2009-07-17 23:09:0215835
Martin v. Löwis11437992002-04-12 09:54:0315836rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:5715837if test -d conf$$.dir; then
15838 rm -f conf$$.dir/conf$$.file
15839else
15840 rm -f conf$$.dir
Matthias Klosea0bea5d2010-05-08 10:00:2815841 mkdir conf$$.dir 2>/dev/null
Martin v. Löwiseba40652007-08-30 20:10:5715842fi
Matthias Klosea0bea5d2010-05-08 10:00:2815843if (echo >conf$$.file) 2>/dev/null; then
15844 if ln -s conf$$.file conf$$ 2>/dev/null; then
15845 as_ln_s='ln -s'
15846 # ... but there are two gotchas:
15847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Charles-François Natalibe2b9072013-01-08 18:47:0015849 # In both cases, we have to default to `cp -pR'.
Matthias Klosea0bea5d2010-05-08 10:00:2815850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Charles-François Natalibe2b9072013-01-08 18:47:0015851 as_ln_s='cp -pR'
Matthias Klosea0bea5d2010-05-08 10:00:2815852 elif ln conf$$.file conf$$ 2>/dev/null; then
15853 as_ln_s=ln
15854 else
Charles-François Natalibe2b9072013-01-08 18:47:0015855 as_ln_s='cp -pR'
Matthias Klosea0bea5d2010-05-08 10:00:2815856 fi
Martin v. Löwis11437992002-04-12 09:54:0315857else
Charles-François Natalibe2b9072013-01-08 18:47:0015858 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:0315859fi
Martin v. Löwiseba40652007-08-30 20:10:5715860rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15861rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:0315862
Matthias Klosea0bea5d2010-05-08 10:00:2815863
15864# as_fn_mkdir_p
15865# -------------
15866# Create "$as_dir" as a directory, including parents if necessary.
15867as_fn_mkdir_p ()
15868{
15869
15870 case $as_dir in #(
15871 -*) as_dir=./$as_dir;;
15872 esac
15873 test -d "$as_dir" || eval $as_mkdir_p || {
15874 as_dirs=
15875 while :; do
15876 case $as_dir in #(
15877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15878 *) as_qdir=$as_dir;;
15879 esac
15880 as_dirs="'$as_qdir' $as_dirs"
15881 as_dir=`$as_dirname -- "$as_dir" ||
15882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15883 X"$as_dir" : 'X\(//\)[^/]' \| \
15884 X"$as_dir" : 'X\(//\)$' \| \
15885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15886$as_echo X"$as_dir" |
15887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15888 s//\1/
15889 q
15890 }
15891 /^X\(\/\/\)[^/].*/{
15892 s//\1/
15893 q
15894 }
15895 /^X\(\/\/\)$/{
15896 s//\1/
15897 q
15898 }
15899 /^X\(\/\).*/{
15900 s//\1/
15901 q
15902 }
15903 s/.*/./; q'`
15904 test -d "$as_dir" && break
15905 done
15906 test -z "$as_dirs" || eval "mkdir $as_dirs"
Georg Brandl71f4fbb2011-02-25 11:04:5015907 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Klosea0bea5d2010-05-08 10:00:2815908
15909
15910} # as_fn_mkdir_p
Skip Montanaro6dead952003-09-25 14:50:0415911if mkdir -p . 2>/dev/null; then
Matthias Klosea0bea5d2010-05-08 10:00:2815912 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:0415913else
Skip Montanarof0d5f792004-08-15 14:08:2315914 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:0415915 as_mkdir_p=false
15916fi
15917
Charles-François Natalibe2b9072013-01-08 18:47:0015918
15919# as_fn_executable_p FILE
15920# -----------------------
15921# Test if FILE is an executable regular file.
15922as_fn_executable_p ()
15923{
15924 test -f "$1" && test -x "$1"
15925} # as_fn_executable_p
15926as_test_x='test -x'
15927as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:0315928
15929# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:2315930as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0315931
15932# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:2315933as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0315934
15935
Martin v. Löwis11437992002-04-12 09:54:0315936exec 6>&1
Matthias Klosea0bea5d2010-05-08 10:00:2815937## ----------------------------------- ##
15938## Main body of $CONFIG_STATUS script. ##
15939## ----------------------------------- ##
15940_ASEOF
15941test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0315942
Matthias Klosea0bea5d2010-05-08 10:00:2815943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944# Save the log message, to keep $0 and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:0315945# report actual input values of CONFIG_FILES etc. instead of their
Martin v. Löwiseba40652007-08-30 20:10:5715946# values after options handling.
15947ac_log="
Martin v. Löwis174440b2008-10-03 08:59:4115948This file was extended by python $as_me 2.7, which was
Charles-François Natalibe2b9072013-01-08 18:47:0015949generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:0315950
15951 CONFIG_FILES = $CONFIG_FILES
15952 CONFIG_HEADERS = $CONFIG_HEADERS
15953 CONFIG_LINKS = $CONFIG_LINKS
15954 CONFIG_COMMANDS = $CONFIG_COMMANDS
15955 $ $0 $@
15956
Martin v. Löwiseba40652007-08-30 20:10:5715957on `(hostname || uname -n) 2>/dev/null | sed 1q`
15958"
15959
Martin v. Löwis11437992002-04-12 09:54:0315960_ACEOF
15961
Matthias Klosea0bea5d2010-05-08 10:00:2815962case $ac_config_files in *"
15963"*) set x $ac_config_files; shift; ac_config_files=$*;;
15964esac
15965
15966case $ac_config_headers in *"
15967"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15968esac
15969
15970
15971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0315972# Files that config.status was made for.
Georg Brandl71f4fbb2011-02-25 11:04:5015973config_files="$ac_config_files"
15974config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:0315975
Martin v. Löwiseba40652007-08-30 20:10:5715976_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0315977
Matthias Klosea0bea5d2010-05-08 10:00:2815978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0315979ac_cs_usage="\
Matthias Klosea0bea5d2010-05-08 10:00:2815980\`$as_me' instantiates files and other configuration actions
15981from templates according to the current configuration. Unless the files
15982and actions are specified as TAGs, all are instantiated by default.
Martin v. Löwis11437992002-04-12 09:54:0315983
Matthias Klosea0bea5d2010-05-08 10:00:2815984Usage: $0 [OPTION]... [TAG]...
Martin v. Löwis11437992002-04-12 09:54:0315985
15986 -h, --help print this help, then exit
Martin v. Löwiseba40652007-08-30 20:10:5715987 -V, --version print version number and configuration settings, then exit
Matthias Klosea0bea5d2010-05-08 10:00:2815988 --config print configuration, then exit
15989 -q, --quiet, --silent
15990 do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:0315991 -d, --debug don't remove temporary files
15992 --recheck update $as_me by reconfiguring in the same conditions
Matthias Klosea0bea5d2010-05-08 10:00:2815993 --file=FILE[:TEMPLATE]
15994 instantiate the configuration file FILE
15995 --header=FILE[:TEMPLATE]
15996 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:0315997
15998Configuration files:
15999$config_files
16000
16001Configuration headers:
16002$config_headers
16003
Benjamin Petersoncc8929b2016-08-04 05:01:3216004Report bugs to <https://bugs.python.org/>."
Skip Montanaro89e975f2007-08-22 19:05:2116005
Martin v. Löwiseba40652007-08-30 20:10:5716006_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16008ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Martin v. Löwis11437992002-04-12 09:54:0316009ac_cs_version="\\
Martin v. Löwis174440b2008-10-03 08:59:4116010python config.status 2.7
Charles-François Natalibe2b9072013-01-08 18:47:0016011configured by $0, generated by GNU Autoconf 2.69,
Matthias Klosea0bea5d2010-05-08 10:00:2816012 with options \\"\$ac_cs_config\\"
Martin v. Löwis11437992002-04-12 09:54:0316013
Charles-François Natalibe2b9072013-01-08 18:47:0016014Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:0316015This config.status script is free software; the Free Software Foundation
16016gives unlimited permission to copy, distribute and modify it."
Martin v. Löwiseba40652007-08-30 20:10:5716017
16018ac_pwd='$ac_pwd'
16019srcdir='$srcdir'
16020INSTALL='$INSTALL'
Trent Nelsonf6407a12012-08-30 14:56:1316021MKDIR_P='$MKDIR_P'
Matthias Klosea0bea5d2010-05-08 10:00:2816022test -n "\$AWK" || AWK=awk
Martin v. Löwis11437992002-04-12 09:54:0316023_ACEOF
16024
Matthias Klosea0bea5d2010-05-08 10:00:2816025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026# The default lists apply if the user does not specify any file.
Martin v. Löwis11437992002-04-12 09:54:0316027ac_need_defaults=:
16028while test $# != 0
16029do
16030 case $1 in
Georg Brandl71f4fbb2011-02-25 11:04:5016031 --*=?*)
Martin v. Löwiseba40652007-08-30 20:10:5716032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:0416034 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:0316035 ;;
Georg Brandl71f4fbb2011-02-25 11:04:5016036 --*=)
16037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16038 ac_optarg=
16039 ac_shift=:
16040 ;;
Martin v. Löwiseba40652007-08-30 20:10:5716041 *)
Skip Montanaro6dead952003-09-25 14:50:0416042 ac_option=$1
16043 ac_optarg=$2
16044 ac_shift=shift
16045 ;;
Martin v. Löwis11437992002-04-12 09:54:0316046 esac
16047
Skip Montanaro6dead952003-09-25 14:50:0416048 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:0316049 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:0416050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16051 ac_cs_recheck=: ;;
Martin v. Löwiseba40652007-08-30 20:10:5716052 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Matthias Klosea0bea5d2010-05-08 10:00:2816053 $as_echo "$ac_cs_version"; exit ;;
16054 --config | --confi | --conf | --con | --co | --c )
16055 $as_echo "$ac_cs_config"; exit ;;
Martin v. Löwiseba40652007-08-30 20:10:5716056 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:0316057 debug=: ;;
16058 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:0416059 $ac_shift
Matthias Klosea0bea5d2010-05-08 10:00:2816060 case $ac_optarg in
16061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Georg Brandl71f4fbb2011-02-25 11:04:5016062 '') as_fn_error $? "missing file argument" ;;
Matthias Klosea0bea5d2010-05-08 10:00:2816063 esac
16064 as_fn_append CONFIG_FILES " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0316065 ac_need_defaults=false;;
16066 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:0416067 $ac_shift
Matthias Klosea0bea5d2010-05-08 10:00:2816068 case $ac_optarg in
16069 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16070 esac
16071 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0316072 ac_need_defaults=false;;
Martin v. Löwiseba40652007-08-30 20:10:5716073 --he | --h)
16074 # Conflict between --help and --header
Georg Brandl71f4fbb2011-02-25 11:04:5016075 as_fn_error $? "ambiguous option: \`$1'
Matthias Klosea0bea5d2010-05-08 10:00:2816076Try \`$0 --help' for more information.";;
Martin v. Löwiseba40652007-08-30 20:10:5716077 --help | --hel | -h )
Matthias Klosea0bea5d2010-05-08 10:00:2816078 $as_echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:0416079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16081 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:0316082
16083 # This is an error.
Georg Brandl71f4fbb2011-02-25 11:04:5016084 -*) as_fn_error $? "unrecognized option: \`$1'
Matthias Klosea0bea5d2010-05-08 10:00:2816085Try \`$0 --help' for more information." ;;
Martin v. Löwis11437992002-04-12 09:54:0316086
Matthias Klosea0bea5d2010-05-08 10:00:2816087 *) as_fn_append ac_config_targets " $1"
Martin v. Löwiseba40652007-08-30 20:10:5716088 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:0316089
16090 esac
16091 shift
16092done
16093
Skip Montanaro6dead952003-09-25 14:50:0416094ac_configure_extra_args=
16095
16096if $ac_cs_silent; then
16097 exec 6>/dev/null
16098 ac_configure_extra_args="$ac_configure_extra_args --silent"
16099fi
16100
16101_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Skip Montanaro6dead952003-09-25 14:50:0416103if \$ac_cs_recheck; then
Charles-François Natalibe2b9072013-01-08 18:47:0016104 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Matthias Klosea0bea5d2010-05-08 10:00:2816105 shift
16106 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16107 CONFIG_SHELL='$SHELL'
Martin v. Löwiseba40652007-08-30 20:10:5716108 export CONFIG_SHELL
Matthias Klosea0bea5d2010-05-08 10:00:2816109 exec "\$@"
Skip Montanaro6dead952003-09-25 14:50:0416110fi
16111
Martin v. Löwis11437992002-04-12 09:54:0316112_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:5716114exec 5>>config.log
16115{
16116 echo
16117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16118## Running $as_me. ##
16119_ASBOX
Matthias Klosea0bea5d2010-05-08 10:00:2816120 $as_echo "$ac_log"
Martin v. Löwiseba40652007-08-30 20:10:5716121} >&5
Martin v. Löwis11437992002-04-12 09:54:0316122
Martin v. Löwiseba40652007-08-30 20:10:5716123_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:5716125_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0316126
Matthias Klosea0bea5d2010-05-08 10:00:2816127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:5716128
16129# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:0316130for ac_config_target in $ac_config_targets
16131do
Martin v. Löwiseba40652007-08-30 20:10:5716132 case $ac_config_target in
16133 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
16134 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
16135 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
16136 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
Ronald Oussoren580c7fe2008-05-02 19:45:1116137 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
16138 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Martin v. Löwiseba40652007-08-30 20:10:5716139 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
16140 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
Antoine Pitrouf2caeed2009-05-24 20:23:5716141 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
Antoine Pitrouaabdceb2010-09-10 20:03:1716142 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
Martin v. Löwiseba40652007-08-30 20:10:5716143
Matthias Klose3cef2a92012-03-14 22:39:3316144 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Martin v. Löwis11437992002-04-12 09:54:0316145 esac
16146done
16147
Martin v. Löwiseba40652007-08-30 20:10:5716148
Martin v. Löwis11437992002-04-12 09:54:0316149# If the user did not use the arguments to specify the items to instantiate,
16150# then the envvar interface is used. Set only those that are not.
16151# We use the long form for the default assignment because of an extremely
16152# bizarre bug on SunOS 4.1.3.
16153if $ac_need_defaults; then
16154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16156fi
16157
Skip Montanaro6dead952003-09-25 14:50:0416158# Have a temporary directory for convenience. Make it in the build tree
Martin v. Löwiseba40652007-08-30 20:10:5716159# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:0416160# creating and moving files from /tmp can sometimes cause problems.
Martin v. Löwiseba40652007-08-30 20:10:5716161# Hook for its removal unless debugging.
16162# Note that there is a small window in which the directory will not be cleaned:
16163# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:0316164$debug ||
16165{
Matthias Klose3cef2a92012-03-14 22:39:3316166 tmp= ac_tmp=
Martin v. Löwiseba40652007-08-30 20:10:5716167 trap 'exit_status=$?
Matthias Klose3cef2a92012-03-14 22:39:3316168 : "${ac_tmp:=$tmp}"
16169 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Martin v. Löwiseba40652007-08-30 20:10:5716170' 0
Matthias Klosea0bea5d2010-05-08 10:00:2816171 trap 'as_fn_exit 1' 1 2 13 15
Martin v. Löwis11437992002-04-12 09:54:0316172}
Martin v. Löwis11437992002-04-12 09:54:0316173# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:0416174
Martin v. Löwis11437992002-04-12 09:54:0316175{
Martin v. Löwiseba40652007-08-30 20:10:5716176 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Matthias Klose3cef2a92012-03-14 22:39:3316177 test -d "$tmp"
Martin v. Löwis11437992002-04-12 09:54:0316178} ||
16179{
Martin v. Löwiseba40652007-08-30 20:10:5716180 tmp=./conf$$-$RANDOM
16181 (umask 077 && mkdir "$tmp")
Georg Brandl71f4fbb2011-02-25 11:04:5016182} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Matthias Klose3cef2a92012-03-14 22:39:3316183ac_tmp=$tmp
Martin v. Löwis11437992002-04-12 09:54:0316184
Matthias Klosea0bea5d2010-05-08 10:00:2816185# Set up the scripts for CONFIG_FILES section.
16186# No need to generate them if there are no CONFIG_FILES.
16187# This happens for instance with `./config.status config.h'.
Martin v. Löwiseba40652007-08-30 20:10:5716188if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:0316189
Matthias Klosea0bea5d2010-05-08 10:00:2816190
16191ac_cr=`echo X | tr X '\015'`
16192# On cygwin, bash can eat \r inside `` if the user requested igncr.
16193# But we know of no other shell where ac_cr would be empty at this
16194# point, so we can use a bashism as a fallback.
16195if test "x$ac_cr" = x; then
16196 eval ac_cr=\$\'\\r\'
16197fi
16198ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16199if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Georg Brandl71f4fbb2011-02-25 11:04:5016200 ac_cs_awk_cr='\\r'
Matthias Klosea0bea5d2010-05-08 10:00:2816201else
16202 ac_cs_awk_cr=$ac_cr
16203fi
16204
Matthias Klose3cef2a92012-03-14 22:39:3316205echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Martin v. Löwis11437992002-04-12 09:54:0316206_ACEOF
16207
Martin v. Löwiseba40652007-08-30 20:10:5716208
Matthias Klosea0bea5d2010-05-08 10:00:2816209{
16210 echo "cat >conf$$subs.awk <<_ACEOF" &&
16211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16212 echo "_ACEOF"
16213} >conf$$subs.sh ||
Georg Brandl71f4fbb2011-02-25 11:04:5016214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16215ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Martin v. Löwiseba40652007-08-30 20:10:5716216ac_delim='%!_!# '
16217for ac_last_try in false false false false false :; do
Matthias Klosea0bea5d2010-05-08 10:00:2816218 . ./conf$$subs.sh ||
Georg Brandl71f4fbb2011-02-25 11:04:5016219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Martin v. Löwiseba40652007-08-30 20:10:5716220
Matthias Klosea0bea5d2010-05-08 10:00:2816221 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16222 if test $ac_delim_n = $ac_delim_num; then
Martin v. Löwiseba40652007-08-30 20:10:5716223 break
16224 elif $ac_last_try; then
Georg Brandl71f4fbb2011-02-25 11:04:5016225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Martin v. Löwiseba40652007-08-30 20:10:5716226 else
16227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:0316228 fi
Martin v. Löwiseba40652007-08-30 20:10:5716229done
Matthias Klosea0bea5d2010-05-08 10:00:2816230rm -f conf$$subs.sh
Martin v. Löwiseba40652007-08-30 20:10:5716231
Matthias Klosea0bea5d2010-05-08 10:00:2816232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Matthias Klose3cef2a92012-03-14 22:39:3316233cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Martin v. Löwiseba40652007-08-30 20:10:5716234_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816235sed -n '
16236h
16237s/^/S["/; s/!.*/"]=/
16238p
16239g
16240s/^[^!]*!//
16241:repl
16242t repl
16243s/'"$ac_delim"'$//
16244t delim
16245:nl
16246h
16247s/\(.\{148\}\)..*/\1/
16248t more1
16249s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16250p
16251n
16252b repl
16253:more1
16254s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16255p
16256g
16257s/.\{148\}//
16258t nl
16259:delim
16260h
16261s/\(.\{148\}\)..*/\1/
16262t more2
16263s/["\\]/\\&/g; s/^/"/; s/$/"/
16264p
16265b
16266:more2
16267s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16268p
16269g
16270s/.\{148\}//
16271t delim
16272' <conf$$subs.awk | sed '
16273/^[^""]/{
16274 N
16275 s/\n//
16276}
16277' >>$CONFIG_STATUS || ac_write_fail=1
16278rm -f conf$$subs.awk
16279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16280_ACAWK
Matthias Klose3cef2a92012-03-14 22:39:3316281cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Matthias Klosea0bea5d2010-05-08 10:00:2816282 for (key in S) S_is_set[key] = 1
16283 FS = ""
16284
16285}
16286{
16287 line = $ 0
16288 nfields = split(line, field, "@")
16289 substed = 0
16290 len = length(field[1])
16291 for (i = 2; i < nfields; i++) {
16292 key = field[i]
16293 keylen = length(key)
16294 if (S_is_set[key]) {
16295 value = S[key]
16296 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16297 len += length(value) + length(field[++i])
16298 substed = 1
16299 } else
16300 len += 1 + keylen
16301 }
16302
16303 print line
16304}
16305
16306_ACAWK
Martin v. Löwiseba40652007-08-30 20:10:5716307_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16310 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16311else
16312 cat
Matthias Klose3cef2a92012-03-14 22:39:3316313fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Georg Brandl71f4fbb2011-02-25 11:04:5016314 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Vassalottibd7569b2009-07-17 23:09:0216315_ACEOF
16316
Georg Brandl71f4fbb2011-02-25 11:04:5016317# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16318# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Martin v. Löwiseba40652007-08-30 20:10:5716319# trailing colons and then remove the whole line if VPATH becomes empty
16320# (actually we leave an empty line to preserve line numbers).
16321if test "x$srcdir" = x.; then
Georg Brandl71f4fbb2011-02-25 11:04:5016322 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16323h
16324s///
16325s/^/:/
16326s/[ ]*$/:/
16327s/:\$(srcdir):/:/g
16328s/:\${srcdir}:/:/g
16329s/:@srcdir@:/:/g
16330s/^:*//
Martin v. Löwiseba40652007-08-30 20:10:5716331s/:*$//
Georg Brandl71f4fbb2011-02-25 11:04:5016332x
16333s/\(=[ ]*\).*/\1/
16334G
16335s/\n//
Martin v. Löwiseba40652007-08-30 20:10:5716336s/^[^=]*=[ ]*$//
16337}'
16338fi
16339
Matthias Klosea0bea5d2010-05-08 10:00:2816340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0316341fi # test -n "$CONFIG_FILES"
16342
Matthias Klosea0bea5d2010-05-08 10:00:2816343# Set up the scripts for CONFIG_HEADERS section.
16344# No need to generate them if there are no CONFIG_HEADERS.
16345# This happens for instance with `./config.status Makefile'.
16346if test -n "$CONFIG_HEADERS"; then
Matthias Klose3cef2a92012-03-14 22:39:3316347cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Matthias Klosea0bea5d2010-05-08 10:00:2816348BEGIN {
16349_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:5716350
Matthias Klosea0bea5d2010-05-08 10:00:2816351# Transform confdefs.h into an awk script `defines.awk', embedded as
16352# here-document in config.status, that substitutes the proper values into
16353# config.h.in to produce config.h.
16354
16355# Create a delimiter string that does not exist in confdefs.h, to ease
16356# handling of long lines.
16357ac_delim='%!_!# '
16358for ac_last_try in false false :; do
Matthias Klose3cef2a92012-03-14 22:39:3316359 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16360 if test -z "$ac_tt"; then
Matthias Klosea0bea5d2010-05-08 10:00:2816361 break
16362 elif $ac_last_try; then
Georg Brandl71f4fbb2011-02-25 11:04:5016363 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Matthias Klosea0bea5d2010-05-08 10:00:2816364 else
16365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16366 fi
16367done
16368
16369# For the awk script, D is an array of macro values keyed by name,
16370# likewise P contains macro parameters if any. Preserve backslash
16371# newline sequences.
16372
16373ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16374sed -n '
16375s/.\{148\}/&'"$ac_delim"'/g
16376t rset
16377:rset
16378s/^[ ]*#[ ]*define[ ][ ]*/ /
16379t def
16380d
16381:def
16382s/\\$//
16383t bsnl
16384s/["\\]/\\&/g
16385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16386D["\1"]=" \3"/p
16387s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16388d
16389:bsnl
16390s/["\\]/\\&/g
16391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16392D["\1"]=" \3\\\\\\n"\\/p
16393t cont
16394s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16395t cont
16396d
16397:cont
16398n
16399s/.\{148\}/&'"$ac_delim"'/g
16400t clear
16401:clear
16402s/\\$//
16403t bsnlc
16404s/["\\]/\\&/g; s/^/"/; s/$/"/p
16405d
16406:bsnlc
16407s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16408b cont
16409' <confdefs.h | sed '
16410s/'"$ac_delim"'/"\\\
16411"/g' >>$CONFIG_STATUS || ac_write_fail=1
16412
16413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414 for (key in D) D_is_set[key] = 1
16415 FS = ""
16416}
16417/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16418 line = \$ 0
16419 split(line, arg, " ")
16420 if (arg[1] == "#") {
16421 defundef = arg[2]
16422 mac1 = arg[3]
16423 } else {
16424 defundef = substr(arg[1], 2)
16425 mac1 = arg[2]
16426 }
16427 split(mac1, mac2, "(") #)
16428 macro = mac2[1]
16429 prefix = substr(line, 1, index(line, defundef) - 1)
16430 if (D_is_set[macro]) {
16431 # Preserve the white space surrounding the "#".
16432 print prefix "define", macro P[macro] D[macro]
16433 next
16434 } else {
16435 # Replace #undef with comments. This is necessary, for example,
16436 # in the case of _POSIX_SOURCE, which is predefined and required
16437 # on some systems where configure will not decide to define it.
16438 if (defundef == "undef") {
16439 print "/*", prefix defundef, macro, "*/"
16440 next
16441 }
16442 }
16443}
16444{ print }
16445_ACAWK
16446_ACEOF
16447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Georg Brandl71f4fbb2011-02-25 11:04:5016448 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Matthias Klosea0bea5d2010-05-08 10:00:2816449fi # test -n "$CONFIG_HEADERS"
16450
16451
16452eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16453shift
16454for ac_tag
Martin v. Löwiseba40652007-08-30 20:10:5716455do
16456 case $ac_tag in
16457 :[FHLC]) ac_mode=$ac_tag; continue;;
16458 esac
16459 case $ac_mode$ac_tag in
16460 :[FHL]*:*);;
Matthias Klose3cef2a92012-03-14 22:39:3316461 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Martin v. Löwiseba40652007-08-30 20:10:5716462 :[FH]-) ac_tag=-:-;;
16463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16464 esac
16465 ac_save_IFS=$IFS
16466 IFS=:
16467 set x $ac_tag
16468 IFS=$ac_save_IFS
16469 shift
16470 ac_file=$1
16471 shift
16472
16473 case $ac_mode in
16474 :L) ac_source=$1;;
16475 :[FH])
16476 ac_file_inputs=
16477 for ac_f
16478 do
16479 case $ac_f in
Matthias Klose3cef2a92012-03-14 22:39:3316480 -) ac_f="$ac_tmp/stdin";;
Martin v. Löwiseba40652007-08-30 20:10:5716481 *) # Look for the file first in the build tree, then in the source tree
16482 # (if the path is not absolute). The absolute path cannot be DOS-style,
16483 # because $ac_f cannot contain `:'.
16484 test -f "$ac_f" ||
16485 case $ac_f in
16486 [\\/$]*) false;;
16487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16488 esac ||
Matthias Klose3cef2a92012-03-14 22:39:3316489 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Martin v. Löwiseba40652007-08-30 20:10:5716490 esac
Matthias Klosea0bea5d2010-05-08 10:00:2816491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16492 as_fn_append ac_file_inputs " '$ac_f'"
Martin v. Löwiseba40652007-08-30 20:10:5716493 done
16494
16495 # Let's still pretend it is `configure' which instantiates (i.e., don't
16496 # use $as_me), people would be surprised to read:
16497 # /* config.h. Generated by config.status. */
Matthias Klosea0bea5d2010-05-08 10:00:2816498 configure_input='Generated from '`
16499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16500 `' by configure.'
Martin v. Löwiseba40652007-08-30 20:10:5716501 if test x"$ac_file" != x-; then
16502 configure_input="$ac_file. $configure_input"
Matthias Klosea0bea5d2010-05-08 10:00:2816503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16504$as_echo "$as_me: creating $ac_file" >&6;}
Martin v. Löwiseba40652007-08-30 20:10:5716505 fi
Matthias Klosea0bea5d2010-05-08 10:00:2816506 # Neutralize special characters interpreted by sed in replacement strings.
16507 case $configure_input in #(
16508 *\&* | *\|* | *\\* )
16509 ac_sed_conf_input=`$as_echo "$configure_input" |
16510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16511 *) ac_sed_conf_input=$configure_input;;
16512 esac
Martin v. Löwiseba40652007-08-30 20:10:5716513
16514 case $ac_tag in
Matthias Klose3cef2a92012-03-14 22:39:3316515 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Martin v. Löwiseba40652007-08-30 20:10:5716517 esac
16518 ;;
Martin v. Löwis11437992002-04-12 09:54:0316519 esac
16520
Martin v. Löwiseba40652007-08-30 20:10:5716521 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:0316522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:2316523 X"$ac_file" : 'X\(//\)[^/]' \| \
16524 X"$ac_file" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:5716525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Klosea0bea5d2010-05-08 10:00:2816526$as_echo X"$ac_file" |
Martin v. Löwiseba40652007-08-30 20:10:5716527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\(\/\/\)[^/].*/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)$/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\).*/{
16540 s//\1/
16541 q
16542 }
16543 s/.*/./; q'`
Matthias Klosea0bea5d2010-05-08 10:00:2816544 as_dir="$ac_dir"; as_fn_mkdir_p
Martin v. Löwis11437992002-04-12 09:54:0316545 ac_builddir=.
16546
Martin v. Löwiseba40652007-08-30 20:10:5716547case "$ac_dir" in
16548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16549*)
Matthias Klosea0bea5d2010-05-08 10:00:2816550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Martin v. Löwiseba40652007-08-30 20:10:5716551 # A ".." for each directory in $ac_dir_suffix.
Matthias Klosea0bea5d2010-05-08 10:00:2816552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Martin v. Löwiseba40652007-08-30 20:10:5716553 case $ac_top_builddir_sub in
16554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16556 esac ;;
16557esac
16558ac_abs_top_builddir=$ac_pwd
16559ac_abs_builddir=$ac_pwd$ac_dir_suffix
16560# for backward compatibility:
16561ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:0316562
16563case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:5716564 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:0316565 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:5716566 ac_top_srcdir=$ac_top_builddir_sub
16567 ac_abs_top_srcdir=$ac_pwd ;;
16568 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:0316569 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:5716570 ac_top_srcdir=$srcdir
16571 ac_abs_top_srcdir=$srcdir ;;
16572 *) # Relative name.
16573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16574 ac_top_srcdir=$ac_top_build_prefix$srcdir
16575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:0316576esac
Martin v. Löwiseba40652007-08-30 20:10:5716577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:2316578
Martin v. Löwis11437992002-04-12 09:54:0316579
Martin v. Löwiseba40652007-08-30 20:10:5716580 case $ac_mode in
16581 :F)
16582 #
16583 # CONFIG_FILE
16584 #
Martin v. Löwis11437992002-04-12 09:54:0316585
16586 case $INSTALL in
16587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Martin v. Löwiseba40652007-08-30 20:10:5716588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:0316589 esac
Trent Nelsonf6407a12012-08-30 14:56:1316590 ac_MKDIR_P=$MKDIR_P
16591 case $MKDIR_P in
16592 [\\/$]* | ?:[\\/]* ) ;;
16593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16594 esac
Brett Cannon19fab762007-06-02 03:02:2916595_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:5716596
Matthias Klosea0bea5d2010-05-08 10:00:2816597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:5716598# If the template does not know about datarootdir, expand it.
16599# FIXME: This hack should be removed a few years after 2.60.
16600ac_datarootdir_hack=; ac_datarootdir_seen=
Matthias Klosea0bea5d2010-05-08 10:00:2816601ac_sed_dataroot='
16602/datarootdir/ {
Martin v. Löwiseba40652007-08-30 20:10:5716603 p
16604 q
16605}
16606/@datadir@/p
16607/@docdir@/p
16608/@infodir@/p
16609/@localedir@/p
Matthias Klosea0bea5d2010-05-08 10:00:2816610/@mandir@/p'
16611case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Martin v. Löwiseba40652007-08-30 20:10:5716612*datarootdir*) ac_datarootdir_seen=yes;;
16613*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Matthias Klosea0bea5d2010-05-08 10:00:2816614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16615$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:5716616_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:5716618 ac_datarootdir_hack='
16619 s&@datadir@&$datadir&g
16620 s&@docdir@&$docdir&g
16621 s&@infodir@&$infodir&g
16622 s&@localedir@&$localedir&g
16623 s&@mandir@&$mandir&g
Matthias Klosea0bea5d2010-05-08 10:00:2816624 s&\\\${datarootdir}&$datarootdir&g' ;;
Martin v. Löwiseba40652007-08-30 20:10:5716625esac
16626_ACEOF
16627
16628# Neutralize VPATH when `$srcdir' = `.'.
16629# Shell code in configure.ac might set extrasub.
16630# FIXME: do we really want to maintain this feature?
Matthias Klosea0bea5d2010-05-08 10:00:2816631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16632ac_sed_extra="$ac_vpsub
Martin v. Löwis11437992002-04-12 09:54:0316633$extrasub
16634_ACEOF
Matthias Klosea0bea5d2010-05-08 10:00:2816635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0316636:t
16637/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Matthias Klosea0bea5d2010-05-08 10:00:2816638s|@configure_input@|$ac_sed_conf_input|;t t
Martin v. Löwiseba40652007-08-30 20:10:5716639s&@top_builddir@&$ac_top_builddir_sub&;t t
Matthias Klosea0bea5d2010-05-08 10:00:2816640s&@top_build_prefix@&$ac_top_build_prefix&;t t
Martin v. Löwiseba40652007-08-30 20:10:5716641s&@srcdir@&$ac_srcdir&;t t
16642s&@abs_srcdir@&$ac_abs_srcdir&;t t
16643s&@top_srcdir@&$ac_top_srcdir&;t t
16644s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16645s&@builddir@&$ac_builddir&;t t
16646s&@abs_builddir@&$ac_abs_builddir&;t t
16647s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16648s&@INSTALL@&$ac_INSTALL&;t t
Trent Nelsonf6407a12012-08-30 14:56:1316649s&@MKDIR_P@&$ac_MKDIR_P&;t t
Martin v. Löwiseba40652007-08-30 20:10:5716650$ac_datarootdir_hack
Matthias Klosea0bea5d2010-05-08 10:00:2816651"
Matthias Klose3cef2a92012-03-14 22:39:3316652eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16653 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:5416654
Martin v. Löwiseba40652007-08-30 20:10:5716655test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Matthias Klose3cef2a92012-03-14 22:39:3316656 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16658 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Matthias Klosea0bea5d2010-05-08 10:00:2816659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Georg Brandl71f4fbb2011-02-25 11:04:5016660which seems to be undefined. Please make sure it is defined" >&5
Matthias Klosea0bea5d2010-05-08 10:00:2816661$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Georg Brandl71f4fbb2011-02-25 11:04:5016662which seems to be undefined. Please make sure it is defined" >&2;}
Guido van Rossum76be6ed1995-01-02 18:33:5416663
Matthias Klose3cef2a92012-03-14 22:39:3316664 rm -f "$ac_tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:0316665 case $ac_file in
Matthias Klose3cef2a92012-03-14 22:39:3316666 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16667 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Matthias Klosea0bea5d2010-05-08 10:00:2816668 esac \
Georg Brandl71f4fbb2011-02-25 11:04:5016669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Martin v. Löwiseba40652007-08-30 20:10:5716670 ;;
16671 :H)
16672 #
16673 # CONFIG_HEADER
16674 #
Martin v. Löwis11437992002-04-12 09:54:0316675 if test x"$ac_file" != x-; then
Matthias Klosea0bea5d2010-05-08 10:00:2816676 {
16677 $as_echo "/* $configure_input */" \
Matthias Klose3cef2a92012-03-14 22:39:3316678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16679 } >"$ac_tmp/config.h" \
Georg Brandl71f4fbb2011-02-25 11:04:5016680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Matthias Klose3cef2a92012-03-14 22:39:3316681 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Matthias Klosea0bea5d2010-05-08 10:00:2816682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16683$as_echo "$as_me: $ac_file is unchanged" >&6;}
Martin v. Löwis11437992002-04-12 09:54:0316684 else
Matthias Klosea0bea5d2010-05-08 10:00:2816685 rm -f "$ac_file"
Matthias Klose3cef2a92012-03-14 22:39:3316686 mv "$ac_tmp/config.h" "$ac_file" \
Georg Brandl71f4fbb2011-02-25 11:04:5016687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0316688 fi
16689 else
Matthias Klosea0bea5d2010-05-08 10:00:2816690 $as_echo "/* $configure_input */" \
Matthias Klose3cef2a92012-03-14 22:39:3316691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Georg Brandl71f4fbb2011-02-25 11:04:5016692 || as_fn_error $? "could not create -" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0316693 fi
Martin v. Löwiseba40652007-08-30 20:10:5716694 ;;
Guido van Rossum7f43da71994-08-01 12:15:3016695
Martin v. Löwiseba40652007-08-30 20:10:5716696
16697 esac
16698
Antoine Pitrouaabdceb2010-09-10 20:03:1716699
16700 case $ac_file$ac_mode in
16701 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
16702
16703 esac
Martin v. Löwiseba40652007-08-30 20:10:5716704done # for ac_tag
16705
Guido van Rossum627b2d71993-12-24 10:39:1616706
Matthias Klosea0bea5d2010-05-08 10:00:2816707as_fn_exit 0
Martin v. Löwis11437992002-04-12 09:54:0316708_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0316709ac_clean_files=$ac_clean_files_save
16710
Matthias Klosea0bea5d2010-05-08 10:00:2816711test $ac_write_fail = 0 ||
Georg Brandl71f4fbb2011-02-25 11:04:5016712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Matthias Klosea0bea5d2010-05-08 10:00:2816713
Martin v. Löwis11437992002-04-12 09:54:0316714
16715# configure is writing to config.log, and then calls config.status.
16716# config.status does its own redirection, appending to config.log.
16717# Unfortunately, on DOS this fails, as config.log is still kept open
16718# by configure, so config.status won't be able to write to it; its
16719# output is simply discarded. So we exec the FD to /dev/null,
16720# effectively closing config.log, so it can be properly (re)opened and
16721# appended to by config.status. When coming back to configure, we
16722# need to make the FD available again.
16723if test "$no_create" != yes; then
16724 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:0416725 ac_config_status_args=
16726 test "$silent" = yes &&
16727 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:0316728 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:0416729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:0316730 exec 5>>config.log
16731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16732 # would make configure fail if this is the last instruction.
Georg Brandl71f4fbb2011-02-25 11:04:5016733 $ac_cs_success || as_fn_exit 1
Matthias Klosea0bea5d2010-05-08 10:00:2816734fi
16735if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16737$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Martin v. Löwis11437992002-04-12 09:54:0316738fi
Guido van Rossum627b2d71993-12-24 10:39:1616739
Neil Schemenauer3ecf0aa2001-01-26 16:15:2016740
Martin v. Löwisf7afe952006-04-14 15:16:1516741echo "creating Modules/Setup"
Neil Schemenauer3ecf0aa2001-01-26 16:15:2016742if test ! -f Modules/Setup
16743then
16744 cp $srcdir/Modules/Setup.dist Modules/Setup
16745fi
16746
Martin v. Löwisf7afe952006-04-14 15:16:1516747echo "creating Modules/Setup.local"
Neil Schemenauer3ecf0aa2001-01-26 16:15:2016748if test ! -f Modules/Setup.local
16749then
16750 echo "# Edit this file for local setup changes" >Modules/Setup.local
16751fi
16752
16753echo "creating Makefile"
16754$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
16755 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:1616756 Modules/Setup.local Modules/Setup
Skip Montanaro89e975f2007-08-22 19:05:2116757
16758case $ac_sys_system in
16759BeOS)
Matthias Klosea0bea5d2010-05-08 10:00:2816760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Skip Montanaro89e975f2007-08-22 19:05:2116761
16762 Support for BeOS is deprecated as of Python 2.6.
16763 See PEP 11 for the gory details.
16764 " >&5
Matthias Klosea0bea5d2010-05-08 10:00:2816765$as_echo "$as_me: WARNING:
Skip Montanaro89e975f2007-08-22 19:05:2116766
16767 Support for BeOS is deprecated as of Python 2.6.
16768 See PEP 11 for the gory details.
16769 " >&2;}
16770 ;;
16771*) ;;
16772esac
16773
Neil Schemenauerc761fc82001-02-19 04:50:4916774mv config.c Modules
Gregory P. Smith6d8fdfc2016-09-08 06:28:2316775
16776if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
16777 echo "" >&6
16778 echo "" >&6
16779 echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)b9999152016-11-20 21:19:3616780 echo "please run ./configure --enable-optimizations" >&6
Gregory P. Smith6d8fdfc2016-09-08 06:28:2316781 echo "" >&6
16782 echo "" >&6
16783fi