Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.8. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4 | # |
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 5 | # Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 6 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7 | # |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9 | # |
10 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | ||||
15 | ## -------------------- ## | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 20 | emulate sh |
21 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 26 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | ||||
29 | set -o posix ;; #( | ||||
30 | *) : | ||||
31 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 32 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 33 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 34 | |
35 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 36 | as_nl=' |
37 | ' | ||||
38 | export as_nl | ||||
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||||
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
44 | # but without wasting forks for bash or zsh. | ||||
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
47 | as_echo='print -r --' | ||||
48 | as_echo_n='print -rn --' | ||||
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
50 | as_echo='printf %s\n' | ||||
51 | as_echo_n='printf %s' | ||||
52 | else | ||||
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
55 | as_echo_n='/usr/ucb/echo -n' | ||||
56 | else | ||||
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
58 | as_echo_n_body='eval | ||||
59 | arg=$1; | ||||
60 | case $arg in #( | ||||
61 | *"$as_nl"*) | ||||
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
64 | esac; | ||||
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
66 | ' | ||||
67 | export as_echo_n_body | ||||
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
69 | fi | ||||
70 | export as_echo_body | ||||
71 | as_echo='sh -c $as_echo_body as_echo' | ||||
72 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 73 | |
74 | # The user is always right. | ||||
75 | if test "${PATH_SEPARATOR+set}" != set; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
79 | PATH_SEPARATOR=';' | ||||
80 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 81 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 82 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 83 | |
84 | # IFS | ||||
85 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
86 | # there to prevent editors from complaining about space-tab. | ||||
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
88 | # splitting by setting IFS to empty value.) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
90 | |||||
91 | # Find who we are. Look in the path if we contain no directory separator. | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 92 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 93 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 96 | for as_dir in $PATH |
97 | do | ||||
98 | IFS=$as_save_IFS | ||||
99 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 104 | ;; |
105 | esac | ||||
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
107 | # in which case we are not to be found in the path. | ||||
108 | if test "x$as_myself" = x; then | ||||
109 | as_myself=$0 | ||||
110 | fi | ||||
111 | if test ! -f "$as_myself"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | exit 1 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 114 | fi |
115 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
118 | # suppresses any "Segmentation fault" message there. '((' could | ||||
119 | # trigger a bug in pdksh 5.2.14. | ||||
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
121 | do eval test x\${$as_var+set} = xset \ | ||||
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 123 | done |
124 | PS1='$ ' | ||||
125 | PS2='> ' | ||||
126 | PS4='+ ' | ||||
127 | |||||
128 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 129 | LC_ALL=C |
130 | export LC_ALL | ||||
131 | LANGUAGE=C | ||||
132 | export LANGUAGE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
136 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | ||||
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | ||||
140 | _as_can_reexec=no; export _as_can_reexec; | ||||
141 | # We cannot yet assume a decent shell, so we have to provide a | ||||
142 | # neutralization value for shells without unset; and this also | ||||
143 | # works around shells that cannot unset nonexistent variables. | ||||
144 | # Preserve -v and -x to the replacement shell. | ||||
145 | BASH_ENV=/dev/null | ||||
146 | ENV=/dev/null | ||||
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||||
148 | case $- in # (((( | ||||
149 | *v*x* | *x*v* ) as_opts=-vx ;; | ||||
150 | *v* ) as_opts=-v ;; | ||||
151 | *x* ) as_opts=-x ;; | ||||
152 | * ) as_opts= ;; | ||||
153 | esac | ||||
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||||
155 | # Admittedly, this is quite paranoid, since all the known shells bail | ||||
156 | # out after a failed `exec'. | ||||
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||||
158 | as_fn_exit 255 | ||||
159 | fi | ||||
160 | # We don't want this to propagate to other subprocesses. | ||||
161 | { _as_can_reexec=; unset _as_can_reexec;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||||
164 | emulate sh | ||||
165 | NULLCMD=: | ||||
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||||
167 | # is contrary to our usage. Disable this feature. | ||||
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||||
169 | setopt NO_GLOB_SUBST | ||||
170 | else | ||||
171 | case \`(set -o) 2>/dev/null\` in #( | ||||
172 | *posix*) : | ||||
173 | set -o posix ;; #( | ||||
174 | *) : | ||||
175 | ;; | ||||
176 | esac | ||||
177 | fi | ||||
178 | " | ||||
179 | as_required="as_fn_return () { (exit \$1); } | ||||
180 | as_fn_success () { as_fn_return 0; } | ||||
181 | as_fn_failure () { as_fn_return 1; } | ||||
182 | as_fn_ret_success () { return 0; } | ||||
183 | as_fn_ret_failure () { return 1; } | ||||
184 | |||||
185 | exitcode=0 | ||||
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||||
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||||
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||||
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||||
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||||
191 | |||||
192 | else | ||||
193 | exitcode=1; echo positional parameters were not saved. | ||||
194 | fi | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||||
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||||
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||||
201 | test \$(( 1 + 1 )) = 2 || exit 1" | ||||
202 | if (eval "$as_required") 2>/dev/null; then : | ||||
203 | as_have_required=yes | ||||
204 | else | ||||
205 | as_have_required=no | ||||
206 | fi | ||||
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||||
208 | |||||
209 | else | ||||
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
211 | as_found=false | ||||
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||||
213 | do | ||||
214 | IFS=$as_save_IFS | ||||
215 | test -z "$as_dir" && as_dir=. | ||||
216 | as_found=: | ||||
217 | case $as_dir in #( | ||||
218 | /*) | ||||
219 | for as_base in sh bash ksh sh5; do | ||||
220 | # Try only shells that exist, to save several forks. | ||||
221 | as_shell=$as_dir/$as_base | ||||
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||||
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||||
224 | CONFIG_SHELL=$as_shell as_have_required=yes | ||||
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||||
226 | break 2 | ||||
227 | fi | ||||
228 | fi | ||||
229 | done;; | ||||
230 | esac | ||||
231 | as_found=false | ||||
232 | done | ||||
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||||
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||||
235 | CONFIG_SHELL=$SHELL as_have_required=yes | ||||
236 | fi; } | ||||
237 | IFS=$as_save_IFS | ||||
238 | |||||
239 | |||||
240 | if test "x$CONFIG_SHELL" != x; then : | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | ||||
243 | # neutralization value for shells without unset; and this also | ||||
244 | # works around shells that cannot unset nonexistent variables. | ||||
245 | # Preserve -v and -x to the replacement shell. | ||||
246 | BASH_ENV=/dev/null | ||||
247 | ENV=/dev/null | ||||
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||||
249 | case $- in # (((( | ||||
250 | *v*x* | *x*v* ) as_opts=-vx ;; | ||||
251 | *v* ) as_opts=-v ;; | ||||
252 | *x* ) as_opts=-x ;; | ||||
253 | * ) as_opts= ;; | ||||
254 | esac | ||||
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||||
256 | # Admittedly, this is quite paranoid, since all the known shells bail | ||||
257 | # out after a failed `exec'. | ||||
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||||
259 | exit 255 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 260 | fi |
261 | |||||
262 | if test x$as_have_required = xno; then : | ||||
263 | $as_echo "$0: This script requires a shell more modern than all" | ||||
264 | $as_echo "$0: the shells that I found on your system." | ||||
265 | if test x${ZSH_VERSION+set} = xset ; then | ||||
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||||
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||||
268 | else | ||||
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 271 | $0: any error possibly output before this message. Then |
272 | $0: install a modern shell, or manually run the script | ||||
273 | $0: under such a shell if you do have one." | ||||
274 | fi | ||||
275 | exit 1 | ||||
276 | fi | ||||
277 | fi | ||||
278 | fi | ||||
279 | SHELL=${CONFIG_SHELL-/bin/sh} | ||||
280 | export SHELL | ||||
281 | # Unset more variables known to interfere with behavior of common tools. | ||||
282 | CLICOLOR_FORCE= GREP_OPTIONS= | ||||
283 | unset CLICOLOR_FORCE GREP_OPTIONS | ||||
284 | |||||
285 | ## --------------------- ## | ||||
286 | ## M4sh Shell Functions. ## | ||||
287 | ## --------------------- ## | ||||
288 | # as_fn_unset VAR | ||||
289 | # --------------- | ||||
290 | # Portably unset VAR. | ||||
291 | as_fn_unset () | ||||
292 | { | ||||
293 | { eval $1=; unset $1;} | ||||
294 | } | ||||
295 | as_unset=as_fn_unset | ||||
296 | |||||
297 | # as_fn_set_status STATUS | ||||
298 | # ----------------------- | ||||
299 | # Set $? to STATUS, without forking. | ||||
300 | as_fn_set_status () | ||||
301 | { | ||||
302 | return $1 | ||||
303 | } # as_fn_set_status | ||||
304 | |||||
305 | # as_fn_exit STATUS | ||||
306 | # ----------------- | ||||
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
308 | as_fn_exit () | ||||
309 | { | ||||
310 | set +e | ||||
311 | as_fn_set_status $1 | ||||
312 | exit $1 | ||||
313 | } # as_fn_exit | ||||
314 | |||||
315 | # as_fn_mkdir_p | ||||
316 | # ------------- | ||||
317 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
318 | as_fn_mkdir_p () | ||||
319 | { | ||||
320 | |||||
321 | case $as_dir in #( | ||||
322 | -*) as_dir=./$as_dir;; | ||||
323 | esac | ||||
324 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
325 | as_dirs= | ||||
326 | while :; do | ||||
327 | case $as_dir in #( | ||||
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||||
329 | *) as_qdir=$as_dir;; | ||||
330 | esac | ||||
331 | as_dirs="'$as_qdir' $as_dirs" | ||||
332 | as_dir=`$as_dirname -- "$as_dir" || | ||||
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
335 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
337 | $as_echo X"$as_dir" | | ||||
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||||
339 | s//\1/ | ||||
340 | q | ||||
341 | } | ||||
342 | /^X\(\/\/\)[^/].*/{ | ||||
343 | s//\1/ | ||||
344 | q | ||||
345 | } | ||||
346 | /^X\(\/\/\)$/{ | ||||
347 | s//\1/ | ||||
348 | q | ||||
349 | } | ||||
350 | /^X\(\/\).*/{ | ||||
351 | s//\1/ | ||||
352 | q | ||||
353 | } | ||||
354 | s/.*/./; q'` | ||||
355 | test -d "$as_dir" && break | ||||
356 | done | ||||
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 359 | |
360 | |||||
361 | } # as_fn_mkdir_p | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 362 | |
363 | # as_fn_executable_p FILE | ||||
364 | # ----------------------- | ||||
365 | # Test if FILE is an executable regular file. | ||||
366 | as_fn_executable_p () | ||||
367 | { | ||||
368 | test -f "$1" && test -x "$1" | ||||
369 | } # as_fn_executable_p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | ||||
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
373 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
374 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
375 | # implementations. | ||||
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||||
377 | eval 'as_fn_append () | ||||
378 | { | ||||
379 | eval $1+=\$2 | ||||
380 | }' | ||||
381 | else | ||||
382 | as_fn_append () | ||||
383 | { | ||||
384 | eval $1=\$$1\$2 | ||||
385 | } | ||||
386 | fi # as_fn_append | ||||
387 | |||||
388 | # as_fn_arith ARG... | ||||
389 | # ------------------ | ||||
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
392 | # must be portable across $(()) and expr. | ||||
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||||
394 | eval 'as_fn_arith () | ||||
395 | { | ||||
396 | as_val=$(( $* )) | ||||
397 | }' | ||||
398 | else | ||||
399 | as_fn_arith () | ||||
400 | { | ||||
401 | as_val=`expr "$@" || test $? -eq 1` | ||||
402 | } | ||||
403 | fi # as_fn_arith | ||||
404 | |||||
405 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 411 | as_fn_error () |
412 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | ||||
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 417 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 419 | as_fn_exit $as_status |
420 | } # as_fn_error | ||||
421 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
424 | as_expr=expr | ||||
425 | else | ||||
426 | as_expr=false | ||||
427 | fi | ||||
428 | |||||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
430 | as_basename=basename | ||||
431 | else | ||||
432 | as_basename=false | ||||
433 | fi | ||||
434 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | ||||
437 | else | ||||
438 | as_dirname=false | ||||
439 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
443 | X"$0" : 'X\(//\)$' \| \ | ||||
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 445 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | ||||
448 | q | ||||
449 | } | ||||
450 | /^X\/\(\/\/\)$/{ | ||||
451 | s//\1/ | ||||
452 | q | ||||
453 | } | ||||
454 | /^X\/\(\/\).*/{ | ||||
455 | s//\1/ | ||||
456 | q | ||||
457 | } | ||||
458 | s/.*/./; q'` | ||||
459 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
464 | as_cr_digits='0123456789' | ||||
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 466 | |
467 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||||
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||||
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||||
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 473 | sed -n ' |
474 | p | ||||
475 | /[$]LINENO/= | ||||
476 | ' <$as_myself | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 477 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
479 | t lineno | ||||
480 | b | ||||
481 | :lineno | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 482 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 483 | :loop |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 485 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 486 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 487 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 490 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | ||||
493 | # in an infinite loop. This has already happened in practice. | ||||
494 | _as_can_reexec=no; export _as_can_reexec | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
498 | . "./$as_me.lineno" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 499 | # Exit status is that of the last command. |
500 | exit | ||||
501 | } | ||||
502 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 505 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
510 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 511 | esac;; |
512 | *) | ||||
513 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 514 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
518 | rm -f conf$$.dir/conf$$.file | ||||
519 | else | ||||
520 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 522 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
525 | as_ln_s='ln -s' | ||||
526 | # ... but there are two gotchas: | ||||
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | ||||
534 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 537 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 539 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 542 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 547 | as_mkdir_p=false |
548 | fi | ||||
549 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 552 | |
553 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 555 | |
556 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 558 | |
559 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 562 | |
563 | # Name of the host. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
567 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 568 | # |
569 | # Initializations. | ||||
570 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 571 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 572 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 574 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 575 | cross_compiling=no |
576 | subdirs= | ||||
577 | MFLAGS= | ||||
578 | MAKEFLAGS= | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 580 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 581 | PACKAGE_NAME='python' |
582 | PACKAGE_TARNAME='python' | ||||
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 583 | PACKAGE_VERSION='3.8' |
584 | PACKAGE_STRING='python 3.8' | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 587 | |
588 | ac_unique_file="Include/object.h" | ||||
589 | # Factoring default headers for most tests. | ||||
590 | ac_includes_default="\ | ||||
591 | #include <stdio.h> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 593 | # include <sys/types.h> |
594 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 596 | # include <sys/stat.h> |
597 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 599 | # include <stdlib.h> |
600 | # include <stddef.h> | ||||
601 | #else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 603 | # include <stdlib.h> |
604 | # endif | ||||
605 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 608 | # include <memory.h> |
609 | # endif | ||||
610 | # include <string.h> | ||||
611 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 613 | # include <strings.h> |
614 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H |
619 | # include <stdint.h> | ||||
620 | #endif | ||||
621 | #ifdef HAVE_UNISTD_H | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 622 | # include <unistd.h> |
623 | #endif" | ||||
624 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 626 | OPENSSL_LDFLAGS |
627 | OPENSSL_LIBS | ||||
628 | OPENSSL_INCLUDES | ||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 629 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 630 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 631 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 632 | LIBPL |
633 | PY_ENABLE_SHARED | ||||
xdegaye | 254b309 | 2019-04-29 07:27:40 | [diff] [blame] | 634 | LIBPYTHON |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 635 | EXT_SUFFIX |
Victor Stinner | 5422e3c | 2019-04-25 23:40:00 | [diff] [blame] | 636 | ALT_SOABI |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 637 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 638 | LIBC |
639 | LIBM | ||||
640 | HAVE_GETHOSTBYNAME | ||||
641 | HAVE_GETHOSTBYNAME_R | ||||
642 | HAVE_GETHOSTBYNAME_R_3_ARG | ||||
643 | HAVE_GETHOSTBYNAME_R_5_ARG | ||||
644 | HAVE_GETHOSTBYNAME_R_6_ARG | ||||
645 | LIBOBJS | ||||
646 | TRUE | ||||
647 | MACHDEP_OBJS | ||||
648 | DYNLOADFILE | ||||
649 | DLINCLDIR | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 650 | DTRACE_OBJS |
651 | DTRACE_HEADERS | ||||
652 | DFLAGS | ||||
653 | DTRACE | ||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 654 | TCLTK_LIBS |
655 | TCLTK_INCLUDES | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 656 | LIBFFI_INCLUDEDIR |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 06:37:08 | [diff] [blame] | 657 | PKG_CONFIG_LIBDIR |
658 | PKG_CONFIG_PATH | ||||
659 | PKG_CONFIG | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 660 | SHLIBS |
661 | CFLAGSFORSHARED | ||||
662 | LINKFORSHARED | ||||
663 | CCSHARED | ||||
664 | BLDSHARED | ||||
665 | LDCXXSHARED | ||||
666 | LDSHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 667 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 668 | LIBTOOL_CRUFT |
669 | OTHER_LIBTOOL_OPT | ||||
670 | UNIVERSAL_ARCH_FLAGS | ||||
stratakis | cf10a75 | 2018-12-19 17:19:01 | [diff] [blame] | 671 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-10 03:01:49 | [diff] [blame] | 672 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 673 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 13:07:10 | [diff] [blame] | 674 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 675 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 676 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 677 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 678 | LLVM_PROF_ERR |
679 | LLVM_PROF_FILE | ||||
680 | LLVM_PROF_MERGER | ||||
681 | PGO_PROF_USE_FLAG | ||||
682 | PGO_PROF_GEN_FLAG | ||||
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 683 | LLVM_AR_FOUND |
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 684 | LLVM_AR |
Miss Islington (bot) | 2406672 | 2019-07-22 20:17:23 | [diff] [blame] | 685 | PROFILE_TASK |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 686 | DEF_MAKE_RULE |
687 | DEF_MAKE_ALL_RULE | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 688 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 689 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 690 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 691 | INSTALL_DATA |
692 | INSTALL_SCRIPT | ||||
693 | INSTALL_PROGRAM | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 694 | ac_ct_READELF |
695 | READELF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 696 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 697 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 698 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 699 | GNULD |
700 | LINKCC | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 701 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 702 | RUNSHARED |
703 | INSTSONAME | ||||
704 | LDLIBRARYDIR | ||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 705 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 706 | BLDLIBRARY |
707 | DLLLIBRARY | ||||
708 | LDLIBRARY | ||||
709 | LIBRARY | ||||
710 | BUILDEXEEXT | ||||
711 | EGREP | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 712 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 713 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 714 | PLATFORM_TRIPLET |
715 | MULTIARCH | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 716 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 717 | MAINCC |
718 | CXX | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 719 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 720 | GREP |
721 | CPP | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 722 | OBJEXT |
723 | EXEEXT | ||||
724 | ac_ct_CC | ||||
725 | CPPFLAGS | ||||
726 | LDFLAGS | ||||
727 | CFLAGS | ||||
728 | CC | ||||
729 | EXPORT_MACOSX_DEPLOYMENT_TARGET | ||||
730 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 731 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 732 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 733 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 734 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 735 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 736 | FRAMEWORKALTINSTALLLAST |
737 | FRAMEWORKALTINSTALLFIRST | ||||
738 | FRAMEWORKINSTALLLAST | ||||
739 | FRAMEWORKINSTALLFIRST | ||||
740 | PYTHONFRAMEWORKINSTALLDIR | ||||
741 | PYTHONFRAMEWORKPREFIX | ||||
742 | PYTHONFRAMEWORKDIR | ||||
743 | PYTHONFRAMEWORKIDENTIFIER | ||||
744 | PYTHONFRAMEWORK | ||||
Ned Deily | 78e5588 | 2021-05-02 10:55:04 | [diff] [blame] | 745 | LIPO_INTEL64_FLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 746 | LIPO_32BIT_FLAGS |
747 | ARCH_RUN_32BIT | ||||
748 | UNIVERSALSDK | ||||
749 | CONFIG_ARGS | ||||
750 | SOVERSION | ||||
751 | VERSION | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 752 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 753 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 754 | host_os |
755 | host_vendor | ||||
756 | host_cpu | ||||
757 | host | ||||
758 | build_os | ||||
759 | build_vendor | ||||
760 | build_cpu | ||||
761 | build | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 762 | HAS_GIT |
763 | GITBRANCH | ||||
764 | GITTAG | ||||
765 | GITVERSION | ||||
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 766 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 767 | target_alias |
768 | host_alias | ||||
769 | build_alias | ||||
770 | LIBS | ||||
771 | ECHO_T | ||||
772 | ECHO_N | ||||
773 | ECHO_C | ||||
774 | DEFS | ||||
775 | mandir | ||||
776 | localedir | ||||
777 | libdir | ||||
778 | psdir | ||||
779 | pdfdir | ||||
780 | dvidir | ||||
781 | htmldir | ||||
782 | infodir | ||||
783 | docdir | ||||
784 | oldincludedir | ||||
785 | includedir | ||||
Seth Michael Larson | 575c99a | 2023-12-06 23:26:42 | [diff] [blame] | 786 | runstatedir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 787 | localstatedir |
788 | sharedstatedir | ||||
789 | sysconfdir | ||||
790 | datadir | ||||
791 | datarootdir | ||||
792 | libexecdir | ||||
793 | sbindir | ||||
794 | bindir | ||||
795 | program_transform_name | ||||
796 | prefix | ||||
797 | exec_prefix | ||||
798 | PACKAGE_URL | ||||
799 | PACKAGE_BUGREPORT | ||||
800 | PACKAGE_STRING | ||||
801 | PACKAGE_VERSION | ||||
802 | PACKAGE_TARNAME | ||||
803 | PACKAGE_NAME | ||||
804 | PATH_SEPARATOR | ||||
805 | SHELL' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 806 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 807 | ac_user_opts=' |
808 | enable_option_checking | ||||
809 | enable_universalsdk | ||||
810 | with_universal_archs | ||||
811 | with_framework_name | ||||
812 | enable_framework | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 813 | with_cxx_main |
814 | with_suffix | ||||
815 | enable_shared | ||||
816 | enable_profiling | ||||
817 | with_pydebug | ||||
Victor Stinner | f4e4703 | 2019-04-24 22:56:28 | [diff] [blame] | 818 | with_trace_refs |
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 819 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 820 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 821 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 822 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 823 | with_address_sanitizer |
Gregory P. Smith | 1584a00 | 2018-11-12 20:07:14 | [diff] [blame] | 824 | with_memory_sanitizer |
825 | with_undefined_behavior_sanitizer | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 826 | with_libs |
827 | with_system_expat | ||||
828 | with_system_ffi | ||||
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 829 | with_system_libmpdec |
Stefan Krah | 4d70124 | 2020-02-29 21:16:32 | [diff] [blame] | 830 | with_decimal_contextvar |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 831 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 832 | with_tcltk_includes |
833 | with_tcltk_libs | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 834 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 835 | enable_ipv6 |
836 | with_doc_strings | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 837 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 03:16:15 | [diff] [blame] | 838 | with_c_locale_coercion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 839 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 840 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 841 | with_libm |
842 | with_libc | ||||
843 | enable_big_digits | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 844 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 845 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 846 | with_openssl |
Christian Heimes | 892d66e | 2018-01-29 13:10:18 | [diff] [blame] | 847 | with_ssl_default_suites |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 848 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 849 | ac_precious_vars='build_alias |
850 | host_alias | ||||
851 | target_alias | ||||
doko@python.org | eab42bf | 2013-01-26 17:57:19 | [diff] [blame] | 852 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 853 | CC |
854 | CFLAGS | ||||
855 | LDFLAGS | ||||
856 | LIBS | ||||
857 | CPPFLAGS | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 06:37:08 | [diff] [blame] | 858 | CPP |
Miss Islington (bot) | 2406672 | 2019-07-22 20:17:23 | [diff] [blame] | 859 | PROFILE_TASK |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 06:37:08 | [diff] [blame] | 860 | PKG_CONFIG |
861 | PKG_CONFIG_PATH | ||||
862 | PKG_CONFIG_LIBDIR' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 863 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 864 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 865 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 866 | ac_init_help= |
867 | ac_init_version=false | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 868 | ac_unrecognized_opts= |
869 | ac_unrecognized_sep= | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 870 | # The variables have the same names as the options, with |
871 | # dashes changed to underlines. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 872 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 873 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 874 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 875 | no_recursion= |
876 | prefix=NONE | ||||
877 | program_prefix=NONE | ||||
878 | program_suffix=NONE | ||||
879 | program_transform_name=s,x,x, | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 880 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 881 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 882 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 883 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 884 | x_includes=NONE |
885 | x_libraries=NONE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 886 | |
887 | # Installation directory options. | ||||
888 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||||
889 | # and all the variables that are supposed to be based on exec_prefix | ||||
890 | # by default will actually change. | ||||
891 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 892 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 893 | bindir='${exec_prefix}/bin' |
894 | sbindir='${exec_prefix}/sbin' | ||||
895 | libexecdir='${exec_prefix}/libexec' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 896 | datarootdir='${prefix}/share' |
897 | datadir='${datarootdir}' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 898 | sysconfdir='${prefix}/etc' |
899 | sharedstatedir='${prefix}/com' | ||||
900 | localstatedir='${prefix}/var' | ||||
Seth Michael Larson | 575c99a | 2023-12-06 23:26:42 | [diff] [blame] | 901 | runstatedir='${localstatedir}/run' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 902 | includedir='${prefix}/include' |
903 | oldincludedir='/usr/include' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 904 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
905 | infodir='${datarootdir}/info' | ||||
906 | htmldir='${docdir}' | ||||
907 | dvidir='${docdir}' | ||||
908 | pdfdir='${docdir}' | ||||
909 | psdir='${docdir}' | ||||
910 | libdir='${exec_prefix}/lib' | ||||
911 | localedir='${datarootdir}/locale' | ||||
912 | mandir='${datarootdir}/man' | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 913 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 914 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 915 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 916 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 917 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 918 | # If the previous option needs an argument, assign it. |
919 | if test -n "$ac_prev"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 920 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 921 | ac_prev= |
922 | continue | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 923 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 924 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 925 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 926 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
927 | *=) ac_optarg= ;; | ||||
928 | *) ac_optarg=yes ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 929 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 930 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 931 | # Accept the important Cygnus configure options, so we can diagnose typos. |
932 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 933 | case $ac_dashdash$ac_option in |
934 | --) | ||||
935 | ac_dashdash=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 936 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 937 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
938 | ac_prev=bindir ;; | ||||
939 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 940 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 941 | |
942 | -build | --build | --buil | --bui | --bu) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 943 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 944 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 945 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 946 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 947 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
948 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||||
949 | ac_prev=cache_file ;; | ||||
950 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||||
951 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 952 | cache_file=$ac_optarg ;; |
953 | |||||
954 | --config-cache | -C) | ||||
955 | cache_file=config.cache ;; | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 956 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 957 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 958 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 959 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 960 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 961 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 962 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
963 | | --dataroo | --dataro | --datar) | ||||
964 | ac_prev=datarootdir ;; | ||||
965 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||||
966 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||||
967 | datarootdir=$ac_optarg ;; | ||||
968 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 969 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 970 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 971 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 972 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 973 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 974 | ac_useropt_orig=$ac_useropt |
975 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
976 | case $ac_user_opts in | ||||
977 | *" | ||||
978 | "enable_$ac_useropt" | ||||
979 | "*) ;; | ||||
980 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||||
981 | ac_unrecognized_sep=', ';; | ||||
982 | esac | ||||
983 | eval enable_$ac_useropt=no ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 984 | |
985 | -docdir | --docdir | --docdi | --doc | --do) | ||||
986 | ac_prev=docdir ;; | ||||
987 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||||
988 | docdir=$ac_optarg ;; | ||||
989 | |||||
990 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||||
991 | ac_prev=dvidir ;; | ||||
992 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||||
993 | dvidir=$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 994 | |
995 | -enable-* | --enable-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 996 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 997 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 998 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 999 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1000 | ac_useropt_orig=$ac_useropt |
1001 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1002 | case $ac_user_opts in | ||||
1003 | *" | ||||
1004 | "enable_$ac_useropt" | ||||
1005 | "*) ;; | ||||
1006 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||||
1007 | ac_unrecognized_sep=', ';; | ||||
1008 | esac | ||||
1009 | eval enable_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1010 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1011 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1012 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||||
1013 | | --exec | --exe | --ex) | ||||
1014 | ac_prev=exec_prefix ;; | ||||
1015 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||||
1016 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||||
1017 | | --exec=* | --exe=* | --ex=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1018 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1019 | |
1020 | -gas | --gas | --ga | --g) | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1021 | # Obsolete; use --with-gas. |
1022 | with_gas=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1024 | -help | --help | --hel | --he | -h) |
1025 | ac_init_help=long ;; | ||||
1026 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||||
1027 | ac_init_help=recursive ;; | ||||
1028 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||||
1029 | ac_init_help=short ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1030 | |
1031 | -host | --host | --hos | --ho) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1032 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1033 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1034 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1035 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1036 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1037 | ac_prev=htmldir ;; | ||||
1038 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||||
1039 | | --ht=*) | ||||
1040 | htmldir=$ac_optarg ;; | ||||
1041 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1042 | -includedir | --includedir | --includedi | --included | --include \ |
1043 | | --includ | --inclu | --incl | --inc) | ||||
1044 | ac_prev=includedir ;; | ||||
1045 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||||
1046 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1047 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1048 | |
1049 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||||
1050 | ac_prev=infodir ;; | ||||
1051 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1052 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1053 | |
1054 | -libdir | --libdir | --libdi | --libd) | ||||
1055 | ac_prev=libdir ;; | ||||
1056 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1057 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1058 | |
1059 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||||
1060 | | --libexe | --libex | --libe) | ||||
1061 | ac_prev=libexecdir ;; | ||||
1062 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||||
1063 | | --libexe=* | --libex=* | --libe=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1064 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1065 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1066 | -localedir | --localedir | --localedi | --localed | --locale) |
1067 | ac_prev=localedir ;; | ||||
1068 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||||
1069 | localedir=$ac_optarg ;; | ||||
1070 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1071 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1072 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1073 | ac_prev=localstatedir ;; |
1074 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1075 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1076 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1077 | |
1078 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||||
1079 | ac_prev=mandir ;; | ||||
1080 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1081 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1082 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1083 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1084 | # Obsolete; use --without-fp. |
1085 | with_fp=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1086 | |
1087 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1088 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1089 | no_create=yes ;; |
1090 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1091 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1092 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||||
1093 | no_recursion=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1094 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1095 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1096 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||||
1097 | | --oldin | --oldi | --old | --ol | --o) | ||||
1098 | ac_prev=oldincludedir ;; | ||||
1099 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||||
1100 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||||
1101 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1102 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1103 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1104 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1105 | ac_prev=prefix ;; | ||||
1106 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1107 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1108 | |
1109 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||||
1110 | | --program-pre | --program-pr | --program-p) | ||||
1111 | ac_prev=program_prefix ;; | ||||
1112 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||||
1113 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1114 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1115 | |
1116 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||||
1117 | | --program-suf | --program-su | --program-s) | ||||
1118 | ac_prev=program_suffix ;; | ||||
1119 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||||
1120 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1121 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1122 | |
1123 | -program-transform-name | --program-transform-name \ | ||||
1124 | | --program-transform-nam | --program-transform-na \ | ||||
1125 | | --program-transform-n | --program-transform- \ | ||||
1126 | | --program-transform | --program-transfor \ | ||||
1127 | | --program-transfo | --program-transf \ | ||||
1128 | | --program-trans | --program-tran \ | ||||
1129 | | --progr-tra | --program-tr | --program-t) | ||||
1130 | ac_prev=program_transform_name ;; | ||||
1131 | -program-transform-name=* | --program-transform-name=* \ | ||||
1132 | | --program-transform-nam=* | --program-transform-na=* \ | ||||
1133 | | --program-transform-n=* | --program-transform-=* \ | ||||
1134 | | --program-transform=* | --program-transfor=* \ | ||||
1135 | | --program-transfo=* | --program-transf=* \ | ||||
1136 | | --program-trans=* | --program-tran=* \ | ||||
1137 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1138 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1139 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1140 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1141 | ac_prev=pdfdir ;; | ||||
1142 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||||
1143 | pdfdir=$ac_optarg ;; | ||||
1144 | |||||
1145 | -psdir | --psdir | --psdi | --psd | --ps) | ||||
1146 | ac_prev=psdir ;; | ||||
1147 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||||
1148 | psdir=$ac_optarg ;; | ||||
1149 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1150 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1151 | | -silent | --silent | --silen | --sile | --sil) | ||||
1152 | silent=yes ;; | ||||
1153 | |||||
Seth Michael Larson | 575c99a | 2023-12-06 23:26:42 | [diff] [blame] | 1154 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1155 | | --runstate | --runstat | --runsta | --runst | --runs \ | ||||
1156 | | --run | --ru | --r) | ||||
1157 | ac_prev=runstatedir ;; | ||||
1158 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | ||||
1159 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | ||||
1160 | | --run=* | --ru=* | --r=*) | ||||
1161 | runstatedir=$ac_optarg ;; | ||||
1162 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1163 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1164 | ac_prev=sbindir ;; | ||||
1165 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||||
1166 | | --sbi=* | --sb=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1167 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1168 | |
1169 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||||
1170 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||||
1171 | | --sharedst | --shareds | --shared | --share | --shar \ | ||||
1172 | | --sha | --sh) | ||||
1173 | ac_prev=sharedstatedir ;; | ||||
1174 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||||
1175 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||||
1176 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||||
1177 | | --sha=* | --sh=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1178 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1179 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1180 | -site | --site | --sit) |
1181 | ac_prev=site ;; | ||||
1182 | -site=* | --site=* | --sit=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1183 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1184 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1185 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1186 | ac_prev=srcdir ;; | ||||
1187 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1188 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1189 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1190 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1191 | | --syscon | --sysco | --sysc | --sys | --sy) | ||||
1192 | ac_prev=sysconfdir ;; | ||||
1193 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||||
1194 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1195 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1196 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1197 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1198 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1199 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1200 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1201 | |
1202 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||||
1203 | verbose=yes ;; | ||||
1204 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1205 | -version | --version | --versio | --versi | --vers | -V) |
1206 | ac_init_version=: ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1207 | |
1208 | -with-* | --with-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1209 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1210 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1211 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1212 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1213 | ac_useropt_orig=$ac_useropt |
1214 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1215 | case $ac_user_opts in | ||||
1216 | *" | ||||
1217 | "with_$ac_useropt" | ||||
1218 | "*) ;; | ||||
1219 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||||
1220 | ac_unrecognized_sep=', ';; | ||||
1221 | esac | ||||
1222 | eval with_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1223 | |
1224 | -without-* | --without-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1225 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1226 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1227 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1228 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1229 | ac_useropt_orig=$ac_useropt |
1230 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1231 | case $ac_user_opts in | ||||
1232 | *" | ||||
1233 | "with_$ac_useropt" | ||||
1234 | "*) ;; | ||||
1235 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||||
1236 | ac_unrecognized_sep=', ';; | ||||
1237 | esac | ||||
1238 | eval with_$ac_useropt=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1239 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1240 | --x) |
1241 | # Obsolete; use --with-x. | ||||
1242 | with_x=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1243 | |
1244 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||||
1245 | | --x-incl | --x-inc | --x-in | --x-i) | ||||
1246 | ac_prev=x_includes ;; | ||||
1247 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||||
1248 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1249 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1250 | |
1251 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||||
1252 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||||
1253 | ac_prev=x_libraries ;; | ||||
1254 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||||
1255 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1256 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1257 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1258 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1259 | Try \`$0 --help' for more information" | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1260 | ;; |
1261 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1262 | *=*) |
1263 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||||
1264 | # Reject names that are not valid shell variable names. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1265 | case $ac_envvar in #( |
1266 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1267 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1268 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1269 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1270 | export $ac_envvar ;; |
1271 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1272 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1273 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1274 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1275 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1276 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1277 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1278 | ;; |
1279 | |||||
1280 | esac | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1281 | done |
1282 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1283 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1284 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1285 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1286 | fi |
1287 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1288 | if test -n "$ac_unrecognized_opts"; then |
1289 | case $enable_option_checking in | ||||
1290 | no) ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1291 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1292 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1293 | esac | ||||
1294 | fi | ||||
1295 | |||||
1296 | # Check all directory arguments for consistency. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1297 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1298 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||||
1299 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||||
Seth Michael Larson | 575c99a | 2023-12-06 23:26:42 | [diff] [blame] | 1300 | libdir localedir mandir runstatedir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1301 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1302 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1303 | # Remove trailing slashes. |
1304 | case $ac_val in | ||||
1305 | */ ) | ||||
1306 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||||
1307 | eval $ac_var=\$ac_val;; | ||||
1308 | esac | ||||
1309 | # Be sure to have absolute directory names. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1310 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1311 | [\\/$]* | ?:[\\/]* ) continue;; |
1312 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1313 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1314 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1315 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1317 | # There might be people who depend on the old broken behavior: `$host' |
1318 | # used to hold the argument of --host etc. | ||||
1319 | # FIXME: To remove some day. | ||||
1320 | build=$build_alias | ||||
1321 | host=$host_alias | ||||
1322 | target=$target_alias | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1324 | # FIXME: To remove some day. |
1325 | if test "x$host_alias" != x; then | ||||
1326 | if test "x$build_alias" = x; then | ||||
1327 | cross_compiling=maybe | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1328 | elif test "x$build_alias" != "x$host_alias"; then |
1329 | cross_compiling=yes | ||||
1330 | fi | ||||
1331 | fi | ||||
1332 | |||||
1333 | ac_tool_prefix= | ||||
1334 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||||
1335 | |||||
1336 | test "$silent" = yes && exec 6>/dev/null | ||||
1337 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1338 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1339 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1340 | ac_ls_di=`ls -di .` && | ||||
1341 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1342 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1343 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1344 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1345 | |
1346 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1347 | # Find the source files, if location was not specified. |
1348 | if test -z "$srcdir"; then | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1349 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1350 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1351 | ac_confdir=`$as_dirname -- "$as_myself" || |
1352 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
1353 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||||
1354 | X"$as_myself" : 'X\(//\)$' \| \ | ||||
1355 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||||
1356 | $as_echo X"$as_myself" | | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1358 | s//\1/ | ||||
1359 | q | ||||
1360 | } | ||||
1361 | /^X\(\/\/\)[^/].*/{ | ||||
1362 | s//\1/ | ||||
1363 | q | ||||
1364 | } | ||||
1365 | /^X\(\/\/\)$/{ | ||||
1366 | s//\1/ | ||||
1367 | q | ||||
1368 | } | ||||
1369 | /^X\(\/\).*/{ | ||||
1370 | s//\1/ | ||||
1371 | q | ||||
1372 | } | ||||
1373 | s/.*/./; q'` | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1374 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1375 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1376 | srcdir=.. |
1377 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1378 | else |
1379 | ac_srcdir_defaulted=no | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1380 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1381 | if test ! -r "$srcdir/$ac_unique_file"; then |
1382 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1383 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 1384 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1385 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1386 | ac_abs_confdir=`( | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1387 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1388 | pwd)` |
1389 | # When building in place, set srcdir=. | ||||
1390 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||||
1391 | srcdir=. | ||||
1392 | fi | ||||
1393 | # Remove unnecessary trailing slashes from srcdir. | ||||
1394 | # Double slashes in file names in object file debugging info | ||||
1395 | # mess up M-x gdb in Emacs. | ||||
1396 | case $srcdir in | ||||
1397 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||||
1398 | esac | ||||
1399 | for ac_var in $ac_precious_vars; do | ||||
1400 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||||
1401 | eval ac_env_${ac_var}_value=\$${ac_var} | ||||
1402 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||||
1403 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||||
1404 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1406 | # |
1407 | # Report the --help message. | ||||
1408 | # | ||||
1409 | if test "$ac_init_help" = "long"; then | ||||
1410 | # Omit some internal or obsolete options to make the list less imposing. | ||||
1411 | # This message is too long to be a string in the A/UX 3.1 sh. | ||||
1412 | cat <<_ACEOF | ||||
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 1413 | \`configure' configures python 3.8 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1414 | |
1415 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||||
1416 | |||||
1417 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||||
1418 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||||
1419 | |||||
1420 | Defaults for the options are specified in brackets. | ||||
1421 | |||||
1422 | Configuration: | ||||
1423 | -h, --help display this help and exit | ||||
1424 | --help=short display options specific to this package | ||||
1425 | --help=recursive display the short help of all the included packages | ||||
1426 | -V, --version display version information and exit | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1427 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1428 | --cache-file=FILE cache test results in FILE [disabled] |
1429 | -C, --config-cache alias for \`--cache-file=config.cache' | ||||
1430 | -n, --no-create do not create output files | ||||
1431 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||||
1432 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1433 | Installation directories: |
1434 | --prefix=PREFIX install architecture-independent files in PREFIX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1435 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1436 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1437 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1438 | |
1439 | By default, \`make install' will install all the files in | ||||
1440 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||||
1441 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||||
1442 | for instance \`--prefix=\$HOME'. | ||||
1443 | |||||
1444 | For better control, use the options below. | ||||
1445 | |||||
1446 | Fine tuning of the installation directories: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1447 | --bindir=DIR user executables [EPREFIX/bin] |
1448 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||||
1449 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||||
1450 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||||
1451 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||||
1452 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||||
Seth Michael Larson | 575c99a | 2023-12-06 23:26:42 | [diff] [blame] | 1453 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1454 | --libdir=DIR object code libraries [EPREFIX/lib] |
1455 | --includedir=DIR C header files [PREFIX/include] | ||||
1456 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||||
1457 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||||
1458 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||||
1459 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||||
1460 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||||
1461 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||||
1462 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] | ||||
1463 | --htmldir=DIR html documentation [DOCDIR] | ||||
1464 | --dvidir=DIR dvi documentation [DOCDIR] | ||||
1465 | --pdfdir=DIR pdf documentation [DOCDIR] | ||||
1466 | --psdir=DIR ps documentation [DOCDIR] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1467 | _ACEOF |
1468 | |||||
1469 | cat <<\_ACEOF | ||||
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 1470 | |
1471 | System types: | ||||
1472 | --build=BUILD configure for building on BUILD [guessed] | ||||
1473 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1474 | _ACEOF |
1475 | fi | ||||
1476 | |||||
1477 | if test -n "$ac_init_help"; then | ||||
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 1478 | case $ac_init_help in |
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 1479 | short | recursive ) echo "Configuration of python 3.8:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 1480 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1481 | cat <<\_ACEOF |
1482 | |||||
1483 | Optional Features: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1484 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1485 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1486 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||||
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 | [diff] [blame] | 1487 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 1488 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1489 | --enable-framework[=INSTALLDIR] |
1490 | Build (MacOSX|Darwin) framework | ||||
1491 | --enable-shared disable/enable building shared python library | ||||
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 | [diff] [blame] | 1492 | --enable-profiling enable C-level code profiling |
Brett Cannon | b4e5fee | 2017-06-09 20:56:57 | [diff] [blame] | 1493 | --enable-optimizations Enable expensive, stable optimizations (PGO, etc). |
1494 | Disabled by default. | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 1495 | --enable-loadable-sqlite-extensions |
1496 | support loadable extensions in _sqlite module | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1497 | --enable-ipv6 Enable ipv6 (with ipv4) support |
1498 | --disable-ipv6 Disable ipv6 support | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 1499 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1500 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1501 | |
1502 | Optional Packages: | ||||
1503 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
1504 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 1505 | --with-universal-archs=ARCH |
Ned Deily | 78e5588 | 2021-05-02 10:55:04 | [diff] [blame] | 1506 | specify the kind of macOS universal binary that |
1507 | should be created. This option is only valid when | ||||
1508 | --enable-universalsdk is set; options are: | ||||
1509 | ("universal2", "intel-64", "intel-32", "intel", | ||||
1510 | "32-bit", "64-bit", "3-way", or "all") see | ||||
1511 | Mac/README.rst | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 1512 | --with-framework-name=FRAMEWORK |
1513 | specify an alternate name of the framework built | ||||
1514 | with --enable-framework | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 1515 | --with-cxx-main=<compiler> |
1516 | compile main() and link python executable with C++ | ||||
1517 | compiler | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1518 | --with-suffix=.exe set executable suffix |
1519 | --with-pydebug build with Py_DEBUG defined | ||||
Victor Stinner | f4e4703 | 2019-04-24 22:56:28 | [diff] [blame] | 1520 | --with-trace-refs enable tracing references for debugging purpose |
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 1521 | --with-assertions build with C assertions enabled |
octaviansoldea | 4c81401 | 2017-09-08 19:14:33 | [diff] [blame] | 1522 | --with-lto Enable Link Time Optimization in any build. Disabled |
1523 | by default. | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 1524 | --with-hash-algorithm=[fnv|siphash24] |
1525 | select hash algorithm | ||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 1526 | --with-address-sanitizer |
Gregory P. Smith | 1584a00 | 2018-11-12 20:07:14 | [diff] [blame] | 1527 | enable AddressSanitizer (asan) |
1528 | --with-memory-sanitizer enable MemorySanitizer (msan) | ||||
1529 | --with-undefined-behavior-sanitizer | ||||
1530 | enable UndefinedBehaviorSanitizer (ubsan) | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1531 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 | [diff] [blame] | 1532 | --with-system-expat build pyexpat module using an installed expat |
1533 | library | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 1534 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 1535 | --with-system-libmpdec build _decimal module using an installed libmpdec |
1536 | library | ||||
Stefan Krah | 4d70124 | 2020-02-29 21:16:32 | [diff] [blame] | 1537 | --with-decimal-contextvar |
1538 | build _decimal module using a coroutine-local rather | ||||
1539 | than a thread-local context (default is yes) | ||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 1540 | --with-tcltk-includes='-I...' |
1541 | override search for Tcl and Tk include files | ||||
1542 | --with-tcltk-libs='-L...' | ||||
1543 | override search for Tcl and Tk libs | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 1544 | --with-dbmliborder=db1:db2:... |
1545 | order to check db backends for dbm. Valid value is a | ||||
1546 | colon separated string with the backend names | ||||
1547 | `ndbm', `gdbm' and `bdb'. | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1548 | --with(out)-doc-strings disable/enable documentation strings |
1549 | --with(out)-pymalloc disable/enable specialized mallocs | ||||
Nick Coghlan | 6ea4186 | 2017-06-11 03:16:15 | [diff] [blame] | 1550 | --with(out)-c-locale-coercion |
1551 | disable/enable C locale coercion to a UTF-8 based | ||||
1552 | locale | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 1553 | --with-valgrind Enable Valgrind support |
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 1554 | --with(out)-dtrace disable/enable DTrace support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1555 | --with-libm=STRING math library |
1556 | --with-libc=STRING C library | ||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 1557 | --with(out)-computed-gotos |
1558 | Use computed gotos in evaluation loop (enabled by | ||||
1559 | default on supported compilers) | ||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 1560 | --with(out)-ensurepip=[=upgrade] |
1561 | "install" or "upgrade" using bundled pip | ||||
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 1562 | --with-openssl=DIR root of the OpenSSL directory |
Christian Heimes | 892d66e | 2018-01-29 13:10:18 | [diff] [blame] | 1563 | --with-ssl-default-suites=[python|openssl|STRING] |
1564 | Override default cipher suites string, python: use | ||||
1565 | Python's preferred selection (default), openssl: | ||||
1566 | leave OpenSSL's defaults untouched, STRING: use a | ||||
1567 | custom string, PROTOCOL_SSLv2 ignores the setting | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1568 | |
1569 | Some influential environment variables: | ||||
doko@python.org | eab42bf | 2013-01-26 17:57:19 | [diff] [blame] | 1570 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1571 | CC C compiler command |
1572 | CFLAGS C compiler flags | ||||
1573 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
1574 | nonstandard directory <lib dir> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1575 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1576 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1577 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1578 | CPP C preprocessor |
Miss Islington (bot) | 2406672 | 2019-07-22 20:17:23 | [diff] [blame] | 1579 | PROFILE_TASK |
1580 | Python args for PGO generation task | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 06:37:08 | [diff] [blame] | 1581 | PKG_CONFIG path to pkg-config utility |
1582 | PKG_CONFIG_PATH | ||||
1583 | directories to add to pkg-config's search path | ||||
1584 | PKG_CONFIG_LIBDIR | ||||
1585 | path overriding pkg-config's built-in search path | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1586 | |
1587 | Use these variables to override the choices made by `configure' or to help | ||||
1588 | it to find libraries and programs with nonstandard names/locations. | ||||
1589 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 1590 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1591 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1592 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1593 | fi |
1594 | |||||
1595 | if test "$ac_init_help" = "recursive"; then | ||||
1596 | # If there are subdirs, report their specific --help. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1597 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1598 | test -d "$ac_dir" || |
1599 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||||
1600 | continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1601 | ac_builddir=. |
1602 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1603 | case "$ac_dir" in |
1604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1605 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1607 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1609 | case $ac_top_builddir_sub in |
1610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
1612 | esac ;; | ||||
1613 | esac | ||||
1614 | ac_abs_top_builddir=$ac_pwd | ||||
1615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
1616 | # for backward compatibility: | ||||
1617 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1618 | |
1619 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1620 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1621 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1622 | ac_top_srcdir=$ac_top_builddir_sub |
1623 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
1624 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1625 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1626 | ac_top_srcdir=$srcdir |
1627 | ac_abs_top_srcdir=$srcdir ;; | ||||
1628 | *) # Relative name. | ||||
1629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
1630 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
1631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1632 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 1634 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1635 | cd "$ac_dir" || { ac_status=$?; continue; } |
1636 | # Check for guested configure. | ||||
1637 | if test -f "$ac_srcdir/configure.gnu"; then | ||||
1638 | echo && | ||||
1639 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||||
1640 | elif test -f "$ac_srcdir/configure"; then | ||||
1641 | echo && | ||||
1642 | $SHELL "$ac_srcdir/configure" --help=recursive | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1643 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1644 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1645 | fi || ac_status=$? |
1646 | cd "$ac_pwd" || { ac_status=$?; break; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1647 | done |
1648 | fi | ||||
1649 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1650 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1651 | if $ac_init_version; then |
1652 | cat <<\_ACEOF | ||||
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 1653 | python configure 3.8 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1654 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1655 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1656 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1657 | This configure script is free software; the Free Software Foundation |
1658 | gives unlimited permission to copy, distribute and modify it. | ||||
1659 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1660 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1661 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1662 | |
1663 | ## ------------------------ ## | ||||
1664 | ## Autoconf initialization. ## | ||||
1665 | ## ------------------------ ## | ||||
1666 | |||||
1667 | # ac_fn_c_try_compile LINENO | ||||
1668 | # -------------------------- | ||||
1669 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||||
1670 | ac_fn_c_try_compile () | ||||
1671 | { | ||||
1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1673 | rm -f conftest.$ac_objext | ||||
1674 | if { { ac_try="$ac_compile" | ||||
1675 | case "(($ac_try" in | ||||
1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1677 | *) ac_try_echo=$ac_try;; | ||||
1678 | esac | ||||
1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1680 | $as_echo "$ac_try_echo"; } >&5 | ||||
1681 | (eval "$ac_compile") 2>conftest.err | ||||
1682 | ac_status=$? | ||||
1683 | if test -s conftest.err; then | ||||
1684 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1685 | cat conftest.er1 >&5 | ||||
1686 | mv -f conftest.er1 conftest.err | ||||
1687 | fi | ||||
1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1689 | test $ac_status = 0; } && { | ||||
1690 | test -z "$ac_c_werror_flag" || | ||||
1691 | test ! -s conftest.err | ||||
1692 | } && test -s conftest.$ac_objext; then : | ||||
1693 | ac_retval=0 | ||||
1694 | else | ||||
1695 | $as_echo "$as_me: failed program was:" >&5 | ||||
1696 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1697 | |||||
1698 | ac_retval=1 | ||||
1699 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1701 | as_fn_set_status $ac_retval |
1702 | |||||
1703 | } # ac_fn_c_try_compile | ||||
1704 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 1705 | # ac_fn_c_try_cpp LINENO |
1706 | # ---------------------- | ||||
1707 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||||
1708 | ac_fn_c_try_cpp () | ||||
1709 | { | ||||
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1711 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||||
1712 | case "(($ac_try" in | ||||
1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1714 | *) ac_try_echo=$ac_try;; | ||||
1715 | esac | ||||
1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1717 | $as_echo "$ac_try_echo"; } >&5 | ||||
1718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||||
1719 | ac_status=$? | ||||
1720 | if test -s conftest.err; then | ||||
1721 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1722 | cat conftest.er1 >&5 | ||||
1723 | mv -f conftest.er1 conftest.err | ||||
1724 | fi | ||||
1725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1726 | test $ac_status = 0; } > conftest.i && { | ||||
1727 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||||
1728 | test ! -s conftest.err | ||||
1729 | }; then : | ||||
1730 | ac_retval=0 | ||||
1731 | else | ||||
1732 | $as_echo "$as_me: failed program was:" >&5 | ||||
1733 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1734 | |||||
1735 | ac_retval=1 | ||||
1736 | fi | ||||
1737 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1738 | as_fn_set_status $ac_retval | ||||
1739 | |||||
1740 | } # ac_fn_c_try_cpp | ||||
1741 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1742 | # ac_fn_c_try_link LINENO |
1743 | # ----------------------- | ||||
1744 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||||
1745 | ac_fn_c_try_link () | ||||
1746 | { | ||||
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1748 | rm -f conftest.$ac_objext conftest$ac_exeext | ||||
1749 | if { { ac_try="$ac_link" | ||||
1750 | case "(($ac_try" in | ||||
1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1752 | *) ac_try_echo=$ac_try;; | ||||
1753 | esac | ||||
1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1755 | $as_echo "$ac_try_echo"; } >&5 | ||||
1756 | (eval "$ac_link") 2>conftest.err | ||||
1757 | ac_status=$? | ||||
1758 | if test -s conftest.err; then | ||||
1759 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1760 | cat conftest.er1 >&5 | ||||
1761 | mv -f conftest.er1 conftest.err | ||||
1762 | fi | ||||
1763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1764 | test $ac_status = 0; } && { | ||||
1765 | test -z "$ac_c_werror_flag" || | ||||
1766 | test ! -s conftest.err | ||||
1767 | } && test -s conftest$ac_exeext && { | ||||
1768 | test "$cross_compiling" = yes || | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1769 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1770 | }; then : |
1771 | ac_retval=0 | ||||
1772 | else | ||||
1773 | $as_echo "$as_me: failed program was:" >&5 | ||||
1774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1775 | |||||
1776 | ac_retval=1 | ||||
1777 | fi | ||||
1778 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||||
1779 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||||
1780 | # interfere with the next link command; also delete a directory that is | ||||
1781 | # left behind by Apple's compiler. We do this before executing the actions. | ||||
1782 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1784 | as_fn_set_status $ac_retval |
1785 | |||||
1786 | } # ac_fn_c_try_link | ||||
1787 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1788 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1789 | # ------------------------------------------------------- | ||||
1790 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||||
1791 | # the include files in INCLUDES and setting the cache variable VAR | ||||
1792 | # accordingly. | ||||
1793 | ac_fn_c_check_header_mongrel () | ||||
1794 | { | ||||
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1796 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1798 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1799 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1800 | $as_echo_n "(cached) " >&6 |
1801 | fi | ||||
1802 | eval ac_res=\$$3 | ||||
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1804 | $as_echo "$ac_res" >&6; } | ||||
1805 | else | ||||
1806 | # Is the header compilable? | ||||
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||||
1808 | $as_echo_n "checking $2 usability... " >&6; } | ||||
1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1810 | /* end confdefs.h. */ | ||||
1811 | $4 | ||||
1812 | #include <$2> | ||||
1813 | _ACEOF | ||||
1814 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1815 | ac_header_compiler=yes | ||||
1816 | else | ||||
1817 | ac_header_compiler=no | ||||
1818 | fi | ||||
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||||
1821 | $as_echo "$ac_header_compiler" >&6; } | ||||
1822 | |||||
1823 | # Is the header present? | ||||
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||||
1825 | $as_echo_n "checking $2 presence... " >&6; } | ||||
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1827 | /* end confdefs.h. */ | ||||
1828 | #include <$2> | ||||
1829 | _ACEOF | ||||
1830 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
1831 | ac_header_preproc=yes | ||||
1832 | else | ||||
1833 | ac_header_preproc=no | ||||
1834 | fi | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1835 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1837 | $as_echo "$ac_header_preproc" >&6; } | ||||
1838 | |||||
1839 | # So? What about this header? | ||||
1840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||||
1841 | yes:no: ) | ||||
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||||
1843 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||||
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1845 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1846 | ;; | ||||
1847 | no:yes:* ) | ||||
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||||
1849 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||||
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||||
1851 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||||
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||||
1853 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||||
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||||
1855 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||||
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1857 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 1858 | ( $as_echo "## --------------------------------------- ## |
1859 | ## Report this to https://bugs.python.org/ ## | ||||
1860 | ## --------------------------------------- ##" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1861 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1862 | ;; | ||||
1863 | esac | ||||
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1865 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1866 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1867 | $as_echo_n "(cached) " >&6 |
1868 | else | ||||
1869 | eval "$3=\$ac_header_compiler" | ||||
1870 | fi | ||||
1871 | eval ac_res=\$$3 | ||||
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1873 | $as_echo "$ac_res" >&6; } | ||||
1874 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1876 | |
1877 | } # ac_fn_c_check_header_mongrel | ||||
1878 | |||||
1879 | # ac_fn_c_try_run LINENO | ||||
1880 | # ---------------------- | ||||
1881 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||||
1882 | # that executables *can* be run. | ||||
1883 | ac_fn_c_try_run () | ||||
1884 | { | ||||
1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1886 | if { { ac_try="$ac_link" | ||||
1887 | case "(($ac_try" in | ||||
1888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1889 | *) ac_try_echo=$ac_try;; | ||||
1890 | esac | ||||
1891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1892 | $as_echo "$ac_try_echo"; } >&5 | ||||
1893 | (eval "$ac_link") 2>&5 | ||||
1894 | ac_status=$? | ||||
1895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1896 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||||
1897 | { { case "(($ac_try" in | ||||
1898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1899 | *) ac_try_echo=$ac_try;; | ||||
1900 | esac | ||||
1901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1902 | $as_echo "$ac_try_echo"; } >&5 | ||||
1903 | (eval "$ac_try") 2>&5 | ||||
1904 | ac_status=$? | ||||
1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1906 | test $ac_status = 0; }; }; then : | ||||
1907 | ac_retval=0 | ||||
1908 | else | ||||
1909 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||||
1910 | $as_echo "$as_me: failed program was:" >&5 | ||||
1911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1912 | |||||
1913 | ac_retval=$ac_status | ||||
1914 | fi | ||||
1915 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1917 | as_fn_set_status $ac_retval |
1918 | |||||
1919 | } # ac_fn_c_try_run | ||||
1920 | |||||
1921 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||||
1922 | # ------------------------------------------------------- | ||||
1923 | # Tests whether HEADER exists and can be compiled using the include files in | ||||
1924 | # INCLUDES, setting the cache variable VAR accordingly. | ||||
1925 | ac_fn_c_check_header_compile () | ||||
1926 | { | ||||
1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1929 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1930 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1931 | $as_echo_n "(cached) " >&6 |
1932 | else | ||||
1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1934 | /* end confdefs.h. */ | ||||
1935 | $4 | ||||
1936 | #include <$2> | ||||
1937 | _ACEOF | ||||
1938 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1939 | eval "$3=yes" | ||||
1940 | else | ||||
1941 | eval "$3=no" | ||||
1942 | fi | ||||
1943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1944 | fi | ||||
1945 | eval ac_res=\$$3 | ||||
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1947 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1948 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1949 | |
1950 | } # ac_fn_c_check_header_compile | ||||
1951 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1952 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1953 | # ------------------------------------------- | ||||
1954 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||||
1955 | # variable VAR accordingly. | ||||
1956 | ac_fn_c_check_type () | ||||
1957 | { | ||||
1958 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1960 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1961 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1962 | $as_echo_n "(cached) " >&6 |
1963 | else | ||||
1964 | eval "$3=no" | ||||
1965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1966 | /* end confdefs.h. */ | ||||
1967 | $4 | ||||
1968 | int | ||||
1969 | main () | ||||
1970 | { | ||||
1971 | if (sizeof ($2)) | ||||
1972 | return 0; | ||||
1973 | ; | ||||
1974 | return 0; | ||||
1975 | } | ||||
1976 | _ACEOF | ||||
1977 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1979 | /* end confdefs.h. */ | ||||
1980 | $4 | ||||
1981 | int | ||||
1982 | main () | ||||
1983 | { | ||||
1984 | if (sizeof (($2))) | ||||
1985 | return 0; | ||||
1986 | ; | ||||
1987 | return 0; | ||||
1988 | } | ||||
1989 | _ACEOF | ||||
1990 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1991 | |||||
1992 | else | ||||
1993 | eval "$3=yes" | ||||
1994 | fi | ||||
1995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1996 | fi | ||||
1997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1998 | fi | ||||
1999 | eval ac_res=\$$3 | ||||
2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2001 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2002 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2003 | |
2004 | } # ac_fn_c_check_type | ||||
2005 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2006 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2007 | # -------------------------------------------- | ||||
2008 | # Tries to find the compile-time value of EXPR in a program that includes | ||||
2009 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||||
2010 | # computed | ||||
2011 | ac_fn_c_compute_int () | ||||
2012 | { | ||||
2013 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2014 | if test "$cross_compiling" = yes; then | ||||
2015 | # Depending upon the size, compute the lo and hi bounds. | ||||
2016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2017 | /* end confdefs.h. */ | ||||
2018 | $4 | ||||
2019 | int | ||||
2020 | main () | ||||
2021 | { | ||||
2022 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2023 | test_array [0] = 0; |
2024 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2025 | |
2026 | ; | ||||
2027 | return 0; | ||||
2028 | } | ||||
2029 | _ACEOF | ||||
2030 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2031 | ac_lo=0 ac_mid=0 | ||||
2032 | while :; do | ||||
2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2034 | /* end confdefs.h. */ | ||||
2035 | $4 | ||||
2036 | int | ||||
2037 | main () | ||||
2038 | { | ||||
2039 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2040 | test_array [0] = 0; |
2041 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2042 | |
2043 | ; | ||||
2044 | return 0; | ||||
2045 | } | ||||
2046 | _ACEOF | ||||
2047 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2048 | ac_hi=$ac_mid; break | ||||
2049 | else | ||||
2050 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||||
2051 | if test $ac_lo -le $ac_mid; then | ||||
2052 | ac_lo= ac_hi= | ||||
2053 | break | ||||
2054 | fi | ||||
2055 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||||
2056 | fi | ||||
2057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2058 | done | ||||
2059 | else | ||||
2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2061 | /* end confdefs.h. */ | ||||
2062 | $4 | ||||
2063 | int | ||||
2064 | main () | ||||
2065 | { | ||||
2066 | static int test_array [1 - 2 * !(($2) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2067 | test_array [0] = 0; |
2068 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2069 | |
2070 | ; | ||||
2071 | return 0; | ||||
2072 | } | ||||
2073 | _ACEOF | ||||
2074 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2075 | ac_hi=-1 ac_mid=-1 | ||||
2076 | while :; do | ||||
2077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2078 | /* end confdefs.h. */ | ||||
2079 | $4 | ||||
2080 | int | ||||
2081 | main () | ||||
2082 | { | ||||
2083 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2084 | test_array [0] = 0; |
2085 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2086 | |
2087 | ; | ||||
2088 | return 0; | ||||
2089 | } | ||||
2090 | _ACEOF | ||||
2091 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2092 | ac_lo=$ac_mid; break | ||||
2093 | else | ||||
2094 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||||
2095 | if test $ac_mid -le $ac_hi; then | ||||
2096 | ac_lo= ac_hi= | ||||
2097 | break | ||||
2098 | fi | ||||
2099 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||||
2100 | fi | ||||
2101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2102 | done | ||||
2103 | else | ||||
2104 | ac_lo= ac_hi= | ||||
2105 | fi | ||||
2106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2107 | fi | ||||
2108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2109 | # Binary search between lo and hi bounds. | ||||
2110 | while test "x$ac_lo" != "x$ac_hi"; do | ||||
2111 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||||
2112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2113 | /* end confdefs.h. */ | ||||
2114 | $4 | ||||
2115 | int | ||||
2116 | main () | ||||
2117 | { | ||||
2118 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2119 | test_array [0] = 0; |
2120 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2121 | |
2122 | ; | ||||
2123 | return 0; | ||||
2124 | } | ||||
2125 | _ACEOF | ||||
2126 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2127 | ac_hi=$ac_mid | ||||
2128 | else | ||||
2129 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||||
2130 | fi | ||||
2131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2132 | done | ||||
2133 | case $ac_lo in #(( | ||||
2134 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||||
2135 | '') ac_retval=1 ;; | ||||
2136 | esac | ||||
2137 | else | ||||
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2139 | /* end confdefs.h. */ | ||||
2140 | $4 | ||||
2141 | static long int longval () { return $2; } | ||||
2142 | static unsigned long int ulongval () { return $2; } | ||||
2143 | #include <stdio.h> | ||||
2144 | #include <stdlib.h> | ||||
2145 | int | ||||
2146 | main () | ||||
2147 | { | ||||
2148 | |||||
2149 | FILE *f = fopen ("conftest.val", "w"); | ||||
2150 | if (! f) | ||||
2151 | return 1; | ||||
2152 | if (($2) < 0) | ||||
2153 | { | ||||
2154 | long int i = longval (); | ||||
2155 | if (i != ($2)) | ||||
2156 | return 1; | ||||
2157 | fprintf (f, "%ld", i); | ||||
2158 | } | ||||
2159 | else | ||||
2160 | { | ||||
2161 | unsigned long int i = ulongval (); | ||||
2162 | if (i != ($2)) | ||||
2163 | return 1; | ||||
2164 | fprintf (f, "%lu", i); | ||||
2165 | } | ||||
2166 | /* Do not output a trailing newline, as this causes \r\n confusion | ||||
2167 | on some platforms. */ | ||||
2168 | return ferror (f) || fclose (f) != 0; | ||||
2169 | |||||
2170 | ; | ||||
2171 | return 0; | ||||
2172 | } | ||||
2173 | _ACEOF | ||||
2174 | if ac_fn_c_try_run "$LINENO"; then : | ||||
2175 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||||
2176 | else | ||||
2177 | ac_retval=1 | ||||
2178 | fi | ||||
2179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
2180 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
2181 | rm -f conftest.val | ||||
2182 | |||||
2183 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2184 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2185 | as_fn_set_status $ac_retval |
2186 | |||||
2187 | } # ac_fn_c_compute_int | ||||
2188 | |||||
2189 | # ac_fn_c_check_func LINENO FUNC VAR | ||||
2190 | # ---------------------------------- | ||||
2191 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||||
2192 | ac_fn_c_check_func () | ||||
2193 | { | ||||
2194 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
2196 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2197 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2198 | $as_echo_n "(cached) " >&6 |
2199 | else | ||||
2200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2201 | /* end confdefs.h. */ | ||||
2202 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||||
2203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||||
2204 | #define $2 innocuous_$2 | ||||
2205 | |||||
2206 | /* System header to define __stub macros and hopefully few prototypes, | ||||
2207 | which can conflict with char $2 (); below. | ||||
2208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
2209 | <limits.h> exists even on freestanding compilers. */ | ||||
2210 | |||||
2211 | #ifdef __STDC__ | ||||
2212 | # include <limits.h> | ||||
2213 | #else | ||||
2214 | # include <assert.h> | ||||
2215 | #endif | ||||
2216 | |||||
2217 | #undef $2 | ||||
2218 | |||||
2219 | /* Override any GCC internal prototype to avoid an error. | ||||
2220 | Use char because int might match the return type of a GCC | ||||
2221 | builtin and then its argument prototype would still apply. */ | ||||
2222 | #ifdef __cplusplus | ||||
2223 | extern "C" | ||||
2224 | #endif | ||||
2225 | char $2 (); | ||||
2226 | /* The GNU C library defines this for functions which it implements | ||||
2227 | to always fail with ENOSYS. Some functions are actually named | ||||
2228 | something starting with __ and the normal name is an alias. */ | ||||
2229 | #if defined __stub_$2 || defined __stub___$2 | ||||
2230 | choke me | ||||
2231 | #endif | ||||
2232 | |||||
2233 | int | ||||
2234 | main () | ||||
2235 | { | ||||
2236 | return $2 (); | ||||
2237 | ; | ||||
2238 | return 0; | ||||
2239 | } | ||||
2240 | _ACEOF | ||||
2241 | if ac_fn_c_try_link "$LINENO"; then : | ||||
2242 | eval "$3=yes" | ||||
2243 | else | ||||
2244 | eval "$3=no" | ||||
2245 | fi | ||||
2246 | rm -f core conftest.err conftest.$ac_objext \ | ||||
2247 | conftest$ac_exeext conftest.$ac_ext | ||||
2248 | fi | ||||
2249 | eval ac_res=\$$3 | ||||
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2251 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2252 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2253 | |
2254 | } # ac_fn_c_check_func | ||||
2255 | |||||
Gregory P. Smith | df300d5 | 2012-01-22 02:20:15 | [diff] [blame] | 2256 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2257 | # --------------------------------------------- | ||||
2258 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||||
2259 | # accordingly. | ||||
2260 | ac_fn_c_check_decl () | ||||
2261 | { | ||||
2262 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2263 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||||
2264 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||||
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||||
2266 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||||
2267 | if eval \${$3+:} false; then : | ||||
2268 | $as_echo_n "(cached) " >&6 | ||||
2269 | else | ||||
2270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2271 | /* end confdefs.h. */ | ||||
2272 | $4 | ||||
2273 | int | ||||
2274 | main () | ||||
2275 | { | ||||
2276 | #ifndef $as_decl_name | ||||
2277 | #ifdef __cplusplus | ||||
2278 | (void) $as_decl_use; | ||||
2279 | #else | ||||
2280 | (void) $as_decl_name; | ||||
2281 | #endif | ||||
2282 | #endif | ||||
2283 | |||||
2284 | ; | ||||
2285 | return 0; | ||||
2286 | } | ||||
2287 | _ACEOF | ||||
2288 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2289 | eval "$3=yes" | ||||
2290 | else | ||||
2291 | eval "$3=no" | ||||
2292 | fi | ||||
2293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2294 | fi | ||||
2295 | eval ac_res=\$$3 | ||||
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2297 | $as_echo "$ac_res" >&6; } | ||||
2298 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
2299 | |||||
2300 | } # ac_fn_c_check_decl | ||||
2301 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2302 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2303 | # ---------------------------------------------------- | ||||
2304 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||||
2305 | # INCLUDES, setting cache variable VAR accordingly. | ||||
2306 | ac_fn_c_check_member () | ||||
2307 | { | ||||
2308 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||||
2310 | $as_echo_n "checking for $2.$3... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2311 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2312 | $as_echo_n "(cached) " >&6 |
2313 | else | ||||
2314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2315 | /* end confdefs.h. */ | ||||
2316 | $5 | ||||
2317 | int | ||||
2318 | main () | ||||
2319 | { | ||||
2320 | static $2 ac_aggr; | ||||
2321 | if (ac_aggr.$3) | ||||
2322 | return 0; | ||||
2323 | ; | ||||
2324 | return 0; | ||||
2325 | } | ||||
2326 | _ACEOF | ||||
2327 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2328 | eval "$4=yes" | ||||
2329 | else | ||||
2330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2331 | /* end confdefs.h. */ | ||||
2332 | $5 | ||||
2333 | int | ||||
2334 | main () | ||||
2335 | { | ||||
2336 | static $2 ac_aggr; | ||||
2337 | if (sizeof ac_aggr.$3) | ||||
2338 | return 0; | ||||
2339 | ; | ||||
2340 | return 0; | ||||
2341 | } | ||||
2342 | _ACEOF | ||||
2343 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2344 | eval "$4=yes" | ||||
2345 | else | ||||
2346 | eval "$4=no" | ||||
2347 | fi | ||||
2348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2349 | fi | ||||
2350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2351 | fi | ||||
2352 | eval ac_res=\$$4 | ||||
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2354 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2355 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2356 | |
2357 | } # ac_fn_c_check_member | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2358 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2359 | This file contains any messages produced by compilers while |
2360 | running configure, to aid debugging if configure makes a mistake. | ||||
2361 | |||||
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 2362 | It was created by python $as_me 3.8, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2363 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2364 | |
2365 | $ $0 $@ | ||||
2366 | |||||
2367 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2368 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2369 | { |
2370 | cat <<_ASUNAME | ||||
2371 | ## --------- ## | ||||
2372 | ## Platform. ## | ||||
2373 | ## --------- ## | ||||
2374 | |||||
2375 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
2376 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||||
2377 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||||
2378 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||||
2379 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||||
2380 | |||||
2381 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||||
2382 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||||
2383 | |||||
2384 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||||
2385 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||||
2386 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2387 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2388 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2389 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||||
2390 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||||
2391 | |||||
2392 | _ASUNAME | ||||
2393 | |||||
2394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2395 | for as_dir in $PATH | ||||
2396 | do | ||||
2397 | IFS=$as_save_IFS | ||||
2398 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2399 | $as_echo "PATH: $as_dir" |
2400 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2401 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2402 | |
2403 | } >&5 | ||||
2404 | |||||
2405 | cat >&5 <<_ACEOF | ||||
2406 | |||||
2407 | |||||
2408 | ## ----------- ## | ||||
2409 | ## Core tests. ## | ||||
2410 | ## ----------- ## | ||||
2411 | |||||
2412 | _ACEOF | ||||
2413 | |||||
2414 | |||||
2415 | # Keep a trace of the command line. | ||||
2416 | # Strip out --no-create and --no-recursion so they do not pile up. | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2417 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2418 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2419 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2420 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2421 | ac_configure_args0= |
2422 | ac_configure_args1= | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2423 | ac_must_keep_next=false |
2424 | for ac_pass in 1 2 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2425 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2426 | for ac_arg |
2427 | do | ||||
2428 | case $ac_arg in | ||||
2429 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||||
2430 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||||
2431 | | -silent | --silent | --silen | --sile | --sil) | ||||
2432 | continue ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2433 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2434 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2435 | esac |
2436 | case $ac_pass in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2437 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2438 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2439 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2440 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 2441 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2442 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 2443 | case $ac_arg in |
2444 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||||
2445 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||||
2446 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||||
2447 | | -with-* | --with-* | -without-* | --without-* | --x) | ||||
2448 | case "$ac_configure_args0 " in | ||||
2449 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||||
2450 | esac | ||||
2451 | ;; | ||||
2452 | -* ) ac_must_keep_next=true ;; | ||||
2453 | esac | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2454 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2455 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2456 | ;; |
2457 | esac | ||||
2458 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2459 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2460 | { ac_configure_args0=; unset ac_configure_args0;} |
2461 | { ac_configure_args1=; unset ac_configure_args1;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2462 | |
2463 | # When interrupted or exit'd, cleanup temporary files, and complete | ||||
2464 | # config.log. We remove comments because anyway the quotes in there | ||||
2465 | # would cause problems or look ugly. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2466 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2467 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2468 | trap 'exit_status=$? |
2469 | # Save into config.log some information that might help in debugging. | ||||
2470 | { | ||||
2471 | echo | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2472 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2473 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2474 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2475 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2476 | echo |
2477 | # The following way of writing the cache mishandles newlines in values, | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2478 | ( |
2479 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||||
2480 | eval ac_val=\$$ac_var | ||||
2481 | case $ac_val in #( | ||||
2482 | *${as_nl}*) | ||||
2483 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2484 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2485 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2486 | esac |
2487 | case $ac_var in #( | ||||
2488 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2489 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2490 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2491 | esac ;; |
2492 | esac | ||||
2493 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2494 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2495 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2496 | *${as_nl}ac_space=\ *) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2497 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2498 | "s/'\''/'\''\\\\'\'''\''/g; |
2499 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||||
2500 | ;; #( | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 2501 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2502 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 2503 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2504 | esac | |
2505 | sort | ||||
2506 | ) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2507 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2508 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2509 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2510 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2511 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2512 | echo |
2513 | for ac_var in $ac_subst_vars | ||||
2514 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2515 | eval ac_val=\$$ac_var |
2516 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2517 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2518 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2519 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2520 | done | sort |
2521 | echo | ||||
2522 | |||||
2523 | if test -n "$ac_subst_files"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2524 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2525 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2526 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2527 | echo |
2528 | for ac_var in $ac_subst_files | ||||
2529 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2530 | eval ac_val=\$$ac_var |
2531 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2532 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2533 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2534 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2535 | done | sort |
2536 | echo | ||||
2537 | fi | ||||
2538 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2539 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2540 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2541 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2542 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2543 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2544 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2545 | echo |
2546 | fi | ||||
2547 | test "$ac_signal" != 0 && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2548 | $as_echo "$as_me: caught signal $ac_signal" |
2549 | $as_echo "$as_me: exit $exit_status" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2550 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2551 | rm -f core *.core core.conftest.* && |
2552 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2553 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2554 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2555 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2556 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2557 | done |
2558 | ac_signal=0 | ||||
2559 | |||||
2560 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2561 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2562 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2563 | $as_echo "/* confdefs.h */" > confdefs.h |
2564 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2565 | # Predefined preprocessor variables. |
2566 | |||||
2567 | cat >>confdefs.h <<_ACEOF | ||||
2568 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||||
2569 | _ACEOF | ||||
2570 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2571 | cat >>confdefs.h <<_ACEOF |
2572 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||||
2573 | _ACEOF | ||||
2574 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2575 | cat >>confdefs.h <<_ACEOF |
2576 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||||
2577 | _ACEOF | ||||
2578 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2579 | cat >>confdefs.h <<_ACEOF |
2580 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||||
2581 | _ACEOF | ||||
2582 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2583 | cat >>confdefs.h <<_ACEOF |
2584 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||||
2585 | _ACEOF | ||||
2586 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2587 | cat >>confdefs.h <<_ACEOF |
2588 | #define PACKAGE_URL "$PACKAGE_URL" | ||||
2589 | _ACEOF | ||||
2590 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2591 | |
2592 | # Let the site file select an alternate cache file if it wants to. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2593 | # Prefer an explicitly selected file to automatically selected ones. |
2594 | ac_site_file1=NONE | ||||
2595 | ac_site_file2=NONE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2596 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2597 | # We do not want a PATH search for config.site. |
2598 | case $CONFIG_SITE in #(( | ||||
2599 | -*) ac_site_file1=./$CONFIG_SITE;; | ||||
2600 | */*) ac_site_file1=$CONFIG_SITE;; | ||||
2601 | *) ac_site_file1=./$CONFIG_SITE;; | ||||
2602 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2603 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2604 | ac_site_file1=$prefix/share/config.site |
2605 | ac_site_file2=$prefix/etc/config.site | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2606 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2607 | ac_site_file1=$ac_default_prefix/share/config.site |
2608 | ac_site_file2=$ac_default_prefix/etc/config.site | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2609 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2610 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2611 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2612 | test "x$ac_site_file" = xNONE && continue |
2613 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||||
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||||
2615 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2616 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2617 | . "$ac_site_file" \ |
2618 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
2619 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2620 | as_fn_error $? "failed to load site script $ac_site_file | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2621 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2622 | fi |
2623 | done | ||||
2624 | |||||
2625 | if test -r "$cache_file"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2626 | # Some versions of bash will fail to source /dev/null (special files |
2627 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||||
2628 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||||
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||||
2630 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2631 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2632 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2633 | *) . "./$cache_file";; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2634 | esac |
2635 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2636 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2638 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2639 | >$cache_file |
2640 | fi | ||||
2641 | |||||
2642 | # Check that the precious variables saved in the cache have kept the same | ||||
2643 | # value. | ||||
2644 | ac_cache_corrupted=false | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2645 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2646 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2647 | eval ac_new_set=\$ac_env_${ac_var}_set | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2648 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2649 | eval ac_new_val=\$ac_env_${ac_var}_value | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2650 | case $ac_old_set,$ac_new_set in |
2651 | set,) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2653 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2654 | ac_cache_corrupted=: ;; |
2655 | ,set) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2657 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2658 | ac_cache_corrupted=: ;; |
2659 | ,);; | ||||
2660 | *) | ||||
2661 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2662 | # differences in whitespace do not lead to failure. |
2663 | ac_old_val_w=`echo x $ac_old_val` | ||||
2664 | ac_new_val_w=`echo x $ac_new_val` | ||||
2665 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||||
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||||
2667 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||||
2668 | ac_cache_corrupted=: | ||||
2669 | else | ||||
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||||
2671 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||||
2672 | eval $ac_var=\$ac_old_val | ||||
2673 | fi | ||||
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||||
2675 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||||
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||||
2677 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2678 | fi;; |
2679 | esac | ||||
2680 | # Pass precious variables to config.status. | ||||
2681 | if test "$ac_new_set" = set; then | ||||
2682 | case $ac_new_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2683 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2684 | *) ac_arg=$ac_var=$ac_new_val ;; |
2685 | esac | ||||
2686 | case " $ac_configure_args " in | ||||
2687 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2688 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2689 | esac |
2690 | fi | ||||
2691 | done | ||||
2692 | if $ac_cache_corrupted; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||||
2696 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2697 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2698 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2699 | ## -------------------- ## |
2700 | ## Main body of script. ## | ||||
2701 | ## -------------------- ## | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2702 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 2703 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2704 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
2707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2708 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 2709 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 2710 | |
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 2711 | |
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 2712 | |
2713 | |||||
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 | [diff] [blame] | 2714 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 2715 | # If we're building out-of-tree, we need to make sure the following |
2716 | # resources get picked up before their $srcdir counterparts. | ||||
2717 | # Objects/ -> typeslots.inc | ||||
2718 | # Include/ -> Python-ast.h, graminit.h | ||||
2719 | # Python/ -> importlib.h | ||||
2720 | # (A side effect of this is that these resources will automatically be | ||||
2721 | # regenerated when building out-of-tree, regardless of whether or not | ||||
2722 | # the $srcdir counterpart is up-to-date. This is an acceptable trade | ||||
2723 | # off.) | ||||
2724 | BASECPPFLAGS="-IObjects -IInclude -IPython" | ||||
2725 | else | ||||
2726 | BASECPPFLAGS="" | ||||
2727 | fi | ||||
2728 | |||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2729 | |
2730 | |||||
2731 | |||||
2732 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 20:35:58 | [diff] [blame] | 2733 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2734 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2735 | # Extract the first word of "git", so it can be a program name with args. |
2736 | set dummy git; ac_word=$2 | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2738 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2739 | if ${ac_cv_prog_HAS_GIT+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2740 | $as_echo_n "(cached) " >&6 |
2741 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2742 | if test -n "$HAS_GIT"; then |
2743 | ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2744 | else |
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2746 | for as_dir in $PATH | ||||
2747 | do | ||||
2748 | IFS=$as_save_IFS | ||||
2749 | test -z "$as_dir" && as_dir=. | ||||
2750 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 2751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2752 | ac_cv_prog_HAS_GIT="found" |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2754 | break 2 | ||||
2755 | fi | ||||
2756 | done | ||||
2757 | done | ||||
2758 | IFS=$as_save_IFS | ||||
2759 | |||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2760 | test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2761 | fi |
2762 | fi | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2763 | HAS_GIT=$ac_cv_prog_HAS_GIT |
2764 | if test -n "$HAS_GIT"; then | ||||
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 | ||||
2766 | $as_echo "$HAS_GIT" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2767 | else |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2769 | $as_echo "no" >&6; } | ||||
2770 | fi | ||||
2771 | |||||
2772 | |||||
2773 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2774 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2775 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2776 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2777 | then |
Xiang Zhang | 4c85557 | 2018-08-20 14:36:19 | [diff] [blame] | 2778 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
2779 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" | ||||
2780 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2781 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2782 | GITVERSION="" |
2783 | GITTAG="" | ||||
2784 | GITBRANCH="" | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2785 | fi |
2786 | |||||
2787 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2788 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2789 | |
2790 | |||||
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 2791 | ac_aux_dir= |
2792 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||||
2793 | if test -f "$ac_dir/install-sh"; then | ||||
2794 | ac_aux_dir=$ac_dir | ||||
2795 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||||
2796 | break | ||||
2797 | elif test -f "$ac_dir/install.sh"; then | ||||
2798 | ac_aux_dir=$ac_dir | ||||
2799 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||||
2800 | break | ||||
2801 | elif test -f "$ac_dir/shtool"; then | ||||
2802 | ac_aux_dir=$ac_dir | ||||
2803 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||||
2804 | break | ||||
2805 | fi | ||||
2806 | done | ||||
2807 | if test -z "$ac_aux_dir"; then | ||||
2808 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||||
2809 | fi | ||||
2810 | |||||
2811 | # These three variables are undocumented and unsupported, | ||||
2812 | # and are intended to be withdrawn in a future Autoconf release. | ||||
2813 | # They can cause serious problems if a builder's source tree is in a directory | ||||
2814 | # whose full name contains unusual characters. | ||||
2815 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||||
2816 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||||
2817 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||||
2818 | |||||
2819 | |||||
2820 | # Make sure we can run config.sub. | ||||
2821 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||||
2822 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||||
2823 | |||||
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||||
2825 | $as_echo_n "checking build system type... " >&6; } | ||||
2826 | if ${ac_cv_build+:} false; then : | ||||
2827 | $as_echo_n "(cached) " >&6 | ||||
2828 | else | ||||
2829 | ac_build_alias=$build_alias | ||||
2830 | test "x$ac_build_alias" = x && | ||||
2831 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||||
2832 | test "x$ac_build_alias" = x && | ||||
2833 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
2834 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||||
2835 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||||
2836 | |||||
2837 | fi | ||||
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||||
2839 | $as_echo "$ac_cv_build" >&6; } | ||||
2840 | case $ac_cv_build in | ||||
2841 | *-*-*) ;; | ||||
2842 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
2843 | esac | ||||
2844 | build=$ac_cv_build | ||||
2845 | ac_save_IFS=$IFS; IFS='-' | ||||
2846 | set x $ac_cv_build | ||||
2847 | shift | ||||
2848 | build_cpu=$1 | ||||
2849 | build_vendor=$2 | ||||
2850 | shift; shift | ||||
2851 | # Remember, the first character of IFS is used to create $*, | ||||
2852 | # except with old shells: | ||||
2853 | build_os=$* | ||||
2854 | IFS=$ac_save_IFS | ||||
2855 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
2856 | |||||
2857 | |||||
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||||
2859 | $as_echo_n "checking host system type... " >&6; } | ||||
2860 | if ${ac_cv_host+:} false; then : | ||||
2861 | $as_echo_n "(cached) " >&6 | ||||
2862 | else | ||||
2863 | if test "x$host_alias" = x; then | ||||
2864 | ac_cv_host=$ac_cv_build | ||||
2865 | else | ||||
2866 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||||
2867 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||||
2868 | fi | ||||
2869 | |||||
2870 | fi | ||||
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||||
2872 | $as_echo "$ac_cv_host" >&6; } | ||||
2873 | case $ac_cv_host in | ||||
2874 | *-*-*) ;; | ||||
2875 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
2876 | esac | ||||
2877 | host=$ac_cv_host | ||||
2878 | ac_save_IFS=$IFS; IFS='-' | ||||
2879 | set x $ac_cv_host | ||||
2880 | shift | ||||
2881 | host_cpu=$1 | ||||
2882 | host_vendor=$2 | ||||
2883 | shift; shift | ||||
2884 | # Remember, the first character of IFS is used to create $*, | ||||
2885 | # except with old shells: | ||||
2886 | host_os=$* | ||||
2887 | IFS=$ac_save_IFS | ||||
2888 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
2889 | |||||
2890 | |||||
2891 | |||||
doko@python.org | a10e4a9 | 2013-01-25 17:45:12 | [diff] [blame] | 2892 | |
2893 | |||||
Ned Deily | fcbc246 | 2014-08-22 20:32:49 | [diff] [blame] | 2894 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
2895 | rm -f pybuilddir.txt | ||||
2896 | |||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2897 | for ac_prog in python$PACKAGE_VERSION python3 python |
2898 | do | ||||
2899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
2900 | set dummy $ac_prog; ac_word=$2 | ||||
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
2902 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2903 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2904 | $as_echo_n "(cached) " >&6 |
2905 | else | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2906 | if test -n "$PYTHON_FOR_REGEN"; then |
2907 | ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2908 | else |
2909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2910 | for as_dir in $PATH | ||||
2911 | do | ||||
2912 | IFS=$as_save_IFS | ||||
2913 | test -z "$as_dir" && as_dir=. | ||||
2914 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
2915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2916 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2918 | break 2 | ||||
2919 | fi | ||||
2920 | done | ||||
2921 | done | ||||
2922 | IFS=$as_save_IFS | ||||
2923 | |||||
2924 | fi | ||||
2925 | fi | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2926 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
2927 | if test -n "$PYTHON_FOR_REGEN"; then | ||||
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 | ||||
2929 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2930 | else |
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2932 | $as_echo "no" >&6; } | ||||
2933 | fi | ||||
2934 | |||||
2935 | |||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2936 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2937 | done |
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2938 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2939 | |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2940 | |
2941 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2942 | if test "$cross_compiling" = yes; then |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | ||||
2944 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | ||||
2945 | if test -z "$PYTHON_FOR_BUILD"; then | ||||
2946 | for interp in python$PACKAGE_VERSION python3 python; do | ||||
2947 | which $interp >/dev/null 2>&1 || continue | ||||
Xavier de Gaye | 4afd143 | 2016-07-07 16:00:22 | [diff] [blame] | 2948 | if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2949 | break |
2950 | fi | ||||
2951 | interp= | ||||
2952 | done | ||||
2953 | if test x$interp = x; then | ||||
2954 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | ||||
2955 | fi | ||||
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | ||||
2957 | $as_echo "$interp" >&6; } | ||||
Xavier de Gaye | 92dec54 | 2016-09-11 20:22:24 | [diff] [blame] | 2958 | 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 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2959 | fi |
Christian Heimes | 954ac03 | 2012-12-12 12:10:21 | [diff] [blame] | 2960 | elif test "$cross_compiling" = maybe; then |
2961 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2962 | else |
2963 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | ||||
2964 | fi | ||||
2965 | |||||
2966 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2967 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 | [diff] [blame] | 2968 | if test "$prefix" != "/"; then |
2969 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | ||||
2970 | fi | ||||
2971 | |||||
2972 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2973 | |
2974 | |||||
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 | [diff] [blame] | 2975 | # We don't use PACKAGE_ variables, and they cause conflicts |
2976 | # with other autoconf-based packages that include Python.h | ||||
2977 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | ||||
2978 | rm confdefs.h | ||||
2979 | mv confdefs.h.new confdefs.h | ||||
2980 | |||||
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 | [diff] [blame] | 2981 | |
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 2982 | VERSION=3.8 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 | [diff] [blame] | 2983 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 2984 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 2985 | |
2986 | SOVERSION=1.0 | ||||
2987 | |||||
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2988 | # The later defininition of _XOPEN_SOURCE disables certain features |
2989 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | ||||
2990 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2991 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2992 | |
2993 | |||||
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 | [diff] [blame] | 2994 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2995 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | ||||
2996 | # them. | ||||
2997 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2998 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 | [diff] [blame] | 2999 | |
3000 | |||||
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 | [diff] [blame] | 3001 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3002 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | ||||
3003 | # them. | ||||
3004 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3005 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 | [diff] [blame] | 3006 | |
3007 | |||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 3008 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3009 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
3010 | # them. | ||||
3011 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3012 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3013 | |
3014 | |||||
3015 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3016 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 3017 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 | [diff] [blame] | 3018 | # Arguments passed to configure. |
3019 | |||||
3020 | CONFIG_ARGS="$ac_configure_args" | ||||
3021 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
3023 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3024 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3025 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3026 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3027 | case $enableval in |
3028 | yes) | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 05:20:25 | [diff] [blame] | 3029 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3030 | # information |
3031 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3032 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3033 | then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3034 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
3035 | if test ! -d "${enableval}" | ||||
3036 | then | ||||
3037 | enableval=/ | ||||
3038 | fi | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3039 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3040 | ;; |
3041 | esac | ||||
3042 | case $enableval in | ||||
3043 | no) | ||||
3044 | UNIVERSALSDK= | ||||
3045 | enable_universalsdk= | ||||
3046 | ;; | ||||
3047 | *) | ||||
3048 | UNIVERSALSDK=$enableval | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3049 | if test ! -d "${UNIVERSALSDK}" |
3050 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3051 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3052 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3053 | ;; |
3054 | esac | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3055 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3056 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3057 | else |
3058 | |||||
3059 | UNIVERSALSDK= | ||||
3060 | enable_universalsdk= | ||||
3061 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3062 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3063 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3064 | if test -n "${UNIVERSALSDK}" |
3065 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
3067 | $as_echo "${UNIVERSALSDK}" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3068 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3070 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3071 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3072 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3073 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 | [diff] [blame] | 3074 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3075 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 | [diff] [blame] | 3076 | |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3077 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
3078 | # otherwise use 'intel' | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3079 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3080 | if test "`uname -s`" = "Darwin" |
3081 | then | ||||
3082 | if test -n "${UNIVERSALSDK}" | ||||
3083 | then | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3084 | if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3085 | then |
3086 | UNIVERSAL_ARCHS="intel" | ||||
3087 | fi | ||||
3088 | fi | ||||
3089 | fi | ||||
3090 | |||||
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 | [diff] [blame] | 3091 | |
Ned Deily | 78e5588 | 2021-05-02 10:55:04 | [diff] [blame] | 3092 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
3094 | $as_echo_n "checking for --with-universal-archs... " >&6; } | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3095 | |
3096 | # Check whether --with-universal-archs was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3097 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3098 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3099 | UNIVERSAL_ARCHS="$withval" |
3100 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3101 | fi |
3102 | |||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3103 | if test -n "${UNIVERSALSDK}" |
3104 | then | ||||
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | ||||
3106 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | ||||
3107 | else | ||||
3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3109 | $as_echo "no" >&6; } | ||||
3110 | fi | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3111 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3112 | |
3113 | # Check whether --with-framework-name was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3114 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3115 | withval=$with_framework_name; |
3116 | PYTHONFRAMEWORK=${withval} | ||||
3117 | PYTHONFRAMEWORKDIR=${withval}.framework | ||||
3118 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | ||||
3119 | |||||
3120 | else | ||||
3121 | |||||
3122 | PYTHONFRAMEWORK=Python | ||||
3123 | PYTHONFRAMEWORKDIR=Python.framework | ||||
3124 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | ||||
3125 | |||||
3126 | fi | ||||
3127 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3128 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3129 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3130 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3131 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3132 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3133 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3134 | esac |
3135 | case $enableval in | ||||
3136 | no) | ||||
3137 | PYTHONFRAMEWORK= | ||||
3138 | PYTHONFRAMEWORKDIR=no-framework | ||||
3139 | PYTHONFRAMEWORKPREFIX= | ||||
3140 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3141 | FRAMEWORKINSTALLFIRST= |
3142 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3143 | FRAMEWORKALTINSTALLFIRST= |
3144 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3145 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3146 | if test "x${prefix}" = "xNONE"; then |
3147 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3148 | else | ||||
3149 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3150 | fi | ||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3151 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3152 | ;; |
3153 | *) | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3154 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3155 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3156 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 | [diff] [blame] | 3157 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 | [diff] [blame] | 3158 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
3159 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3160 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3161 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3162 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3163 | if test "x${prefix}" = "xNONE" ; then |
3164 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3165 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3166 | else |
3167 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3168 | fi | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3169 | |
3170 | case "${enableval}" in | ||||
3171 | /System*) | ||||
3172 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3173 | if test "${prefix}" = "NONE" ; then | ||||
3174 | # See below | ||||
3175 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | ||||
3176 | fi | ||||
3177 | ;; | ||||
3178 | |||||
3179 | /Library*) | ||||
3180 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3181 | ;; | ||||
3182 | |||||
3183 | */Library/Frameworks) | ||||
3184 | MDIR="`dirname "${enableval}"`" | ||||
3185 | MDIR="`dirname "${MDIR}"`" | ||||
3186 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | ||||
3187 | |||||
3188 | if test "${prefix}" = "NONE"; then | ||||
3189 | # User hasn't specified the | ||||
3190 | # --prefix option, but wants to install | ||||
3191 | # the framework in a non-default location, | ||||
3192 | # ensure that the compatibility links get | ||||
3193 | # installed relative to that prefix as well | ||||
3194 | # instead of in /usr/local. | ||||
3195 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | ||||
3196 | fi | ||||
3197 | ;; | ||||
3198 | |||||
3199 | *) | ||||
3200 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3201 | ;; | ||||
3202 | esac | ||||
3203 | |||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3204 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3205 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3206 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3207 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3208 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3209 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3210 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3211 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3212 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
3213 | |||||
3214 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | ||||
3215 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3216 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3217 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3219 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3220 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3221 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3222 | PYTHONFRAMEWORKPREFIX= |
3223 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3224 | FRAMEWORKINSTALLFIRST= |
3225 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3226 | FRAMEWORKALTINSTALLFIRST= |
3227 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3228 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3229 | if test "x${prefix}" = "xNONE" ; then |
3230 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3231 | else | ||||
3232 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3233 | fi | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3234 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3235 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3236 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3237 | fi |
3238 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3239 | |
3240 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3241 | |
3242 | |||||
3243 | |||||
3244 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3245 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3246 | |
3247 | |||||
3248 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3249 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3250 | |
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3251 | |
INADA Naoki | a8f8d5b | 2017-06-28 15:31:53 | [diff] [blame] | 3252 | |
3253 | cat >>confdefs.h <<_ACEOF | ||||
INADA Naoki | 6b42eb1 | 2017-06-29 06:31:38 | [diff] [blame] | 3254 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" |
INADA Naoki | a8f8d5b | 2017-06-28 15:31:53 | [diff] [blame] | 3255 | _ACEOF |
3256 | |||||
3257 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3258 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 | [diff] [blame] | 3259 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 3260 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3261 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3262 | # Set name for machine-dependent library files |
3263 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
3265 | $as_echo_n "checking MACHDEP... " >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3266 | if test -z "$MACHDEP" |
3267 | then | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3268 | # avoid using uname for cross builds |
3269 | if test "$cross_compiling" = yes; then | ||||
doko@python.org | 44bbbda | 2013-01-25 13:44:00 | [diff] [blame] | 3270 | # ac_sys_system and ac_sys_release are used for setting |
3271 | # a lot of different things including 'define_xopen_source' | ||||
3272 | # in the case statement below. | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3273 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 3274 | *-*-linux-android*) |
3275 | ac_sys_system=Linux-android | ||||
3276 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3277 | *-*-linux*) |
3278 | ac_sys_system=Linux | ||||
3279 | ;; | ||||
3280 | *-*-cygwin*) | ||||
3281 | ac_sys_system=Cygwin | ||||
3282 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 3283 | *-*-vxworks*) |
3284 | ac_sys_system=VxWorks | ||||
3285 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3286 | *) |
3287 | # for now, limit cross builds to known configurations | ||||
3288 | MACHDEP="unknown" | ||||
3289 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3290 | esac | ||||
3291 | ac_sys_release= | ||||
3292 | else | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3293 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 3294 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 3295 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3296 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3297 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3298 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3299 | fi |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3300 | fi |
3301 | ac_md_system=`echo $ac_sys_system | | ||||
3302 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | ||||
3303 | ac_md_release=`echo $ac_sys_release | | ||||
3304 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | ||||
3305 | MACHDEP="$ac_md_system$ac_md_release" | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3306 | |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3307 | case $MACHDEP in |
Michael Felt | 9d949f7 | 2019-04-12 14:15:32 | [diff] [blame] | 3308 | aix*) MACHDEP="aix";; |
Victor Stinner | 7209ff2 | 2011-08-20 22:00:16 | [diff] [blame] | 3309 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 | [diff] [blame] | 3310 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 | [diff] [blame] | 3311 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 | [diff] [blame] | 3312 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3313 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3314 | fi |
E. M. Bray | b1fc417 | 2019-05-24 16:39:39 | [diff] [blame] | 3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 |
3316 | $as_echo "\"$MACHDEP\"" >&6; } | ||||
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 | [diff] [blame] | 3317 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 3318 | |
3319 | if test "$cross_compiling" = yes; then | ||||
3320 | case "$host" in | ||||
3321 | *-*-linux*) | ||||
3322 | case "$host_cpu" in | ||||
3323 | arm*) | ||||
3324 | _host_cpu=arm | ||||
3325 | ;; | ||||
3326 | *) | ||||
3327 | _host_cpu=$host_cpu | ||||
3328 | esac | ||||
3329 | ;; | ||||
3330 | *-*-cygwin*) | ||||
3331 | _host_cpu= | ||||
3332 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 3333 | *-*-vxworks*) |
3334 | _host_cpu=$host_cpu | ||||
3335 | ;; | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 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 | ||||
3340 | esac | ||||
3341 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||||
3342 | fi | ||||
3343 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3344 | # 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). | ||||
3353 | case $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öwis | 76bafc6 | 2003-10-03 13:47:44 | [diff] [blame] | 3356 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 | [diff] [blame] | 3357 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
3358 | # OpenBSD 4.6, but is fixed in 4.7. | ||||
Charles-François Natali | 54ef40b | 2011-07-22 21:52:02 | [diff] [blame] | 3359 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 | [diff] [blame] | 3360 | 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 Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3365 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 | [diff] [blame] | 3366 | |
3367 | ;; | ||||
Charles-François Natali | 54ef40b | 2011-07-22 21:52:02 | [diff] [blame] | 3368 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 | [diff] [blame] | 3369 | # 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 Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3373 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 | [diff] [blame] | 3374 | |
3375 | ;; | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 3376 | # 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 Peterson | f608c61 | 2008-11-16 18:33:53 | [diff] [blame] | 3379 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3380 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 | [diff] [blame] | 3381 | # 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öwis | a9d7142 | 2003-03-28 18:43:31 | [diff] [blame] | 3387 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3388 | # 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 Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3390 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 | [diff] [blame] | 3391 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3392 | define_xopen_source=no;; |
3393 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | ||||
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 | [diff] [blame] | 3394 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3395 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 | [diff] [blame] | 3396 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 | [diff] [blame] | 3397 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
3398 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | ||||
3399 | # identifies itself as Darwin/7.* | ||||
3400 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3401 | # disables platform specific features beyond repair. | ||||
3402 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3403 | # has no effect, don't bother defining them | ||||
3404 | Darwin/[6789].*) | ||||
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 | [diff] [blame] | 3405 | define_xopen_source=no;; |
Miss Islington (bot) | c4a53e4 | 2020-06-25 15:15:06 | [diff] [blame] | 3406 | Darwin/[12][0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 | [diff] [blame] | 3407 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 | [diff] [blame] | 3408 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
3409 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | ||||
3410 | # or has another value. By not (re)defining it, the defaults come in place. | ||||
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 | [diff] [blame] | 3411 | AIX/4) |
3412 | define_xopen_source=no;; | ||||
Trent Mick | c5625ba | 2004-08-25 23:59:39 | [diff] [blame] | 3413 | AIX/5) |
3414 | if test `uname -r` -eq 1; then | ||||
3415 | define_xopen_source=no | ||||
3416 | fi | ||||
3417 | ;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 | [diff] [blame] | 3418 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
3419 | # defining NI_NUMERICHOST. | ||||
3420 | QNX/6.3.2) | ||||
3421 | define_xopen_source=no | ||||
3422 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 3423 | # On VxWorks, defining _XOPEN_SOURCE causes compile failures |
3424 | # in network headers still using system V types. | ||||
3425 | VxWorks/*) | ||||
3426 | define_xopen_source=no | ||||
3427 | ;; | ||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 3428 | |
Miss Islington (bot) | 28fc1ba | 2020-02-14 03:27:28 | [diff] [blame] | 3429 | # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides |
3430 | # chroot() and other functions | ||||
3431 | hp*|HP*) | ||||
3432 | define_xopen_source=no | ||||
3433 | ;; | ||||
3434 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3435 | esac |
3436 | |||||
3437 | if test $define_xopen_source = yes | ||||
3438 | then | ||||
Victor Stinner | 14d098d | 2011-09-07 20:29:43 | [diff] [blame] | 3439 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3440 | |
Victor Stinner | 14d098d | 2011-09-07 20:29:43 | [diff] [blame] | 3441 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3442 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3443 | |
3444 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | ||||
3445 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | ||||
3446 | # several APIs are not declared. Since this is also needed in some | ||||
3447 | # cases for HP-UX, we define it globally. | ||||
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3448 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3449 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3450 | |
3451 | |||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 3452 | |
Victor Stinner | d169fdc | 2011-09-07 22:56:17 | [diff] [blame] | 3453 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3454 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3455 | fi |
3456 | |||||
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3457 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
3458 | case $ac_sys_system in | ||||
Christian Heimes | b02bcae | 2013-12-08 14:21:08 | [diff] [blame] | 3459 | hp*|HP*) |
3460 | define_stdc_a1=yes;; | ||||
3461 | *) | ||||
3462 | define_stdc_a1=no;; | ||||
3463 | esac | ||||
3464 | |||||
3465 | if test $define_stdc_a1 = yes | ||||
3466 | then | ||||
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3467 | |
3468 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | ||||
3469 | |||||
Christian Heimes | b02bcae | 2013-12-08 14:21:08 | [diff] [blame] | 3470 | fi |
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3471 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3472 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
3473 | # it may influence the way we can build extensions, so distutils | ||||
3474 | # needs to check it | ||||
3475 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3476 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3477 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3478 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3479 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 3480 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 3481 | |
3482 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just | ||||
3483 | # for debug/optimization stuff. BASECFLAGS is for flags that are required | ||||
3484 | # just to get things to compile and link. Users are free to override OPT | ||||
3485 | # when running configure or make. The build should not break if they do. | ||||
3486 | # BASECFLAGS should generally not be messed with, however. | ||||
3487 | |||||
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 | [diff] [blame] | 3488 | # If the user switches compilers, we can't believe the cache |
3489 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | ||||
3490 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3491 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3492 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 | [diff] [blame] | 3493 | fi |
3494 | |||||
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 | [diff] [blame] | 3495 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
3496 | # when the compiler supports them, but we don't always want -O2, and | ||||
3497 | # we set -g later. | ||||
3498 | if test -z "$CFLAGS"; then | ||||
3499 | CFLAGS= | ||||
3500 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3501 | |
3502 | if test "$ac_sys_system" = "Darwin" | ||||
3503 | then | ||||
3504 | # Compiler selection on MacOSX is more complicated than | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 05:20:25 | [diff] [blame] | 3505 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3506 | # information |
3507 | if test -z "${CC}" | ||||
3508 | then | ||||
3509 | found_gcc= | ||||
3510 | found_clang= | ||||
3511 | as_save_IFS=$IFS; IFS=: | ||||
3512 | for as_dir in $PATH | ||||
3513 | do | ||||
3514 | IFS=$as_save_IFS | ||||
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3515 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3516 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3517 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3518 | fi |
3519 | fi | ||||
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3520 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3521 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3522 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3523 | fi |
3524 | fi | ||||
3525 | done | ||||
3526 | IFS=$as_save_IFS | ||||
3527 | |||||
3528 | if test -n "$found_gcc" -a -n "$found_clang" | ||||
3529 | then | ||||
3530 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | ||||
3531 | then | ||||
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | ||||
3533 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | ||||
3534 | CC="$found_clang" | ||||
3535 | CXX="$found_clang++" | ||||
3536 | fi | ||||
3537 | |||||
3538 | |||||
3539 | elif test -z "$found_gcc" -a -n "$found_clang" | ||||
3540 | then | ||||
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | ||||
3542 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | ||||
3543 | CC="$found_clang" | ||||
3544 | CXX="$found_clang++" | ||||
3545 | |||||
3546 | elif test -z "$found_gcc" -a -z "$found_clang" | ||||
3547 | then | ||||
3548 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | ||||
3549 | if test -n "${found_clang}" | ||||
3550 | then | ||||
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | ||||
3552 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | ||||
3553 | CC="${found_clang}" | ||||
3554 | CXX="`/usr/bin/xcrun -find clang++`" | ||||
3555 | |||||
3556 | # else: use default behaviour | ||||
3557 | fi | ||||
3558 | fi | ||||
3559 | fi | ||||
3560 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3561 | ac_ext=c |
3562 | ac_cpp='$CPP $CPPFLAGS' | ||||
3563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
3564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
3565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
3566 | if test -n "$ac_tool_prefix"; then | ||||
3567 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||||
3568 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3570 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3571 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3572 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3573 | else |
3574 | if test -n "$CC"; then | ||||
3575 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3576 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3578 | for as_dir in $PATH | ||||
3579 | do | ||||
3580 | IFS=$as_save_IFS | ||||
3581 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3582 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3584 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3586 | break 2 |
3587 | fi | ||||
3588 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3589 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3590 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3591 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3592 | fi |
3593 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3594 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3595 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3597 | $as_echo "$CC" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3598 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3600 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3601 | fi |
3602 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3604 | fi |
3605 | if test -z "$ac_cv_prog_CC"; then | ||||
3606 | ac_ct_CC=$CC | ||||
3607 | # Extract the first word of "gcc", so it can be a program name with args. | ||||
3608 | set dummy gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3610 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3611 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3612 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3613 | else |
3614 | if test -n "$ac_ct_CC"; then | ||||
3615 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3616 | else | ||||
3617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3618 | for as_dir in $PATH | ||||
3619 | do | ||||
3620 | IFS=$as_save_IFS | ||||
3621 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3624 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3626 | break 2 |
3627 | fi | ||||
3628 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3629 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3630 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3631 | |
3632 | fi | ||||
3633 | fi | ||||
3634 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3635 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3637 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3638 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3640 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3641 | fi |
3642 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3643 | if test "x$ac_ct_CC" = x; then |
3644 | CC="" | ||||
3645 | else | ||||
3646 | case $cross_compiling:$ac_tool_warned in | ||||
3647 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3649 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3650 | ac_tool_warned=yes ;; |
3651 | esac | ||||
3652 | CC=$ac_ct_CC | ||||
3653 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3654 | else |
3655 | CC="$ac_cv_prog_CC" | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3656 | fi |
3657 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3658 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3659 | if test -n "$ac_tool_prefix"; then |
3660 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3661 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3663 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3664 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3665 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3666 | else |
3667 | if test -n "$CC"; then | ||||
3668 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3669 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3671 | for as_dir in $PATH | ||||
3672 | do | ||||
3673 | IFS=$as_save_IFS | ||||
3674 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3675 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3677 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3679 | break 2 |
3680 | fi | ||||
3681 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3682 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3683 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3684 | |
3685 | fi | ||||
3686 | fi | ||||
3687 | CC=$ac_cv_prog_CC | ||||
3688 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3690 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3691 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3693 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3694 | fi |
3695 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3697 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3698 | fi |
3699 | if test -z "$CC"; then | ||||
3700 | # Extract the first word of "cc", so it can be a program name with args. | ||||
3701 | set dummy cc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3703 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3704 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3705 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3706 | else |
3707 | if test -n "$CC"; then | ||||
3708 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3709 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3710 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3712 | for as_dir in $PATH | ||||
3713 | do | ||||
3714 | IFS=$as_save_IFS | ||||
3715 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3716 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3718 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3719 | ac_prog_rejected=yes | ||||
3720 | continue | ||||
3721 | fi | ||||
3722 | ac_cv_prog_CC="cc" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3724 | break 2 |
3725 | fi | ||||
3726 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3727 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3728 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3729 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3730 | if test $ac_prog_rejected = yes; then |
3731 | # We found a bogon in the path, so make sure we never use it. | ||||
3732 | set dummy $ac_cv_prog_CC | ||||
3733 | shift | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3734 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3735 | # We chose a different compiler from the bogus one. |
3736 | # However, it has the same basename, so the bogon will be chosen | ||||
3737 | # first if we set CC to just the basename; use the full file name. | ||||
3738 | shift | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3739 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3740 | fi |
3741 | fi | ||||
3742 | fi | ||||
3743 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3744 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3745 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3747 | $as_echo "$CC" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3748 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3750 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3751 | fi |
3752 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3754 | fi |
3755 | if test -z "$CC"; then | ||||
3756 | if test -n "$ac_tool_prefix"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3757 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3758 | do |
3759 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
3760 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3762 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3763 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3764 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 3765 | else |
3766 | if test -n "$CC"; then | ||||
3767 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3768 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3770 | for as_dir in $PATH | ||||
3771 | do | ||||
3772 | IFS=$as_save_IFS | ||||
3773 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3774 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3776 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3778 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 3779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3780 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3781 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3782 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3783 | |
3784 | fi | ||||
3785 | fi | ||||
3786 | CC=$ac_cv_prog_CC | ||||
3787 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3789 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3790 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3792 | $as_echo "no" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3793 | fi |
3794 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3796 | test -n "$CC" && break |
3797 | done | ||||
3798 | fi | ||||
3799 | if test -z "$CC"; then | ||||
3800 | ac_ct_CC=$CC | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3801 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3802 | do |
3803 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
3804 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3806 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3807 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3808 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3809 | else |
3810 | if test -n "$ac_ct_CC"; then | ||||
3811 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3812 | else | ||||
3813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3814 | for as_dir in $PATH | ||||
3815 | do | ||||
3816 | IFS=$as_save_IFS | ||||
3817 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3818 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3820 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3822 | break 2 |
3823 | fi | ||||
3824 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3825 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3826 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3828 | fi |
3829 | fi | ||||
3830 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3831 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3833 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3834 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3836 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3837 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3838 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3840 | test -n "$ac_ct_CC" && break |
3841 | done | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3842 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3843 | if test "x$ac_ct_CC" = x; then |
3844 | CC="" | ||||
3845 | else | ||||
3846 | case $cross_compiling:$ac_tool_warned in | ||||
3847 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3850 | ac_tool_warned=yes ;; |
3851 | esac | ||||
3852 | CC=$ac_ct_CC | ||||
3853 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3854 | fi |
3855 | |||||
3856 | fi | ||||
3857 | |||||
3858 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3859 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3861 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3862 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3863 | |
3864 | # Provide some information about the compiler. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3865 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3866 | set X $ac_compile | ||||
3867 | ac_compiler=$2 | ||||
3868 | for ac_option in --version -v -V -qversion; do | ||||
3869 | { { ac_try="$ac_compiler $ac_option >&5" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3870 | case "(($ac_try" in |
3871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3872 | *) ac_try_echo=$ac_try;; | ||||
3873 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3874 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3875 | $as_echo "$ac_try_echo"; } >&5 | ||||
3876 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3877 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3878 | if test -s conftest.err; then |
3879 | sed '10a\ | ||||
3880 | ... rest of stderr output deleted ... | ||||
3881 | 10q' conftest.err >conftest.er1 | ||||
3882 | cat conftest.er1 >&5 | ||||
3883 | fi | ||||
3884 | rm -f conftest.er1 conftest.err | ||||
3885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
3886 | test $ac_status = 0; } | ||||
3887 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3888 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3890 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3892 | int |
3893 | main () | ||||
3894 | { | ||||
3895 | |||||
3896 | ; | ||||
3897 | return 0; | ||||
3898 | } | ||||
3899 | _ACEOF | ||||
3900 | ac_clean_files_save=$ac_clean_files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3901 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3902 | # Try to create an executable without -o first, disregard a.out. |
3903 | # It will help us diagnose broken compilers, and finding out an intuition | ||||
3904 | # of exeext. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3906 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||||
3907 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||||
3908 | |||||
3909 | # The possible output files: | ||||
3910 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||||
3911 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3912 | ac_rmfiles= |
3913 | for ac_file in $ac_files | ||||
3914 | do | ||||
3915 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3916 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3917 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3918 | esac | ||||
3919 | done | ||||
3920 | rm -f $ac_rmfiles | ||||
3921 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3922 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3923 | case "(($ac_try" in |
3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3925 | *) ac_try_echo=$ac_try;; | ||||
3926 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3928 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3929 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3930 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3932 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3933 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3934 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||||
3935 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||||
3936 | # so that the user can short-circuit this test for compilers unknown to | ||||
3937 | # Autoconf. | ||||
3938 | for ac_file in $ac_files '' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3939 | do |
3940 | test -f "$ac_file" || continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3941 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3943 | ;; |
3944 | [ab].out ) | ||||
3945 | # We found the default executable, but exeext='' is most | ||||
3946 | # certainly right. | ||||
3947 | break;; | ||||
3948 | *.* ) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3949 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3950 | then :; else |
3951 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||||
3952 | fi | ||||
3953 | # We set ac_cv_exeext here because the later test for it is not | ||||
3954 | # safe: cross compilers may not add the suffix if given an `-o' | ||||
3955 | # argument, so we may need to know it at that point already. | ||||
3956 | # Even if this section looks crufty: it has the advantage of | ||||
3957 | # actually working. | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3958 | break;; |
3959 | * ) | ||||
3960 | break;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3961 | esac |
3962 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3963 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3964 | |||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 3965 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3966 | ac_file='' |
3967 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3968 | if test -z "$ac_file"; then : |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3970 | $as_echo "no" >&6; } | ||||
3971 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3972 | sed 's/^/| /' conftest.$ac_ext >&5 |
3973 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3976 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3977 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3978 | else |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
3980 | $as_echo "yes" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3983 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||||
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||||
3985 | $as_echo "$ac_file" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3986 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3987 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3988 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3989 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3991 | $as_echo_n "checking for suffix of executables... " >&6; } | ||||
3992 | if { { ac_try="$ac_link" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3993 | case "(($ac_try" in |
3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3995 | *) ac_try_echo=$ac_try;; | ||||
3996 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3997 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3998 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3999 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4000 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4002 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4003 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4004 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||||
4005 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||||
4006 | # `rm'. | ||||
4007 | for ac_file in conftest.exe conftest conftest.*; do | ||||
4008 | test -f "$ac_file" || continue | ||||
4009 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4010 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4011 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4012 | break;; | ||||
4013 | * ) break;; | ||||
4014 | esac | ||||
4015 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4016 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4019 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4020 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 4021 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4022 | rm -f conftest conftest$ac_cv_exeext |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||||
4024 | $as_echo "$ac_cv_exeext" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4025 | |
4026 | rm -f conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4027 | EXEEXT=$ac_cv_exeext |
4028 | ac_exeext=$EXEEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4030 | /* end confdefs.h. */ | ||||
4031 | #include <stdio.h> | ||||
4032 | int | ||||
4033 | main () | ||||
4034 | { | ||||
4035 | FILE *f = fopen ("conftest.out", "w"); | ||||
4036 | return ferror (f) || fclose (f) != 0; | ||||
4037 | |||||
4038 | ; | ||||
4039 | return 0; | ||||
4040 | } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4041 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4042 | ac_clean_files="$ac_clean_files conftest.out" |
4043 | # Check that the compiler produces executables we can run. If not, either | ||||
4044 | # the compiler is broken, or we cross compile. | ||||
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||||
4046 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||||
4047 | if test "$cross_compiling" != yes; then | ||||
4048 | { { ac_try="$ac_link" | ||||
4049 | case "(($ac_try" in | ||||
4050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4051 | *) ac_try_echo=$ac_try;; | ||||
4052 | esac | ||||
4053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4054 | $as_echo "$ac_try_echo"; } >&5 | ||||
4055 | (eval "$ac_link") 2>&5 | ||||
4056 | ac_status=$? | ||||
4057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4058 | test $ac_status = 0; } | ||||
4059 | if { ac_try='./conftest$ac_cv_exeext' | ||||
4060 | { { case "(($ac_try" in | ||||
4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4062 | *) ac_try_echo=$ac_try;; | ||||
4063 | esac | ||||
4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4065 | $as_echo "$ac_try_echo"; } >&5 | ||||
4066 | (eval "$ac_try") 2>&5 | ||||
4067 | ac_status=$? | ||||
4068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4069 | test $ac_status = 0; }; }; then | ||||
4070 | cross_compiling=no | ||||
4071 | else | ||||
4072 | if test "$cross_compiling" = maybe; then | ||||
4073 | cross_compiling=yes | ||||
4074 | else | ||||
4075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4077 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4078 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4079 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4080 | fi |
4081 | fi | ||||
4082 | fi | ||||
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||||
4084 | $as_echo "$cross_compiling" >&6; } | ||||
4085 | |||||
4086 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||||
4087 | ac_clean_files=$ac_clean_files_save | ||||
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||||
4089 | $as_echo_n "checking for suffix of object files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4090 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4091 | $as_echo_n "(cached) " >&6 |
4092 | else | ||||
4093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4094 | /* end confdefs.h. */ |
4095 | |||||
4096 | int | ||||
4097 | main () | ||||
4098 | { | ||||
4099 | |||||
4100 | ; | ||||
4101 | return 0; | ||||
4102 | } | ||||
4103 | _ACEOF | ||||
4104 | rm -f conftest.o conftest.obj | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4105 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4106 | case "(($ac_try" in |
4107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4108 | *) ac_try_echo=$ac_try;; | ||||
4109 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4110 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4111 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4112 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4113 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4115 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4116 | for ac_file in conftest.o conftest.obj conftest.*; do |
4117 | test -f "$ac_file" || continue; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4118 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4119 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4120 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4121 | break;; | ||||
4122 | esac | ||||
4123 | done | ||||
4124 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4125 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4126 | sed 's/^/| /' conftest.$ac_ext >&5 |
4127 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4130 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4131 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4132 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4133 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4134 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4136 | $as_echo "$ac_cv_objext" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4137 | OBJEXT=$ac_cv_objext |
4138 | ac_objext=$OBJEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4140 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4141 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4142 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4143 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4147 | int |
4148 | main () | ||||
4149 | { | ||||
4150 | #ifndef __GNUC__ | ||||
4151 | choke me | ||||
4152 | #endif | ||||
4153 | |||||
4154 | ; | ||||
4155 | return 0; | ||||
4156 | } | ||||
4157 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4158 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4159 | ac_compiler_gnu=yes |
4160 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4161 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4162 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4164 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4165 | |||||
4166 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4168 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||||
4169 | if test $ac_compiler_gnu = yes; then | ||||
4170 | GCC=yes | ||||
4171 | else | ||||
4172 | GCC= | ||||
4173 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4174 | ac_test_CFLAGS=${CFLAGS+set} |
4175 | ac_save_CFLAGS=$CFLAGS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4177 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4178 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4179 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4180 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4181 | ac_save_c_werror_flag=$ac_c_werror_flag |
4182 | ac_c_werror_flag=yes | ||||
4183 | ac_cv_prog_cc_g=no | ||||
4184 | CFLAGS="-g" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4186 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4188 | int |
4189 | main () | ||||
4190 | { | ||||
4191 | |||||
4192 | ; | ||||
4193 | return 0; | ||||
4194 | } | ||||
4195 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4196 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 4197 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4198 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4199 | CFLAGS="" |
4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4201 | /* end confdefs.h. */ |
4202 | |||||
4203 | int | ||||
4204 | main () | ||||
4205 | { | ||||
4206 | |||||
4207 | ; | ||||
4208 | return 0; | ||||
4209 | } | ||||
4210 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4211 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4212 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4213 | else |
4214 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4215 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4217 | /* end confdefs.h. */ |
4218 | |||||
4219 | int | ||||
4220 | main () | ||||
4221 | { | ||||
4222 | |||||
4223 | ; | ||||
4224 | return 0; | ||||
4225 | } | ||||
4226 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4227 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4228 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 4229 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4231 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4233 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4235 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
4236 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4238 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4239 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4240 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4241 | elif test $ac_cv_prog_cc_g = yes; then |
4242 | if test "$GCC" = yes; then | ||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 4243 | CFLAGS="-g -O2" |
4244 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4245 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4246 | fi |
4247 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4248 | if test "$GCC" = yes; then |
4249 | CFLAGS="-O2" | ||||
4250 | else | ||||
4251 | CFLAGS= | ||||
4252 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4253 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4255 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4256 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4257 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4258 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4259 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4260 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4262 | /* end confdefs.h. */ |
4263 | #include <stdarg.h> | ||||
4264 | #include <stdio.h> | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4265 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4266 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4267 | struct buf { int x; }; | ||||
4268 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||||
4269 | static char *e (p, i) | ||||
4270 | char **p; | ||||
4271 | int i; | ||||
4272 | { | ||||
4273 | return p[i]; | ||||
4274 | } | ||||
4275 | static char *f (char * (*g) (char **, int), char **p, ...) | ||||
4276 | { | ||||
4277 | char *s; | ||||
4278 | va_list v; | ||||
4279 | va_start (v,p); | ||||
4280 | s = g (p, va_arg (v,int)); | ||||
4281 | va_end (v); | ||||
4282 | return s; | ||||
4283 | } | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4284 | |
4285 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||||
4286 | function prototypes and stuff, but not '\xHH' hex character constants. | ||||
4287 | These don't provoke an error unfortunately, instead are silently treated | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4288 | as 'x'. The following induces an error, until -std is added to get |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4289 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4290 | array size at least. It's necessary to write '\x00'==0 to get something | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4291 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4292 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4293 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4294 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4295 | inside strings and character constants. */ | ||||
4296 | #define FOO(x) 'x' | ||||
4297 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||||
4298 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4299 | int test (int i, double x); |
4300 | struct s1 {int (*f) (int a);}; | ||||
4301 | struct s2 {int (*f) (double a);}; | ||||
4302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||||
4303 | int argc; | ||||
4304 | char **argv; | ||||
4305 | int | ||||
4306 | main () | ||||
4307 | { | ||||
4308 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||||
4309 | ; | ||||
4310 | return 0; | ||||
4311 | } | ||||
4312 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4313 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4314 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4315 | do |
4316 | CC="$ac_save_CC $ac_arg" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4317 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4318 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4319 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4320 | rm -f core conftest.err conftest.$ac_objext |
4321 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4322 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4323 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4324 | CC=$ac_save_CC |
4325 | |||||
4326 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4327 | # AC_CACHE_VAL |
4328 | case "x$ac_cv_prog_cc_c89" in | ||||
4329 | x) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4331 | $as_echo "none needed" >&6; } ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4332 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4334 | $as_echo "unsupported" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4335 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4336 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4338 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4339 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4340 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4341 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4342 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4344 | ac_ext=c |
4345 | ac_cpp='$CPP $CPPFLAGS' | ||||
4346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4349 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 4350 | ac_ext=c |
4351 | ac_cpp='$CPP $CPPFLAGS' | ||||
4352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||||
4356 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||||
4357 | # On Suns, sometimes $CPP names a directory. | ||||
4358 | if test -n "$CPP" && test -d "$CPP"; then | ||||
4359 | CPP= | ||||
4360 | fi | ||||
4361 | if test -z "$CPP"; then | ||||
4362 | if ${ac_cv_prog_CPP+:} false; then : | ||||
4363 | $as_echo_n "(cached) " >&6 | ||||
4364 | else | ||||
4365 | # Double quotes because CPP needs to be expanded | ||||
4366 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||||
4367 | do | ||||
4368 | ac_preproc_ok=false | ||||
4369 | for ac_c_preproc_warn_flag in '' yes | ||||
4370 | do | ||||
4371 | # Use a header file that comes with gcc, so configuring glibc | ||||
4372 | # with a fresh cross-compiler works. | ||||
4373 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4374 | # <limits.h> exists even on freestanding compilers. | ||||
4375 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4376 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4378 | /* end confdefs.h. */ | ||||
4379 | #ifdef __STDC__ | ||||
4380 | # include <limits.h> | ||||
4381 | #else | ||||
4382 | # include <assert.h> | ||||
4383 | #endif | ||||
4384 | Syntax error | ||||
4385 | _ACEOF | ||||
4386 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4387 | |||||
4388 | else | ||||
4389 | # Broken: fails on valid input. | ||||
4390 | continue | ||||
4391 | fi | ||||
4392 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4393 | |||||
4394 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4395 | # can be detected and how. | ||||
4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4397 | /* end confdefs.h. */ | ||||
4398 | #include <ac_nonexistent.h> | ||||
4399 | _ACEOF | ||||
4400 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4401 | # Broken: success on invalid input. | ||||
4402 | continue | ||||
4403 | else | ||||
4404 | # Passes both tests. | ||||
4405 | ac_preproc_ok=: | ||||
4406 | break | ||||
4407 | fi | ||||
4408 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4409 | |||||
4410 | done | ||||
4411 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4412 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4413 | if $ac_preproc_ok; then : | ||||
4414 | break | ||||
4415 | fi | ||||
4416 | |||||
4417 | done | ||||
4418 | ac_cv_prog_CPP=$CPP | ||||
4419 | |||||
4420 | fi | ||||
4421 | CPP=$ac_cv_prog_CPP | ||||
4422 | else | ||||
4423 | ac_cv_prog_CPP=$CPP | ||||
4424 | fi | ||||
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||||
4426 | $as_echo "$CPP" >&6; } | ||||
4427 | ac_preproc_ok=false | ||||
4428 | for ac_c_preproc_warn_flag in '' yes | ||||
4429 | do | ||||
4430 | # Use a header file that comes with gcc, so configuring glibc | ||||
4431 | # with a fresh cross-compiler works. | ||||
4432 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4433 | # <limits.h> exists even on freestanding compilers. | ||||
4434 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4435 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4437 | /* end confdefs.h. */ | ||||
4438 | #ifdef __STDC__ | ||||
4439 | # include <limits.h> | ||||
4440 | #else | ||||
4441 | # include <assert.h> | ||||
4442 | #endif | ||||
4443 | Syntax error | ||||
4444 | _ACEOF | ||||
4445 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4446 | |||||
4447 | else | ||||
4448 | # Broken: fails on valid input. | ||||
4449 | continue | ||||
4450 | fi | ||||
4451 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4452 | |||||
4453 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4454 | # can be detected and how. | ||||
4455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4456 | /* end confdefs.h. */ | ||||
4457 | #include <ac_nonexistent.h> | ||||
4458 | _ACEOF | ||||
4459 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4460 | # Broken: success on invalid input. | ||||
4461 | continue | ||||
4462 | else | ||||
4463 | # Passes both tests. | ||||
4464 | ac_preproc_ok=: | ||||
4465 | break | ||||
4466 | fi | ||||
4467 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4468 | |||||
4469 | done | ||||
4470 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4471 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4472 | if $ac_preproc_ok; then : | ||||
4473 | |||||
4474 | else | ||||
4475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4476 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
4477 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||||
4478 | See \`config.log' for more details" "$LINENO" 5; } | ||||
4479 | fi | ||||
4480 | |||||
4481 | ac_ext=c | ||||
4482 | ac_cpp='$CPP $CPPFLAGS' | ||||
4483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4486 | |||||
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||||
4488 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||||
4489 | if ${ac_cv_path_GREP+:} false; then : | ||||
4490 | $as_echo_n "(cached) " >&6 | ||||
4491 | else | ||||
4492 | if test -z "$GREP"; then | ||||
4493 | ac_path_GREP_found=false | ||||
4494 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
4497 | do | ||||
4498 | IFS=$as_save_IFS | ||||
4499 | test -z "$as_dir" && as_dir=. | ||||
4500 | for ac_prog in grep ggrep; do | ||||
4501 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4502 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
4503 | as_fn_executable_p "$ac_path_GREP" || continue | ||||
4504 | # Check for GNU ac_path_GREP and select it if it is found. | ||||
4505 | # Check for GNU $ac_path_GREP | ||||
4506 | case `"$ac_path_GREP" --version 2>&1` in | ||||
4507 | *GNU*) | ||||
4508 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
4509 | *) | ||||
4510 | ac_count=0 | ||||
4511 | $as_echo_n 0123456789 >"conftest.in" | ||||
4512 | while : | ||||
4513 | do | ||||
4514 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4515 | mv "conftest.tmp" "conftest.in" | ||||
4516 | cp "conftest.in" "conftest.nl" | ||||
4517 | $as_echo 'GREP' >> "conftest.nl" | ||||
4518 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4520 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4521 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
4522 | # Best one so far, save it but keep looking for a better one | ||||
4523 | ac_cv_path_GREP="$ac_path_GREP" | ||||
4524 | ac_path_GREP_max=$ac_count | ||||
4525 | fi | ||||
4526 | # 10*(2^10) chars as input seems more than enough | ||||
4527 | test $ac_count -gt 10 && break | ||||
4528 | done | ||||
4529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4530 | esac | ||||
4531 | |||||
4532 | $ac_path_GREP_found && break 3 | ||||
4533 | done | ||||
4534 | done | ||||
4535 | done | ||||
4536 | IFS=$as_save_IFS | ||||
4537 | if test -z "$ac_cv_path_GREP"; then | ||||
4538 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
4539 | fi | ||||
4540 | else | ||||
4541 | ac_cv_path_GREP=$GREP | ||||
4542 | fi | ||||
4543 | |||||
4544 | fi | ||||
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||||
4546 | $as_echo "$ac_cv_path_GREP" >&6; } | ||||
4547 | GREP="$ac_cv_path_GREP" | ||||
4548 | |||||
4549 | |||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4551 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||||
4552 | if ${ac_cv_path_SED+:} false; then : | ||||
4553 | $as_echo_n "(cached) " >&6 | ||||
4554 | else | ||||
4555 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||||
4556 | for ac_i in 1 2 3 4 5 6 7; do | ||||
4557 | ac_script="$ac_script$as_nl$ac_script" | ||||
4558 | done | ||||
4559 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||||
4560 | { ac_script=; unset ac_script;} | ||||
4561 | if test -z "$SED"; then | ||||
4562 | ac_path_SED_found=false | ||||
4563 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4565 | for as_dir in $PATH | ||||
4566 | do | ||||
4567 | IFS=$as_save_IFS | ||||
4568 | test -z "$as_dir" && as_dir=. | ||||
4569 | for ac_prog in sed gsed; do | ||||
4570 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4571 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||||
4572 | as_fn_executable_p "$ac_path_SED" || continue | ||||
4573 | # Check for GNU ac_path_SED and select it if it is found. | ||||
4574 | # Check for GNU $ac_path_SED | ||||
4575 | case `"$ac_path_SED" --version 2>&1` in | ||||
4576 | *GNU*) | ||||
4577 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
4578 | *) | ||||
4579 | ac_count=0 | ||||
4580 | $as_echo_n 0123456789 >"conftest.in" | ||||
4581 | while : | ||||
4582 | do | ||||
4583 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4584 | mv "conftest.tmp" "conftest.in" | ||||
4585 | cp "conftest.in" "conftest.nl" | ||||
4586 | $as_echo '' >> "conftest.nl" | ||||
4587 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4588 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4589 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4590 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
4591 | # Best one so far, save it but keep looking for a better one | ||||
4592 | ac_cv_path_SED="$ac_path_SED" | ||||
4593 | ac_path_SED_max=$ac_count | ||||
4594 | fi | ||||
4595 | # 10*(2^10) chars as input seems more than enough | ||||
4596 | test $ac_count -gt 10 && break | ||||
4597 | done | ||||
4598 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4599 | esac | ||||
4600 | |||||
4601 | $ac_path_SED_found && break 3 | ||||
4602 | done | ||||
4603 | done | ||||
4604 | done | ||||
4605 | IFS=$as_save_IFS | ||||
4606 | if test -z "$ac_cv_path_SED"; then | ||||
4607 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||||
4608 | fi | ||||
4609 | else | ||||
4610 | ac_cv_path_SED=$SED | ||||
4611 | fi | ||||
4612 | |||||
4613 | fi | ||||
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||||
4615 | $as_echo "$ac_cv_path_SED" >&6; } | ||||
4616 | SED="$ac_cv_path_SED" | ||||
4617 | rm -f conftest.sed | ||||
4618 | |||||
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 | [diff] [blame] | 4619 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4620 | |
4621 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
4623 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4624 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4625 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4626 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4627 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4628 | |
4629 | case $withval in | ||||
4630 | no) with_cxx_main=no | ||||
4631 | MAINCC='$(CC)';; | ||||
4632 | yes) with_cxx_main=yes | ||||
4633 | MAINCC='$(CXX)';; | ||||
4634 | *) with_cxx_main=yes | ||||
4635 | MAINCC=$withval | ||||
4636 | if test -z "$CXX" | ||||
4637 | then | ||||
4638 | CXX=$withval | ||||
4639 | fi;; | ||||
4640 | esac | ||||
4641 | else | ||||
4642 | |||||
4643 | with_cxx_main=no | ||||
4644 | MAINCC='$(CC)' | ||||
4645 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4646 | fi |
4647 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
4649 | $as_echo "$with_cxx_main" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4650 | |
4651 | preset_cxx="$CXX" | ||||
4652 | if test -z "$CXX" | ||||
4653 | then | ||||
4654 | case "$CC" in | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4655 | gcc) if test -n "$ac_tool_prefix"; then |
4656 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | ||||
4657 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | ||||
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4659 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4660 | if ${ac_cv_path_CXX+:} false; then : | ||||
4661 | $as_echo_n "(cached) " >&6 | ||||
4662 | else | ||||
4663 | case $CXX in | ||||
4664 | [\\/]* | ?:[\\/]*) | ||||
4665 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4666 | ;; | ||||
4667 | *) | ||||
4668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4669 | for as_dir in notfound | ||||
4670 | do | ||||
4671 | IFS=$as_save_IFS | ||||
4672 | test -z "$as_dir" && as_dir=. | ||||
4673 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4674 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4675 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4677 | break 2 | ||||
4678 | fi | ||||
4679 | done | ||||
4680 | done | ||||
4681 | IFS=$as_save_IFS | ||||
4682 | |||||
4683 | ;; | ||||
4684 | esac | ||||
4685 | fi | ||||
4686 | CXX=$ac_cv_path_CXX | ||||
4687 | if test -n "$CXX"; then | ||||
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4689 | $as_echo "$CXX" >&6; } | ||||
4690 | else | ||||
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4692 | $as_echo "no" >&6; } | ||||
4693 | fi | ||||
4694 | |||||
4695 | |||||
4696 | fi | ||||
4697 | if test -z "$ac_cv_path_CXX"; then | ||||
4698 | ac_pt_CXX=$CXX | ||||
4699 | # Extract the first word of "g++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4700 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4702 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4703 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
4704 | $as_echo_n "(cached) " >&6 | ||||
4705 | else | ||||
4706 | case $ac_pt_CXX in | ||||
4707 | [\\/]* | ?:[\\/]*) | ||||
4708 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4709 | ;; | ||||
4710 | *) | ||||
4711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4712 | for as_dir in notfound | ||||
4713 | do | ||||
4714 | IFS=$as_save_IFS | ||||
4715 | test -z "$as_dir" && as_dir=. | ||||
4716 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4718 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4720 | break 2 | ||||
4721 | fi | ||||
4722 | done | ||||
4723 | done | ||||
4724 | IFS=$as_save_IFS | ||||
4725 | |||||
4726 | ;; | ||||
4727 | esac | ||||
4728 | fi | ||||
4729 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4730 | if test -n "$ac_pt_CXX"; then | ||||
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4732 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4733 | else | ||||
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4735 | $as_echo "no" >&6; } | ||||
4736 | fi | ||||
4737 | |||||
4738 | if test "x$ac_pt_CXX" = x; then | ||||
4739 | CXX="g++" | ||||
4740 | else | ||||
4741 | case $cross_compiling:$ac_tool_warned in | ||||
4742 | yes:) | ||||
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4745 | ac_tool_warned=yes ;; | ||||
4746 | esac | ||||
4747 | CXX=$ac_pt_CXX | ||||
4748 | fi | ||||
4749 | else | ||||
4750 | CXX="$ac_cv_path_CXX" | ||||
4751 | fi | ||||
4752 | ;; | ||||
4753 | cc) if test -n "$ac_tool_prefix"; then | ||||
4754 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | ||||
4755 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | ||||
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4757 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4758 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4759 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4760 | else |
4761 | case $CXX in | ||||
4762 | [\\/]* | ?:[\\/]*) | ||||
4763 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4764 | ;; | ||||
4765 | *) | ||||
4766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4767 | for as_dir in notfound | ||||
4768 | do | ||||
4769 | IFS=$as_save_IFS | ||||
4770 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4773 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4775 | break 2 |
4776 | fi | ||||
4777 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4778 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4779 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4780 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4781 | ;; |
4782 | esac | ||||
4783 | fi | ||||
4784 | CXX=$ac_cv_path_CXX | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4785 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4787 | $as_echo "$CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4790 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4792 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4793 | |
4794 | fi | ||||
4795 | if test -z "$ac_cv_path_CXX"; then | ||||
4796 | ac_pt_CXX=$CXX | ||||
4797 | # Extract the first word of "c++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4798 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4800 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4801 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4802 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4803 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4804 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4805 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4806 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4807 | ;; |
4808 | *) | ||||
4809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4810 | for as_dir in notfound | ||||
4811 | do | ||||
4812 | IFS=$as_save_IFS | ||||
4813 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4814 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4816 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4818 | break 2 |
4819 | fi | ||||
4820 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4821 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4822 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4823 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4824 | ;; |
4825 | esac | ||||
4826 | fi | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4827 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
4828 | if test -n "$ac_pt_CXX"; then | ||||
4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4830 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4831 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4833 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4834 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4835 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4836 | if test "x$ac_pt_CXX" = x; then |
4837 | CXX="c++" | ||||
4838 | else | ||||
4839 | case $cross_compiling:$ac_tool_warned in | ||||
4840 | yes:) | ||||
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4843 | ac_tool_warned=yes ;; | ||||
4844 | esac | ||||
4845 | CXX=$ac_pt_CXX | ||||
4846 | fi | ||||
4847 | else | ||||
4848 | CXX="$ac_cv_path_CXX" | ||||
4849 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4850 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4851 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
4852 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | ||||
4853 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4855 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4856 | if ${ac_cv_path_CXX+:} false; then : | ||||
4857 | $as_echo_n "(cached) " >&6 | ||||
4858 | else | ||||
4859 | case $CXX in | ||||
4860 | [\\/]* | ?:[\\/]*) | ||||
4861 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4862 | ;; | ||||
4863 | *) | ||||
4864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4865 | for as_dir in notfound | ||||
4866 | do | ||||
4867 | IFS=$as_save_IFS | ||||
4868 | test -z "$as_dir" && as_dir=. | ||||
4869 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4871 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4873 | break 2 | ||||
4874 | fi | ||||
4875 | done | ||||
4876 | done | ||||
4877 | IFS=$as_save_IFS | ||||
4878 | |||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4879 | ;; |
4880 | esac | ||||
4881 | fi | ||||
4882 | CXX=$ac_cv_path_CXX | ||||
4883 | if test -n "$CXX"; then | ||||
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4885 | $as_echo "$CXX" >&6; } | ||||
4886 | else | ||||
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4888 | $as_echo "no" >&6; } | ||||
4889 | fi | ||||
4890 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4891 | |
4892 | fi | ||||
4893 | if test -z "$ac_cv_path_CXX"; then | ||||
4894 | ac_pt_CXX=$CXX | ||||
4895 | # Extract the first word of "clang++", so it can be a program name with args. | ||||
4896 | set dummy clang++; ac_word=$2 | ||||
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4898 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4899 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4900 | $as_echo_n "(cached) " >&6 | ||||
4901 | else | ||||
4902 | case $ac_pt_CXX in | ||||
4903 | [\\/]* | ?:[\\/]*) | ||||
4904 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4905 | ;; | ||||
4906 | *) | ||||
4907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4908 | for as_dir in notfound | ||||
4909 | do | ||||
4910 | IFS=$as_save_IFS | ||||
4911 | test -z "$as_dir" && as_dir=. | ||||
4912 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4914 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4916 | break 2 | ||||
4917 | fi | ||||
4918 | done | ||||
4919 | done | ||||
4920 | IFS=$as_save_IFS | ||||
4921 | |||||
4922 | ;; | ||||
4923 | esac | ||||
4924 | fi | ||||
4925 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4926 | if test -n "$ac_pt_CXX"; then | ||||
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4928 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4929 | else | ||||
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4931 | $as_echo "no" >&6; } | ||||
4932 | fi | ||||
4933 | |||||
4934 | if test "x$ac_pt_CXX" = x; then | ||||
4935 | CXX="clang++" | ||||
4936 | else | ||||
4937 | case $cross_compiling:$ac_tool_warned in | ||||
4938 | yes:) | ||||
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4940 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4941 | ac_tool_warned=yes ;; | ||||
4942 | esac | ||||
4943 | CXX=$ac_pt_CXX | ||||
4944 | fi | ||||
4945 | else | ||||
4946 | CXX="$ac_cv_path_CXX" | ||||
4947 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4948 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 4949 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
4950 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | ||||
4951 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | ||||
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4953 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4954 | if ${ac_cv_path_CXX+:} false; then : | ||||
4955 | $as_echo_n "(cached) " >&6 | ||||
4956 | else | ||||
4957 | case $CXX in | ||||
4958 | [\\/]* | ?:[\\/]*) | ||||
4959 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4960 | ;; | ||||
4961 | *) | ||||
4962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4963 | for as_dir in notfound | ||||
4964 | do | ||||
4965 | IFS=$as_save_IFS | ||||
4966 | test -z "$as_dir" && as_dir=. | ||||
4967 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
4969 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4971 | break 2 | ||||
4972 | fi | ||||
4973 | done | ||||
4974 | done | ||||
4975 | IFS=$as_save_IFS | ||||
4976 | |||||
4977 | ;; | ||||
4978 | esac | ||||
4979 | fi | ||||
4980 | CXX=$ac_cv_path_CXX | ||||
4981 | if test -n "$CXX"; then | ||||
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4983 | $as_echo "$CXX" >&6; } | ||||
4984 | else | ||||
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4986 | $as_echo "no" >&6; } | ||||
4987 | fi | ||||
4988 | |||||
4989 | |||||
4990 | fi | ||||
4991 | if test -z "$ac_cv_path_CXX"; then | ||||
4992 | ac_pt_CXX=$CXX | ||||
4993 | # Extract the first word of "icpc", so it can be a program name with args. | ||||
4994 | set dummy icpc; ac_word=$2 | ||||
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4996 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4997 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4998 | $as_echo_n "(cached) " >&6 | ||||
4999 | else | ||||
5000 | case $ac_pt_CXX in | ||||
5001 | [\\/]* | ?:[\\/]*) | ||||
5002 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
5003 | ;; | ||||
5004 | *) | ||||
5005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5006 | for as_dir in notfound | ||||
5007 | do | ||||
5008 | IFS=$as_save_IFS | ||||
5009 | test -z "$as_dir" && as_dir=. | ||||
5010 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
5012 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5014 | break 2 | ||||
5015 | fi | ||||
5016 | done | ||||
5017 | done | ||||
5018 | IFS=$as_save_IFS | ||||
5019 | |||||
5020 | ;; | ||||
5021 | esac | ||||
5022 | fi | ||||
5023 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
5024 | if test -n "$ac_pt_CXX"; then | ||||
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
5026 | $as_echo "$ac_pt_CXX" >&6; } | ||||
5027 | else | ||||
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5029 | $as_echo "no" >&6; } | ||||
5030 | fi | ||||
5031 | |||||
5032 | if test "x$ac_pt_CXX" = x; then | ||||
5033 | CXX="icpc" | ||||
5034 | else | ||||
5035 | case $cross_compiling:$ac_tool_warned in | ||||
5036 | yes:) | ||||
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5039 | ac_tool_warned=yes ;; | ||||
5040 | esac | ||||
5041 | CXX=$ac_pt_CXX | ||||
5042 | fi | ||||
5043 | else | ||||
5044 | CXX="$ac_cv_path_CXX" | ||||
5045 | fi | ||||
5046 | ;; | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5047 | esac |
5048 | if test "$CXX" = "notfound" | ||||
5049 | then | ||||
5050 | CXX="" | ||||
5051 | fi | ||||
5052 | fi | ||||
5053 | if test -z "$CXX" | ||||
5054 | then | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5055 | if test -n "$ac_tool_prefix"; then |
5056 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5057 | do | ||||
5058 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5059 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5061 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5062 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5063 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5064 | else |
5065 | if test -n "$CXX"; then | ||||
5066 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||||
5067 | else | ||||
5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5069 | for as_dir in $PATH | ||||
5070 | do | ||||
5071 | IFS=$as_save_IFS | ||||
5072 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5073 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5075 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5077 | break 2 |
5078 | fi | ||||
5079 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5080 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5081 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5082 | |
5083 | fi | ||||
5084 | fi | ||||
5085 | CXX=$ac_cv_prog_CXX | ||||
5086 | if test -n "$CXX"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5088 | $as_echo "$CXX" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5089 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5091 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5092 | fi |
5093 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5094 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5095 | test -n "$CXX" && break |
5096 | done | ||||
5097 | fi | ||||
5098 | if test -z "$CXX"; then | ||||
5099 | ac_ct_CXX=$CXX | ||||
5100 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5101 | do | ||||
5102 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
5103 | set dummy $ac_prog; ac_word=$2 | ||||
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5105 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5106 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||||
5107 | $as_echo_n "(cached) " >&6 | ||||
5108 | else | ||||
5109 | if test -n "$ac_ct_CXX"; then | ||||
5110 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||||
5111 | else | ||||
5112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5113 | for as_dir in $PATH | ||||
5114 | do | ||||
5115 | IFS=$as_save_IFS | ||||
5116 | test -z "$as_dir" && as_dir=. | ||||
5117 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 5118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5119 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5121 | break 2 | ||||
5122 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5123 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5124 | done |
5125 | IFS=$as_save_IFS | ||||
5126 | |||||
5127 | fi | ||||
5128 | fi | ||||
5129 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||||
5130 | if test -n "$ac_ct_CXX"; then | ||||
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||||
5132 | $as_echo "$ac_ct_CXX" >&6; } | ||||
5133 | else | ||||
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5135 | $as_echo "no" >&6; } | ||||
5136 | fi | ||||
5137 | |||||
5138 | |||||
5139 | test -n "$ac_ct_CXX" && break | ||||
5140 | done | ||||
5141 | |||||
5142 | if test "x$ac_ct_CXX" = x; then | ||||
5143 | CXX="notfound" | ||||
5144 | else | ||||
5145 | case $cross_compiling:$ac_tool_warned in | ||||
5146 | yes:) | ||||
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5149 | ac_tool_warned=yes ;; | ||||
5150 | esac | ||||
5151 | CXX=$ac_ct_CXX | ||||
5152 | fi | ||||
5153 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5154 | |
5155 | if test "$CXX" = "notfound" | ||||
5156 | then | ||||
5157 | CXX="" | ||||
5158 | fi | ||||
5159 | fi | ||||
5160 | if test "$preset_cxx" != "$CXX" | ||||
5161 | then | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5163 | |
5164 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5165 | If this is not intended, then set CXX on the configure command line. | ||||
5166 | " >&5 | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5167 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5168 | |
5169 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5170 | If this is not intended, then set CXX on the configure command line. | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5171 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5172 | fi |
5173 | |||||
5174 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
5176 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | ||||
5177 | cat >> conftest.c <<EOF | ||||
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5178 | #undef bfin |
5179 | #undef cris | ||||
5180 | #undef fr30 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5181 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5182 | #undef hppa |
5183 | #undef hpux | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5184 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5185 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 21:31:02 | [diff] [blame] | 5186 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5187 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5188 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 20:05:20 | [diff] [blame] | 5189 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 16:31:28 | [diff] [blame] | 5190 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 20:05:20 | [diff] [blame] | 5191 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5192 | # if defined(__x86_64__) && defined(__LP64__) |
5193 | x86_64-linux-gnu | ||||
5194 | # elif defined(__x86_64__) && defined(__ILP32__) | ||||
5195 | x86_64-linux-gnux32 | ||||
5196 | # elif defined(__i386__) | ||||
5197 | i386-linux-gnu | ||||
5198 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | ||||
5199 | # if defined(__ILP32__) | ||||
5200 | aarch64_ilp32-linux-gnu | ||||
5201 | # else | ||||
5202 | aarch64-linux-gnu | ||||
5203 | # endif | ||||
5204 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | ||||
5205 | # if defined(__ILP32__) | ||||
5206 | aarch64_be_ilp32-linux-gnu | ||||
5207 | # else | ||||
5208 | aarch64_be-linux-gnu | ||||
5209 | # endif | ||||
5210 | # elif defined(__alpha__) | ||||
5211 | alpha-linux-gnu | ||||
5212 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | ||||
5213 | # if defined(__ARMEL__) | ||||
5214 | arm-linux-gnueabihf | ||||
5215 | # else | ||||
5216 | armeb-linux-gnueabihf | ||||
5217 | # endif | ||||
5218 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | ||||
5219 | # if defined(__ARMEL__) | ||||
5220 | arm-linux-gnueabi | ||||
5221 | # else | ||||
5222 | armeb-linux-gnueabi | ||||
5223 | # endif | ||||
5224 | # elif defined(__hppa__) | ||||
5225 | hppa-linux-gnu | ||||
5226 | # elif defined(__ia64__) | ||||
5227 | ia64-linux-gnu | ||||
5228 | # elif defined(__m68k__) && !defined(__mcoldfire__) | ||||
5229 | m68k-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 17:22:16 | [diff] [blame] | 5230 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
5231 | # if _MIPS_SIM == _ABIO32 | ||||
5232 | mipsisa32r6el-linux-gnu | ||||
5233 | # elif _MIPS_SIM == _ABIN32 | ||||
5234 | mipsisa64r6el-linux-gnuabin32 | ||||
5235 | # elif _MIPS_SIM == _ABI64 | ||||
5236 | mipsisa64r6el-linux-gnuabi64 | ||||
5237 | # else | ||||
5238 | # error unknown platform triplet | ||||
5239 | # endif | ||||
5240 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) | ||||
5241 | # if _MIPS_SIM == _ABIO32 | ||||
5242 | mipsisa32r6-linux-gnu | ||||
5243 | # elif _MIPS_SIM == _ABIN32 | ||||
5244 | mipsisa64r6-linux-gnuabin32 | ||||
5245 | # elif _MIPS_SIM == _ABI64 | ||||
5246 | mipsisa64r6-linux-gnuabi64 | ||||
5247 | # else | ||||
5248 | # error unknown platform triplet | ||||
5249 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5250 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
5251 | # if _MIPS_SIM == _ABIO32 | ||||
5252 | mipsel-linux-gnu | ||||
5253 | # elif _MIPS_SIM == _ABIN32 | ||||
5254 | mips64el-linux-gnuabin32 | ||||
5255 | # elif _MIPS_SIM == _ABI64 | ||||
5256 | mips64el-linux-gnuabi64 | ||||
5257 | # else | ||||
5258 | # error unknown platform triplet | ||||
5259 | # endif | ||||
5260 | # elif defined(__mips_hard_float) | ||||
5261 | # if _MIPS_SIM == _ABIO32 | ||||
5262 | mips-linux-gnu | ||||
5263 | # elif _MIPS_SIM == _ABIN32 | ||||
5264 | mips64-linux-gnuabin32 | ||||
5265 | # elif _MIPS_SIM == _ABI64 | ||||
5266 | mips64-linux-gnuabi64 | ||||
5267 | # else | ||||
5268 | # error unknown platform triplet | ||||
5269 | # endif | ||||
5270 | # elif defined(__or1k__) | ||||
5271 | or1k-linux-gnu | ||||
5272 | # elif defined(__powerpc__) && defined(__SPE__) | ||||
5273 | powerpc-linux-gnuspe | ||||
5274 | # elif defined(__powerpc64__) | ||||
5275 | # if defined(__LITTLE_ENDIAN__) | ||||
5276 | powerpc64le-linux-gnu | ||||
5277 | # else | ||||
5278 | powerpc64-linux-gnu | ||||
5279 | # endif | ||||
5280 | # elif defined(__powerpc__) | ||||
5281 | powerpc-linux-gnu | ||||
5282 | # elif defined(__s390x__) | ||||
5283 | s390x-linux-gnu | ||||
5284 | # elif defined(__s390__) | ||||
5285 | s390-linux-gnu | ||||
5286 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | ||||
5287 | sh4-linux-gnu | ||||
5288 | # elif defined(__sparc__) && defined(__arch64__) | ||||
5289 | sparc64-linux-gnu | ||||
5290 | # elif defined(__sparc__) | ||||
5291 | sparc-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 17:22:16 | [diff] [blame] | 5292 | # elif defined(__riscv) |
5293 | # if __riscv_xlen == 32 | ||||
5294 | riscv32-linux-gnu | ||||
5295 | # elif __riscv_xlen == 64 | ||||
5296 | riscv64-linux-gnu | ||||
5297 | # else | ||||
5298 | # error unknown platform triplet | ||||
5299 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5300 | # else |
5301 | # error unknown platform triplet | ||||
5302 | # endif | ||||
5303 | #elif defined(__FreeBSD_kernel__) | ||||
5304 | # if defined(__LP64__) | ||||
5305 | x86_64-kfreebsd-gnu | ||||
5306 | # elif defined(__i386__) | ||||
5307 | i386-kfreebsd-gnu | ||||
5308 | # else | ||||
5309 | # error unknown platform triplet | ||||
5310 | # endif | ||||
5311 | #elif defined(__gnu_hurd__) | ||||
5312 | i386-gnu | ||||
Ned Deily | 3b81248 | 2015-04-16 00:11:47 | [diff] [blame] | 5313 | #elif defined(__APPLE__) |
5314 | darwin | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 5315 | #elif defined(__VXWORKS__) |
5316 | vxworks | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5317 | #else |
5318 | # error unknown platform triplet | ||||
5319 | #endif | ||||
5320 | |||||
5321 | EOF | ||||
5322 | |||||
Xavier de Gaye | 3a32bdf | 2016-07-30 09:28:35 | [diff] [blame] | 5323 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5324 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | ||||
5326 | $as_echo "$PLATFORM_TRIPLET" >&6; } | ||||
5327 | else | ||||
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
5329 | $as_echo "none" >&6; } | ||||
5330 | fi | ||||
5331 | rm -f conftest.c conftest.out | ||||
5332 | |||||
Ned Deily | dea270a | 2022-03-15 14:39:20 | [diff] [blame] | 5333 | if test x$PLATFORM_TRIPLET != xdarwin; then |
5334 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | ||||
5335 | fi | ||||
5336 | |||||
5337 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5338 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
5339 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | ||||
5340 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | ||||
5341 | fi | ||||
doko@ubuntu.com | 75b1cb1 | 2016-08-29 18:03:25 | [diff] [blame] | 5342 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
5343 | MULTIARCH=$PLATFORM_TRIPLET | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5344 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5345 | |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 5346 | if test x$MULTIARCH != x; then |
5347 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | ||||
5348 | fi | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5349 | |
5350 | |||||
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
5352 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | ||||
5353 | save_LDFLAGS="$LDFLAGS" | ||||
5354 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 5355 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 5356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5357 | /* end confdefs.h. */ | ||||
5358 | |||||
5359 | int | ||||
5360 | main () | ||||
5361 | { | ||||
5362 | |||||
5363 | ; | ||||
5364 | return 0; | ||||
5365 | } | ||||
5366 | _ACEOF | ||||
5367 | if ac_fn_c_try_link "$LINENO"; then : | ||||
5368 | NO_AS_NEEDED="-Wl,--no-as-needed" | ||||
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
5370 | $as_echo "yes" >&6; } | ||||
5371 | else | ||||
5372 | NO_AS_NEEDED="" | ||||
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5374 | $as_echo "no" >&6; } | ||||
5375 | fi | ||||
5376 | rm -f core conftest.err conftest.$ac_objext \ | ||||
5377 | conftest$ac_exeext conftest.$ac_ext | ||||
5378 | LDFLAGS="$save_LDFLAGS" | ||||
5379 | |||||
5380 | |||||
5381 | |||||
5382 | # checks for UNIX variants that set C preprocessor variables | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5383 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5385 | $as_echo_n "checking for egrep... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5386 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5387 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5388 | else |
5389 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
5390 | then ac_cv_path_EGREP="$GREP -E" | ||||
5391 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5392 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5393 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5394 | # Loop through the user's path and test for each of PROGNAME-LIST |
5395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5396 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5397 | do | ||||
5398 | IFS=$as_save_IFS | ||||
5399 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5400 | for ac_prog in egrep; do |
5401 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5402 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5403 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5404 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5405 | # Check for GNU $ac_path_EGREP |
5406 | case `"$ac_path_EGREP" --version 2>&1` in | ||||
5407 | *GNU*) | ||||
5408 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
5409 | *) | ||||
5410 | ac_count=0 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5411 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5412 | while : |
5413 | do | ||||
5414 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
5415 | mv "conftest.tmp" "conftest.in" | ||||
5416 | cp "conftest.in" "conftest.nl" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5417 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5418 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5419 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5420 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5421 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5422 | # Best one so far, save it but keep looking for a better one | ||||
5423 | ac_cv_path_EGREP="$ac_path_EGREP" | ||||
5424 | ac_path_EGREP_max=$ac_count | ||||
5425 | fi | ||||
5426 | # 10*(2^10) chars as input seems more than enough | ||||
5427 | test $ac_count -gt 10 && break | ||||
5428 | done | ||||
5429 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
5430 | esac | ||||
5431 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5432 | $ac_path_EGREP_found && break 3 |
5433 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5434 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5435 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5436 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5437 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 5438 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5439 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5440 | else |
5441 | ac_cv_path_EGREP=$EGREP | ||||
5442 | fi | ||||
5443 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5444 | fi |
5445 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5447 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5448 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 5449 | |
5450 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5452 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5453 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5454 | $as_echo_n "(cached) " >&6 |
5455 | else | ||||
5456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5457 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5458 | #include <stdlib.h> |
5459 | #include <stdarg.h> | ||||
5460 | #include <string.h> | ||||
5461 | #include <float.h> | ||||
5462 | |||||
5463 | int | ||||
5464 | main () | ||||
5465 | { | ||||
5466 | |||||
5467 | ; | ||||
5468 | return 0; | ||||
5469 | } | ||||
5470 | _ACEOF | ||||
5471 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5472 | ac_cv_header_stdc=yes | ||||
5473 | else | ||||
5474 | ac_cv_header_stdc=no | ||||
5475 | fi | ||||
5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5477 | |||||
5478 | if test $ac_cv_header_stdc = yes; then | ||||
5479 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5481 | /* end confdefs.h. */ | ||||
5482 | #include <string.h> | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5483 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5484 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5486 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5487 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5488 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5489 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5490 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 5491 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5492 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5493 | fi |
5494 | |||||
5495 | if test $ac_cv_header_stdc = yes; then | ||||
5496 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
5497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5498 | /* end confdefs.h. */ | ||||
5499 | #include <stdlib.h> | ||||
5500 | |||||
5501 | _ACEOF | ||||
5502 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5503 | $EGREP "free" >/dev/null 2>&1; then : | ||||
5504 | |||||
5505 | else | ||||
5506 | ac_cv_header_stdc=no | ||||
5507 | fi | ||||
5508 | rm -f conftest* | ||||
5509 | |||||
5510 | fi | ||||
5511 | |||||
5512 | if test $ac_cv_header_stdc = yes; then | ||||
5513 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
5514 | if test "$cross_compiling" = yes; then : | ||||
5515 | : | ||||
5516 | else | ||||
5517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5518 | /* end confdefs.h. */ | ||||
5519 | #include <ctype.h> | ||||
5520 | #include <stdlib.h> | ||||
5521 | #if ((' ' & 0x0FF) == 0x020) | ||||
5522 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
5523 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
5524 | #else | ||||
5525 | # define ISLOWER(c) \ | ||||
5526 | (('a' <= (c) && (c) <= 'i') \ | ||||
5527 | || ('j' <= (c) && (c) <= 'r') \ | ||||
5528 | || ('s' <= (c) && (c) <= 'z')) | ||||
5529 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
5530 | #endif | ||||
5531 | |||||
5532 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
5533 | int | ||||
5534 | main () | ||||
5535 | { | ||||
5536 | int i; | ||||
5537 | for (i = 0; i < 256; i++) | ||||
5538 | if (XOR (islower (i), ISLOWER (i)) | ||||
5539 | || toupper (i) != TOUPPER (i)) | ||||
5540 | return 2; | ||||
5541 | return 0; | ||||
5542 | } | ||||
5543 | _ACEOF | ||||
5544 | if ac_fn_c_try_run "$LINENO"; then : | ||||
5545 | |||||
5546 | else | ||||
5547 | ac_cv_header_stdc=no | ||||
5548 | fi | ||||
5549 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
5550 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
5551 | fi | ||||
5552 | |||||
5553 | fi | ||||
5554 | fi | ||||
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||
5556 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
5557 | if test $ac_cv_header_stdc = yes; then | ||||
5558 | |||||
5559 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||
5560 | |||||
5561 | fi | ||||
5562 | |||||
5563 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||
5564 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||
5565 | inttypes.h stdint.h unistd.h | ||||
5566 | do : | ||||
5567 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
5568 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||
5569 | " | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 5570 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5571 | cat >>confdefs.h <<_ACEOF |
5572 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
5573 | _ACEOF | ||||
5574 | |||||
5575 | fi | ||||
5576 | |||||
5577 | done | ||||
5578 | |||||
5579 | |||||
5580 | |||||
5581 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5582 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5583 | MINIX=yes |
5584 | else | ||||
5585 | MINIX= | ||||
5586 | fi | ||||
5587 | |||||
5588 | |||||
5589 | if test "$MINIX" = yes; then | ||||
5590 | |||||
5591 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||||
5592 | |||||
5593 | |||||
5594 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||||
5595 | |||||
5596 | |||||
5597 | $as_echo "#define _MINIX 1" >>confdefs.h | ||||
5598 | |||||
5599 | fi | ||||
5600 | |||||
5601 | |||||
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||||
5603 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5604 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5605 | $as_echo_n "(cached) " >&6 |
5606 | else | ||||
5607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5608 | /* end confdefs.h. */ | ||||
5609 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5610 | # define __EXTENSIONS__ 1 |
5611 | $ac_includes_default | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5612 | int |
5613 | main () | ||||
5614 | { | ||||
5615 | |||||
5616 | ; | ||||
5617 | return 0; | ||||
5618 | } | ||||
5619 | _ACEOF | ||||
5620 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5621 | ac_cv_safe_to_define___extensions__=yes | ||||
5622 | else | ||||
5623 | ac_cv_safe_to_define___extensions__=no | ||||
5624 | fi | ||||
5625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5626 | fi | ||||
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||||
5628 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||||
5629 | test $ac_cv_safe_to_define___extensions__ = yes && | ||||
5630 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||||
5631 | |||||
5632 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||||
5633 | |||||
5634 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||||
5635 | |||||
5636 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||||
5637 | |||||
5638 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||||
5639 | |||||
5640 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5641 | |
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
5643 | $as_echo_n "checking for the Android API level... " >&6; } | ||||
5644 | cat >> conftest.c <<EOF | ||||
5645 | #ifdef __ANDROID__ | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5646 | android_api = __ANDROID_API__ |
5647 | arm_arch = __ARM_ARCH | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5648 | #else |
5649 | #error not Android | ||||
5650 | #endif | ||||
5651 | EOF | ||||
5652 | |||||
5653 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5654 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
5655 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
5657 | $as_echo "$ANDROID_API_LEVEL" >&6; } | ||||
xdegaye | c06c22e | 2017-11-23 10:44:38 | [diff] [blame] | 5658 | if test -z "$ANDROID_API_LEVEL"; then |
5659 | echo 'Fatal: you must define __ANDROID_API__' | ||||
5660 | exit 1 | ||||
5661 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5662 | |
5663 | cat >>confdefs.h <<_ACEOF | ||||
5664 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | ||||
5665 | _ACEOF | ||||
5666 | |||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5667 | |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 | ||||
5669 | $as_echo_n "checking for the Android arm ABI... " >&6; } | ||||
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | ||||
5671 | $as_echo "$_arm_arch" >&6; } | ||||
5672 | if test "$_arm_arch" = 7; then | ||||
5673 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | ||||
5674 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | ||||
5675 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5676 | else |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | ||||
5678 | $as_echo "not Android" >&6; } | ||||
5679 | fi | ||||
5680 | rm -f conftest.c conftest.out | ||||
5681 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5682 | # Check for unsupported systems |
5683 | case $ac_sys_system/$ac_sys_release in | ||||
5684 | atheos*|Linux*/1*) | ||||
5685 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | ||||
5686 | echo See README for details. | ||||
5687 | exit 1;; | ||||
5688 | esac | ||||
5689 | |||||
5690 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
5692 | $as_echo_n "checking for --with-suffix... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5693 | |
5694 | # Check whether --with-suffix was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5695 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5696 | withval=$with_suffix; |
5697 | case $withval in | ||||
5698 | no) EXEEXT=;; | ||||
5699 | yes) EXEEXT=.exe;; | ||||
5700 | *) EXEEXT=$withval;; | ||||
5701 | esac | ||||
5702 | fi | ||||
5703 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
5705 | $as_echo "$EXEEXT" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5706 | |
5707 | # Test whether we're running on a non-case-sensitive system, in which | ||||
5708 | # case we give a warning if no ext is given | ||||
5709 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
5711 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5712 | if test ! -d CaseSensitiveTestDir; then |
5713 | mkdir CaseSensitiveTestDir | ||||
5714 | fi | ||||
5715 | |||||
5716 | if test -d casesensitivetestdir | ||||
5717 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5719 | $as_echo "yes" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5720 | BUILDEXEEXT=.exe |
5721 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5723 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5724 | BUILDEXEEXT=$EXEEXT |
5725 | fi | ||||
5726 | rmdir CaseSensitiveTestDir | ||||
5727 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5728 | case $ac_sys_system in |
5729 | hp*|HP*) | ||||
5730 | case $CC in | ||||
5731 | cc|*/cc) CC="$CC -Ae";; | ||||
5732 | esac;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5733 | esac |
5734 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5735 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
5737 | $as_echo_n "checking LIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5738 | if test -z "$LIBRARY" |
5739 | then | ||||
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 | [diff] [blame] | 5740 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
5743 | $as_echo "$LIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5744 | |
5745 | # LDLIBRARY is the name of the library to link against (as opposed to the | ||||
5746 | # name of the library into which to insert object files). BLDLIBRARY is also | ||||
5747 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | ||||
5748 | # is blank as the main program is not linked directly against LDLIBRARY. | ||||
5749 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | ||||
5750 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | ||||
5751 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | ||||
5752 | # DLLLIBRARY is the shared (i.e., DLL) library. | ||||
5753 | # | ||||
5754 | # RUNSHARED is used to run shared python without installed libraries | ||||
5755 | # | ||||
5756 | # INSTSONAME is the name of the shared library that will be use to install | ||||
5757 | # on the system - some systems like version suffix, others don't | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5758 | # |
5759 | # LDVERSION is the shared library version number, normally the Python version | ||||
5760 | # with the ABI build flags appended. | ||||
5761 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5762 | |
5763 | |||||
5764 | |||||
5765 | |||||
5766 | |||||
5767 | |||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5768 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5769 | LDLIBRARY="$LIBRARY" |
5770 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5771 | INSTSONAME='$(LDLIBRARY)' | ||||
5772 | DLLLIBRARY='' | ||||
5773 | LDLIBRARYDIR='' | ||||
5774 | RUNSHARED='' | ||||
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 | [diff] [blame] | 5775 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5776 | |
5777 | # LINKCC is the command that links the python executable -- default is $(CC). | ||||
5778 | # If CXX is set, and if it is needed to link a main function that was | ||||
5779 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | ||||
5780 | # python might then depend on the C++ runtime | ||||
5781 | # This is altered for AIX in order to build the export list before | ||||
5782 | # linking. | ||||
5783 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
5785 | $as_echo_n "checking LINKCC... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5786 | if test -z "$LINKCC" |
5787 | then | ||||
5788 | LINKCC='$(PURIFY) $(MAINCC)' | ||||
5789 | case $ac_sys_system in | ||||
5790 | AIX*) | ||||
5791 | exp_extra="\"\"" | ||||
5792 | if test $ac_sys_release -ge 5 -o \ | ||||
5793 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | ||||
5794 | exp_extra="." | ||||
5795 | fi | ||||
5796 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5797 | QNX*) |
5798 | # qcc must be used because the other compilers do not | ||||
5799 | # support -N. | ||||
5800 | LINKCC=qcc;; | ||||
5801 | esac | ||||
5802 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
5804 | $as_echo "$LINKCC" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5805 | |
5806 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong | ||||
5807 | # make sure we default having it set to "no": this is used by | ||||
5808 | # distutils.unixccompiler to know if it should add --enable-new-dtags | ||||
5809 | # to linker command lines, and failing to detect GNU ld simply results | ||||
5810 | # in the same bahaviour as before. | ||||
5811 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5813 | $as_echo_n "checking for GNU ld... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5814 | ac_prog=ld |
5815 | if test "$GCC" = yes; then | ||||
5816 | ac_prog=`$CC -print-prog-name=ld` | ||||
5817 | fi | ||||
5818 | case `"$ac_prog" -V 2>&1 < /dev/null` in | ||||
5819 | *GNU*) | ||||
5820 | GNULD=yes;; | ||||
5821 | *) | ||||
5822 | GNULD=no;; | ||||
5823 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
5825 | $as_echo "$GNULD" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5826 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
5828 | $as_echo_n "checking for --enable-shared... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5829 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5830 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5831 | enableval=$enable_shared; |
5832 | fi | ||||
5833 | |||||
5834 | |||||
5835 | if test -z "$enable_shared" | ||||
5836 | then | ||||
5837 | case $ac_sys_system in | ||||
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 | [diff] [blame] | 5838 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5839 | enable_shared="yes";; |
5840 | *) | ||||
5841 | enable_shared="no";; | ||||
5842 | esac | ||||
5843 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
5845 | $as_echo "$enable_shared" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5846 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
5848 | $as_echo_n "checking for --enable-profiling... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5849 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5850 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5851 | enableval=$enable_profiling; |
5852 | fi | ||||
5853 | |||||
5854 | if test "x$enable_profiling" = xyes; then | ||||
5855 | ac_save_cc="$CC" | ||||
Benjamin Peterson | 615ea1a | 2013-03-26 12:55:37 | [diff] [blame] | 5856 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5858 | /* end confdefs.h. */ |
5859 | int main() { return 0; } | ||||
5860 | _ACEOF | ||||
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5861 | if ac_fn_c_try_link "$LINENO"; then : |
5862 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5863 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5864 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5865 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5866 | rm -f core conftest.err conftest.$ac_objext \ |
5867 | conftest$ac_exeext conftest.$ac_ext | ||||
5868 | CC="$ac_save_cc" | ||||
5869 | else | ||||
5870 | enable_profiling=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5871 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
5873 | $as_echo "$enable_profiling" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5874 | |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5875 | if test "x$enable_profiling" = xyes; then |
5876 | BASECFLAGS="-pg $BASECFLAGS" | ||||
5877 | LDFLAGS="-pg $LDFLAGS" | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5878 | fi |
5879 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
5881 | $as_echo_n "checking LDLIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5882 | |
5883 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | ||||
5884 | # library that we build, but we do not want to link against it (we | ||||
5885 | # will find it with a -framework option). For this reason there is an | ||||
5886 | # extra variable BLDLIBRARY against which Python and the extension | ||||
5887 | # modules are linked, BLDLIBRARY. This is normally the same as | ||||
5888 | # LDLIBRARY, but empty for MacOSX framework builds. | ||||
5889 | if test "$enable_framework" | ||||
5890 | then | ||||
5891 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5892 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5893 | BLDLIBRARY='' |
5894 | else | ||||
5895 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5896 | fi | ||||
5897 | |||||
5898 | # Other platforms follow | ||||
5899 | if test $enable_shared = "yes"; then | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 5900 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5901 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5902 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5903 | |
5904 | case $ac_sys_system in | ||||
5905 | CYGWIN*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5906 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
5907 | DLLLIBRARY='libpython$(LDVERSION).dll' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5908 | ;; |
5909 | SunOS*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5910 | LDLIBRARY='libpython$(LDVERSION).so' |
5911 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5912 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5913 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 | [diff] [blame] | 5914 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5915 | then |
5916 | PY3LIBRARY=libpython3.so | ||||
5917 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5918 | ;; |
Charles-François Natali | 749400a | 2011-07-24 20:41:18 | [diff] [blame] | 5919 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5920 | LDLIBRARY='libpython$(LDVERSION).so' |
5921 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5922 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5923 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 | [diff] [blame] | 5924 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5925 | then |
5926 | PY3LIBRARY=libpython3.so | ||||
5927 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5928 | ;; |
5929 | hp*|HP*) | ||||
5930 | case `uname -m` in | ||||
5931 | ia64) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5932 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5933 | ;; |
5934 | *) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5935 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5936 | ;; |
5937 | esac | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5938 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5939 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5940 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5941 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5942 | LDLIBRARY='libpython$(LDVERSION).dylib' |
5943 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5944 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5945 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 5946 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5947 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5948 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 5949 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5950 | |
5951 | esac | ||||
5952 | else # shared is disabled | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 5953 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5954 | case $ac_sys_system in |
5955 | CYGWIN*) | ||||
5956 | BLDLIBRARY='$(LIBRARY)' | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5957 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5958 | ;; |
5959 | esac | ||||
5960 | fi | ||||
5961 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 5962 | if test "$cross_compiling" = yes; then |
5963 | RUNSHARED= | ||||
5964 | fi | ||||
5965 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
5967 | $as_echo "$LDLIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5968 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5969 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5970 | if test -n "$ac_tool_prefix"; then |
5971 | for ac_prog in ar aal | ||||
5972 | do | ||||
5973 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5974 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5976 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5977 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5978 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5979 | else |
5980 | if test -n "$AR"; then | ||||
5981 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||||
5982 | else | ||||
5983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5984 | for as_dir in $PATH | ||||
5985 | do | ||||
5986 | IFS=$as_save_IFS | ||||
5987 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5988 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5990 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5992 | break 2 |
5993 | fi | ||||
5994 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5995 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5996 | IFS=$as_save_IFS |
5997 | |||||
5998 | fi | ||||
5999 | fi | ||||
6000 | AR=$ac_cv_prog_AR | ||||
6001 | if test -n "$AR"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6003 | $as_echo "$AR" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6004 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6006 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6007 | fi |
6008 | |||||
6009 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6010 | test -n "$AR" && break |
6011 | done | ||||
6012 | fi | ||||
6013 | if test -z "$AR"; then | ||||
6014 | ac_ct_AR=$AR | ||||
6015 | for ac_prog in ar aal | ||||
6016 | do | ||||
6017 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6018 | set dummy $ac_prog; ac_word=$2 | ||||
6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6020 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6021 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||||
6022 | $as_echo_n "(cached) " >&6 | ||||
6023 | else | ||||
6024 | if test -n "$ac_ct_AR"; then | ||||
6025 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||||
6026 | else | ||||
6027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6028 | for as_dir in $PATH | ||||
6029 | do | ||||
6030 | IFS=$as_save_IFS | ||||
6031 | test -z "$as_dir" && as_dir=. | ||||
6032 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 6033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6034 | ac_cv_prog_ac_ct_AR="$ac_prog" |
6035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6036 | break 2 | ||||
6037 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6038 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6039 | done |
6040 | IFS=$as_save_IFS | ||||
6041 | |||||
6042 | fi | ||||
6043 | fi | ||||
6044 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||||
6045 | if test -n "$ac_ct_AR"; then | ||||
6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||||
6047 | $as_echo "$ac_ct_AR" >&6; } | ||||
6048 | else | ||||
6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6050 | $as_echo "no" >&6; } | ||||
6051 | fi | ||||
6052 | |||||
6053 | |||||
6054 | test -n "$ac_ct_AR" && break | ||||
6055 | done | ||||
6056 | |||||
6057 | if test "x$ac_ct_AR" = x; then | ||||
6058 | AR="ar" | ||||
6059 | else | ||||
6060 | case $cross_compiling:$ac_tool_warned in | ||||
6061 | yes:) | ||||
6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6064 | ac_tool_warned=yes ;; | ||||
6065 | esac | ||||
6066 | AR=$ac_ct_AR | ||||
6067 | fi | ||||
6068 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6069 | |
6070 | |||||
6071 | # tweak ARFLAGS only if the user didn't set it on the command line | ||||
6072 | |||||
6073 | if test -z "$ARFLAGS" | ||||
6074 | then | ||||
Benjamin Peterson | d15108a | 2017-09-29 15:42:41 | [diff] [blame] | 6075 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6076 | fi |
6077 | |||||
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6078 | if test -n "$ac_tool_prefix"; then |
6079 | for ac_prog in readelf | ||||
6080 | do | ||||
6081 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6082 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6084 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6085 | if ${ac_cv_prog_READELF+:} false; then : | ||||
6086 | $as_echo_n "(cached) " >&6 | ||||
6087 | else | ||||
6088 | if test -n "$READELF"; then | ||||
6089 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||||
6090 | else | ||||
6091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6092 | for as_dir in $PATH | ||||
6093 | do | ||||
6094 | IFS=$as_save_IFS | ||||
6095 | test -z "$as_dir" && as_dir=. | ||||
6096 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6098 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
6099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6100 | break 2 | ||||
6101 | fi | ||||
6102 | done | ||||
6103 | done | ||||
6104 | IFS=$as_save_IFS | ||||
6105 | |||||
6106 | fi | ||||
6107 | fi | ||||
6108 | READELF=$ac_cv_prog_READELF | ||||
6109 | if test -n "$READELF"; then | ||||
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | ||||
6111 | $as_echo "$READELF" >&6; } | ||||
6112 | else | ||||
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6114 | $as_echo "no" >&6; } | ||||
6115 | fi | ||||
6116 | |||||
6117 | |||||
6118 | test -n "$READELF" && break | ||||
6119 | done | ||||
6120 | fi | ||||
6121 | if test -z "$READELF"; then | ||||
6122 | ac_ct_READELF=$READELF | ||||
6123 | for ac_prog in readelf | ||||
6124 | do | ||||
6125 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6126 | set dummy $ac_prog; ac_word=$2 | ||||
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6128 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6129 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | ||||
6130 | $as_echo_n "(cached) " >&6 | ||||
6131 | else | ||||
6132 | if test -n "$ac_ct_READELF"; then | ||||
6133 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||||
6134 | else | ||||
6135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6136 | for as_dir in $PATH | ||||
6137 | do | ||||
6138 | IFS=$as_save_IFS | ||||
6139 | test -z "$as_dir" && as_dir=. | ||||
6140 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6142 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
6143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6144 | break 2 | ||||
6145 | fi | ||||
6146 | done | ||||
6147 | done | ||||
6148 | IFS=$as_save_IFS | ||||
6149 | |||||
6150 | fi | ||||
6151 | fi | ||||
6152 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||||
6153 | if test -n "$ac_ct_READELF"; then | ||||
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | ||||
6155 | $as_echo "$ac_ct_READELF" >&6; } | ||||
6156 | else | ||||
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6158 | $as_echo "no" >&6; } | ||||
6159 | fi | ||||
6160 | |||||
6161 | |||||
6162 | test -n "$ac_ct_READELF" && break | ||||
6163 | done | ||||
6164 | |||||
6165 | if test "x$ac_ct_READELF" = x; then | ||||
6166 | READELF=":" | ||||
6167 | else | ||||
6168 | case $cross_compiling:$ac_tool_warned in | ||||
6169 | yes:) | ||||
6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6171 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6172 | ac_tool_warned=yes ;; | ||||
6173 | esac | ||||
6174 | READELF=$ac_ct_READELF | ||||
6175 | fi | ||||
6176 | fi | ||||
6177 | |||||
6178 | if test "$cross_compiling" = yes; then | ||||
6179 | case "$READELF" in | ||||
6180 | readelf|:) | ||||
6181 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||||
6182 | ;; | ||||
6183 | esac | ||||
6184 | fi | ||||
6185 | |||||
6186 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6187 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6188 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-29 05:44:27 | [diff] [blame] | 6189 | hp*|HP*) |
6190 | # install -d does not work on HP-UX | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6191 | if test -z "$INSTALL" |
6192 | then | ||||
6193 | INSTALL="${srcdir}/install-sh -c" | ||||
6194 | fi | ||||
6195 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6196 | # Find a good install program. We prefer a C program (faster), |
6197 | # so one script is as good as another. But avoid the broken or | ||||
6198 | # incompatible versions: | ||||
6199 | # SysV /etc/install, /usr/sbin/install | ||||
6200 | # SunOS /usr/etc/install | ||||
6201 | # IRIX /sbin/install | ||||
6202 | # AIX /bin/install | ||||
6203 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||||
6204 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||||
6205 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||||
6206 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||||
6207 | # OS/2's system install, which has a completely different semantic | ||||
6208 | # ./install, which can be erroneously created by make from ./install.sh. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6209 | # Reject install programs that cannot install multiple files. |
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||||
6211 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6212 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 6213 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6214 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6215 | else |
6216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6217 | for as_dir in $PATH | ||||
6218 | do | ||||
6219 | IFS=$as_save_IFS | ||||
6220 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6221 | # Account for people who put trailing slashes in PATH elements. |
6222 | case $as_dir/ in #(( | ||||
6223 | ./ | .// | /[cC]/* | \ | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6224 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6225 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6226 | /usr/ucb/* ) ;; |
6227 | *) | ||||
6228 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||||
6229 | # Don't use installbsd from OSF since it installs stuff as root | ||||
6230 | # by default. | ||||
6231 | for ac_prog in ginstall scoinst install; do | ||||
6232 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6233 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6234 | if test $ac_prog = install && |
6235 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6236 | # AIX install. It has an incompatible calling convention. | ||||
6237 | : | ||||
6238 | elif test $ac_prog = install && | ||||
6239 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6240 | # program-specific install script used by HP pwplus--don't use. | ||||
6241 | : | ||||
6242 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6243 | rm -rf conftest.one conftest.two conftest.dir |
6244 | echo one > conftest.one | ||||
6245 | echo two > conftest.two | ||||
6246 | mkdir conftest.dir | ||||
6247 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||||
6248 | test -s conftest.one && test -s conftest.two && | ||||
6249 | test -s conftest.dir/conftest.one && | ||||
6250 | test -s conftest.dir/conftest.two | ||||
6251 | then | ||||
6252 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||||
6253 | break 3 | ||||
6254 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6255 | fi |
6256 | fi | ||||
6257 | done | ||||
6258 | done | ||||
6259 | ;; | ||||
6260 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6261 | |
6262 | done | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6263 | IFS=$as_save_IFS |
6264 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6265 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6266 | |
6267 | fi | ||||
6268 | if test "${ac_cv_path_install+set}" = set; then | ||||
6269 | INSTALL=$ac_cv_path_install | ||||
6270 | else | ||||
6271 | # As a last resort, use the slow shell script. Don't cache a | ||||
6272 | # value for INSTALL within a source directory, because that will | ||||
6273 | # break other packages using the cache if that directory is | ||||
6274 | # removed, or if the value is a relative name. | ||||
6275 | INSTALL=$ac_install_sh | ||||
6276 | fi | ||||
6277 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6279 | $as_echo "$INSTALL" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6280 | |
6281 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||||
6282 | # It thinks the first close brace ends the variable substitution. | ||||
6283 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||||
6284 | |||||
6285 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||||
6286 | |||||
6287 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||||
6288 | |||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6290 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||||
6291 | if test -z "$MKDIR_P"; then | ||||
6292 | if ${ac_cv_path_mkdir+:} false; then : | ||||
6293 | $as_echo_n "(cached) " >&6 | ||||
6294 | else | ||||
6295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6296 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||||
6297 | do | ||||
6298 | IFS=$as_save_IFS | ||||
6299 | test -z "$as_dir" && as_dir=. | ||||
6300 | for ac_prog in mkdir gmkdir; do | ||||
6301 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6302 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 6303 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
6304 | 'mkdir (GNU coreutils) '* | \ | ||||
6305 | 'mkdir (coreutils) '* | \ | ||||
6306 | 'mkdir (fileutils) '4.1*) | ||||
6307 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||||
6308 | break 3;; | ||||
6309 | esac | ||||
6310 | done | ||||
6311 | done | ||||
6312 | done | ||||
6313 | IFS=$as_save_IFS | ||||
6314 | |||||
6315 | fi | ||||
6316 | |||||
6317 | test -d ./--version && rmdir ./--version | ||||
6318 | if test "${ac_cv_path_mkdir+set}" = set; then | ||||
6319 | MKDIR_P="$ac_cv_path_mkdir -p" | ||||
6320 | else | ||||
6321 | # As a last resort, use the slow shell script. Don't cache a | ||||
6322 | # value for MKDIR_P within a source directory, because that will | ||||
6323 | # break other packages using the cache if that directory is | ||||
6324 | # removed, or if the value is a relative name. | ||||
6325 | MKDIR_P="$ac_install_sh -d" | ||||
6326 | fi | ||||
6327 | fi | ||||
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||||
6329 | $as_echo "$MKDIR_P" >&6; } | ||||
6330 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6331 | |
6332 | # Not every filesystem supports hard links | ||||
6333 | |||||
6334 | if test -z "$LN" ; then | ||||
6335 | case $ac_sys_system in | ||||
6336 | CYGWIN*) LN="ln -s";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6337 | *) LN=ln;; |
6338 | esac | ||||
6339 | fi | ||||
6340 | |||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 6341 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6342 | |
6343 | ABIFLAGS="" | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 6344 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6345 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
6347 | $as_echo_n "checking for --with-pydebug... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6348 | |
6349 | # Check whether --with-pydebug was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6350 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6351 | withval=$with_pydebug; |
6352 | if test "$withval" != no | ||||
6353 | then | ||||
6354 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6355 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6356 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6358 | $as_echo "yes" >&6; }; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6359 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6360 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6361 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6362 | $as_echo "no" >&6; }; Py_DEBUG='false' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6363 | fi |
6364 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6366 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6367 | fi |
6368 | |||||
6369 | |||||
Victor Stinner | f4e4703 | 2019-04-24 22:56:28 | [diff] [blame] | 6370 | # Check for --with-trace-refs |
6371 | # --with-trace-refs | ||||
6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 | ||||
6373 | $as_echo_n "checking for --with-trace-refs... " >&6; } | ||||
6374 | |||||
6375 | # Check whether --with-trace-refs was given. | ||||
6376 | if test "${with_trace_refs+set}" = set; then : | ||||
6377 | withval=$with_trace_refs; | ||||
6378 | else | ||||
6379 | with_trace_refs=no | ||||
6380 | fi | ||||
6381 | |||||
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 | ||||
6383 | $as_echo "$with_trace_refs" >&6; } | ||||
6384 | |||||
6385 | if test "$with_trace_refs" = "yes" | ||||
6386 | then | ||||
6387 | |||||
6388 | $as_echo "#define Py_TRACE_REFS 1" >>confdefs.h | ||||
6389 | |||||
6390 | fi | ||||
6391 | |||||
6392 | # Check for --with-assertions. | ||||
6393 | # This allows enabling assertions without Py_DEBUG. | ||||
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 6394 | assertions='false' |
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 | ||||
6396 | $as_echo_n "checking for --with-assertions... " >&6; } | ||||
6397 | |||||
6398 | # Check whether --with-assertions was given. | ||||
6399 | if test "${with_assertions+set}" = set; then : | ||||
6400 | withval=$with_assertions; | ||||
6401 | if test "$withval" != no | ||||
6402 | then | ||||
6403 | assertions='true' | ||||
6404 | fi | ||||
6405 | fi | ||||
6406 | |||||
6407 | if test "$assertions" = 'true'; then | ||||
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6409 | $as_echo "yes" >&6; } | ||||
6410 | elif test "$Py_DEBUG" = 'true'; then | ||||
6411 | assertions='true' | ||||
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 | ||||
6413 | $as_echo "implied by --with-pydebug" >&6; } | ||||
6414 | else | ||||
6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6416 | $as_echo "no" >&6; } | ||||
6417 | fi | ||||
6418 | |||||
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6419 | # Enable optimization flags |
6420 | |||||
6421 | |||||
6422 | Py_OPT='false' | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
6424 | $as_echo_n "checking for --enable-optimizations... " >&6; } | ||||
6425 | # Check whether --enable-optimizations was given. | ||||
6426 | if test "${enable_optimizations+set}" = set; then : | ||||
6427 | enableval=$enable_optimizations; | ||||
Alex Wang | 8cea592 | 2017-03-28 12:50:51 | [diff] [blame] | 6428 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6429 | then |
6430 | Py_OPT='true' | ||||
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6432 | $as_echo "yes" >&6; }; | ||||
6433 | else | ||||
6434 | Py_OPT='false' | ||||
6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6436 | $as_echo "no" >&6; }; | ||||
6437 | fi | ||||
6438 | else | ||||
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6440 | $as_echo "no" >&6; } | ||||
6441 | fi | ||||
6442 | |||||
6443 | if test "$Py_OPT" = 'true' ; then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 | [diff] [blame] | 6444 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
6445 | # compile working code using it and both test_distutils and test_gdb are | ||||
Brett Cannon | 1d8f755 | 2016-11-03 23:20:00 | [diff] [blame] | 6446 | # broken when you do manage to get a toolchain that works with it. People |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 | [diff] [blame] | 6447 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6448 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6449 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6450 | DEF_MAKE_RULE="build_all" |
6451 | else | ||||
6452 | DEF_MAKE_ALL_RULE="build_all" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6453 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6454 | DEF_MAKE_RULE="all" |
6455 | fi | ||||
6456 | |||||
Miss Islington (bot) | 2406672 | 2019-07-22 20:17:23 | [diff] [blame] | 6457 | |
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 | ||||
6459 | $as_echo_n "checking PROFILE_TASK... " >&6; } | ||||
6460 | if test -z "$PROFILE_TASK" | ||||
6461 | then | ||||
6462 | PROFILE_TASK='-m test --pgo' | ||||
6463 | fi | ||||
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 | ||||
6465 | $as_echo "$PROFILE_TASK" >&6; } | ||||
6466 | |||||
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6467 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
6468 | # normal names in the default $PATH (ie: Ubuntu). They exist under the | ||||
6469 | # non-suffixed name in their versioned llvm directory. | ||||
6470 | |||||
6471 | llvm_bin_dir='' | ||||
6472 | llvm_path="${PATH}" | ||||
6473 | if test "${CC}" = "clang" | ||||
6474 | then | ||||
6475 | clang_bin=`which clang` | ||||
6476 | # Some systems install clang elsewhere as a symlink to the real path | ||||
6477 | # which is where the related llvm tools are located. | ||||
6478 | if test -L "${clang_bin}" | ||||
6479 | then | ||||
6480 | clang_dir=`dirname "${clang_bin}"` | ||||
6481 | clang_bin=`readlink "${clang_bin}"` | ||||
6482 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | ||||
6483 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | ||||
6484 | fi | ||||
6485 | fi | ||||
6486 | |||||
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 6487 | # Enable LTO flags |
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
6489 | $as_echo_n "checking for --with-lto... " >&6; } | ||||
6490 | |||||
6491 | # Check whether --with-lto was given. | ||||
6492 | if test "${with_lto+set}" = set; then : | ||||
6493 | withval=$with_lto; | ||||
6494 | if test "$withval" != no | ||||
6495 | then | ||||
6496 | Py_LTO='true' | ||||
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6498 | $as_echo "yes" >&6; }; | ||||
6499 | else | ||||
6500 | Py_LTO='false' | ||||
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6502 | $as_echo "no" >&6; }; | ||||
6503 | fi | ||||
6504 | else | ||||
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6506 | $as_echo "no" >&6; } | ||||
6507 | fi | ||||
6508 | |||||
6509 | if test "$Py_LTO" = 'true' ; then | ||||
6510 | case $CC in | ||||
6511 | *clang*) | ||||
Victor Stinner | 06fe77a | 2018-06-19 16:24:58 | [diff] [blame] | 6512 | |
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6513 | if test -n "$ac_tool_prefix"; then |
6514 | # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. | ||||
6515 | set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 | ||||
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6517 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6518 | if ${ac_cv_path_LLVM_AR+:} false; then : | ||||
6519 | $as_echo_n "(cached) " >&6 | ||||
6520 | else | ||||
6521 | case $LLVM_AR in | ||||
6522 | [\\/]* | ?:[\\/]*) | ||||
6523 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. | ||||
6524 | ;; | ||||
6525 | *) | ||||
6526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6527 | for as_dir in ${llvm_path} | ||||
6528 | do | ||||
6529 | IFS=$as_save_IFS | ||||
6530 | test -z "$as_dir" && as_dir=. | ||||
6531 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6533 | ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6535 | break 2 | ||||
6536 | fi | ||||
6537 | done | ||||
6538 | done | ||||
6539 | IFS=$as_save_IFS | ||||
6540 | |||||
6541 | ;; | ||||
6542 | esac | ||||
6543 | fi | ||||
6544 | LLVM_AR=$ac_cv_path_LLVM_AR | ||||
6545 | if test -n "$LLVM_AR"; then | ||||
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 | ||||
6547 | $as_echo "$LLVM_AR" >&6; } | ||||
6548 | else | ||||
6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6550 | $as_echo "no" >&6; } | ||||
6551 | fi | ||||
6552 | |||||
6553 | |||||
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6554 | fi |
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6555 | if test -z "$ac_cv_path_LLVM_AR"; then |
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6556 | ac_pt_LLVM_AR=$LLVM_AR |
6557 | # Extract the first word of "llvm-ar", so it can be a program name with args. | ||||
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6558 | set dummy llvm-ar; ac_word=$2 |
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6560 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6561 | if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : | ||||
6562 | $as_echo_n "(cached) " >&6 | ||||
6563 | else | ||||
6564 | case $ac_pt_LLVM_AR in | ||||
6565 | [\\/]* | ?:[\\/]*) | ||||
6566 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. | ||||
6567 | ;; | ||||
6568 | *) | ||||
6569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6570 | for as_dir in ${llvm_path} | ||||
6571 | do | ||||
6572 | IFS=$as_save_IFS | ||||
6573 | test -z "$as_dir" && as_dir=. | ||||
6574 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6576 | ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6578 | break 2 | ||||
6579 | fi | ||||
6580 | done | ||||
6581 | done | ||||
6582 | IFS=$as_save_IFS | ||||
6583 | |||||
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6584 | ;; |
6585 | esac | ||||
6586 | fi | ||||
6587 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR | ||||
6588 | if test -n "$ac_pt_LLVM_AR"; then | ||||
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 | ||||
6590 | $as_echo "$ac_pt_LLVM_AR" >&6; } | ||||
6591 | else | ||||
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6593 | $as_echo "no" >&6; } | ||||
6594 | fi | ||||
6595 | |||||
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6596 | if test "x$ac_pt_LLVM_AR" = x; then |
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6597 | LLVM_AR="''" |
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6598 | else |
6599 | case $cross_compiling:$ac_tool_warned in | ||||
6600 | yes:) | ||||
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6602 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6603 | ac_tool_warned=yes ;; | ||||
6604 | esac | ||||
6605 | LLVM_AR=$ac_pt_LLVM_AR | ||||
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6606 | fi |
6607 | else | ||||
6608 | LLVM_AR="$ac_cv_path_LLVM_AR" | ||||
6609 | fi | ||||
6610 | |||||
6611 | |||||
6612 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" | ||||
6613 | then | ||||
6614 | LLVM_AR_FOUND="found" | ||||
6615 | else | ||||
6616 | LLVM_AR_FOUND="not-found" | ||||
6617 | fi | ||||
6618 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" | ||||
6619 | then | ||||
6620 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` | ||||
6621 | if test -n "${found_llvm_ar}" | ||||
6622 | then | ||||
6623 | LLVM_AR='/usr/bin/xcrun llvm-ar' | ||||
6624 | LLVM_AR_FOUND=found | ||||
6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 | ||||
6626 | $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} | ||||
6627 | fi | ||||
6628 | fi | ||||
6629 | if test $LLVM_AR_FOUND = not-found | ||||
6630 | then | ||||
6631 | LLVM_PROFR_ERR=yes | ||||
6632 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 | ||||
6633 | else | ||||
6634 | LLVM_AR_ERR=no | ||||
6635 | fi | ||||
6636 | AR="${LLVM_AR}" | ||||
6637 | case $ac_sys_system in | ||||
6638 | Darwin*) | ||||
6639 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6640 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6641 | ;; | ||||
6642 | *) | ||||
6643 | LTOFLAGS="-flto" | ||||
6644 | ;; | ||||
6645 | esac | ||||
6646 | ;; | ||||
6647 | *gcc*) | ||||
6648 | case $ac_sys_system in | ||||
6649 | Darwin*) | ||||
6650 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6651 | ;; | ||||
6652 | *) | ||||
6653 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | ||||
6654 | ;; | ||||
6655 | esac | ||||
6656 | ;; | ||||
6657 | esac | ||||
6658 | |||||
6659 | if test "$ac_cv_prog_cc_g" = "yes" | ||||
6660 | then | ||||
6661 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO | ||||
6662 | # to get debug symbols. | ||||
6663 | LTOFLAGS="$LTOFLAGS -g" | ||||
6664 | fi | ||||
6665 | |||||
stratakis | f92c7aa | 2018-12-04 14:54:01 | [diff] [blame] | 6666 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
stratakis | cf10a75 | 2018-12-19 17:19:01 | [diff] [blame] | 6667 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
serge-sans-paille | 5ad36f9 | 2018-10-24 23:54:22 | [diff] [blame] | 6668 | fi |
6669 | |||||
6670 | # Enable PGO flags. | ||||
6671 | |||||
6672 | |||||
6673 | |||||
6674 | |||||
6675 | |||||
6676 | |||||
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6677 | if test -n "$ac_tool_prefix"; then |
6678 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. | ||||
6679 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6681 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6682 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | ||||
6683 | $as_echo_n "(cached) " >&6 | ||||
6684 | else | ||||
6685 | case $LLVM_PROFDATA in | ||||
6686 | [\\/]* | ?:[\\/]*) | ||||
6687 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6688 | ;; | ||||
6689 | *) | ||||
6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6691 | for as_dir in ${llvm_path} | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6692 | do |
6693 | IFS=$as_save_IFS | ||||
6694 | test -z "$as_dir" && as_dir=. | ||||
6695 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6697 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6699 | break 2 | ||||
6700 | fi | ||||
6701 | done | ||||
6702 | done | ||||
6703 | IFS=$as_save_IFS | ||||
6704 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6705 | ;; |
6706 | esac | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6707 | fi |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6708 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
6709 | if test -n "$LLVM_PROFDATA"; then | ||||
6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | ||||
6711 | $as_echo "$LLVM_PROFDATA" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6712 | else |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6714 | $as_echo "no" >&6; } | ||||
6715 | fi | ||||
6716 | |||||
6717 | |||||
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6718 | fi |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6719 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6720 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
6721 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6722 | set dummy llvm-profdata; ac_word=$2 |
6723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6724 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6725 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | ||||
6726 | $as_echo_n "(cached) " >&6 | ||||
6727 | else | ||||
6728 | case $ac_pt_LLVM_PROFDATA in | ||||
6729 | [\\/]* | ?:[\\/]*) | ||||
6730 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6731 | ;; | ||||
6732 | *) | ||||
6733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6734 | for as_dir in ${llvm_path} | ||||
6735 | do | ||||
6736 | IFS=$as_save_IFS | ||||
6737 | test -z "$as_dir" && as_dir=. | ||||
6738 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6740 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6742 | break 2 | ||||
6743 | fi | ||||
6744 | done | ||||
6745 | done | ||||
6746 | IFS=$as_save_IFS | ||||
6747 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6748 | ;; |
6749 | esac | ||||
6750 | fi | ||||
6751 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | ||||
6752 | if test -n "$ac_pt_LLVM_PROFDATA"; then | ||||
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | ||||
6754 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | ||||
6755 | else | ||||
6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6757 | $as_echo "no" >&6; } | ||||
6758 | fi | ||||
6759 | |||||
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6760 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6761 | LLVM_PROFDATA="''" |
Miss Islington (bot) | 97d7ba4 | 2019-09-13 14:50:43 | [diff] [blame] | 6762 | else |
6763 | case $cross_compiling:$ac_tool_warned in | ||||
6764 | yes:) | ||||
6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6767 | ac_tool_warned=yes ;; | ||||
6768 | esac | ||||
6769 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6770 | fi |
6771 | else | ||||
6772 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | ||||
6773 | fi | ||||
6774 | |||||
6775 | |||||
6776 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | ||||
6777 | then | ||||
6778 | LLVM_PROF_FOUND="found" | ||||
6779 | else | ||||
6780 | LLVM_PROF_FOUND="not-found" | ||||
6781 | fi | ||||
6782 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | ||||
6783 | then | ||||
6784 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | ||||
6785 | if test -n "${found_llvm_profdata}" | ||||
6786 | then | ||||
6787 | # llvm-profdata isn't directly in $PATH in some cases. | ||||
6788 | # https://apple.stackexchange.com/questions/197053/ | ||||
6789 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | ||||
6790 | LLVM_PROF_FOUND=found | ||||
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | ||||
6792 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | ||||
6793 | fi | ||||
6794 | fi | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6795 | LLVM_PROF_ERR=no |
6796 | case $CC in | ||||
6797 | *clang*) | ||||
6798 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6799 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6800 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6801 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6802 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
6803 | if test $LLVM_PROF_FOUND = not-found | ||||
6804 | then | ||||
6805 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6806 | if test "${REQUIRE_PGO}" = "yes" |
6807 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6808 | as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6809 | fi |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6810 | fi |
6811 | ;; | ||||
6812 | *gcc*) | ||||
6813 | case $ac_sys_system in | ||||
6814 | Darwin*) | ||||
6815 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6816 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6817 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6818 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6819 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6820 | then |
6821 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6822 | if test "${REQUIRE_PGO}" = "yes" |
6823 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6824 | as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6825 | fi |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6826 | fi |
6827 | ;; | ||||
6828 | *) | ||||
6829 | PGO_PROF_GEN_FLAG="-fprofile-generate" | ||||
6830 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||||
6831 | LLVM_PROF_MERGER="true" | ||||
6832 | LLVM_PROF_FILE="" | ||||
6833 | ;; | ||||
6834 | esac | ||||
6835 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 6836 | *icc*) |
6837 | PGO_PROF_GEN_FLAG="-prof-gen" | ||||
6838 | PGO_PROF_USE_FLAG="-prof-use" | ||||
6839 | LLVM_PROF_MERGER="true" | ||||
6840 | LLVM_PROF_FILE="" | ||||
6841 | ;; | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6842 | esac |
6843 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6844 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
6845 | # merged with this chunk of code? | ||||
6846 | |||||
6847 | # Optimizer/debugger flags | ||||
6848 | # ------------------------ | ||||
6849 | # (The following bit of code is complicated enough - please keep things | ||||
6850 | # indented properly. Just pretend you're editing Python code. ;-) | ||||
6851 | |||||
6852 | # There are two parallel sets of case statements below, one that checks to | ||||
6853 | # see if OPT was set and one that does BASECFLAGS setting based upon | ||||
6854 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | ||||
6855 | # user set OPT. | ||||
6856 | |||||
Victor Stinner | 23a683a | 2019-04-12 19:27:37 | [diff] [blame] | 6857 | case $CC in |
6858 | *clang*) | ||||
6859 | cc_is_clang=1 | ||||
6860 | ;; | ||||
6861 | *) | ||||
6862 | if $CC --version 2>&1 | grep -q clang | ||||
6863 | then | ||||
6864 | cc_is_clang=1 | ||||
6865 | else | ||||
6866 | cc_is_clang= | ||||
6867 | fi | ||||
6868 | esac | ||||
6869 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6870 | # tweak OPT based on compiler and platform, only if the user didn't set |
6871 | # it on the command line | ||||
6872 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 20:35:58 | [diff] [blame] | 6873 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 | [diff] [blame] | 6874 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6875 | then |
6876 | case $GCC in | ||||
6877 | yes) | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6878 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
6879 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | ||||
6880 | WRAP="-fwrapv" | ||||
6881 | fi | ||||
Stefan Krah | 962055d | 2011-09-14 13:14:08 | [diff] [blame] | 6882 | |
Victor Stinner | 35f3d24 | 2017-04-21 10:35:24 | [diff] [blame] | 6883 | if test -n "${cc_is_clang}" |
6884 | then | ||||
6885 | # Clang also needs -fwrapv | ||||
6886 | WRAP="-fwrapv" | ||||
Victor Stinner | 9ed34a8 | 2017-05-02 20:35:58 | [diff] [blame] | 6887 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
6888 | # see Makefile.pre.in for more information | ||||
Victor Stinner | 826f83f | 2017-04-28 13:07:10 | [diff] [blame] | 6889 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 10:35:24 | [diff] [blame] | 6890 | fi |
6891 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6892 | case $ac_cv_prog_cc_g in |
6893 | yes) | ||||
6894 | if test "$Py_DEBUG" = 'true' ; then | ||||
6895 | # Optimization messes up debuggers, so turn it off for | ||||
6896 | # debug builds. | ||||
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6897 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6898 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6899 | else |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6900 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6901 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6902 | else |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6903 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6904 | fi |
6905 | ;; | ||||
6906 | *) | ||||
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6907 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6908 | ;; |
6909 | esac | ||||
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6910 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6911 | case $ac_sys_system in |
6912 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | ||||
6913 | ;; | ||||
6914 | esac | ||||
6915 | ;; | ||||
6916 | |||||
6917 | *) | ||||
6918 | OPT="-O" | ||||
6919 | ;; | ||||
6920 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6921 | fi |
6922 | |||||
6923 | |||||
6924 | |||||
Benjamin Peterson | acb8c52 | 2014-08-10 03:01:49 | [diff] [blame] | 6925 | |
stratakis | cf10a75 | 2018-12-19 17:19:01 | [diff] [blame] | 6926 | |
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 6927 | # The -arch flags for universal builds on macOS |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6928 | UNIVERSAL_ARCH_FLAGS= |
6929 | |||||
6930 | |||||
6931 | # tweak BASECFLAGS based on compiler and platform | ||||
6932 | case $GCC in | ||||
6933 | yes) | ||||
Benjamin Peterson | 050af5d | 2016-09-11 00:53:13 | [diff] [blame] | 6934 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 19:00:06 | [diff] [blame] | 6935 | |
Serhiy Storchaka | ea80ffb | 2016-09-11 18:56:32 | [diff] [blame] | 6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
6937 | $as_echo_n "checking for -Wextra... " >&6; } | ||||
6938 | ac_save_cc="$CC" | ||||
6939 | CC="$CC -Wextra -Werror" | ||||
6940 | if ${ac_cv_extra_warnings+:} false; then : | ||||
6941 | $as_echo_n "(cached) " >&6 | ||||
6942 | else | ||||
6943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
6944 | /* end confdefs.h. */ | ||||
6945 | |||||
6946 | |||||
6947 | int | ||||
6948 | main () | ||||
6949 | { | ||||
6950 | |||||
6951 | ; | ||||
6952 | return 0; | ||||
6953 | } | ||||
6954 | |||||
6955 | _ACEOF | ||||
6956 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
6957 | |||||
6958 | ac_cv_extra_warnings=yes | ||||
6959 | |||||
6960 | else | ||||
6961 | |||||
6962 | ac_cv_extra_warnings=no | ||||
6963 | |||||
6964 | fi | ||||
6965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
6966 | fi | ||||
6967 | |||||
6968 | CC="$ac_save_cc" | ||||
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | ||||
6970 | $as_echo "$ac_cv_extra_warnings" >&6; } | ||||
6971 | |||||
6972 | if test $ac_cv_extra_warnings = yes | ||||
6973 | then | ||||
6974 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | ||||
6975 | fi | ||||
6976 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6977 | # Python doesn't violate C99 aliasing rules, but older versions of |
6978 | # GCC produce warnings for legal Python code. Enable | ||||
6979 | # -fno-strict-aliasing on versions of GCC that support but produce | ||||
6980 | # warnings. See Issue3326 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
6982 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6983 | ac_save_cc="$CC" |
6984 | CC="$CC -fno-strict-aliasing" | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6985 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 6986 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6987 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 6988 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6990 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 6991 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 6992 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 6993 | int |
6994 | main () | ||||
6995 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 6996 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 6997 | ; |
6998 | return 0; | ||||
6999 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7000 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7001 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7002 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7003 | |
7004 | CC="$ac_save_cc -fstrict-aliasing" | ||||
7005 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | ||||
7006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7007 | /* end confdefs.h. */ |
7008 | |||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 7009 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7010 | int |
7011 | main () | ||||
7012 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 7013 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7014 | ; |
7015 | return 0; | ||||
7016 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7017 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7018 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7019 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7020 | |
7021 | ac_cv_no_strict_aliasing=no | ||||
7022 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7023 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7024 | |
7025 | ac_cv_no_strict_aliasing=yes | ||||
7026 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7027 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7029 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7030 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7031 | |
7032 | ac_cv_no_strict_aliasing=no | ||||
7033 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7034 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 7035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 7036 | fi |
7037 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7038 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7039 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
7041 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7042 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7043 | then |
7044 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | ||||
7045 | fi | ||||
7046 | |||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7047 | # ICC doesn't recognize the option, but only emits a warning |
7048 | ## XXX does it emit an unused result warning and can it be disabled? | ||||
7049 | case "$CC" in | ||||
7050 | *icc*) | ||||
7051 | ac_cv_disable_unused_result_warning=no | ||||
7052 | ;; | ||||
7053 | *) | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
7055 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | ||||
7056 | ac_save_cc="$CC" | ||||
7057 | CC="$CC -Wunused-result -Werror" | ||||
7058 | save_CFLAGS="$CFLAGS" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7059 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7060 | $as_echo_n "(cached) " >&6 |
7061 | else | ||||
7062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7063 | /* end confdefs.h. */ | ||||
7064 | |||||
7065 | |||||
7066 | int | ||||
7067 | main () | ||||
7068 | { | ||||
7069 | |||||
7070 | ; | ||||
7071 | return 0; | ||||
7072 | } | ||||
7073 | |||||
7074 | _ACEOF | ||||
7075 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7076 | |||||
7077 | ac_cv_disable_unused_result_warning=yes | ||||
7078 | |||||
7079 | else | ||||
7080 | |||||
7081 | ac_cv_disable_unused_result_warning=no | ||||
7082 | |||||
7083 | fi | ||||
7084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7085 | fi | ||||
7086 | |||||
7087 | CFLAGS="$save_CFLAGS" | ||||
7088 | CC="$ac_save_cc" | ||||
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | ||||
7090 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7091 | ;; |
7092 | esac | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7093 | |
7094 | if test $ac_cv_disable_unused_result_warning = yes | ||||
7095 | then | ||||
7096 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 18:56:32 | [diff] [blame] | 7097 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
7098 | fi | ||||
7099 | |||||
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | ||||
7101 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | ||||
7102 | ac_save_cc="$CC" | ||||
7103 | CC="$CC -Wunused-parameter -Werror" | ||||
7104 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | ||||
7105 | $as_echo_n "(cached) " >&6 | ||||
7106 | else | ||||
7107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7108 | /* end confdefs.h. */ | ||||
7109 | |||||
7110 | |||||
7111 | int | ||||
7112 | main () | ||||
7113 | { | ||||
7114 | |||||
7115 | ; | ||||
7116 | return 0; | ||||
7117 | } | ||||
7118 | |||||
7119 | _ACEOF | ||||
7120 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7121 | |||||
7122 | ac_cv_disable_unused_parameter_warning=yes | ||||
7123 | |||||
7124 | else | ||||
7125 | |||||
7126 | ac_cv_disable_unused_parameter_warning=no | ||||
7127 | |||||
7128 | fi | ||||
7129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7130 | fi | ||||
7131 | |||||
7132 | CC="$ac_save_cc" | ||||
7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | ||||
7134 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | ||||
7135 | |||||
7136 | if test $ac_cv_disable_unused_parameter_warning = yes | ||||
7137 | then | ||||
7138 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | ||||
7139 | fi | ||||
7140 | |||||
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | ||||
7142 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | ||||
7143 | ac_save_cc="$CC" | ||||
7144 | CC="$CC -Wmissing-field-initializers -Werror" | ||||
7145 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | ||||
7146 | $as_echo_n "(cached) " >&6 | ||||
7147 | else | ||||
7148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7149 | /* end confdefs.h. */ | ||||
7150 | |||||
7151 | |||||
7152 | int | ||||
7153 | main () | ||||
7154 | { | ||||
7155 | |||||
7156 | ; | ||||
7157 | return 0; | ||||
7158 | } | ||||
7159 | |||||
7160 | _ACEOF | ||||
7161 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7162 | |||||
7163 | ac_cv_disable_missing_field_initializers=yes | ||||
7164 | |||||
7165 | else | ||||
7166 | |||||
7167 | ac_cv_disable_missing_field_initializers=no | ||||
7168 | |||||
7169 | fi | ||||
7170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7171 | fi | ||||
7172 | |||||
7173 | CC="$ac_save_cc" | ||||
7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | ||||
7175 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | ||||
7176 | |||||
7177 | if test $ac_cv_disable_missing_field_initializers = yes | ||||
7178 | then | ||||
7179 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7180 | fi |
7181 | |||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7183 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | ||||
7184 | ac_save_cc="$CC" | ||||
7185 | CC="$CC -Wsign-compare" | ||||
7186 | save_CFLAGS="$CFLAGS" | ||||
7187 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | ||||
7188 | $as_echo_n "(cached) " >&6 | ||||
7189 | else | ||||
7190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7191 | /* end confdefs.h. */ | ||||
7192 | |||||
7193 | |||||
7194 | int | ||||
7195 | main () | ||||
7196 | { | ||||
7197 | |||||
7198 | ; | ||||
7199 | return 0; | ||||
7200 | } | ||||
7201 | |||||
7202 | _ACEOF | ||||
7203 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7204 | |||||
7205 | ac_cv_enable_sign_compare_warning=yes | ||||
7206 | |||||
7207 | else | ||||
7208 | |||||
7209 | ac_cv_enable_sign_compare_warning=no | ||||
7210 | |||||
7211 | fi | ||||
7212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7213 | fi | ||||
7214 | |||||
7215 | CFLAGS="$save_CFLAGS" | ||||
7216 | CC="$ac_save_cc" | ||||
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | ||||
7218 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | ||||
7219 | |||||
7220 | if test $ac_cv_enable_sign_compare_warning = yes | ||||
7221 | then | ||||
7222 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | ||||
7223 | fi | ||||
7224 | |||||
7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | ||||
7226 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | ||||
7227 | ac_save_cc="$CC" | ||||
7228 | CC="$CC -Wunreachable-code" | ||||
7229 | save_CFLAGS="$CFLAGS" | ||||
7230 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | ||||
7231 | $as_echo_n "(cached) " >&6 | ||||
7232 | else | ||||
7233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7234 | /* end confdefs.h. */ | ||||
7235 | |||||
7236 | |||||
7237 | int | ||||
7238 | main () | ||||
7239 | { | ||||
7240 | |||||
7241 | ; | ||||
7242 | return 0; | ||||
7243 | } | ||||
7244 | |||||
7245 | _ACEOF | ||||
7246 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7247 | |||||
7248 | ac_cv_enable_unreachable_code_warning=yes | ||||
7249 | |||||
7250 | else | ||||
7251 | |||||
7252 | ac_cv_enable_unreachable_code_warning=no | ||||
7253 | |||||
7254 | fi | ||||
7255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7256 | fi | ||||
7257 | |||||
7258 | CFLAGS="$save_CFLAGS" | ||||
7259 | CC="$ac_save_cc" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7260 | |
7261 | # Don't enable unreachable code warning in debug mode, since it usually | ||||
7262 | # results in non-standard code paths. | ||||
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7263 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
7264 | # correctly on gcc and has been silently removed from the compiler. | ||||
7265 | # It is supported on clang but on OS X systems gcc may be an alias | ||||
7266 | # for clang. Try to determine if the compiler is not really gcc and, | ||||
7267 | # if so, only then enable the warning. | ||||
7268 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | ||||
7269 | test "$Py_DEBUG" != "true" && \ | ||||
7270 | test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7271 | then |
7272 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | ||||
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7273 | else |
7274 | ac_cv_enable_unreachable_code_warning=no | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7275 | fi |
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7277 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7278 | |
INADA Naoki | e336484 | 2018-06-05 11:40:53 | [diff] [blame] | 7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
7280 | $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } | ||||
7281 | ac_save_cc="$CC" | ||||
7282 | CC="$CC -Werror -Wstrict-prototypes" | ||||
7283 | if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : | ||||
7284 | $as_echo_n "(cached) " >&6 | ||||
7285 | else | ||||
7286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7287 | /* end confdefs.h. */ | ||||
7288 | |||||
7289 | |||||
7290 | int | ||||
7291 | main () | ||||
7292 | { | ||||
7293 | |||||
7294 | ; | ||||
7295 | return 0; | ||||
7296 | } | ||||
7297 | |||||
7298 | _ACEOF | ||||
7299 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7300 | |||||
7301 | ac_cv_enable_strict_prototypes_warning=yes | ||||
7302 | |||||
7303 | else | ||||
7304 | |||||
7305 | ac_cv_enable_strict_prototypes_warning=no | ||||
7306 | |||||
7307 | fi | ||||
7308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7309 | fi | ||||
7310 | |||||
7311 | CC="$ac_save_cc" | ||||
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 | ||||
7313 | $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } | ||||
7314 | |||||
7315 | if test $ac_cv_enable_strict_prototypes_warning = yes | ||||
7316 | then | ||||
7317 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" | ||||
7318 | fi | ||||
7319 | |||||
Victor Stinner | 193ee0a | 2017-02-06 13:24:00 | [diff] [blame] | 7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
7321 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | ||||
7322 | ac_save_cc="$CC" | ||||
7323 | CC="$CC -Werror=implicit-function-declaration" | ||||
7324 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : | ||||
7325 | $as_echo_n "(cached) " >&6 | ||||
7326 | else | ||||
7327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7328 | /* end confdefs.h. */ | ||||
7329 | |||||
7330 | |||||
7331 | int | ||||
7332 | main () | ||||
7333 | { | ||||
7334 | |||||
7335 | ; | ||||
7336 | return 0; | ||||
7337 | } | ||||
7338 | |||||
7339 | _ACEOF | ||||
7340 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7341 | |||||
7342 | ac_cv_enable_implicit_function_declaration_error=yes | ||||
7343 | |||||
7344 | else | ||||
7345 | |||||
7346 | ac_cv_enable_implicit_function_declaration_error=no | ||||
7347 | |||||
7348 | fi | ||||
7349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7350 | fi | ||||
7351 | |||||
7352 | CC="$ac_save_cc" | ||||
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 | ||||
7354 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | ||||
7355 | |||||
7356 | if test $ac_cv_enable_implicit_function_declaration_error = yes | ||||
7357 | then | ||||
7358 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | ||||
7359 | fi | ||||
7360 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7361 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
7362 | # support. Without this, treatment of subnormals doesn't follow | ||||
7363 | # the standard. | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 7364 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7365 | alpha*) |
7366 | BASECFLAGS="$BASECFLAGS -mieee" | ||||
7367 | ;; | ||||
7368 | esac | ||||
7369 | |||||
7370 | case $ac_sys_system in | ||||
7371 | SCO_SV*) | ||||
7372 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | ||||
7373 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7374 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7375 | Darwin*) |
7376 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | ||||
7377 | # used to be here, but non-Apple gcc doesn't accept them. | ||||
7378 | if test "${CC}" = gcc | ||||
7379 | then | ||||
7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7381 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7382 | case "${UNIVERSALSDK}" in |
7383 | */MacOSX10.4u.sdk) | ||||
7384 | # Build using 10.4 SDK, force usage of gcc when the | ||||
7385 | # compiler is gcc, otherwise the user will get very | ||||
7386 | # confusing error messages when building on OSX 10.6 | ||||
7387 | CC=gcc-4.0 | ||||
7388 | CPP=cpp-4.0 | ||||
7389 | ;; | ||||
7390 | esac | ||||
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7392 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7393 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7394 | |
Ned Deily | 78e5588 | 2021-05-02 10:55:04 | [diff] [blame] | 7395 | LIPO_INTEL64_FLAGS="" |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7396 | if test "${enable_universalsdk}" |
7397 | then | ||||
7398 | case "$UNIVERSAL_ARCHS" in | ||||
7399 | 32-bit) | ||||
7400 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | ||||
7401 | LIPO_32BIT_FLAGS="" | ||||
7402 | ARCH_RUN_32BIT="" | ||||
7403 | ;; | ||||
7404 | 64-bit) | ||||
7405 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | ||||
7406 | LIPO_32BIT_FLAGS="" | ||||
7407 | ARCH_RUN_32BIT="true" | ||||
7408 | ;; | ||||
7409 | all) | ||||
7410 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | ||||
7411 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7412 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7413 | ;; | ||||
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 7414 | universal2) |
7415 | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" | ||||
7416 | LIPO_32BIT_FLAGS="" | ||||
Ned Deily | 78e5588 | 2021-05-02 10:55:04 | [diff] [blame] | 7417 | LIPO_INTEL64_FLAGS="-extract x86_64" |
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 7418 | ARCH_RUN_32BIT="true" |
Ned Deily | 78e5588 | 2021-05-02 10:55:04 | [diff] [blame] | 7419 | ;; |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7420 | intel) |
7421 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | ||||
7422 | LIPO_32BIT_FLAGS="-extract i386" | ||||
7423 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | ||||
7424 | ;; | ||||
7425 | intel-32) | ||||
7426 | UNIVERSAL_ARCH_FLAGS="-arch i386" | ||||
7427 | LIPO_32BIT_FLAGS="" | ||||
7428 | ARCH_RUN_32BIT="" | ||||
7429 | ;; | ||||
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 7430 | intel-64) |
7431 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" | ||||
7432 | LIPO_32BIT_FLAGS="" | ||||
7433 | ARCH_RUN_32BIT="true" | ||||
7434 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7435 | 3-way) |
7436 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | ||||
7437 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7438 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7439 | ;; | ||||
7440 | *) | ||||
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 7441 | as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7442 | ;; |
7443 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7444 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7445 | if test "${UNIVERSALSDK}" != "/" |
7446 | then | ||||
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 7447 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
7448 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7449 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 7450 | else |
7451 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | ||||
7452 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7453 | fi |
7454 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7455 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7456 | # Calculate an appropriate deployment target for this build: |
7457 | # The deployment target value is used explicitly to enable certain | ||||
7458 | # features are enabled (such as builtin libedit support for readline) | ||||
Raymond Hettinger | 15f44ab | 2016-08-30 17:47:49 | [diff] [blame] | 7459 | # through the use of Apple's Availability Macros and is used as a |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7460 | # component of the string returned by distutils.get_platform(). |
7461 | # | ||||
7462 | # Use the value from: | ||||
7463 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | ||||
7464 | # 2. the operating system version of the build machine if >= 10.6 | ||||
7465 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | ||||
7466 | # below to pick either 10.3, 10.4, or 10.5 as the target. | ||||
7467 | # 4. If we are running on OS X 10.2 or earlier, good luck! | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7468 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
7470 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | ||||
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 7471 | cur_target_major=`sw_vers -productVersion | \ |
7472 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
7473 | cur_target_minor=`sw_vers -productVersion | \ | ||||
7474 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
7475 | cur_target="${cur_target_major}.${cur_target_minor}" | ||||
7476 | if test ${cur_target_major} -eq 10 && \ | ||||
7477 | test ${cur_target_minor} -ge 3 && \ | ||||
7478 | test ${cur_target_minor} -le 5 | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7479 | then |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 7480 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7481 | cur_target=10.3 |
7482 | if test ${enable_universalsdk} | ||||
7483 | then | ||||
7484 | case "$UNIVERSAL_ARCHS" in | ||||
7485 | all|3-way|intel|64-bit) | ||||
7486 | # These configurations were first supported in 10.5 | ||||
7487 | cur_target='10.5' | ||||
7488 | ;; | ||||
7489 | esac | ||||
7490 | else | ||||
7491 | if test `/usr/bin/arch` = "i386" | ||||
7492 | then | ||||
7493 | # 10.4 was the first release to support Intel archs | ||||
7494 | cur_target="10.4" | ||||
7495 | fi | ||||
7496 | fi | ||||
7497 | fi | ||||
7498 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 7499 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7500 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
7501 | # environment with a value that is the same as what we'll use | ||||
7502 | # in the Makefile to ensure that we'll get the same compiler | ||||
7503 | # environment during configure and build time. | ||||
7504 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | ||||
7505 | export MACOSX_DEPLOYMENT_TARGET | ||||
7506 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | ||||
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | ||||
7508 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 7509 | |
Miss Islington (bot) | 6e66542 | 2020-11-22 01:54:08 | [diff] [blame] | 7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 |
7511 | $as_echo_n "checking if specified universal architectures work... " >&6; } | ||||
7512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7513 | /* end confdefs.h. */ | ||||
7514 | #include <stdio.h> | ||||
7515 | int | ||||
7516 | main () | ||||
7517 | { | ||||
7518 | printf("%d", 42); | ||||
7519 | ; | ||||
7520 | return 0; | ||||
7521 | } | ||||
7522 | _ACEOF | ||||
7523 | if ac_fn_c_try_link "$LINENO"; then : | ||||
7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
7525 | $as_echo "yes" >&6; } | ||||
7526 | else | ||||
7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
7528 | $as_echo "no" >&6; } | ||||
7529 | as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 | ||||
7530 | |||||
7531 | fi | ||||
7532 | rm -f core conftest.err conftest.$ac_objext \ | ||||
7533 | conftest$ac_exeext conftest.$ac_ext | ||||
7534 | |||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7535 | # end of Darwin* tests |
7536 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7537 | esac |
7538 | ;; | ||||
7539 | |||||
7540 | *) | ||||
7541 | case $ac_sys_system in | ||||
7542 | OpenUNIX*|UnixWare*) | ||||
7543 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | ||||
7544 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7545 | SCO_SV*) |
7546 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | ||||
7547 | ;; | ||||
7548 | esac | ||||
7549 | ;; | ||||
7550 | esac | ||||
7551 | |||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7552 | # ICC needs -fp-model strict or floats behave badly |
7553 | case "$CC" in | ||||
7554 | *icc*) | ||||
7555 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | ||||
7556 | ;; | ||||
7557 | esac | ||||
7558 | |||||
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 7559 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7560 | : |
7561 | else | ||||
7562 | OPT="-DNDEBUG $OPT" | ||||
7563 | fi | ||||
7564 | |||||
7565 | if test "$ac_arch_flags" | ||||
7566 | then | ||||
7567 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | ||||
7568 | fi | ||||
7569 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7570 | # On some compilers, pthreads are available without further options |
7571 | # (e.g. MacOS X). On some of these systems, the compiler will not | ||||
7572 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | ||||
7573 | # So we have to see first whether pthreads are available without | ||||
7574 | # options before we can check whether -Kpthread improves anything. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
7576 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7577 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7578 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7579 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7580 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7581 | ac_cv_pthread_is_default=no |
7582 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7584 | /* end confdefs.h. */ |
7585 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7586 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7587 | #include <pthread.h> |
7588 | |||||
7589 | void* routine(void* p){return NULL;} | ||||
7590 | |||||
7591 | int main(){ | ||||
7592 | pthread_t p; | ||||
7593 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7594 | return 1; | ||||
7595 | (void)pthread_detach(p); | ||||
7596 | return 0; | ||||
7597 | } | ||||
7598 | |||||
7599 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7600 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7601 | |
7602 | ac_cv_pthread_is_default=yes | ||||
7603 | ac_cv_kthread=no | ||||
7604 | ac_cv_pthread=no | ||||
7605 | |||||
7606 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7607 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7608 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7609 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7610 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7611 | fi |
7612 | |||||
7613 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7614 | fi |
7615 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
7617 | $as_echo "$ac_cv_pthread_is_default" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7618 | |
7619 | |||||
7620 | if test $ac_cv_pthread_is_default = yes | ||||
7621 | then | ||||
7622 | ac_cv_kpthread=no | ||||
7623 | else | ||||
7624 | # -Kpthread, if available, provides the right #defines | ||||
7625 | # and linker options to make pthread_create available | ||||
7626 | # Some compilers won't report that they do not support -Kpthread, | ||||
7627 | # so we need to run a program to see whether it really made the | ||||
7628 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
7630 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7631 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7632 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7633 | else |
7634 | ac_save_cc="$CC" | ||||
7635 | CC="$CC -Kpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7636 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7637 | ac_cv_kpthread=no |
7638 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7640 | /* end confdefs.h. */ |
7641 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7642 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7643 | #include <pthread.h> |
7644 | |||||
7645 | void* routine(void* p){return NULL;} | ||||
7646 | |||||
7647 | int main(){ | ||||
7648 | pthread_t p; | ||||
7649 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7650 | return 1; | ||||
7651 | (void)pthread_detach(p); | ||||
7652 | return 0; | ||||
7653 | } | ||||
7654 | |||||
7655 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7656 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7657 | ac_cv_kpthread=yes |
7658 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7659 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7660 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7662 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7663 | fi |
7664 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7665 | CC="$ac_save_cc" |
7666 | fi | ||||
7667 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
7669 | $as_echo "$ac_cv_kpthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7670 | fi |
7671 | |||||
7672 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | ||||
7673 | then | ||||
7674 | # -Kthread, if available, provides the right #defines | ||||
7675 | # and linker options to make pthread_create available | ||||
7676 | # Some compilers won't report that they do not support -Kthread, | ||||
7677 | # so we need to run a program to see whether it really made the | ||||
7678 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
7680 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7681 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7682 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7683 | else |
7684 | ac_save_cc="$CC" | ||||
7685 | CC="$CC -Kthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7686 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7687 | ac_cv_kthread=no |
7688 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7690 | /* end confdefs.h. */ |
7691 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7692 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7693 | #include <pthread.h> |
7694 | |||||
7695 | void* routine(void* p){return NULL;} | ||||
7696 | |||||
7697 | int main(){ | ||||
7698 | pthread_t p; | ||||
7699 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7700 | return 1; | ||||
7701 | (void)pthread_detach(p); | ||||
7702 | return 0; | ||||
7703 | } | ||||
7704 | |||||
7705 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7706 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7707 | ac_cv_kthread=yes |
7708 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7709 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7710 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7711 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7712 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7713 | fi |
7714 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7715 | CC="$ac_save_cc" |
7716 | fi | ||||
7717 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
7719 | $as_echo "$ac_cv_kthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7720 | fi |
7721 | |||||
7722 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | ||||
7723 | then | ||||
7724 | # -pthread, if available, provides the right #defines | ||||
7725 | # and linker options to make pthread_create available | ||||
7726 | # Some compilers won't report that they do not support -pthread, | ||||
7727 | # so we need to run a program to see whether it really made the | ||||
7728 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
7730 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | ||||
doko@python.org | 7981f20 | 2013-01-25 14:33:25 | [diff] [blame] | 7731 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7732 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7733 | else |
7734 | ac_save_cc="$CC" | ||||
7735 | CC="$CC -pthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7736 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7737 | ac_cv_pthread=no |
7738 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7740 | /* end confdefs.h. */ |
7741 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7742 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7743 | #include <pthread.h> |
7744 | |||||
7745 | void* routine(void* p){return NULL;} | ||||
7746 | |||||
7747 | int main(){ | ||||
7748 | pthread_t p; | ||||
7749 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7750 | return 1; | ||||
7751 | (void)pthread_detach(p); | ||||
7752 | return 0; | ||||
7753 | } | ||||
7754 | |||||
7755 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7756 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7757 | ac_cv_pthread=yes |
7758 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7759 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7760 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7761 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7762 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7763 | fi |
7764 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7765 | CC="$ac_save_cc" |
7766 | fi | ||||
7767 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
7769 | $as_echo "$ac_cv_pthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7770 | fi |
7771 | |||||
7772 | # If we have set a CC compiler flag for thread support then | ||||
7773 | # check if it works for CXX, too. | ||||
7774 | ac_cv_cxx_thread=no | ||||
7775 | if test ! -z "$CXX" | ||||
7776 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
7778 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7779 | ac_save_cxx="$CXX" |
7780 | |||||
7781 | if test "$ac_cv_kpthread" = "yes" | ||||
7782 | then | ||||
7783 | CXX="$CXX -Kpthread" | ||||
7784 | ac_cv_cxx_thread=yes | ||||
7785 | elif test "$ac_cv_kthread" = "yes" | ||||
7786 | then | ||||
7787 | CXX="$CXX -Kthread" | ||||
7788 | ac_cv_cxx_thread=yes | ||||
7789 | elif test "$ac_cv_pthread" = "yes" | ||||
7790 | then | ||||
7791 | CXX="$CXX -pthread" | ||||
7792 | ac_cv_cxx_thread=yes | ||||
7793 | fi | ||||
7794 | |||||
7795 | if test $ac_cv_cxx_thread = yes | ||||
7796 | then | ||||
7797 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | ||||
7798 | $CXX -c conftest.$ac_ext 2>&5 | ||||
7799 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | ||||
7800 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | ||||
7801 | then | ||||
7802 | ac_cv_cxx_thread=yes | ||||
7803 | else | ||||
7804 | ac_cv_cxx_thread=no | ||||
7805 | fi | ||||
7806 | rm -fr conftest* | ||||
7807 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
7809 | $as_echo "$ac_cv_cxx_thread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7810 | fi |
7811 | CXX="$ac_save_cxx" | ||||
7812 | |||||
7813 | |||||
7814 | # checks for header files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7816 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7817 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7818 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7819 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7821 | /* end confdefs.h. */ |
7822 | #include <stdlib.h> | ||||
7823 | #include <stdarg.h> | ||||
7824 | #include <string.h> | ||||
7825 | #include <float.h> | ||||
7826 | |||||
7827 | int | ||||
7828 | main () | ||||
7829 | { | ||||
7830 | |||||
7831 | ; | ||||
7832 | return 0; | ||||
7833 | } | ||||
7834 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7835 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7836 | ac_cv_header_stdc=yes |
7837 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7838 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7839 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7841 | |||||
7842 | if test $ac_cv_header_stdc = yes; then | ||||
7843 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7845 | /* end confdefs.h. */ |
7846 | #include <string.h> | ||||
7847 | |||||
7848 | _ACEOF | ||||
7849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7850 | $EGREP "memchr" >/dev/null 2>&1; then : |
7851 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7852 | else |
7853 | ac_cv_header_stdc=no | ||||
7854 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 7855 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7856 | |
7857 | fi | ||||
7858 | |||||
7859 | if test $ac_cv_header_stdc = yes; then | ||||
7860 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7862 | /* end confdefs.h. */ |
7863 | #include <stdlib.h> | ||||
7864 | |||||
7865 | _ACEOF | ||||
7866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7867 | $EGREP "free" >/dev/null 2>&1; then : |
7868 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7869 | else |
7870 | ac_cv_header_stdc=no | ||||
7871 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 7872 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7873 | |
7874 | fi | ||||
7875 | |||||
7876 | if test $ac_cv_header_stdc = yes; then | ||||
7877 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7878 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7879 | : |
7880 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7882 | /* end confdefs.h. */ |
7883 | #include <ctype.h> | ||||
7884 | #include <stdlib.h> | ||||
7885 | #if ((' ' & 0x0FF) == 0x020) | ||||
7886 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
7887 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
7888 | #else | ||||
7889 | # define ISLOWER(c) \ | ||||
7890 | (('a' <= (c) && (c) <= 'i') \ | ||||
7891 | || ('j' <= (c) && (c) <= 'r') \ | ||||
7892 | || ('s' <= (c) && (c) <= 'z')) | ||||
7893 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
7894 | #endif | ||||
7895 | |||||
7896 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
7897 | int | ||||
7898 | main () | ||||
7899 | { | ||||
7900 | int i; | ||||
7901 | for (i = 0; i < 256; i++) | ||||
7902 | if (XOR (islower (i), ISLOWER (i)) | ||||
7903 | || toupper (i) != TOUPPER (i)) | ||||
7904 | return 2; | ||||
7905 | return 0; | ||||
7906 | } | ||||
7907 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7908 | if ac_fn_c_try_run "$LINENO"; then : |
7909 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7910 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7911 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7912 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7913 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7914 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7915 | fi |
7916 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7917 | fi |
7918 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7920 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7921 | if test $ac_cv_header_stdc = yes; then |
7922 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7923 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7924 | |
7925 | fi | ||||
7926 | |||||
stratakis | e768c86 | 2018-01-23 15:11:24 | [diff] [blame] | 7927 | for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 7928 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 7929 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 4fe5510 | 2016-09-06 18:58:01 | [diff] [blame] | 7930 | sched.h shadow.h signal.h stropts.h termios.h \ |
Benjamin Peterson | ea13740 | 2018-09-14 04:57:31 | [diff] [blame] | 7931 | utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 18:07:41 | [diff] [blame] | 7932 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 22:28:36 | [diff] [blame] | 7933 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ |
Martin v. Löwis | 9d6c669 | 2012-02-03 16:44:58 | [diff] [blame] | 7934 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Benjamin Peterson | fb2ae15 | 2016-12-20 07:54:25 | [diff] [blame] | 7935 | sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ |
Martin v. Löwis | 9d6c669 | 2012-02-03 16:44:58 | [diff] [blame] | 7936 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 7937 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 7938 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Benjamin Peterson | 93b2dee | 2016-09-09 17:22:45 | [diff] [blame] | 7939 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ |
Zackery Spytz | 43fdbd2 | 2019-05-29 19:57:07 | [diff] [blame] | 7940 | sys/endian.h sys/sysmacros.h linux/memfd.h sys/memfd.h sys/mman.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7941 | do : |
7942 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
7943 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 7944 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7945 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7946 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7947 | _ACEOF |
7948 | |||||
7949 | fi | ||||
7950 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 7951 | done |
7952 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7953 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7954 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7955 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||||
7957 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7958 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7959 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 7960 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 7962 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7963 | #include <sys/types.h> |
7964 | #include <$ac_hdr> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7966 | int |
7967 | main () | ||||
7968 | { | ||||
7969 | if ((DIR *) 0) | ||||
7970 | return 0; | ||||
7971 | ; | ||||
7972 | return 0; | ||||
7973 | } | ||||
7974 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7975 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7976 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7977 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7978 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7979 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 7980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7982 | eval ac_res=\$$as_ac_Header |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
7984 | $as_echo "$ac_res" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 7985 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7986 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7987 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7988 | _ACEOF |
7989 | |||||
7990 | ac_header_dirent=$ac_hdr; break | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7992 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7993 | done |
7994 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||||
7995 | if test $ac_header_dirent = dirent.h; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
7997 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7998 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7999 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8001 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8003 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8004 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8005 | /* Override any GCC internal prototype to avoid an error. |
8006 | Use char because int might match the return type of a GCC | ||||
8007 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8008 | #ifdef __cplusplus |
8009 | extern "C" | ||||
8010 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8011 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8012 | int |
8013 | main () | ||||
8014 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8015 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8016 | ; |
8017 | return 0; | ||||
8018 | } | ||||
8019 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8020 | for ac_lib in '' dir; do |
8021 | if test -z "$ac_lib"; then | ||||
8022 | ac_res="none required" | ||||
8023 | else | ||||
8024 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8025 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8026 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8027 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8028 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 8029 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8030 | rm -f core conftest.err conftest.$ac_objext \ |
8031 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8032 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8033 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8034 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8035 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8036 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8037 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8038 | else |
8039 | ac_cv_search_opendir=no | ||||
8040 | fi | ||||
8041 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8042 | LIBS=$ac_func_search_save_LIBS |
8043 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8045 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8046 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8047 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8048 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8049 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8051 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8052 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8054 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8055 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8056 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8057 | else |
8058 | ac_func_search_save_LIBS=$LIBS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8061 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8062 | /* Override any GCC internal prototype to avoid an error. |
8063 | Use char because int might match the return type of a GCC | ||||
8064 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8065 | #ifdef __cplusplus |
8066 | extern "C" | ||||
8067 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8068 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8069 | int |
8070 | main () | ||||
8071 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8072 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8073 | ; |
8074 | return 0; | ||||
8075 | } | ||||
8076 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8077 | for ac_lib in '' x; do |
8078 | if test -z "$ac_lib"; then | ||||
8079 | ac_res="none required" | ||||
8080 | else | ||||
8081 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8082 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8083 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8084 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8085 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 8086 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8087 | rm -f core conftest.err conftest.$ac_objext \ |
8088 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8089 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8090 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8091 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8092 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8093 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8094 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8095 | else |
8096 | ac_cv_search_opendir=no | ||||
8097 | fi | ||||
8098 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8099 | LIBS=$ac_func_search_save_LIBS |
8100 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8102 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8103 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8104 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8105 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8106 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8107 | fi |
8108 | |||||
8109 | fi | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8110 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
8112 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8113 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8114 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8115 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8117 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8118 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8119 | int |
8120 | main () | ||||
8121 | { | ||||
8122 | return makedev(0, 0); | ||||
8123 | ; | ||||
8124 | return 0; | ||||
8125 | } | ||||
8126 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8127 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8128 | ac_cv_header_sys_types_h_makedev=yes |
8129 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8130 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8131 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8132 | rm -f core conftest.err conftest.$ac_objext \ |
8133 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8134 | |
8135 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
8137 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8138 | |
8139 | if test $ac_cv_header_sys_types_h_makedev = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8140 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8141 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8142 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8143 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8144 | |
8145 | fi | ||||
8146 | |||||
8147 | |||||
8148 | |||||
8149 | if test $ac_cv_header_sys_mkdev_h = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8150 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8151 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8152 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8153 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8154 | |
8155 | fi | ||||
8156 | |||||
8157 | |||||
8158 | fi | ||||
8159 | fi | ||||
8160 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8161 | |
Benjamin Peterson | 93b2dee | 2016-09-09 17:22:45 | [diff] [blame] | 8162 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
8163 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | ||||
8164 | SAVE_CFLAGS=$CFLAGS | ||||
8165 | CFLAGS="-std=c99 $CFLAGS" | ||||
8166 | for ac_header in bluetooth/bluetooth.h | ||||
8167 | do : | ||||
8168 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | ||||
8169 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | ||||
8170 | cat >>confdefs.h <<_ACEOF | ||||
8171 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | ||||
8172 | _ACEOF | ||||
8173 | |||||
8174 | fi | ||||
8175 | |||||
8176 | done | ||||
8177 | |||||
8178 | CFLAGS=$SAVE_CFLAGS | ||||
8179 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 8180 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
8181 | for ac_header in net/if.h | ||||
8182 | do : | ||||
8183 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | ||||
8184 | #ifdef STDC_HEADERS | ||||
8185 | # include <stdlib.h> | ||||
8186 | # include <stddef.h> | ||||
8187 | #else | ||||
8188 | # ifdef HAVE_STDLIB_H | ||||
8189 | # include <stdlib.h> | ||||
8190 | # endif | ||||
8191 | #endif | ||||
8192 | #ifdef HAVE_SYS_SOCKET_H | ||||
8193 | # include <sys/socket.h> | ||||
8194 | #endif | ||||
8195 | |||||
8196 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8197 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 8198 | cat >>confdefs.h <<_ACEOF |
8199 | #define HAVE_NET_IF_H 1 | ||||
8200 | _ACEOF | ||||
8201 | |||||
8202 | fi | ||||
8203 | |||||
8204 | done | ||||
8205 | |||||
8206 | |||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8207 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8208 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8209 | do : |
8210 | ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " | ||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8211 | #ifdef HAVE_ASM_TYPES_H |
8212 | #include <asm/types.h> | ||||
8213 | #endif | ||||
8214 | #ifdef HAVE_SYS_SOCKET_H | ||||
8215 | #include <sys/socket.h> | ||||
8216 | #endif | ||||
8217 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8218 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8219 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8220 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8221 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8222 | _ACEOF |
8223 | |||||
8224 | fi | ||||
8225 | |||||
8226 | done | ||||
8227 | |||||
8228 | |||||
Bjorn Andersson | bb81651 | 2018-09-26 13:47:52 | [diff] [blame] | 8229 | # On Linux, qrtr.h requires asm/types.h |
8230 | for ac_header in linux/qrtr.h | ||||
8231 | do : | ||||
8232 | ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " | ||||
8233 | #ifdef HAVE_ASM_TYPES_H | ||||
8234 | #include <asm/types.h> | ||||
8235 | #endif | ||||
8236 | #ifdef HAVE_SYS_SOCKET_H | ||||
8237 | #include <sys/socket.h> | ||||
8238 | #endif | ||||
8239 | |||||
8240 | " | ||||
8241 | if test "x$ac_cv_header_linux_qrtr_h" = xyes; then : | ||||
8242 | cat >>confdefs.h <<_ACEOF | ||||
8243 | #define HAVE_LINUX_QRTR_H 1 | ||||
8244 | _ACEOF | ||||
8245 | |||||
8246 | fi | ||||
8247 | |||||
8248 | done | ||||
8249 | |||||
8250 | |||||
caavery | effc12f | 2017-09-06 22:18:10 | [diff] [blame] | 8251 | for ac_header in linux/vm_sockets.h |
8252 | do : | ||||
8253 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " | ||||
8254 | #ifdef HAVE_SYS_SOCKET_H | ||||
8255 | #include <sys/socket.h> | ||||
8256 | #endif | ||||
8257 | |||||
8258 | " | ||||
8259 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : | ||||
8260 | cat >>confdefs.h <<_ACEOF | ||||
8261 | #define HAVE_LINUX_VM_SOCKETS_H 1 | ||||
8262 | _ACEOF | ||||
8263 | |||||
8264 | fi | ||||
8265 | |||||
8266 | done | ||||
8267 | |||||
8268 | |||||
Charles-François Natali | 47413c1 | 2011-10-06 17:47:44 | [diff] [blame] | 8269 | # On Linux, can.h and can/raw.h require sys/socket.h |
Charles-François Natali | 773e42d | 2013-02-05 18:42:01 | [diff] [blame] | 8270 | for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h |
Charles-François Natali | 47413c1 | 2011-10-06 17:47:44 | [diff] [blame] | 8271 | do : |
8272 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8273 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||||
8274 | #ifdef HAVE_SYS_SOCKET_H | ||||
8275 | #include <sys/socket.h> | ||||
8276 | #endif | ||||
8277 | |||||
8278 | " | ||||
8279 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
8280 | cat >>confdefs.h <<_ACEOF | ||||
8281 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8282 | _ACEOF | ||||
8283 | |||||
8284 | fi | ||||
8285 | |||||
8286 | done | ||||
8287 | |||||
8288 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8289 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8290 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
8292 | $as_echo_n "checking for clock_t in time.h... " >&6; } | ||||
8293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8294 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8295 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8296 | |
8297 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8299 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8300 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8302 | |
8303 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8304 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8305 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 8306 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8307 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 8308 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8309 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
8311 | $as_echo "$was_it_defined" >&6; } | ||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8312 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
8314 | $as_echo_n "checking for makedev... " >&6; } | ||||
8315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8316 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 8317 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 | [diff] [blame] | 8318 | #if defined(MAJOR_IN_MKDEV) |
8319 | #include <sys/mkdev.h> | ||||
8320 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
8321 | #include <sys/sysmacros.h> | ||||
8322 | #else | ||||
8323 | #include <sys/types.h> | ||||
8324 | #endif | ||||
8325 | |||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8326 | int |
8327 | main () | ||||
8328 | { | ||||
Jesus Cea | 740f53a | 2010-04-28 11:35:30 | [diff] [blame] | 8329 | |
8330 | makedev(0, 0) | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8331 | ; |
8332 | return 0; | ||||
8333 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 8334 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8335 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8336 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8337 | ac_cv_has_makedev=yes |
8338 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8339 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8340 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8341 | rm -f core conftest.err conftest.$ac_objext \ |
8342 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
8344 | $as_echo "$ac_cv_has_makedev" >&6; } | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8345 | if test "$ac_cv_has_makedev" = "yes"; then |
8346 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8347 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8348 | |
8349 | fi | ||||
8350 | |||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 8351 | # byte swapping |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | ||||
8353 | $as_echo_n "checking for le64toh... " >&6; } | ||||
8354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8355 | /* end confdefs.h. */ | ||||
8356 | |||||
8357 | #ifdef HAVE_ENDIAN_H | ||||
8358 | #include <endian.h> | ||||
8359 | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
8360 | #include <sys/endian.h> | ||||
8361 | #endif | ||||
8362 | |||||
8363 | int | ||||
8364 | main () | ||||
8365 | { | ||||
8366 | |||||
8367 | le64toh(1) | ||||
8368 | ; | ||||
8369 | return 0; | ||||
8370 | } | ||||
8371 | |||||
8372 | _ACEOF | ||||
8373 | if ac_fn_c_try_link "$LINENO"; then : | ||||
8374 | ac_cv_has_le64toh=yes | ||||
8375 | else | ||||
8376 | ac_cv_has_le64toh=no | ||||
8377 | fi | ||||
8378 | rm -f core conftest.err conftest.$ac_objext \ | ||||
8379 | conftest$ac_exeext conftest.$ac_ext | ||||
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | ||||
8381 | $as_echo "$ac_cv_has_le64toh" >&6; } | ||||
8382 | if test "$ac_cv_has_le64toh" = "yes"; then | ||||
8383 | |||||
8384 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | ||||
8385 | |||||
8386 | fi | ||||
8387 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8388 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 08:15:25 | [diff] [blame] | 8389 | # Don't use largefile support for GNU/Hurd |
8390 | case $ac_sys_system in GNU*) | ||||
8391 | use_lfs=no | ||||
8392 | esac | ||||
8393 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8394 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8395 | # Two defines needed to enable largefile support on various platforms |
8396 | # These may affect some typedefs | ||||
Georg Brandl | 216e404 | 2011-02-19 08:58:23 | [diff] [blame] | 8397 | case $ac_sys_system/$ac_sys_release in |
8398 | AIX*) | ||||
8399 | |||||
8400 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | ||||
8401 | |||||
8402 | ;; | ||||
8403 | esac | ||||
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8404 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8405 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8406 | |
8407 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8408 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8409 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8410 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8411 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 | [diff] [blame] | 8412 | # Add some code to confdefs.h so that the test for off_t works on SCO |
8413 | cat >> confdefs.h <<\EOF | ||||
8414 | #if defined(SCO_DS) | ||||
8415 | #undef _OFF_T | ||||
8416 | #endif | ||||
8417 | EOF | ||||
8418 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8419 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8420 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8421 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8422 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8424 | |
8425 | cat >>confdefs.h <<_ACEOF | ||||
8426 | #define mode_t int | ||||
8427 | _ACEOF | ||||
8428 | |||||
8429 | fi | ||||
8430 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8431 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8432 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8433 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8435 | |
8436 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8437 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8438 | _ACEOF |
8439 | |||||
8440 | fi | ||||
8441 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8442 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8443 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8444 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8446 | |
8447 | cat >>confdefs.h <<_ACEOF | ||||
8448 | #define pid_t int | ||||
8449 | _ACEOF | ||||
8450 | |||||
8451 | fi | ||||
8452 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 8453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8454 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 | [diff] [blame] | 8455 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8456 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8457 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8458 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8459 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8460 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8462 | |
8463 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8464 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8465 | _ACEOF |
8466 | |||||
8467 | fi | ||||
8468 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8470 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8471 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8472 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8473 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8475 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8476 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8477 | |
8478 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8479 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8480 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8481 | ac_cv_type_uid_t=yes |
8482 | else | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8483 | ac_cv_type_uid_t=no |
8484 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 8485 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8486 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8487 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8489 | $as_echo "$ac_cv_type_uid_t" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8490 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8491 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8492 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8493 | |
8494 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8495 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8496 | |
8497 | fi | ||||
8498 | |||||
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 | [diff] [blame] | 8499 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8500 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8501 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8502 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8503 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8504 | |
8505 | fi | ||||
8506 | |||||
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 8507 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
8508 | if test "x$ac_cv_type___uint128_t" = xyes; then : | ||||
8509 | |||||
8510 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | ||||
8511 | |||||
8512 | fi | ||||
8513 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 8514 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8515 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 | [diff] [blame] | 8516 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8517 | # The cast to long int works around a bug in the HP C Compiler |
8518 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8519 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8520 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
8522 | $as_echo_n "checking size of int... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8523 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8524 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8525 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8526 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8528 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8529 | if test "$ac_cv_type_int" = yes; then |
8530 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8531 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8532 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8533 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8534 | else |
8535 | ac_cv_sizeof_int=0 | ||||
8536 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8537 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8539 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
8541 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8542 | |
8543 | |||||
8544 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8545 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8546 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8547 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8548 | |
8549 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8550 | # The cast to long int works around a bug in the HP C Compiler |
8551 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8552 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8553 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
8555 | $as_echo_n "checking size of long... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8556 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8557 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8558 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8559 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8561 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8562 | if test "$ac_cv_type_long" = yes; then |
8563 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8564 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8565 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8566 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8567 | else |
8568 | ac_cv_sizeof_long=0 | ||||
8569 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8570 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8572 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
8574 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8575 | |
8576 | |||||
8577 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8578 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8579 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8580 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8581 | |
8582 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8583 | # The cast to long int works around a bug in the HP C Compiler |
8584 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8585 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8586 | # This bug is HP SR number 8606223364. | ||||
Benjamin Peterson | ed4aa83 | 2016-09-06 00:44:18 | [diff] [blame] | 8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
8588 | $as_echo_n "checking size of long long... " >&6; } | ||||
8589 | if ${ac_cv_sizeof_long_long+:} false; then : | ||||
8590 | $as_echo_n "(cached) " >&6 | ||||
8591 | else | ||||
8592 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | ||||
8593 | |||||
8594 | else | ||||
8595 | if test "$ac_cv_type_long_long" = yes; then | ||||
8596 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8597 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8598 | as_fn_error 77 "cannot compute sizeof (long long) | ||||
8599 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8600 | else | ||||
8601 | ac_cv_sizeof_long_long=0 | ||||
8602 | fi | ||||
8603 | fi | ||||
8604 | |||||
8605 | fi | ||||
8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | ||||
8607 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | ||||
8608 | |||||
8609 | |||||
8610 | |||||
8611 | cat >>confdefs.h <<_ACEOF | ||||
8612 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | ||||
8613 | _ACEOF | ||||
8614 | |||||
8615 | |||||
8616 | # The cast to long int works around a bug in the HP C Compiler | ||||
8617 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8618 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8619 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
8621 | $as_echo_n "checking size of void *... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8622 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8623 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8624 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8625 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8627 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8628 | if test "$ac_cv_type_void_p" = yes; then |
8629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8631 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8632 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8633 | else |
8634 | ac_cv_sizeof_void_p=0 | ||||
8635 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8636 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8638 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
8640 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8641 | |
8642 | |||||
8643 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8644 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 8645 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8646 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 8647 | |
8648 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8649 | # The cast to long int works around a bug in the HP C Compiler |
8650 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8651 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8652 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
8654 | $as_echo_n "checking size of short... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8655 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8656 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8657 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8658 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8660 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8661 | if test "$ac_cv_type_short" = yes; then |
8662 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8663 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8664 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8665 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8666 | else |
8667 | ac_cv_sizeof_short=0 | ||||
8668 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8669 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8671 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
8673 | $as_echo "$ac_cv_sizeof_short" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8674 | |
8675 | |||||
8676 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8677 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8678 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8679 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8680 | |
8681 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8682 | # The cast to long int works around a bug in the HP C Compiler |
8683 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8684 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8685 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
8687 | $as_echo_n "checking size of float... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8688 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8689 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8690 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8691 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8693 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8694 | if test "$ac_cv_type_float" = yes; then |
8695 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8696 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8697 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8698 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8699 | else |
8700 | ac_cv_sizeof_float=0 | ||||
8701 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8702 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8704 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
8706 | $as_echo "$ac_cv_sizeof_float" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8707 | |
8708 | |||||
8709 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8710 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8711 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8712 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8713 | |
8714 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8715 | # The cast to long int works around a bug in the HP C Compiler |
8716 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8717 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8718 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
8720 | $as_echo_n "checking size of double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8721 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8722 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8723 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8724 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8726 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8727 | if test "$ac_cv_type_double" = yes; then |
8728 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8730 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8731 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8732 | else |
8733 | ac_cv_sizeof_double=0 | ||||
8734 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8735 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8737 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
8739 | $as_echo "$ac_cv_sizeof_double" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8740 | |
8741 | |||||
8742 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8743 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8744 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8745 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8746 | |
8747 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8748 | # The cast to long int works around a bug in the HP C Compiler |
8749 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8750 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8751 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
8753 | $as_echo_n "checking size of fpos_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8754 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8755 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8756 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8757 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8759 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8760 | if test "$ac_cv_type_fpos_t" = yes; then |
8761 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8762 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8763 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8764 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8765 | else |
8766 | ac_cv_sizeof_fpos_t=0 | ||||
8767 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8768 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8770 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
8772 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8773 | |
8774 | |||||
8775 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8776 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 8777 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8778 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 8779 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8780 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8781 | # The cast to long int works around a bug in the HP C Compiler |
8782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8784 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
8786 | $as_echo_n "checking size of size_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8787 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8788 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8789 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8790 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8791 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8792 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8793 | if test "$ac_cv_type_size_t" = yes; then |
8794 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8796 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8797 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8798 | else |
8799 | ac_cv_sizeof_size_t=0 | ||||
8800 | fi | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8801 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8802 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8803 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
8805 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8806 | |
8807 | |||||
8808 | |||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8809 | cat >>confdefs.h <<_ACEOF |
8810 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||||
8811 | _ACEOF | ||||
8812 | |||||
8813 | |||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8814 | # The cast to long int works around a bug in the HP C Compiler |
8815 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8816 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8817 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
8819 | $as_echo_n "checking size of pid_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8820 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8821 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8822 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8823 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8824 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8825 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8826 | if test "$ac_cv_type_pid_t" = yes; then |
8827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8829 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8830 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8831 | else |
8832 | ac_cv_sizeof_pid_t=0 | ||||
8833 | fi | ||||
8834 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8835 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8836 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
8838 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8839 | |
8840 | |||||
8841 | |||||
8842 | cat >>confdefs.h <<_ACEOF | ||||
8843 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | ||||
8844 | _ACEOF | ||||
8845 | |||||
8846 | |||||
Benjamin Peterson | df6ff7b | 2016-09-06 20:53:14 | [diff] [blame] | 8847 | # The cast to long int works around a bug in the HP C Compiler |
8848 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8849 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8850 | # This bug is HP SR number 8606223364. | ||||
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | ||||
8852 | $as_echo_n "checking size of uintptr_t... " >&6; } | ||||
8853 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | ||||
8854 | $as_echo_n "(cached) " >&6 | ||||
8855 | else | ||||
8856 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : | ||||
8857 | |||||
8858 | else | ||||
8859 | if test "$ac_cv_type_uintptr_t" = yes; then | ||||
8860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8862 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | ||||
8863 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8864 | else | ||||
8865 | ac_cv_sizeof_uintptr_t=0 | ||||
8866 | fi | ||||
8867 | fi | ||||
8868 | |||||
8869 | fi | ||||
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | ||||
8871 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | ||||
8872 | |||||
8873 | |||||
8874 | |||||
8875 | cat >>confdefs.h <<_ACEOF | ||||
8876 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | ||||
8877 | _ACEOF | ||||
8878 | |||||
8879 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8880 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8881 | |
Eitan Adler | 3055c94 | 2018-05-16 05:58:09 | [diff] [blame] | 8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
8883 | $as_echo_n "checking for long double... " >&6; } | ||||
8884 | if ${ac_cv_type_long_double+:} false; then : | ||||
8885 | $as_echo_n "(cached) " >&6 | ||||
8886 | else | ||||
8887 | if test "$GCC" = yes; then | ||||
8888 | ac_cv_type_long_double=yes | ||||
8889 | else | ||||
8890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8891 | /* end confdefs.h. */ | ||||
8892 | /* The Stardent Vistra knows sizeof (long double), but does | ||||
8893 | not support it. */ | ||||
8894 | long double foo = 0.0L; | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8895 | int |
8896 | main () | ||||
8897 | { | ||||
Eitan Adler | 3055c94 | 2018-05-16 05:58:09 | [diff] [blame] | 8898 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
8899 | sizeof (double) <= sizeof (long double))]; | ||||
8900 | test_array [0] = 0; | ||||
8901 | return test_array [0]; | ||||
8902 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8903 | ; |
8904 | return 0; | ||||
8905 | } | ||||
8906 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8907 | if ac_fn_c_try_compile "$LINENO"; then : |
Eitan Adler | 3055c94 | 2018-05-16 05:58:09 | [diff] [blame] | 8908 | ac_cv_type_long_double=yes |
8909 | else | ||||
8910 | ac_cv_type_long_double=no | ||||
8911 | fi | ||||
8912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
8913 | fi | ||||
8914 | fi | ||||
8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 | ||||
8916 | $as_echo "$ac_cv_type_long_double" >&6; } | ||||
8917 | if test $ac_cv_type_long_double = yes; then | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8918 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8919 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8920 | |
Eitan Adler | 3055c94 | 2018-05-16 05:58:09 | [diff] [blame] | 8921 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8922 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8923 | # The cast to long int works around a bug in the HP C Compiler |
8924 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8925 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8926 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
8928 | $as_echo_n "checking size of long double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8929 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8930 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8931 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8932 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8933 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8934 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8935 | if test "$ac_cv_type_long_double" = yes; then |
8936 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8938 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8939 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8940 | else |
8941 | ac_cv_sizeof_long_double=0 | ||||
8942 | fi | ||||
8943 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8944 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8945 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
8947 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8948 | |
8949 | |||||
8950 | |||||
8951 | cat >>confdefs.h <<_ACEOF | ||||
8952 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | ||||
8953 | _ACEOF | ||||
8954 | |||||
8955 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8956 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8957 | # The cast to long int works around a bug in the HP C Compiler |
8958 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8959 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8960 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
8962 | $as_echo_n "checking size of _Bool... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8963 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8964 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8965 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8966 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8967 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8968 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8969 | if test "$ac_cv_type__Bool" = yes; then |
8970 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8972 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8973 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8974 | else |
8975 | ac_cv_sizeof__Bool=0 | ||||
8976 | fi | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8977 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8978 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8979 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
8981 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8982 | |
8983 | |||||
8984 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8985 | cat >>confdefs.h <<_ACEOF |
8986 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | ||||
8987 | _ACEOF | ||||
8988 | |||||
8989 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8990 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8991 | # The cast to long int works around a bug in the HP C Compiler |
8992 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8993 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8994 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
8996 | $as_echo_n "checking size of off_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8997 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8998 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8999 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9000 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9001 | #ifdef HAVE_SYS_TYPES_H |
9002 | #include <sys/types.h> | ||||
9003 | #endif | ||||
9004 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9005 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9006 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9007 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9008 | if test "$ac_cv_type_off_t" = yes; then |
9009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9011 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9012 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9013 | else |
9014 | ac_cv_sizeof_off_t=0 | ||||
9015 | fi | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9016 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9017 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9018 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
9020 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9021 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9022 | |
9023 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9024 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9025 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9026 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9027 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9028 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9029 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
9031 | $as_echo_n "checking whether to enable large file support... " >&6; } | ||||
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 | [diff] [blame] | 9032 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 | [diff] [blame] | 9033 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9034 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9035 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9036 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9038 | $as_echo "yes" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9039 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9041 | $as_echo "no" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9042 | fi |
9043 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9044 | # The cast to long int works around a bug in the HP C Compiler |
9045 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9046 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9047 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
9049 | $as_echo_n "checking size of time_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9050 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9051 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9052 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9053 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9054 | #ifdef HAVE_SYS_TYPES_H |
9055 | #include <sys/types.h> | ||||
9056 | #endif | ||||
9057 | #ifdef HAVE_TIME_H | ||||
9058 | #include <time.h> | ||||
9059 | #endif | ||||
9060 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9061 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9062 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9063 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9064 | if test "$ac_cv_type_time_t" = yes; then |
9065 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9067 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9068 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9069 | else |
9070 | ac_cv_sizeof_time_t=0 | ||||
9071 | fi | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9072 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9073 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9074 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
9076 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9077 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9078 | |
9079 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9080 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9081 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9082 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9083 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9084 | |
9085 | |||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9086 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9087 | ac_save_cc="$CC" |
9088 | if test "$ac_cv_kpthread" = "yes" | ||||
9089 | then CC="$CC -Kpthread" | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 9090 | elif test "$ac_cv_kthread" = "yes" |
9091 | then CC="$CC -Kthread" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 9092 | elif test "$ac_cv_pthread" = "yes" |
9093 | then CC="$CC -pthread" | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9094 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9095 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
9097 | $as_echo_n "checking for pthread_t... " >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9098 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9100 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9101 | |
9102 | #include <pthread.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9103 | int |
9104 | main () | ||||
9105 | { | ||||
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 | [diff] [blame] | 9106 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9107 | ; |
9108 | return 0; | ||||
9109 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9111 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9112 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9113 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9114 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
9117 | $as_echo "$have_pthread_t" >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9118 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9119 | # The cast to long int works around a bug in the HP C Compiler |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9120 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
9121 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9122 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
9124 | $as_echo_n "checking size of pthread_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9125 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9126 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9127 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9128 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9129 | #ifdef HAVE_PTHREAD_H |
9130 | #include <pthread.h> | ||||
9131 | #endif | ||||
9132 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9133 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9134 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9135 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9136 | if test "$ac_cv_type_pthread_t" = yes; then |
9137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9139 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9140 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9141 | else |
9142 | ac_cv_sizeof_pthread_t=0 | ||||
9143 | fi | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9144 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9145 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9146 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
9148 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9149 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9150 | |
9151 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9152 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9153 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9154 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9155 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9156 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9157 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 10:41:34 | [diff] [blame] | 9158 | |
9159 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. | ||||
9160 | # This checking will be unnecessary after removing deprecated TLS API. | ||||
9161 | # The cast to long int works around a bug in the HP C Compiler | ||||
9162 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9163 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9164 | # This bug is HP SR number 8606223364. | ||||
9165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 | ||||
9166 | $as_echo_n "checking size of pthread_key_t... " >&6; } | ||||
9167 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : | ||||
9168 | $as_echo_n "(cached) " >&6 | ||||
9169 | else | ||||
9170 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> | ||||
9171 | "; then : | ||||
9172 | |||||
9173 | else | ||||
9174 | if test "$ac_cv_type_pthread_key_t" = yes; then | ||||
9175 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9176 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
9177 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) | ||||
9178 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9179 | else | ||||
9180 | ac_cv_sizeof_pthread_key_t=0 | ||||
9181 | fi | ||||
9182 | fi | ||||
9183 | |||||
9184 | fi | ||||
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 | ||||
9186 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } | ||||
9187 | |||||
9188 | |||||
9189 | |||||
9190 | cat >>confdefs.h <<_ACEOF | ||||
9191 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t | ||||
9192 | _ACEOF | ||||
9193 | |||||
9194 | |||||
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 | ||||
9196 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } | ||||
9197 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then | ||||
9198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9199 | /* end confdefs.h. */ | ||||
9200 | #include <pthread.h> | ||||
9201 | int | ||||
9202 | main () | ||||
9203 | { | ||||
9204 | pthread_key_t k; k * 1; | ||||
9205 | ; | ||||
9206 | return 0; | ||||
9207 | } | ||||
9208 | _ACEOF | ||||
9209 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9210 | ac_pthread_key_t_is_arithmetic_type=yes | ||||
9211 | else | ||||
9212 | ac_pthread_key_t_is_arithmetic_type=no | ||||
9213 | |||||
9214 | fi | ||||
9215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 | ||||
9217 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } | ||||
9218 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then | ||||
9219 | |||||
9220 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h | ||||
9221 | |||||
9222 | fi | ||||
9223 | else | ||||
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9225 | $as_echo "no" >&6; } | ||||
9226 | fi | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9227 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9228 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9229 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9230 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 9231 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9232 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
9233 | ;; | ||||
9234 | Darwin/*) | ||||
9235 | OTHER_LIBTOOL_OPT="" | ||||
9236 | ;; | ||||
9237 | esac | ||||
9238 | |||||
9239 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9240 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9241 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 9242 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9243 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
9244 | if test "${enable_universalsdk}"; then | ||||
9245 | : | ||||
9246 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9247 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9248 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 | [diff] [blame] | 9249 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9250 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 | [diff] [blame] | 9251 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 | [diff] [blame] | 9252 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9253 | if test ${gcc_version} '<' 4.0 |
9254 | then | ||||
9255 | LIBTOOL_CRUFT="-lcc_dynamic" | ||||
9256 | else | ||||
9257 | LIBTOOL_CRUFT="" | ||||
9258 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9259 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9260 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9261 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9263 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9264 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9265 | #include <unistd.h> |
9266 | int main(int argc, char*argv[]) | ||||
9267 | { | ||||
9268 | if (sizeof(long) == 4) { | ||||
9269 | return 0; | ||||
9270 | } else { | ||||
9271 | return 1; | ||||
9272 | } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9273 | } |
9274 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9275 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9276 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9277 | ac_osx_32bit=yes |
9278 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9279 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9280 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9281 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9282 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9283 | fi |
9284 | |||||
9285 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9286 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9287 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9288 | i386) |
9289 | MACOSX_DEFAULT_ARCH="i386" | ||||
9290 | ;; | ||||
9291 | ppc) | ||||
9292 | MACOSX_DEFAULT_ARCH="ppc" | ||||
9293 | ;; | ||||
9294 | *) | ||||
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 9295 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9296 | ;; |
9297 | esac | ||||
9298 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9299 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9300 | i386) |
9301 | MACOSX_DEFAULT_ARCH="x86_64" | ||||
9302 | ;; | ||||
9303 | ppc) | ||||
9304 | MACOSX_DEFAULT_ARCH="ppc64" | ||||
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 9305 | ;; |
9306 | arm64) | ||||
9307 | MACOSX_DEFAULT_ARCH="arm64" | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9308 | ;; |
9309 | *) | ||||
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 9310 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9311 | ;; |
9312 | esac | ||||
9313 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9314 | fi |
9315 | |||||
9316 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||||
Jack Jansen | b36687a | 2004-07-16 08:43:47 | [diff] [blame] | 9317 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9318 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9319 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
9321 | $as_echo_n "checking for --enable-framework... " >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9322 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9323 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 9324 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9325 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9326 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9327 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9328 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9329 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9331 | $as_echo "yes" >&6; } | ||||
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 | [diff] [blame] | 9332 | if test $enable_shared = "yes" |
9333 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9334 | as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 | [diff] [blame] | 9335 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9336 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9338 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9339 | fi |
9340 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
9342 | $as_echo_n "checking for dyld... " >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9343 | case $ac_sys_system/$ac_sys_release in |
9344 | Darwin/*) | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9345 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9346 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9347 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
9349 | $as_echo "always on for Darwin" >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9350 | ;; |
9351 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9353 | $as_echo "no" >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9354 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9355 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9356 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9357 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9359 | |
9360 | |||||
9361 | |||||
9362 | |||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9363 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9364 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 9365 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
9366 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | ||||
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | ||||
9368 | $as_echo_n "checking the extension of shared libraries... " >&6; } | ||||
9369 | if test -z "$SHLIB_SUFFIX"; then | ||||
9370 | case $ac_sys_system in | ||||
9371 | hp*|HP*) | ||||
9372 | case `uname -m` in | ||||
9373 | ia64) SHLIB_SUFFIX=.so;; | ||||
9374 | *) SHLIB_SUFFIX=.sl;; | ||||
9375 | esac | ||||
9376 | ;; | ||||
9377 | CYGWIN*) SHLIB_SUFFIX=.dll;; | ||||
9378 | *) SHLIB_SUFFIX=.so;; | ||||
9379 | esac | ||||
9380 | fi | ||||
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | ||||
9382 | $as_echo "$SHLIB_SUFFIX" >&6; } | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9383 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9384 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 23:36:05 | [diff] [blame] | 9385 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9386 | # (Shared libraries in this instance are shared modules to be loaded into |
9387 | # Python, as opposed to building Python itself as a shared library.) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
9389 | $as_echo_n "checking LDSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9390 | if test -z "$LDSHARED" |
9391 | then | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9392 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9393 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 | [diff] [blame] | 9394 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 | [diff] [blame] | 9395 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9396 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9397 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9398 | if test "$GCC" = "yes" ; then |
9399 | LDSHARED='$(CC) -shared' | ||||
9400 | LDCXXSHARED='$(CXX) -shared' | ||||
9401 | else | ||||
9402 | LDSHARED='$(CC) -G' | ||||
9403 | LDCXXSHARED='$(CXX) -G' | ||||
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 | [diff] [blame] | 9404 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 | [diff] [blame] | 9405 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9406 | if test "$GCC" = "yes" ; then |
9407 | LDSHARED='$(CC) -shared' | ||||
9408 | LDCXXSHARED='$(CXX) -shared' | ||||
9409 | else | ||||
Rob Boehne | 9d25bd1 | 2017-12-06 17:58:17 | [diff] [blame] | 9410 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-22 05:43:09 | [diff] [blame] | 9411 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 | [diff] [blame] | 9412 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 | [diff] [blame] | 9413 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9414 | LDSHARED='$(CC) -bundle' |
9415 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9416 | if test "$enable_framework" ; then |
9417 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9418 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9419 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9420 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9421 | else |
9422 | # No framework. Ignore undefined symbols, assuming they come from Python | ||||
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 | [diff] [blame] | 9423 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9424 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9425 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9426 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9427 | LDSHARED='$(CC) -bundle' |
9428 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9429 | if test "$enable_framework" ; then |
9430 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9431 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9432 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9433 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9434 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 | [diff] [blame] | 9435 | # No framework, use the Python app as bundle-loader |
9436 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 | [diff] [blame] | 9437 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9438 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9439 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9440 | Darwin/*) |
9441 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | ||||
9442 | # This allows an extension to be used in any Python | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 9443 | |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9444 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
9445 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
9446 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | ||||
9447 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
9448 | if test ${dep_target_major} -eq 10 && \ | ||||
9449 | test ${dep_target_minor} -le 2 | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9450 | then |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9451 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9452 | LDSHARED='$(CC) -bundle' |
9453 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9454 | if test "$enable_framework" ; then |
9455 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9456 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9457 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9458 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9459 | else |
9460 | # No framework, use the Python app as bundle-loader | ||||
9461 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
9462 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9463 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9464 | fi |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9465 | else |
9466 | # building for OS X 10.3 and later | ||||
9467 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | ||||
9468 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | ||||
9469 | BLDSHARED="$LDSHARED" | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9470 | fi |
9471 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 9472 | Linux*|GNU*|QNX*|VxWorks*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9473 | LDSHARED='$(CC) -shared' |
9474 | LDCXXSHARED='$(CXX) -shared';; | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9475 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 | [diff] [blame] | 9476 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9477 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9478 | LDSHARED='$(CC) -shared' |
9479 | LDCXXSHARED='$(CXX) -shared' | ||||
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9480 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9481 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9482 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9483 | OpenBSD*) |
9484 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | ||||
9485 | then | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9486 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9487 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9488 | else |
9489 | case `uname -r` in | ||||
9490 | [01].* | 2.[0-7] | 2.[0-7].*) | ||||
9491 | LDSHARED="ld -Bshareable ${LDFLAGS}" | ||||
9492 | ;; | ||||
9493 | *) | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9494 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9495 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9496 | ;; |
9497 | esac | ||||
9498 | fi;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9499 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 | [diff] [blame] | 9500 | LDSHARED='$(CC) -shared' |
9501 | LDCXXSHARED='$(CXX) -shared';; | ||||
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9502 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9503 | if test "$GCC" = "yes" ; then |
9504 | LDSHARED='$(CC) -shared' | ||||
9505 | LDCXXSHARED='$(CXX) -shared' | ||||
9506 | else | ||||
9507 | LDSHARED='$(CC) -G' | ||||
9508 | LDCXXSHARED='$(CXX) -G' | ||||
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9509 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9510 | SCO_SV*) |
9511 | LDSHARED='$(CC) -Wl,-G,-Bexport' | ||||
9512 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | ||||
9513 | CYGWIN*) | ||||
9514 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | ||||
9515 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9516 | *) LDSHARED="ld";; |
9517 | esac | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9518 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
9520 | $as_echo "$LDSHARED" >&6; } | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9521 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9522 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9523 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9524 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
9526 | $as_echo_n "checking CCSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9527 | if test -z "$CCSHARED" |
9528 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9529 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 | [diff] [blame] | 9530 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9531 | then CCSHARED="-fPIC"; |
9532 | elif test `uname -p` = sparc; | ||||
9533 | then CCSHARED="-xcode=pic32"; | ||||
9534 | else CCSHARED="-Kpic"; | ||||
9535 | fi;; | ||||
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 | [diff] [blame] | 9536 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 | [diff] [blame] | 9537 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 | [diff] [blame] | 9538 | else CCSHARED="+z"; |
9539 | fi;; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 9540 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 | [diff] [blame] | 9541 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 9542 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9543 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9544 | if test "$GCC" = "yes" |
9545 | then CCSHARED="-fPIC" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 9546 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9547 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 9548 | SCO_SV*) |
9549 | if test "$GCC" = "yes" | ||||
9550 | then CCSHARED="-fPIC" | ||||
9551 | else CCSHARED="-Kpic -belf" | ||||
9552 | fi;; | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 9553 | VxWorks*) |
9554 | CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9555 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9556 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
9558 | $as_echo "$CCSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9559 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9560 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
9562 | $as_echo_n "checking LINKFORSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9563 | if test -z "$LINKFORSHARED" |
9564 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9565 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9566 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 9567 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 9568 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
9569 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 9570 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 | [diff] [blame] | 9571 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9572 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9573 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 | [diff] [blame] | 9574 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Miss Islington (bot) | bd92b94 | 2019-07-02 07:31:07 | [diff] [blame] | 9575 | |
9576 | # Issue #18075: the default maximum stack size (8MBytes) is too | ||||
9577 | # small for the default recursion limit. Increase the stack size | ||||
9578 | # to ensure that tests don't crash | ||||
Miss Islington (bot) | 8399641 | 2019-08-01 14:38:57 | [diff] [blame] | 9579 | # Note: This matches the value of THREAD_STACK_SIZE in |
9580 | # thread_pthread.h | ||||
Miss Islington (bot) | bd92b94 | 2019-07-02 07:31:07 | [diff] [blame] | 9581 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
9582 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9583 | if test "$enable_framework" |
9584 | then | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9585 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9586 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 | [diff] [blame] | 9587 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9588 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 9589 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 | [diff] [blame] | 9590 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 9591 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 | [diff] [blame] | 9592 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
9593 | then | ||||
9594 | LINKFORSHARED="-Wl,--export-dynamic" | ||||
9595 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9596 | SunOS/5*) case $CC in |
9597 | *gcc*) | ||||
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 | [diff] [blame] | 9598 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 | [diff] [blame] | 9599 | then |
9600 | LINKFORSHARED="-Xlinker --export-dynamic" | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9601 | fi;; |
9602 | esac;; | ||||
Jason Tishler | 3076559 | 2003-09-04 11:04:06 | [diff] [blame] | 9603 | CYGWIN*) |
9604 | if test $enable_shared = "no" | ||||
9605 | then | ||||
9606 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | ||||
9607 | fi;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 | [diff] [blame] | 9608 | QNX*) |
9609 | # -Wl,-E causes the symbols to be added to the dynamic | ||||
9610 | # symbol table so that they can be found when a module | ||||
9611 | # is loaded. -N 2048K causes the stack size to be set | ||||
9612 | # to 2048 kilobytes so that the stack doesn't overflow | ||||
9613 | # when running test_compile.py. | ||||
9614 | LINKFORSHARED='-Wl,-E -N 2048K';; | ||||
pxinwr | 32f5fdd | 2019-02-27 11:09:28 | [diff] [blame] | 9615 | VxWorks*) |
9616 | LINKFORSHARED='--export-dynamic';; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9617 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9618 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
9620 | $as_echo "$LINKFORSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9621 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9622 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 | [diff] [blame] | 9623 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
9625 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9626 | if test ! "$LIBRARY" = "$LDLIBRARY" |
9627 | then | ||||
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 | [diff] [blame] | 9628 | case $ac_sys_system in |
9629 | CYGWIN*) | ||||
9630 | # Cygwin needs CCSHARED when building extension DLLs | ||||
9631 | # but not when building the interpreter DLL. | ||||
9632 | CFLAGSFORSHARED='';; | ||||
9633 | *) | ||||
9634 | CFLAGSFORSHARED='$(CCSHARED)' | ||||
9635 | esac | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9636 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
9638 | $as_echo "$CFLAGSFORSHARED" >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9639 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9640 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
9641 | # library (with --enable-shared). | ||||
9642 | # For platforms on which shared libraries are not allowed to have unresolved | ||||
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 | [diff] [blame] | 9643 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
9644 | # if it is not required, since it creates a dependency of the shared library | ||||
9645 | # to LIBS. This, in turn, means that applications linking the shared libpython | ||||
9646 | # don't need to link LIBS explicitly. The default should be only changed | ||||
9647 | # on systems where this approach causes problems. | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9648 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
9650 | $as_echo_n "checking SHLIBS... " >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9651 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9652 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 | [diff] [blame] | 9653 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9654 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
9656 | $as_echo "$SHLIBS" >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9657 | |
9658 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9659 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
9661 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9662 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9663 | $as_echo_n "(cached) " >&6 |
9664 | else | ||||
9665 | ac_check_lib_save_LIBS=$LIBS | ||||
9666 | LIBS="-lsendfile $LIBS" | ||||
9667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9668 | /* end confdefs.h. */ | ||||
9669 | |||||
9670 | /* Override any GCC internal prototype to avoid an error. | ||||
9671 | Use char because int might match the return type of a GCC | ||||
9672 | builtin and then its argument prototype would still apply. */ | ||||
9673 | #ifdef __cplusplus | ||||
9674 | extern "C" | ||||
9675 | #endif | ||||
9676 | char sendfile (); | ||||
9677 | int | ||||
9678 | main () | ||||
9679 | { | ||||
9680 | return sendfile (); | ||||
9681 | ; | ||||
9682 | return 0; | ||||
9683 | } | ||||
9684 | _ACEOF | ||||
9685 | if ac_fn_c_try_link "$LINENO"; then : | ||||
9686 | ac_cv_lib_sendfile_sendfile=yes | ||||
9687 | else | ||||
9688 | ac_cv_lib_sendfile_sendfile=no | ||||
9689 | fi | ||||
9690 | rm -f core conftest.err conftest.$ac_objext \ | ||||
9691 | conftest$ac_exeext conftest.$ac_ext | ||||
9692 | LIBS=$ac_check_lib_save_LIBS | ||||
9693 | fi | ||||
9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | ||||
9695 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9696 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9697 | cat >>confdefs.h <<_ACEOF |
9698 | #define HAVE_LIBSENDFILE 1 | ||||
9699 | _ACEOF | ||||
9700 | |||||
9701 | LIBS="-lsendfile $LIBS" | ||||
9702 | |||||
9703 | fi | ||||
9704 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9706 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9707 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9708 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9710 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9711 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9713 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9715 | /* Override any GCC internal prototype to avoid an error. |
9716 | Use char because int might match the return type of a GCC | ||||
9717 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9718 | #ifdef __cplusplus |
9719 | extern "C" | ||||
9720 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9721 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9722 | int |
9723 | main () | ||||
9724 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9725 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9726 | ; |
9727 | return 0; | ||||
9728 | } | ||||
9729 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9730 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9731 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9732 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9733 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9734 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9735 | rm -f core conftest.err conftest.$ac_objext \ |
9736 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9737 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9738 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9740 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9741 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9742 | cat >>confdefs.h <<_ACEOF |
9743 | #define HAVE_LIBDL 1 | ||||
9744 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9745 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9746 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 9747 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9748 | fi |
9749 | # Dynamic linking for SunOS/Solaris and SYSV | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9751 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9752 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9753 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9755 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9756 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9759 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9760 | /* Override any GCC internal prototype to avoid an error. |
9761 | Use char because int might match the return type of a GCC | ||||
9762 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9763 | #ifdef __cplusplus |
9764 | extern "C" | ||||
9765 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9766 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9767 | int |
9768 | main () | ||||
9769 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9770 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9771 | ; |
9772 | return 0; | ||||
9773 | } | ||||
9774 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9775 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9776 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9777 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9778 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9779 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9780 | rm -f core conftest.err conftest.$ac_objext \ |
9781 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9782 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9783 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9785 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9786 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9787 | cat >>confdefs.h <<_ACEOF |
9788 | #define HAVE_LIBDLD 1 | ||||
9789 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9790 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9791 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9792 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9793 | fi |
9794 | # Dynamic linking for HP-UX | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9795 | |
Michael Felt | 0d3ccb4 | 2017-12-30 21:39:20 | [diff] [blame] | 9796 | # checks for uuid.h location |
9797 | for ac_header in uuid/uuid.h uuid.h | ||||
9798 | do : | ||||
9799 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
9800 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
9801 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
9802 | cat >>confdefs.h <<_ACEOF | ||||
9803 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
9804 | _ACEOF | ||||
9805 | |||||
9806 | fi | ||||
9807 | |||||
9808 | done | ||||
9809 | |||||
9810 | |||||
Berker Peksag | 9a10ff4 | 2017-11-08 20:09:16 | [diff] [blame] | 9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
9812 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } | ||||
9813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9814 | /* end confdefs.h. */ | ||||
9815 | #include <uuid/uuid.h> | ||||
9816 | int | ||||
9817 | main () | ||||
9818 | { | ||||
9819 | |||||
9820 | #ifndef uuid_generate_time_safe | ||||
Berker Peksag | 0e163d2 | 2017-11-08 21:43:14 | [diff] [blame] | 9821 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 20:09:16 | [diff] [blame] | 9822 | #endif |
9823 | |||||
9824 | ; | ||||
9825 | return 0; | ||||
9826 | } | ||||
9827 | _ACEOF | ||||
9828 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9829 | |||||
9830 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h | ||||
9831 | |||||
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9833 | $as_echo "yes" >&6; } | ||||
9834 | else | ||||
9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9836 | $as_echo "no" >&6; } | ||||
9837 | |||||
9838 | fi | ||||
9839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9840 | |||||
Michael Felt | 0d3ccb4 | 2017-12-30 21:39:20 | [diff] [blame] | 9841 | # AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) |
David Carlier | b4ebaa7 | 2018-01-09 19:38:07 | [diff] [blame] | 9842 | # FreeBSD and OpenBSD provides support as well |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 | ||||
9844 | $as_echo_n "checking for uuid_create... " >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 21:39:20 | [diff] [blame] | 9845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9846 | /* end confdefs.h. */ | ||||
9847 | #include <uuid.h> | ||||
9848 | int | ||||
9849 | main () | ||||
9850 | { | ||||
9851 | |||||
9852 | #ifndef uuid_create | ||||
9853 | void *x = uuid_create | ||||
9854 | #endif | ||||
9855 | |||||
9856 | ; | ||||
9857 | return 0; | ||||
9858 | } | ||||
9859 | _ACEOF | ||||
9860 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9861 | |||||
9862 | $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h | ||||
9863 | |||||
9864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9865 | $as_echo "yes" >&6; } | ||||
9866 | else | ||||
9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9868 | $as_echo "no" >&6; } | ||||
9869 | |||||
9870 | fi | ||||
9871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9872 | |||||
Serhiy Storchaka | 17d8830 | 2018-05-24 22:45:09 | [diff] [blame] | 9873 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
9874 | # stream in big-endian byte-order | ||||
9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 | ||||
9876 | $as_echo_n "checking for uuid_enc_be... " >&6; } | ||||
9877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9878 | /* end confdefs.h. */ | ||||
9879 | #include <uuid.h> | ||||
9880 | int | ||||
9881 | main () | ||||
9882 | { | ||||
9883 | |||||
9884 | #ifndef uuid_enc_be | ||||
Ned Deily | ced0adb | 2018-06-09 22:19:57 | [diff] [blame] | 9885 | void *x = uuid_enc_be |
Serhiy Storchaka | 17d8830 | 2018-05-24 22:45:09 | [diff] [blame] | 9886 | #endif |
9887 | |||||
9888 | ; | ||||
9889 | return 0; | ||||
9890 | } | ||||
9891 | _ACEOF | ||||
9892 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9893 | |||||
9894 | $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h | ||||
9895 | |||||
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9897 | $as_echo "yes" >&6; } | ||||
9898 | else | ||||
9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9900 | $as_echo "no" >&6; } | ||||
9901 | |||||
9902 | fi | ||||
9903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9904 | |||||
Serhiy Storchaka | 9e78dc2 | 2017-11-11 17:18:28 | [diff] [blame] | 9905 | # 'Real Time' functions on Solaris |
9906 | # posix4 on Solaris 2.6 | ||||
9907 | # pthread (first!) on Linux | ||||
Berker Peksag | 7e666ee | 2017-11-06 16:06:05 | [diff] [blame] | 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9909 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9910 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9911 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9912 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 | [diff] [blame] | 9913 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9915 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9916 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9917 | /* Override any GCC internal prototype to avoid an error. |
9918 | Use char because int might match the return type of a GCC | ||||
9919 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9920 | #ifdef __cplusplus |
9921 | extern "C" | ||||
9922 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9923 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9924 | int |
9925 | main () | ||||
9926 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9927 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9928 | ; |
9929 | return 0; | ||||
9930 | } | ||||
9931 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9932 | for ac_lib in '' pthread rt posix4; do |
9933 | if test -z "$ac_lib"; then | ||||
9934 | ac_res="none required" | ||||
9935 | else | ||||
9936 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9937 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9938 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9939 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9940 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9941 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9942 | rm -f core conftest.err conftest.$ac_objext \ |
9943 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9944 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9945 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9946 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9947 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9948 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9949 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9950 | else |
9951 | ac_cv_search_sem_init=no | ||||
9952 | fi | ||||
9953 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 | [diff] [blame] | 9954 | LIBS=$ac_func_search_save_LIBS |
9955 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
9957 | $as_echo "$ac_cv_search_sem_init" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9958 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9959 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9960 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9961 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9962 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 17:18:28 | [diff] [blame] | 9963 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9964 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9965 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
9967 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9968 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9969 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9970 | else |
9971 | ac_check_lib_save_LIBS=$LIBS | ||||
9972 | LIBS="-lintl $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9974 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9975 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9976 | /* Override any GCC internal prototype to avoid an error. |
9977 | Use char because int might match the return type of a GCC | ||||
9978 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9979 | #ifdef __cplusplus |
9980 | extern "C" | ||||
9981 | #endif | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9982 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9983 | int |
9984 | main () | ||||
9985 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9986 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9987 | ; |
9988 | return 0; | ||||
9989 | } | ||||
9990 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9991 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9992 | ac_cv_lib_intl_textdomain=yes |
9993 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9994 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9995 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9996 | rm -f core conftest.err conftest.$ac_objext \ |
9997 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9998 | LIBS=$ac_check_lib_save_LIBS |
9999 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
10001 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10002 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 10003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10004 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 10005 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 | [diff] [blame] | 10006 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 10007 | fi |
10008 | |||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 10009 | |
10010 | # checks for system dependent C++ extensions support | ||||
10011 | case "$ac_sys_system" in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10012 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
10013 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | ||||
10014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10015 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10016 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 | [diff] [blame] | 10017 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10018 | int |
10019 | main () | ||||
10020 | { | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 10021 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10022 | ; |
10023 | return 0; | ||||
10024 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10026 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10027 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 10028 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10029 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10030 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10031 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10033 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10034 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 10035 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10036 | |
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10038 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10039 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 10040 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10041 | rm -f core conftest.err conftest.$ac_objext \ |
10042 | conftest$ac_exeext conftest.$ac_ext;; | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 10043 | *) ;; |
10044 | esac | ||||
10045 | |||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10046 | # check for systems that require aligned memory access |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | ||||
10048 | $as_echo_n "checking aligned memory access is required... " >&6; } | ||||
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10049 | if ${ac_cv_aligned_required+:} false; then : |
10050 | $as_echo_n "(cached) " >&6 | ||||
10051 | else | ||||
10052 | if test "$cross_compiling" = yes; then : | ||||
10053 | ac_cv_aligned_required=yes | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10054 | else |
10055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
10056 | /* end confdefs.h. */ | ||||
10057 | |||||
10058 | int main() | ||||
10059 | { | ||||
10060 | char s[16]; | ||||
10061 | int i, *p1, *p2; | ||||
10062 | for (i=0; i < 16; i++) | ||||
10063 | s[i] = i; | ||||
10064 | p1 = (int*)(s+1); | ||||
10065 | p2 = (int*)(s+2); | ||||
10066 | if (*p1 == *p2) | ||||
10067 | return 1; | ||||
10068 | return 0; | ||||
10069 | } | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10070 | _ACEOF |
10071 | if ac_fn_c_try_run "$LINENO"; then : | ||||
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10072 | ac_cv_aligned_required=no |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10073 | else |
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10074 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10075 | fi |
10076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
10077 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
10078 | fi | ||||
10079 | |||||
10080 | |||||
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10081 | fi |
10082 | |||||
10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 | ||||
10084 | $as_echo "$ac_cv_aligned_required" >&6; } | ||||
10085 | if test "$ac_cv_aligned_required" = yes ; then | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10086 | |
10087 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | ||||
10088 | |||||
10089 | fi | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10090 | |
10091 | # str, bytes and memoryview hash algorithm | ||||
10092 | |||||
10093 | |||||
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | ||||
10095 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | ||||
10096 | |||||
10097 | # Check whether --with-hash_algorithm was given. | ||||
10098 | if test "${with_hash_algorithm+set}" = set; then : | ||||
10099 | withval=$with_hash_algorithm; | ||||
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10101 | $as_echo "$withval" >&6; } | ||||
10102 | case "$withval" in | ||||
10103 | siphash24) | ||||
10104 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | ||||
10105 | |||||
10106 | ;; | ||||
10107 | fnv) | ||||
10108 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | ||||
10109 | |||||
10110 | ;; | ||||
10111 | *) | ||||
10112 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | ||||
10113 | ;; | ||||
10114 | esac | ||||
10115 | |||||
10116 | else | ||||
10117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | ||||
10118 | $as_echo "default" >&6; } | ||||
10119 | fi | ||||
10120 | |||||
10121 | |||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
10123 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | ||||
10124 | |||||
10125 | # Check whether --with-address_sanitizer was given. | ||||
10126 | if test "${with_address_sanitizer+set}" = set; then : | ||||
10127 | withval=$with_address_sanitizer; | ||||
10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10129 | $as_echo "$withval" >&6; } | ||||
10130 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | ||||
10131 | LDFLAGS="-fsanitize=address $LDFLAGS" | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 20:07:14 | [diff] [blame] | 10132 | # ASan works by controlling memory allocation, our own malloc interferes. |
10133 | with_pymalloc="no" | ||||
10134 | |||||
10135 | else | ||||
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10137 | $as_echo "no" >&6; } | ||||
10138 | fi | ||||
10139 | |||||
10140 | |||||
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 | ||||
10142 | $as_echo_n "checking for --with-memory-sanitizer... " >&6; } | ||||
10143 | |||||
10144 | # Check whether --with-memory_sanitizer was given. | ||||
10145 | if test "${with_memory_sanitizer+set}" = set; then : | ||||
10146 | withval=$with_memory_sanitizer; | ||||
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10148 | $as_echo "$withval" >&6; } | ||||
10149 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" | ||||
10150 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" | ||||
10151 | # MSan works by controlling memory allocation, our own malloc interferes. | ||||
10152 | with_pymalloc="no" | ||||
10153 | |||||
10154 | else | ||||
10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10156 | $as_echo "no" >&6; } | ||||
10157 | fi | ||||
10158 | |||||
10159 | |||||
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 | ||||
10161 | $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } | ||||
10162 | |||||
10163 | # Check whether --with-undefined_behavior_sanitizer was given. | ||||
10164 | if test "${with_undefined_behavior_sanitizer+set}" = set; then : | ||||
10165 | withval=$with_undefined_behavior_sanitizer; | ||||
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10167 | $as_echo "$withval" >&6; } | ||||
10168 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" | ||||
10169 | LDFLAGS="-fsanitize=undefined $LDFLAGS" | ||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 10170 | |
10171 | else | ||||
10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10173 | $as_echo "no" >&6; } | ||||
10174 | fi | ||||
10175 | |||||
10176 | |||||
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 | [diff] [blame] | 10177 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
10179 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10180 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10181 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10183 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10184 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10186 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10187 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10188 | /* Override any GCC internal prototype to avoid an error. |
10189 | Use char because int might match the return type of a GCC | ||||
10190 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10191 | #ifdef __cplusplus |
10192 | extern "C" | ||||
10193 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10194 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10195 | int |
10196 | main () | ||||
10197 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10198 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10199 | ; |
10200 | return 0; | ||||
10201 | } | ||||
10202 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10203 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10204 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10205 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10206 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10207 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10208 | rm -f core conftest.err conftest.$ac_objext \ |
10209 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10210 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10211 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
10213 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10214 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10215 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10216 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 | [diff] [blame] | 10217 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
10219 | $as_echo_n "checking for socket in -lsocket... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10220 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10221 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10223 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10224 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10226 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10227 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10228 | /* Override any GCC internal prototype to avoid an error. |
10229 | Use char because int might match the return type of a GCC | ||||
10230 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10231 | #ifdef __cplusplus |
10232 | extern "C" | ||||
10233 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10234 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10235 | int |
10236 | main () | ||||
10237 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10238 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10239 | ; |
10240 | return 0; | ||||
10241 | } | ||||
10242 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10243 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10244 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10245 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10246 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10247 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10248 | rm -f core conftest.err conftest.$ac_objext \ |
10249 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10250 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10251 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
10253 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10254 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10255 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10256 | fi |
10257 | # SVR4 sockets | ||||
Skip Montanaro | b9949db | 2004-01-17 04:04:13 | [diff] [blame] | 10258 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
10260 | $as_echo_n "checking for --with-libs... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10262 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10263 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10264 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10266 | $as_echo "$withval" >&6; } | ||||
Guido van Rossum | a68acba | 1996-07-31 17:36:39 | [diff] [blame] | 10267 | LIBS="$withval $LIBS" |
10268 | |||||
10269 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10271 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10272 | fi |
10273 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 10274 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 06:37:08 | [diff] [blame] | 10275 | |
10276 | |||||
10277 | |||||
10278 | |||||
10279 | |||||
10280 | |||||
Victor Stinner | 23a683a | 2019-04-12 19:27:37 | [diff] [blame] | 10281 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 06:37:08 | [diff] [blame] | 10282 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
10283 | if test -n "$ac_tool_prefix"; then | ||||
10284 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
10285 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10287 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10288 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||||
10289 | $as_echo_n "(cached) " >&6 | ||||
10290 | else | ||||
10291 | case $PKG_CONFIG in | ||||
10292 | [\\/]* | ?:[\\/]*) | ||||
10293 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||||
10294 | ;; | ||||
10295 | *) | ||||
10296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10297 | for as_dir in $PATH | ||||
10298 | do | ||||
10299 | IFS=$as_save_IFS | ||||
10300 | test -z "$as_dir" && as_dir=. | ||||
10301 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10303 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10305 | break 2 | ||||
10306 | fi | ||||
10307 | done | ||||
10308 | done | ||||
10309 | IFS=$as_save_IFS | ||||
10310 | |||||
10311 | ;; | ||||
10312 | esac | ||||
10313 | fi | ||||
10314 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||||
10315 | if test -n "$PKG_CONFIG"; then | ||||
10316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
10317 | $as_echo "$PKG_CONFIG" >&6; } | ||||
10318 | else | ||||
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10320 | $as_echo "no" >&6; } | ||||
10321 | fi | ||||
10322 | |||||
10323 | |||||
10324 | fi | ||||
10325 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||||
10326 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||||
10327 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
10328 | set dummy pkg-config; ac_word=$2 | ||||
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10330 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10331 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||||
10332 | $as_echo_n "(cached) " >&6 | ||||
10333 | else | ||||
10334 | case $ac_pt_PKG_CONFIG in | ||||
10335 | [\\/]* | ?:[\\/]*) | ||||
10336 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||||
10337 | ;; | ||||
10338 | *) | ||||
10339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10340 | for as_dir in $PATH | ||||
10341 | do | ||||
10342 | IFS=$as_save_IFS | ||||
10343 | test -z "$as_dir" && as_dir=. | ||||
10344 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10346 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10348 | break 2 | ||||
10349 | fi | ||||
10350 | done | ||||
10351 | done | ||||
10352 | IFS=$as_save_IFS | ||||
10353 | |||||
10354 | ;; | ||||
10355 | esac | ||||
10356 | fi | ||||
10357 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||||
10358 | if test -n "$ac_pt_PKG_CONFIG"; then | ||||
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||||
10360 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||||
10361 | else | ||||
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10363 | $as_echo "no" >&6; } | ||||
10364 | fi | ||||
10365 | |||||
10366 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||||
10367 | PKG_CONFIG="" | ||||
10368 | else | ||||
10369 | case $cross_compiling:$ac_tool_warned in | ||||
10370 | yes:) | ||||
10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
10372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
10373 | ac_tool_warned=yes ;; | ||||
10374 | esac | ||||
10375 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||||
10376 | fi | ||||
10377 | else | ||||
10378 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||||
10379 | fi | ||||
10380 | |||||
10381 | fi | ||||
10382 | if test -n "$PKG_CONFIG"; then | ||||
10383 | _pkg_min_version=0.9.0 | ||||
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||||
10385 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||||
10386 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||||
10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10388 | $as_echo "yes" >&6; } | ||||
10389 | else | ||||
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10391 | $as_echo "no" >&6; } | ||||
10392 | PKG_CONFIG="" | ||||
10393 | fi | ||||
10394 | fi | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10395 | |
10396 | # Check for use of the system expat library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
10398 | $as_echo_n "checking for --with-system-expat... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10399 | |
10400 | # Check whether --with-system_expat was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10401 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10402 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 | [diff] [blame] | 10403 | else |
10404 | with_system_expat="no" | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10405 | fi |
10406 | |||||
10407 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
10409 | $as_echo "$with_system_expat" >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10410 | |
10411 | # Check for use of the system libffi library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
10413 | $as_echo_n "checking for --with-system-ffi... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10414 | |
10415 | # Check whether --with-system_ffi was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10416 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10417 | withval=$with_system_ffi; |
10418 | fi | ||||
10419 | |||||
10420 | |||||
Zachary Ware | f40d4dd | 2016-09-17 06:25:24 | [diff] [blame] | 10421 | if test "$ac_sys_system" = "Darwin" |
10422 | then | ||||
10423 | case "$with_system_ffi" in | ||||
10424 | "") | ||||
10425 | with_system_ffi="no" | ||||
10426 | ;; | ||||
10427 | yes|no) | ||||
10428 | ;; | ||||
10429 | *) | ||||
10430 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | ||||
10431 | ;; | ||||
10432 | esac | ||||
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | ||||
10434 | $as_echo "$with_system_ffi" >&6; } | ||||
10435 | else | ||||
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10437 | $as_echo "yes" >&6; } | ||||
10438 | if test "$with_system_ffi" != "" | ||||
10439 | then | ||||
10440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 | ||||
10441 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | ||||
10442 | fi | ||||
10443 | with_system_ffi="yes" | ||||
10444 | fi | ||||
Zachary Ware | 935043d | 2016-09-10 00:01:21 | [diff] [blame] | 10445 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10446 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 | [diff] [blame] | 10447 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
10448 | else | ||||
10449 | LIBFFI_INCLUDEDIR="" | ||||
10450 | fi | ||||
10451 | |||||
10452 | |||||
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 10453 | # Check for use of the system libmpdec library |
10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | ||||
10455 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | ||||
10456 | |||||
10457 | # Check whether --with-system_libmpdec was given. | ||||
10458 | if test "${with_system_libmpdec+set}" = set; then : | ||||
10459 | withval=$with_system_libmpdec; | ||||
10460 | else | ||||
10461 | with_system_libmpdec="no" | ||||
10462 | fi | ||||
10463 | |||||
10464 | |||||
10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | ||||
10466 | $as_echo "$with_system_libmpdec" >&6; } | ||||
10467 | |||||
Stefan Krah | 4d70124 | 2020-02-29 21:16:32 | [diff] [blame] | 10468 | # Check whether _decimal should use a coroutine-local or thread-local context |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 | ||||
10470 | $as_echo_n "checking for --with-decimal-contextvar... " >&6; } | ||||
10471 | |||||
10472 | # Check whether --with-decimal_contextvar was given. | ||||
10473 | if test "${with_decimal_contextvar+set}" = set; then : | ||||
10474 | withval=$with_decimal_contextvar; | ||||
10475 | else | ||||
10476 | with_decimal_contextvar="yes" | ||||
10477 | fi | ||||
10478 | |||||
10479 | |||||
10480 | if test "$with_decimal_contextvar" != "no" | ||||
10481 | then | ||||
10482 | |||||
10483 | $as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h | ||||
10484 | |||||
10485 | fi | ||||
10486 | |||||
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 | ||||
10488 | $as_echo "$with_decimal_contextvar" >&6; } | ||||
10489 | |||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 10490 | # Check for support for loadable sqlite extensions |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | ||||
10492 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | ||||
10493 | # Check whether --enable-loadable-sqlite-extensions was given. | ||||
10494 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | ||||
10495 | enableval=$enable_loadable_sqlite_extensions; | ||||
10496 | else | ||||
10497 | enable_loadable_sqlite_extensions="no" | ||||
10498 | fi | ||||
10499 | |||||
10500 | |||||
10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | ||||
10502 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | ||||
10503 | |||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 10504 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
10505 | |||||
10506 | |||||
10507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | ||||
10508 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | ||||
10509 | |||||
10510 | # Check whether --with-tcltk-includes was given. | ||||
10511 | if test "${with_tcltk_includes+set}" = set; then : | ||||
10512 | withval=$with_tcltk_includes; | ||||
10513 | else | ||||
10514 | with_tcltk_includes="default" | ||||
10515 | fi | ||||
10516 | |||||
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | ||||
10518 | $as_echo "$with_tcltk_includes" >&6; } | ||||
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | ||||
10520 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | ||||
10521 | |||||
10522 | # Check whether --with-tcltk-libs was given. | ||||
10523 | if test "${with_tcltk_libs+set}" = set; then : | ||||
10524 | withval=$with_tcltk_libs; | ||||
10525 | else | ||||
10526 | with_tcltk_libs="default" | ||||
10527 | fi | ||||
10528 | |||||
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | ||||
10530 | $as_echo "$with_tcltk_libs" >&6; } | ||||
10531 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | ||||
10532 | then | ||||
10533 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | ||||
10534 | then | ||||
10535 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | ||||
10536 | fi | ||||
10537 | TCLTK_INCLUDES="" | ||||
10538 | TCLTK_LIBS="" | ||||
10539 | else | ||||
10540 | TCLTK_INCLUDES="$with_tcltk_includes" | ||||
10541 | TCLTK_LIBS="$with_tcltk_libs" | ||||
10542 | fi | ||||
10543 | |||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10544 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
10546 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10547 | |
10548 | # Check whether --with-dbmliborder was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10549 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10550 | withval=$with_dbmliborder; |
10551 | if test x$with_dbmliborder = xyes | ||||
10552 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 10553 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10554 | else |
10555 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | ||||
10556 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||||
10557 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 10558 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10559 | fi |
10560 | done | ||||
10561 | fi | ||||
10562 | fi | ||||
10563 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
10565 | $as_echo "$with_dbmliborder" >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10567 | # Templates for things AC_DEFINEd more than once. |
10568 | # For a single AC_DEFINE, no template is needed. | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 | [diff] [blame] | 10569 | |
10570 | |||||
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10571 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10572 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10573 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10574 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10575 | |
10576 | posix_threads=yes | ||||
Miss Islington (bot) | 8750bce | 2019-09-28 02:20:31 | [diff] [blame] | 10577 | if test "$ac_sys_system" = "SunOS"; then |
10578 | CFLAGS="$CFLAGS -D_REENTRANT" | ||||
10579 | fi | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10580 | elif test "$ac_cv_kpthread" = "yes" |
10581 | then | ||||
10582 | CC="$CC -Kpthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10583 | if test "$ac_cv_cxx_thread" = "yes"; then |
10584 | CXX="$CXX -Kpthread" | ||||
10585 | fi | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10586 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 10587 | elif test "$ac_cv_kthread" = "yes" |
10588 | then | ||||
10589 | CC="$CC -Kthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10590 | if test "$ac_cv_cxx_thread" = "yes"; then |
10591 | CXX="$CXX -Kthread" | ||||
10592 | fi | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 10593 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10594 | elif test "$ac_cv_pthread" = "yes" |
10595 | then | ||||
10596 | CC="$CC -pthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10597 | if test "$ac_cv_cxx_thread" = "yes"; then |
10598 | CXX="$CXX -pthread" | ||||
10599 | fi | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10600 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10601 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10602 | if test ! -z "$withval" -a -d "$withval" |
10603 | then LDFLAGS="$LDFLAGS -L$withval" | ||||
10604 | fi | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10605 | |
10606 | # According to the POSIX spec, a pthreads implementation must | ||||
Matthias Klose | a2542be | 2004-08-16 11:35:51 | [diff] [blame] | 10607 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
10608 | # (e.g. gnu pth with pthread emulation) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
10610 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | ||||
10611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10612 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 10613 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10614 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 10615 | #ifdef _POSIX_THREADS |
10616 | yes | ||||
10617 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10618 | |
10619 | _ACEOF | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10621 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10622 | unistd_defines_pthreads=yes |
10623 | else | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10624 | unistd_defines_pthreads=no |
10625 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 10626 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10627 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
10629 | $as_echo "$unistd_defines_pthreads" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10630 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10631 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 | [diff] [blame] | 10632 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10633 | # Just looking for pthread_create in libpthread is not enough: |
10634 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | ||||
10635 | # So we really have to include pthread.h, and then link. | ||||
10636 | _libs=$LIBS | ||||
10637 | LIBS="$LIBS -lpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
10639 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
10640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10641 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 10642 | |
10643 | #include <stdio.h> | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10644 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10645 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10646 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10647 | int |
10648 | main () | ||||
10649 | { | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10650 | |
10651 | pthread_create (NULL, NULL, start_routine, NULL) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10652 | ; |
10653 | return 0; | ||||
10654 | } | ||||
10655 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10656 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10657 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10659 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10660 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10661 | |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10663 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10664 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10665 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10666 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10667 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10668 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10669 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10670 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10671 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
10673 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10674 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10675 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10677 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10678 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10680 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10681 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10682 | /* Override any GCC internal prototype to avoid an error. |
10683 | Use char because int might match the return type of a GCC | ||||
10684 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10685 | #ifdef __cplusplus |
10686 | extern "C" | ||||
10687 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10688 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10689 | int |
10690 | main () | ||||
10691 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10692 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10693 | ; |
10694 | return 0; | ||||
10695 | } | ||||
10696 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10697 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10698 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10699 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10700 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10701 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10702 | rm -f core conftest.err conftest.$ac_objext \ |
10703 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10704 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10705 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
10707 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10708 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10709 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10710 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10711 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10712 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10713 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10714 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
10716 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10717 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10718 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10720 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10721 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10723 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10724 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10725 | /* Override any GCC internal prototype to avoid an error. |
10726 | Use char because int might match the return type of a GCC | ||||
10727 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10728 | #ifdef __cplusplus |
10729 | extern "C" | ||||
10730 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10731 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10732 | int |
10733 | main () | ||||
10734 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10735 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10736 | ; |
10737 | return 0; | ||||
10738 | } | ||||
10739 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10740 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10741 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10742 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10743 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10745 | rm -f core conftest.err conftest.$ac_objext \ |
10746 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10747 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10748 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
10750 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10751 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10752 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10753 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10754 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10755 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 | [diff] [blame] | 10756 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 | [diff] [blame] | 10757 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
10759 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10760 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10761 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10763 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10764 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10767 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10768 | /* Override any GCC internal prototype to avoid an error. |
10769 | Use char because int might match the return type of a GCC | ||||
10770 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10771 | #ifdef __cplusplus |
10772 | extern "C" | ||||
10773 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10774 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10775 | int |
10776 | main () | ||||
10777 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10778 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10779 | ; |
10780 | return 0; | ||||
10781 | } | ||||
10782 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10783 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10784 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10785 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10786 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10787 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10788 | rm -f core conftest.err conftest.$ac_objext \ |
10789 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10790 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10791 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
10793 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10794 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10795 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10796 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10797 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10798 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10799 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10800 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
10802 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10803 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10804 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10806 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10807 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10809 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10810 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10811 | /* Override any GCC internal prototype to avoid an error. |
10812 | Use char because int might match the return type of a GCC | ||||
10813 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10814 | #ifdef __cplusplus |
10815 | extern "C" | ||||
10816 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10817 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10818 | int |
10819 | main () | ||||
10820 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10821 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10822 | ; |
10823 | return 0; | ||||
10824 | } | ||||
10825 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10826 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10827 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10828 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10829 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10830 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10831 | rm -f core conftest.err conftest.$ac_objext \ |
10832 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10833 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10834 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
10836 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10837 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10838 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10839 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10840 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10841 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10842 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 | [diff] [blame] | 10843 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10844 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
10845 | |||||
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 | [diff] [blame] | 10846 | fi |
10847 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10848 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 10849 | fi |
10850 | |||||
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 | [diff] [blame] | 10851 | fi |
10852 | |||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10853 | fi |
10854 | |||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10855 | fi |
10856 | |||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 10857 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10858 | rm -f core conftest.err conftest.$ac_objext \ |
10859 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 10860 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
10862 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10863 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10864 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10866 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10867 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10870 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10871 | /* Override any GCC internal prototype to avoid an error. |
10872 | Use char because int might match the return type of a GCC | ||||
10873 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10874 | #ifdef __cplusplus |
10875 | extern "C" | ||||
10876 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10877 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10878 | int |
10879 | main () | ||||
10880 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10881 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10882 | ; |
10883 | return 0; | ||||
10884 | } | ||||
10885 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10886 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10887 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10888 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10889 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10890 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10891 | rm -f core conftest.err conftest.$ac_objext \ |
10892 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10893 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10894 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
10896 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10897 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10898 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10899 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10900 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10901 | fi |
10902 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 | [diff] [blame] | 10903 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10904 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10905 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10906 | if test "$posix_threads" = "yes"; then |
10907 | if test "$unistd_defines_pthreads" = "no"; then | ||||
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10908 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10909 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10910 | |
10911 | fi | ||||
10912 | |||||
10913 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | ||||
10914 | case $ac_sys_system/$ac_sys_release in | ||||
Charles-François Natali | 996f606 | 2011-07-21 17:45:31 | [diff] [blame] | 10915 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10916 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10917 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10918 | ;; |
10919 | SunOS/5.8) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10920 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10921 | |
10922 | ;; | ||||
Charles-François Natali | 996f606 | 2011-07-21 17:45:31 | [diff] [blame] | 10923 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10924 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 | [diff] [blame] | 10925 | |
10926 | ;; | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10927 | esac |
10928 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
10930 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10931 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10932 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10933 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10934 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10935 | ac_cv_pthread_system_supported=no |
10936 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10938 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 10939 | |
10940 | #include <stdio.h> | ||||
10941 | #include <pthread.h> | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10942 | void *foo(void *parm) { |
10943 | return NULL; | ||||
10944 | } | ||||
10945 | main() { | ||||
10946 | pthread_attr_t attr; | ||||
10947 | pthread_t id; | ||||
Miss Islington (bot) | 9feda9f | 2020-12-13 22:01:59 | [diff] [blame] | 10948 | if (pthread_attr_init(&attr)) return (-1); |
10949 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); | ||||
10950 | if (pthread_create(&id, &attr, foo, NULL)) return (-1); | ||||
10951 | return (0); | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10952 | } |
10953 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10954 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10955 | ac_cv_pthread_system_supported=yes |
10956 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10957 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10958 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10960 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10961 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10962 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10963 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10964 | fi |
10965 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
10967 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10968 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
10969 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10970 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10971 | |
10972 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10973 | for ac_func in pthread_sigmask |
10974 | do : | ||||
10975 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10976 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10977 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10978 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10979 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 | [diff] [blame] | 10980 | case $ac_sys_system in |
10981 | CYGWIN*) | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10982 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10983 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 | [diff] [blame] | 10984 | |
10985 | ;; | ||||
10986 | esac | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10987 | fi |
10988 | done | ||||
10989 | |||||
pdox | e14679c | 2017-10-05 07:01:56 | [diff] [blame] | 10990 | for ac_func in pthread_getcpuclockid |
10991 | do : | ||||
10992 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" | ||||
10993 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : | ||||
10994 | cat >>confdefs.h <<_ACEOF | ||||
10995 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 | ||||
10996 | _ACEOF | ||||
10997 | |||||
10998 | fi | ||||
10999 | done | ||||
11000 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11001 | fi |
11002 | |||||
11003 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11004 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11005 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
11007 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11008 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11009 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11010 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11011 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11013 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11014 | ipv6=no |
11015 | ;; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11016 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11017 | $as_echo "yes" >&6; } | ||||
11018 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11019 | |
11020 | ipv6=yes | ||||
11021 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11022 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11024 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11026 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11027 | /* AF_INET6 available check */ |
11028 | #include <sys/types.h> | ||||
11029 | #include <sys/socket.h> | ||||
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 11030 | int |
11031 | main () | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11032 | { |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 11033 | int domain = AF_INET6; |
11034 | ; | ||||
11035 | return 0; | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11036 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11037 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 11038 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11039 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11041 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11042 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11043 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11044 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11045 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11047 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11048 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11049 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11050 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 11051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11052 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11053 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
11055 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | ||||
11056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11057 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11058 | |
11059 | #include <sys/types.h> | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11060 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11061 | int |
11062 | main () | ||||
11063 | { | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11064 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11065 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11066 | ; |
11067 | return 0; | ||||
11068 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11070 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11071 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11072 | |
11073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11074 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11075 | ipv6=yes |
11076 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11077 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11078 | |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11080 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11081 | ipv6=no |
11082 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11083 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11085 | fi |
11086 | |||||
11087 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11088 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11089 | |
11090 | fi | ||||
11091 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11092 | fi |
11093 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11094 | |
11095 | ipv6type=unknown | ||||
11096 | ipv6lib=none | ||||
11097 | ipv6trylibc=no | ||||
11098 | |||||
11099 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
11101 | $as_echo_n "checking ipv6 stack type... " >&6; } | ||||
Guido van Rossum | b855216 | 2001-09-05 14:58:11 | [diff] [blame] | 11102 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
11103 | do | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11104 | case $i in |
11105 | inria) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11107 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11108 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11109 | #include <netinet/in.h> |
11110 | #ifdef IPV6_INRIA_VERSION | ||||
11111 | yes | ||||
11112 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11113 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11115 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11116 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11117 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11118 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11119 | |
11120 | ;; | ||||
11121 | kame) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11123 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11124 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11125 | #include <netinet/in.h> |
11126 | #ifdef __KAME__ | ||||
11127 | yes | ||||
11128 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11129 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11131 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11132 | ipv6type=$i; |
11133 | ipv6lib=inet6 | ||||
11134 | ipv6libdir=/usr/local/v6/lib | ||||
11135 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11136 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11137 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11138 | |
11139 | ;; | ||||
11140 | linux-glibc) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11142 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11143 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11144 | #include <features.h> |
11145 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | ||||
11146 | yes | ||||
11147 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11148 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11150 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11151 | ipv6type=$i; |
11152 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11153 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11154 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11155 | |
11156 | ;; | ||||
11157 | linux-inet6) | ||||
11158 | if test -d /usr/inet6; then | ||||
11159 | ipv6type=$i | ||||
11160 | ipv6lib=inet6 | ||||
11161 | ipv6libdir=/usr/inet6/lib | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 11162 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11163 | fi |
11164 | ;; | ||||
11165 | solaris) | ||||
11166 | if test -f /etc/netconfig; then | ||||
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 | [diff] [blame] | 11167 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11168 | ipv6type=$i |
11169 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11170 | fi |
11171 | fi | ||||
11172 | ;; | ||||
11173 | toshiba) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11175 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11176 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11177 | #include <sys/param.h> |
11178 | #ifdef _TOSHIBA_INET6 | ||||
11179 | yes | ||||
11180 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11181 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11183 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11184 | ipv6type=$i; |
11185 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11186 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11187 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11188 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11189 | |
11190 | ;; | ||||
11191 | v6d) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11193 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11194 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11195 | #include </usr/local/v6/include/sys/v6config.h> |
11196 | #ifdef __V6D__ | ||||
11197 | yes | ||||
11198 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11199 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11201 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11202 | ipv6type=$i; |
11203 | ipv6lib=v6; | ||||
11204 | ipv6libdir=/usr/local/v6/lib; | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 11205 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11206 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11207 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11208 | |
11209 | ;; | ||||
11210 | zeta) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11212 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11213 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11214 | #include <sys/param.h> |
11215 | #ifdef _ZETA_MINAMI_INET6 | ||||
11216 | yes | ||||
11217 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11218 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11220 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11221 | ipv6type=$i; |
11222 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11223 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11224 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11225 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11226 | |
11227 | ;; | ||||
11228 | esac | ||||
11229 | if test "$ipv6type" != "unknown"; then | ||||
11230 | break | ||||
11231 | fi | ||||
11232 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
11234 | $as_echo "$ipv6type" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11235 | fi |
11236 | |||||
11237 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||||
11238 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | ||||
11239 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | ||||
11240 | echo "using lib$ipv6lib" | ||||
11241 | else | ||||
11242 | if test $ipv6trylibc = "yes"; then | ||||
11243 | echo "using libc" | ||||
11244 | else | ||||
11245 | echo 'Fatal: no $ipv6lib library found. cannot continue.' | ||||
11246 | echo "You need to fetch lib$ipv6lib.a from appropriate" | ||||
11247 | echo 'ipv6 kit and compile beforehand.' | ||||
11248 | exit 1 | ||||
11249 | fi | ||||
11250 | fi | ||||
11251 | fi | ||||
11252 | |||||
Larry Hastings | a6cc551 | 2015-04-13 21:48:40 | [diff] [blame] | 11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
11254 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | ||||
11255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11256 | /* end confdefs.h. */ | ||||
11257 | /* CAN_RAW_FD_FRAMES available check */ | ||||
11258 | #include <linux/can/raw.h> | ||||
11259 | int | ||||
11260 | main () | ||||
11261 | { | ||||
11262 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | ||||
11263 | ; | ||||
11264 | return 0; | ||||
11265 | } | ||||
11266 | _ACEOF | ||||
11267 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11268 | |||||
11269 | |||||
11270 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | ||||
11271 | |||||
11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11273 | $as_echo "yes" >&6; } | ||||
11274 | |||||
11275 | else | ||||
11276 | |||||
11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11278 | $as_echo "no" >&6; } | ||||
11279 | |||||
11280 | fi | ||||
11281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11282 | |||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11283 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
11285 | $as_echo_n "checking for --with-doc-strings... " >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11286 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11287 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11288 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11289 | withval=$with_doc_strings; |
11290 | fi | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11291 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11292 | |
11293 | if test -z "$with_doc_strings" | ||||
11294 | then with_doc_strings="yes" | ||||
11295 | fi | ||||
11296 | if test "$with_doc_strings" != "no" | ||||
11297 | then | ||||
11298 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11299 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11300 | |
11301 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
11303 | $as_echo "$with_doc_strings" >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11304 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 | [diff] [blame] | 11305 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
11307 | $as_echo_n "checking for --with-pymalloc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11308 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11309 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11310 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11311 | withval=$with_pymalloc; |
11312 | fi | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11313 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 | [diff] [blame] | 11314 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11315 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 11316 | then |
11317 | with_pymalloc="yes" | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11318 | fi |
11319 | if test "$with_pymalloc" != "no" | ||||
11320 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11321 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11322 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11323 | |
11324 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
11326 | $as_echo "$with_pymalloc" >&6; } | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11327 | |
Nick Coghlan | 6ea4186 | 2017-06-11 03:16:15 | [diff] [blame] | 11328 | # Check for --with-c-locale-coercion |
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 | ||||
11330 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } | ||||
11331 | |||||
11332 | # Check whether --with-c-locale-coercion was given. | ||||
11333 | if test "${with_c_locale_coercion+set}" = set; then : | ||||
11334 | withval=$with_c_locale_coercion; | ||||
11335 | fi | ||||
11336 | |||||
11337 | |||||
11338 | if test -z "$with_c_locale_coercion" | ||||
11339 | then | ||||
11340 | with_c_locale_coercion="yes" | ||||
11341 | fi | ||||
11342 | if test "$with_c_locale_coercion" != "no" | ||||
11343 | then | ||||
11344 | |||||
11345 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h | ||||
11346 | |||||
11347 | fi | ||||
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 | ||||
11349 | $as_echo "$with_c_locale_coercion" >&6; } | ||||
11350 | |||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11351 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
11353 | $as_echo_n "checking for --with-valgrind... " >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11354 | |
11355 | # Check whether --with-valgrind was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11356 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11357 | withval=$with_valgrind; |
11358 | else | ||||
11359 | with_valgrind=no | ||||
11360 | fi | ||||
11361 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
11363 | $as_echo "$with_valgrind" >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11364 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11365 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11366 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11367 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11368 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11369 | |
11370 | else | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11371 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11372 | |
11373 | fi | ||||
11374 | |||||
11375 | |||||
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 | [diff] [blame] | 11376 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11377 | fi |
11378 | |||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 11379 | # Check for DTrace support |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | ||||
11381 | $as_echo_n "checking for --with-dtrace... " >&6; } | ||||
11382 | |||||
11383 | # Check whether --with-dtrace was given. | ||||
11384 | if test "${with_dtrace+set}" = set; then : | ||||
11385 | withval=$with_dtrace; | ||||
11386 | else | ||||
11387 | with_dtrace=no | ||||
11388 | fi | ||||
11389 | |||||
11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | ||||
11391 | $as_echo "$with_dtrace" >&6; } | ||||
11392 | |||||
11393 | |||||
11394 | |||||
11395 | |||||
11396 | |||||
11397 | DTRACE= | ||||
11398 | DFLAGS= | ||||
11399 | DTRACE_HEADERS= | ||||
11400 | DTRACE_OBJS= | ||||
11401 | |||||
11402 | if test "$with_dtrace" = "yes" | ||||
11403 | then | ||||
11404 | # Extract the first word of "dtrace", so it can be a program name with args. | ||||
11405 | set dummy dtrace; ac_word=$2 | ||||
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
11407 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
11408 | if ${ac_cv_path_DTRACE+:} false; then : | ||||
11409 | $as_echo_n "(cached) " >&6 | ||||
11410 | else | ||||
11411 | case $DTRACE in | ||||
11412 | [\\/]* | ?:[\\/]*) | ||||
11413 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | ||||
11414 | ;; | ||||
11415 | *) | ||||
11416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11417 | for as_dir in $PATH | ||||
11418 | do | ||||
11419 | IFS=$as_save_IFS | ||||
11420 | test -z "$as_dir" && as_dir=. | ||||
11421 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
11422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
11423 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | ||||
11424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
11425 | break 2 | ||||
11426 | fi | ||||
11427 | done | ||||
11428 | done | ||||
11429 | IFS=$as_save_IFS | ||||
11430 | |||||
11431 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | ||||
11432 | ;; | ||||
11433 | esac | ||||
11434 | fi | ||||
11435 | DTRACE=$ac_cv_path_DTRACE | ||||
11436 | if test -n "$DTRACE"; then | ||||
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | ||||
11438 | $as_echo "$DTRACE" >&6; } | ||||
11439 | else | ||||
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11441 | $as_echo "no" >&6; } | ||||
11442 | fi | ||||
11443 | |||||
11444 | |||||
11445 | if test "$DTRACE" = "not found"; then | ||||
11446 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | ||||
11447 | fi | ||||
11448 | |||||
11449 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | ||||
11450 | |||||
11451 | DTRACE_HEADERS="Include/pydtrace_probes.h" | ||||
11452 | |||||
11453 | # On OS X, DTrace providers do not need to be explicitly compiled and | ||||
11454 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | ||||
11455 | # generation flag '-G'. We check for presence of this flag, rather than | ||||
11456 | # hardcoding support by OS, in the interest of robustness. | ||||
11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | ||||
11458 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | ||||
11459 | if ${ac_cv_dtrace_link+:} false; then : | ||||
11460 | $as_echo_n "(cached) " >&6 | ||||
11461 | else | ||||
11462 | ac_cv_dtrace_link=no | ||||
Jakub Kulík | 5c8f537 | 2019-01-24 17:29:48 | [diff] [blame] | 11463 | echo 'BEGIN{}' > conftest.d |
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 11464 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ |
11465 | ac_cv_dtrace_link=yes | ||||
11466 | |||||
11467 | fi | ||||
11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | ||||
11469 | $as_echo "$ac_cv_dtrace_link" >&6; } | ||||
11470 | if test "$ac_cv_dtrace_link" = "yes"; then | ||||
11471 | DTRACE_OBJS="Python/pydtrace.o" | ||||
11472 | fi | ||||
11473 | fi | ||||
11474 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 11475 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 11476 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 | [diff] [blame] | 11477 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 11478 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11479 | # the dlopen() function means we might want to use dynload_shlib.o. some |
11480 | # platforms, such as AIX, have dlopen(), but don't want to use it. | ||||
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 11481 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11482 | do : |
11483 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11484 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11485 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11486 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11487 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11488 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11489 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 11490 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11492 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11493 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
11494 | # loading of modules. | ||||
11495 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
11497 | $as_echo_n "checking DYNLOADFILE... " >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11498 | if test -z "$DYNLOADFILE" |
11499 | then | ||||
11500 | case $ac_sys_system/$ac_sys_release in | ||||
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 | [diff] [blame] | 11501 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
11502 | if test "$ac_cv_func_dlopen" = yes | ||||
11503 | then DYNLOADFILE="dynload_shlib.o" | ||||
11504 | else DYNLOADFILE="dynload_aix.o" | ||||
11505 | fi | ||||
11506 | ;; | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11507 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11508 | *) |
11509 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | ||||
11510 | # out any dynamic loading | ||||
11511 | if test "$ac_cv_func_dlopen" = yes | ||||
11512 | then DYNLOADFILE="dynload_shlib.o" | ||||
11513 | else DYNLOADFILE="dynload_stub.o" | ||||
11514 | fi | ||||
11515 | ;; | ||||
11516 | esac | ||||
11517 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
11519 | $as_echo "$DYNLOADFILE" >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11520 | if test "$DYNLOADFILE" != "dynload_stub.o" |
11521 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11522 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11523 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11524 | |
11525 | fi | ||||
11526 | |||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11527 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
11528 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11529 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
11531 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11532 | if test -z "$MACHDEP_OBJS" |
11533 | then | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 11534 | MACHDEP_OBJS=$extra_machdep_objs |
11535 | else | ||||
11536 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11537 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 11538 | if test -z "$MACHDEP_OBJS"; then |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
11540 | $as_echo "none" >&6; } | ||||
11541 | else | ||||
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | ||||
11543 | $as_echo "$MACHDEP_OBJS" >&6; } | ||||
11544 | fi | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11545 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 11546 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 | [diff] [blame] | 11547 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Pablo Galindo | aac4d03 | 2019-05-31 18:39:47 | [diff] [blame] | 11548 | clock confstr copy_file_range ctermid dup3 execv explicit_bzero explicit_memset \ |
11549 | faccessat fchmod fchmodat fchown fchownat \ | ||||
Miss Islington (bot) | 84eb42e | 2019-09-12 11:19:21 | [diff] [blame] | 11550 | fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 00:16:38 | [diff] [blame] | 11551 | futimens futimes gai_strerror getentropy \ |
William Grzybowski | 23e65b2 | 2018-09-07 12:06:15 | [diff] [blame] | 11552 | getgrgid_r getgrnam_r \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11553 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
William Grzybowski | 23e65b2 | 2018-09-07 12:06:15 | [diff] [blame] | 11554 | getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ |
xdegaye | 5ad7ef8 | 2017-11-23 10:13:22 | [diff] [blame] | 11555 | if_nameindex \ |
Miss Islington (bot) | 12acb5b | 2019-09-09 13:01:41 | [diff] [blame] | 11556 | initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ |
Antoine Pitrou | f0effe6 | 2011-11-26 00:11:02 | [diff] [blame] | 11557 | memrchr mbrtowc mkdirat mkfifo \ |
Inada Naoki | bee31ce | 2019-05-30 07:35:41 | [diff] [blame] | 11558 | madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Joannah Nanjekye | 92b8322 | 2019-01-16 13:29:26 | [diff] [blame] | 11559 | posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \ |
Inada Naoki | 001fee1 | 2019-02-20 01:00:09 | [diff] [blame] | 11560 | pthread_condattr_setclock pthread_init pthread_kill putenv pwrite pwritev pwritev2 \ |
11561 | readlink readlinkat readv realpath renameat \ | ||||
Benjamin Peterson | a234485 | 2017-09-04 17:21:42 | [diff] [blame] | 11562 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 | [diff] [blame] | 11563 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 | [diff] [blame] | 11564 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ |
Charles-François Natali | ea0d5fc | 2011-09-06 17:03:35 | [diff] [blame] | 11565 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
11566 | sched_rr_get_interval \ | ||||
Antoine Pitrou | 9d3627e | 2018-05-04 11:00:50 | [diff] [blame] | 11567 | sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ |
Michael Osipov | 48ce489 | 2018-08-23 13:27:19 | [diff] [blame] | 11568 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy strsignal symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 | [diff] [blame] | 11569 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 18:20:30 | [diff] [blame] | 11570 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
pxinwr | f2d7ac7 | 2019-05-21 10:46:37 | [diff] [blame] | 11571 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11572 | do : |
11573 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
11574 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11575 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11576 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11577 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11578 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 11579 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 11580 | fi |
11581 | done | ||||
11582 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11583 | |
Benjamin Peterson | 40caa05 | 2018-09-12 22:52:40 | [diff] [blame] | 11584 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
11585 | # links. Some libc implementations have a stub lchmod implementation that always | ||||
11586 | # returns an error. | ||||
11587 | if test "$MACHDEP" != linux; then | ||||
Benjamin Peterson | ed709d5 | 2018-09-13 00:22:11 | [diff] [blame] | 11588 | for ac_func in lchmod |
11589 | do : | ||||
Benjamin Peterson | 40caa05 | 2018-09-12 22:52:40 | [diff] [blame] | 11590 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
11591 | if test "x$ac_cv_func_lchmod" = xyes; then : | ||||
Benjamin Peterson | ed709d5 | 2018-09-13 00:22:11 | [diff] [blame] | 11592 | cat >>confdefs.h <<_ACEOF |
11593 | #define HAVE_LCHMOD 1 | ||||
11594 | _ACEOF | ||||
Benjamin Peterson | 40caa05 | 2018-09-12 22:52:40 | [diff] [blame] | 11595 | |
11596 | fi | ||||
Benjamin Peterson | ed709d5 | 2018-09-13 00:22:11 | [diff] [blame] | 11597 | done |
Benjamin Peterson | 40caa05 | 2018-09-12 22:52:40 | [diff] [blame] | 11598 | |
11599 | fi | ||||
11600 | |||||
Gregory P. Smith | df300d5 | 2012-01-22 02:20:15 | [diff] [blame] | 11601 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
11602 | #include <dirent.h> | ||||
11603 | " | ||||
11604 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | ||||
11605 | |||||
11606 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | ||||
11607 | |||||
11608 | fi | ||||
11609 | |||||
11610 | |||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11611 | # For some functions, having a definition is not sufficient, since |
11612 | # we want to take their address. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
11614 | $as_echo_n "checking for chroot... " >&6; } | ||||
11615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11616 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11617 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11618 | int |
11619 | main () | ||||
11620 | { | ||||
11621 | void *x=chroot | ||||
11622 | ; | ||||
11623 | return 0; | ||||
11624 | } | ||||
11625 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11626 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11627 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11628 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11629 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11631 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11632 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11634 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11635 | |
11636 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
11639 | $as_echo_n "checking for link... " >&6; } | ||||
11640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11641 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11642 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11643 | int |
11644 | main () | ||||
11645 | { | ||||
11646 | void *x=link | ||||
11647 | ; | ||||
11648 | return 0; | ||||
11649 | } | ||||
11650 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11651 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11652 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11653 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11654 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11656 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11657 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11659 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11660 | |
11661 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
11664 | $as_echo_n "checking for symlink... " >&6; } | ||||
11665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11666 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11667 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11668 | int |
11669 | main () | ||||
11670 | { | ||||
11671 | void *x=symlink | ||||
11672 | ; | ||||
11673 | return 0; | ||||
11674 | } | ||||
11675 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11676 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11677 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11678 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11679 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11681 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11682 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11684 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11685 | |
11686 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
11689 | $as_echo_n "checking for fchdir... " >&6; } | ||||
11690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11691 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11692 | #include <unistd.h> |
11693 | int | ||||
11694 | main () | ||||
11695 | { | ||||
11696 | void *x=fchdir | ||||
11697 | ; | ||||
11698 | return 0; | ||||
11699 | } | ||||
11700 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11701 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11702 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11703 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11704 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11706 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11707 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11709 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11710 | |
11711 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
11714 | $as_echo_n "checking for fsync... " >&6; } | ||||
11715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11716 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11717 | #include <unistd.h> |
11718 | int | ||||
11719 | main () | ||||
11720 | { | ||||
11721 | void *x=fsync | ||||
11722 | ; | ||||
11723 | return 0; | ||||
11724 | } | ||||
11725 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11726 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11727 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11728 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11729 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11731 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11732 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11734 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11735 | |
11736 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
11739 | $as_echo_n "checking for fdatasync... " >&6; } | ||||
11740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11741 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11742 | #include <unistd.h> |
11743 | int | ||||
11744 | main () | ||||
11745 | { | ||||
11746 | void *x=fdatasync | ||||
11747 | ; | ||||
11748 | return 0; | ||||
11749 | } | ||||
11750 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11751 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11752 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11753 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11754 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11756 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11757 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11759 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11760 | |
11761 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
11764 | $as_echo_n "checking for epoll... " >&6; } | ||||
11765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11766 | /* end confdefs.h. */ |
11767 | #include <sys/epoll.h> | ||||
11768 | int | ||||
11769 | main () | ||||
11770 | { | ||||
11771 | void *x=epoll_create | ||||
11772 | ; | ||||
11773 | return 0; | ||||
11774 | } | ||||
11775 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11776 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11777 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11778 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11779 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11781 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11782 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11784 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11785 | |
11786 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 21:36:32 | [diff] [blame] | 11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
11789 | $as_echo_n "checking for epoll_create1... " >&6; } | ||||
11790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11791 | /* end confdefs.h. */ | ||||
11792 | #include <sys/epoll.h> | ||||
11793 | int | ||||
11794 | main () | ||||
11795 | { | ||||
11796 | void *x=epoll_create1 | ||||
11797 | ; | ||||
11798 | return 0; | ||||
11799 | } | ||||
11800 | _ACEOF | ||||
11801 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11802 | |||||
11803 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | ||||
11804 | |||||
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11806 | $as_echo "yes" >&6; } | ||||
11807 | else | ||||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11809 | $as_echo "no" >&6; } | ||||
11810 | |||||
11811 | fi | ||||
11812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
11814 | $as_echo_n "checking for kqueue... " >&6; } | ||||
11815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11816 | /* end confdefs.h. */ |
11817 | |||||
11818 | #include <sys/types.h> | ||||
11819 | #include <sys/event.h> | ||||
11820 | |||||
11821 | int | ||||
11822 | main () | ||||
11823 | { | ||||
11824 | int x=kqueue() | ||||
11825 | ; | ||||
11826 | return 0; | ||||
11827 | } | ||||
11828 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11829 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11830 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11831 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11832 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11834 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11835 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11837 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11838 | |
11839 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 09:21:54 | [diff] [blame] | 11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
11842 | $as_echo_n "checking for prlimit... " >&6; } | ||||
11843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11844 | /* end confdefs.h. */ | ||||
11845 | |||||
11846 | #include <sys/time.h> | ||||
11847 | #include <sys/resource.h> | ||||
11848 | |||||
11849 | int | ||||
11850 | main () | ||||
11851 | { | ||||
11852 | void *x=prlimit | ||||
11853 | ; | ||||
11854 | return 0; | ||||
11855 | } | ||||
11856 | _ACEOF | ||||
11857 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11858 | |||||
11859 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | ||||
11860 | |||||
11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11862 | $as_echo "yes" >&6; } | ||||
11863 | else | ||||
11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11865 | $as_echo "no" >&6; } | ||||
11866 | |||||
11867 | fi | ||||
11868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Ned Deily | b29d0a5 | 2021-05-02 09:18:58 | [diff] [blame] | 11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 |
11870 | $as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; } | ||||
11871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11872 | /* end confdefs.h. */ | ||||
11873 | #include <mach-o/dyld.h> | ||||
11874 | int | ||||
11875 | main () | ||||
11876 | { | ||||
11877 | void *x=_dyld_shared_cache_contains_path | ||||
11878 | ; | ||||
11879 | return 0; | ||||
11880 | } | ||||
11881 | _ACEOF | ||||
11882 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11883 | |||||
11884 | $as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h | ||||
11885 | |||||
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11887 | $as_echo "yes" >&6; } | ||||
11888 | else | ||||
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11890 | $as_echo "no" >&6; } | ||||
11891 | |||||
11892 | fi | ||||
11893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Christian Heimes | b7bd5df | 2013-10-22 09:21:54 | [diff] [blame] | 11894 | |
Zackery Spytz | 43fdbd2 | 2019-05-29 19:57:07 | [diff] [blame] | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
11896 | $as_echo_n "checking for memfd_create... " >&6; } | ||||
11897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11898 | /* end confdefs.h. */ | ||||
11899 | |||||
11900 | #ifdef HAVE_SYS_MMAN_H | ||||
11901 | #include <sys/mman.h> | ||||
11902 | #endif | ||||
11903 | #ifdef HAVE_SYS_MEMFD_H | ||||
11904 | #include <sys/memfd.h> | ||||
11905 | #endif | ||||
11906 | |||||
11907 | int | ||||
11908 | main () | ||||
11909 | { | ||||
11910 | void *x=memfd_create | ||||
11911 | ; | ||||
11912 | return 0; | ||||
11913 | } | ||||
11914 | _ACEOF | ||||
11915 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11916 | |||||
11917 | $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h | ||||
11918 | |||||
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11920 | $as_echo "yes" >&6; } | ||||
11921 | else | ||||
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11923 | $as_echo "no" >&6; } | ||||
11924 | |||||
11925 | fi | ||||
11926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11927 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11928 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
11929 | # functions ctermid_r, setgroups in the library, but no prototype | ||||
11930 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | ||||
11931 | # address to avoid compiler warnings and potential miscompilations | ||||
11932 | # because of the missing prototypes. | ||||
11933 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
11935 | $as_echo_n "checking for ctermid_r... " >&6; } | ||||
11936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11937 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11938 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11939 | #include <stdio.h> |
11940 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11941 | int |
11942 | main () | ||||
11943 | { | ||||
11944 | void* p = ctermid_r | ||||
11945 | ; | ||||
11946 | return 0; | ||||
11947 | } | ||||
11948 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11949 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11950 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11951 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11952 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11954 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11955 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11957 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11958 | |
11959 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11961 | |||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
11963 | $as_echo_n "checking for flock declaration... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11964 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11965 | $as_echo_n "(cached) " >&6 |
11966 | else | ||||
11967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11968 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11969 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11970 | int |
11971 | main () | ||||
11972 | { | ||||
11973 | void* p = flock | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11974 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11975 | ; |
11976 | return 0; | ||||
11977 | } | ||||
11978 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11979 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11980 | ac_cv_flock_decl=yes |
11981 | else | ||||
11982 | ac_cv_flock_decl=no | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11983 | |
11984 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11986 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11987 | fi |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | ||||
11989 | $as_echo "$ac_cv_flock_decl" >&6; } | ||||
11990 | if test "x${ac_cv_flock_decl}" = xyes; then | ||||
11991 | for ac_func in flock | ||||
11992 | do : | ||||
11993 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11994 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11995 | cat >>confdefs.h <<_ACEOF |
11996 | #define HAVE_FLOCK 1 | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11997 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11998 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11999 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 12001 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12002 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 12003 | $as_echo_n "(cached) " >&6 |
12004 | else | ||||
12005 | ac_check_lib_save_LIBS=$LIBS | ||||
12006 | LIBS="-lbsd $LIBS" | ||||
12007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12008 | /* end confdefs.h. */ | ||||
12009 | |||||
12010 | /* Override any GCC internal prototype to avoid an error. | ||||
12011 | Use char because int might match the return type of a GCC | ||||
12012 | builtin and then its argument prototype would still apply. */ | ||||
12013 | #ifdef __cplusplus | ||||
12014 | extern "C" | ||||
12015 | #endif | ||||
12016 | char flock (); | ||||
12017 | int | ||||
12018 | main () | ||||
12019 | { | ||||
12020 | return flock (); | ||||
12021 | ; | ||||
12022 | return 0; | ||||
12023 | } | ||||
12024 | _ACEOF | ||||
12025 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12026 | ac_cv_lib_bsd_flock=yes | ||||
12027 | else | ||||
12028 | ac_cv_lib_bsd_flock=no | ||||
12029 | fi | ||||
12030 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12031 | conftest$ac_exeext conftest.$ac_ext | ||||
12032 | LIBS=$ac_check_lib_save_LIBS | ||||
12033 | fi | ||||
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | ||||
12035 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12036 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 12037 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 12038 | |
12039 | |||||
12040 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | ||||
12041 | |||||
12042 | |||||
12043 | fi | ||||
12044 | |||||
12045 | |||||
12046 | fi | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 12047 | done |
12048 | |||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 12049 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12050 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
12052 | $as_echo_n "checking for getpagesize... " >&6; } | ||||
12053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12054 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12055 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12056 | #include <unistd.h> |
12057 | |||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12058 | int |
12059 | main () | ||||
12060 | { | ||||
12061 | void* p = getpagesize | ||||
12062 | ; | ||||
12063 | return 0; | ||||
12064 | } | ||||
12065 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12066 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12067 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12068 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12069 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12071 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12072 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12074 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12075 | |
12076 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 12078 | |
Victor Stinner | 984890f | 2011-11-24 12:53:38 | [diff] [blame] | 12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
12080 | $as_echo_n "checking for broken unsetenv... " >&6; } | ||||
12081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12082 | /* end confdefs.h. */ | ||||
12083 | |||||
12084 | #include <stdlib.h> | ||||
12085 | |||||
12086 | int | ||||
12087 | main () | ||||
12088 | { | ||||
12089 | int res = unsetenv("DUMMY") | ||||
12090 | ; | ||||
12091 | return 0; | ||||
12092 | } | ||||
12093 | _ACEOF | ||||
12094 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12096 | $as_echo "no" >&6; } | ||||
12097 | else | ||||
12098 | |||||
12099 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | ||||
12100 | |||||
12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12102 | $as_echo "yes" >&6; } | ||||
12103 | |||||
12104 | fi | ||||
12105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
12106 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12107 | for ac_prog in true |
12108 | do | ||||
12109 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
12110 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12112 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12113 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12114 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12115 | else |
12116 | if test -n "$TRUE"; then | ||||
12117 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | ||||
12118 | else | ||||
12119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
12120 | for as_dir in $PATH | ||||
12121 | do | ||||
12122 | IFS=$as_save_IFS | ||||
12123 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12124 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 12125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12126 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12128 | break 2 |
12129 | fi | ||||
12130 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12131 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12132 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12133 | |
12134 | fi | ||||
12135 | fi | ||||
12136 | TRUE=$ac_cv_prog_TRUE | ||||
12137 | if test -n "$TRUE"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
12139 | $as_echo "$TRUE" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12140 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12142 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12143 | fi |
12144 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12145 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12146 | test -n "$TRUE" && break |
12147 | done | ||||
12148 | test -n "$TRUE" || TRUE="/bin/true" | ||||
12149 | |||||
12150 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
12152 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12153 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12154 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12155 | else |
12156 | ac_check_lib_save_LIBS=$LIBS | ||||
12157 | LIBS="-lc $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12159 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12160 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12161 | /* Override any GCC internal prototype to avoid an error. |
12162 | Use char because int might match the return type of a GCC | ||||
12163 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12164 | #ifdef __cplusplus |
12165 | extern "C" | ||||
12166 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12167 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12168 | int |
12169 | main () | ||||
12170 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12171 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12172 | ; |
12173 | return 0; | ||||
12174 | } | ||||
12175 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12176 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12177 | ac_cv_lib_c_inet_aton=yes |
12178 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12179 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12180 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12181 | rm -f core conftest.err conftest.$ac_objext \ |
12182 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12183 | LIBS=$ac_check_lib_save_LIBS |
12184 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
12186 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12187 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12188 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12189 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
12191 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12192 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12193 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12194 | else |
12195 | ac_check_lib_save_LIBS=$LIBS | ||||
12196 | LIBS="-lresolv $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12198 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12199 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12200 | /* Override any GCC internal prototype to avoid an error. |
12201 | Use char because int might match the return type of a GCC | ||||
12202 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12203 | #ifdef __cplusplus |
12204 | extern "C" | ||||
12205 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12206 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12207 | int |
12208 | main () | ||||
12209 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12210 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12211 | ; |
12212 | return 0; | ||||
12213 | } | ||||
12214 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12215 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12216 | ac_cv_lib_resolv_inet_aton=yes |
12217 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12218 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12219 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12220 | rm -f core conftest.err conftest.$ac_objext \ |
12221 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12222 | LIBS=$ac_check_lib_save_LIBS |
12223 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
12225 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12226 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12227 | cat >>confdefs.h <<_ACEOF |
12228 | #define HAVE_LIBRESOLV 1 | ||||
12229 | _ACEOF | ||||
12230 | |||||
12231 | LIBS="-lresolv $LIBS" | ||||
12232 | |||||
12233 | fi | ||||
12234 | |||||
12235 | |||||
12236 | fi | ||||
12237 | |||||
12238 | |||||
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12239 | # On Tru64, chflags seems to be present, but calling it will |
12240 | # exit Python | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
12242 | $as_echo_n "checking for chflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12243 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12244 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12245 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12246 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12247 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12248 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12250 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12251 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12252 | #include <sys/stat.h> |
12253 | #include <unistd.h> | ||||
12254 | int main(int argc, char*argv[]) | ||||
12255 | { | ||||
12256 | if(chflags(argv[0], 0) != 0) | ||||
12257 | return 1; | ||||
12258 | return 0; | ||||
12259 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12260 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12261 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12262 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12263 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12264 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12265 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12266 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12268 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 12269 | fi |
12270 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12271 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12272 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
12274 | $as_echo "$ac_cv_have_chflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12275 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12276 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12277 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12278 | ac_cv_have_chflags="yes" |
12279 | else | ||||
12280 | ac_cv_have_chflags="no" | ||||
12281 | fi | ||||
12282 | |||||
12283 | fi | ||||
12284 | if test "$ac_cv_have_chflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12285 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12286 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12287 | |
12288 | fi | ||||
12289 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
12291 | $as_echo_n "checking for lchflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12292 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12293 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12294 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12295 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12296 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12297 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12299 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12300 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12301 | #include <sys/stat.h> |
12302 | #include <unistd.h> | ||||
12303 | int main(int argc, char*argv[]) | ||||
12304 | { | ||||
12305 | if(lchflags(argv[0], 0) != 0) | ||||
12306 | return 1; | ||||
12307 | return 0; | ||||
12308 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12309 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12310 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12311 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12312 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12313 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12314 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12315 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12316 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12317 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12318 | fi |
12319 | |||||
12320 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12321 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
12323 | $as_echo "$ac_cv_have_lchflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12324 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12325 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12326 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12327 | ac_cv_have_lchflags="yes" |
12328 | else | ||||
12329 | ac_cv_have_lchflags="no" | ||||
12330 | fi | ||||
12331 | |||||
12332 | fi | ||||
12333 | if test "$ac_cv_have_lchflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12334 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12335 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12336 | |
12337 | fi | ||||
12338 | |||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12339 | case $ac_sys_system/$ac_sys_release in |
12340 | Darwin/*) | ||||
12341 | _CUR_CFLAGS="${CFLAGS}" | ||||
12342 | _CUR_LDFLAGS="${LDFLAGS}" | ||||
12343 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | ||||
12344 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | ||||
12345 | ;; | ||||
12346 | esac | ||||
12347 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
12349 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12350 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12351 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12352 | else |
12353 | ac_check_lib_save_LIBS=$LIBS | ||||
12354 | LIBS="-lz $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12356 | /* end confdefs.h. */ |
12357 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12358 | /* Override any GCC internal prototype to avoid an error. |
12359 | Use char because int might match the return type of a GCC | ||||
12360 | builtin and then its argument prototype would still apply. */ | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12361 | #ifdef __cplusplus |
12362 | extern "C" | ||||
12363 | #endif | ||||
12364 | char inflateCopy (); | ||||
12365 | int | ||||
12366 | main () | ||||
12367 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12368 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12369 | ; |
12370 | return 0; | ||||
12371 | } | ||||
12372 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12373 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12374 | ac_cv_lib_z_inflateCopy=yes |
12375 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12376 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12377 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12378 | rm -f core conftest.err conftest.$ac_objext \ |
12379 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12380 | LIBS=$ac_check_lib_save_LIBS |
12381 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
12383 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12384 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12385 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12386 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12387 | |
12388 | fi | ||||
12389 | |||||
12390 | |||||
12391 | case $ac_sys_system/$ac_sys_release in | ||||
12392 | Darwin/*) | ||||
12393 | CFLAGS="${_CUR_CFLAGS}" | ||||
12394 | LDFLAGS="${_CUR_LDFLAGS}" | ||||
12395 | ;; | ||||
12396 | esac | ||||
12397 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
12399 | $as_echo_n "checking for hstrerror... " >&6; } | ||||
12400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12401 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12402 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12403 | #include <netdb.h> |
12404 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12405 | int |
12406 | main () | ||||
12407 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12408 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12409 | ; |
12410 | return 0; | ||||
12411 | } | ||||
12412 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12413 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12414 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12415 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12416 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12418 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12419 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12421 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12422 | |
12423 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12424 | rm -f core conftest.err conftest.$ac_objext \ |
12425 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12426 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
12428 | $as_echo_n "checking for inet_aton... " >&6; } | ||||
12429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12430 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12431 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 12432 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12433 | #include <sys/socket.h> |
12434 | #include <netinet/in.h> | ||||
12435 | #include <arpa/inet.h> | ||||
12436 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12437 | int |
12438 | main () | ||||
12439 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12440 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12441 | ; |
12442 | return 0; | ||||
12443 | } | ||||
12444 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12445 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12446 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12447 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12448 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12450 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12451 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12453 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12454 | |
12455 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12456 | rm -f core conftest.err conftest.$ac_objext \ |
12457 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12458 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
12460 | $as_echo_n "checking for inet_pton... " >&6; } | ||||
12461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12462 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12463 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 | [diff] [blame] | 12464 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12465 | #include <sys/socket.h> |
12466 | #include <netinet/in.h> | ||||
12467 | #include <arpa/inet.h> | ||||
12468 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12469 | int |
12470 | main () | ||||
12471 | { | ||||
12472 | void* p = inet_pton | ||||
12473 | ; | ||||
12474 | return 0; | ||||
12475 | } | ||||
12476 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12477 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12478 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12479 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12480 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12482 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12483 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12485 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12486 | |
12487 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12489 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 | [diff] [blame] | 12490 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
12492 | $as_echo_n "checking for setgroups... " >&6; } | ||||
12493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12494 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12495 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 | [diff] [blame] | 12496 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 | [diff] [blame] | 12497 | #ifdef HAVE_GRP_H |
12498 | #include <grp.h> | ||||
12499 | #endif | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12500 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12501 | int |
12502 | main () | ||||
12503 | { | ||||
12504 | void* p = setgroups | ||||
12505 | ; | ||||
12506 | return 0; | ||||
12507 | } | ||||
12508 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12509 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12510 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12511 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12512 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12514 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12515 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12517 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12518 | |
12519 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12521 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12522 | # check for openpty and forkpty |
12523 | |||||
12524 | for ac_func in openpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12525 | do : |
12526 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12527 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12528 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12529 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12530 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12531 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12532 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
12534 | $as_echo_n "checking for openpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12535 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12536 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12538 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12539 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12541 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12542 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12543 | /* Override any GCC internal prototype to avoid an error. |
12544 | Use char because int might match the return type of a GCC | ||||
12545 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12546 | #ifdef __cplusplus |
12547 | extern "C" | ||||
12548 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12549 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12550 | int |
12551 | main () | ||||
12552 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12553 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12554 | ; |
12555 | return 0; | ||||
12556 | } | ||||
12557 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12558 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12559 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12560 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12561 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12562 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12563 | rm -f core conftest.err conftest.$ac_objext \ |
12564 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12565 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12566 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
12568 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12569 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12570 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12571 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12572 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
12574 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12575 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12576 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12577 | else |
12578 | ac_check_lib_save_LIBS=$LIBS | ||||
12579 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12581 | /* end confdefs.h. */ |
12582 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12583 | /* Override any GCC internal prototype to avoid an error. |
12584 | Use char because int might match the return type of a GCC | ||||
12585 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12586 | #ifdef __cplusplus |
12587 | extern "C" | ||||
12588 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12589 | char openpty (); |
12590 | int | ||||
12591 | main () | ||||
12592 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12593 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12594 | ; |
12595 | return 0; | ||||
12596 | } | ||||
12597 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12598 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12599 | ac_cv_lib_bsd_openpty=yes |
12600 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12601 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12602 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12603 | rm -f core conftest.err conftest.$ac_objext \ |
12604 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12605 | LIBS=$ac_check_lib_save_LIBS |
12606 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
12608 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12609 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12610 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12611 | LIBS="$LIBS -lbsd" |
12612 | fi | ||||
12613 | |||||
12614 | |||||
12615 | fi | ||||
12616 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12617 | |
12618 | fi | ||||
12619 | done | ||||
12620 | |||||
12621 | for ac_func in forkpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12622 | do : |
12623 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12624 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12625 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12626 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12627 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12628 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12629 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
12631 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12632 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12633 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12635 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12636 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12638 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12639 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12640 | /* Override any GCC internal prototype to avoid an error. |
12641 | Use char because int might match the return type of a GCC | ||||
12642 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12643 | #ifdef __cplusplus |
12644 | extern "C" | ||||
12645 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12646 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12647 | int |
12648 | main () | ||||
12649 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12650 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12651 | ; |
12652 | return 0; | ||||
12653 | } | ||||
12654 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12655 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12656 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12657 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12658 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12659 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12660 | rm -f core conftest.err conftest.$ac_objext \ |
12661 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12662 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12663 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
12665 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12666 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12667 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12668 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12669 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
12671 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12672 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12673 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12674 | else |
12675 | ac_check_lib_save_LIBS=$LIBS | ||||
12676 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12678 | /* end confdefs.h. */ |
12679 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12680 | /* Override any GCC internal prototype to avoid an error. |
12681 | Use char because int might match the return type of a GCC | ||||
12682 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12683 | #ifdef __cplusplus |
12684 | extern "C" | ||||
12685 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12686 | char forkpty (); |
12687 | int | ||||
12688 | main () | ||||
12689 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12690 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12691 | ; |
12692 | return 0; | ||||
12693 | } | ||||
12694 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12695 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12696 | ac_cv_lib_bsd_forkpty=yes |
12697 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12698 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12699 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12700 | rm -f core conftest.err conftest.$ac_objext \ |
12701 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12702 | LIBS=$ac_check_lib_save_LIBS |
12703 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
12705 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12706 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12707 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12708 | LIBS="$LIBS -lbsd" |
12709 | fi | ||||
12710 | |||||
12711 | |||||
12712 | fi | ||||
12713 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12714 | |
12715 | fi | ||||
12716 | done | ||||
12717 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 12718 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12719 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12720 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12721 | do : |
12722 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
12723 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12724 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12725 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12726 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12727 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12728 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12729 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12730 | done |
12731 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12732 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12733 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12734 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12735 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12736 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12737 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12738 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12739 | *" dup2.$ac_objext "* ) ;; |
12740 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12741 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 12742 | esac |
12743 | |||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12744 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12745 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12746 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12747 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12748 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
12749 | |||||
12750 | else | ||||
12751 | case " $LIBOBJS " in | ||||
12752 | *" strdup.$ac_objext "* ) ;; | ||||
12753 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | ||||
12754 | ;; | ||||
12755 | esac | ||||
12756 | |||||
12757 | fi | ||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12758 | |
12759 | |||||
12760 | for ac_func in getpgrp | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12761 | do : |
12762 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12763 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12764 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12765 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12766 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12768 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12769 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12770 | int |
12771 | main () | ||||
12772 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12773 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12774 | ; |
12775 | return 0; | ||||
12776 | } | ||||
12777 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12778 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12779 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12780 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12781 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12782 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 12784 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12785 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12786 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12787 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12788 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12789 | do : |
12790 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12791 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12792 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12793 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12794 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12796 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12797 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12798 | int |
12799 | main () | ||||
12800 | { | ||||
12801 | setpgrp(0,0); | ||||
12802 | ; | ||||
12803 | return 0; | ||||
12804 | } | ||||
12805 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12806 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12807 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12808 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12809 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 | [diff] [blame] | 12810 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12812 | |
12813 | fi | ||||
12814 | done | ||||
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 | [diff] [blame] | 12815 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12816 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12817 | do : |
12818 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12819 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12820 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12821 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12822 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12824 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12825 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12826 | int |
12827 | main () | ||||
12828 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12829 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12830 | ; |
12831 | return 0; | ||||
12832 | } | ||||
12833 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12834 | if ac_fn_c_try_compile "$LINENO"; then : |
12835 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12836 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12837 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12838 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12840 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12841 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 12843 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12844 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12845 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12846 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12847 | |
Gregory P. Smith | 387512c | 2018-12-30 23:42:32 | [diff] [blame] | 12848 | # We search for both crypt and crypt_r as one or the other may be defined |
12849 | # This gets us our -lcrypt in LIBS when required on the target platform. | ||||
12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | ||||
12851 | $as_echo_n "checking for library containing crypt... " >&6; } | ||||
12852 | if ${ac_cv_search_crypt+:} false; then : | ||||
12853 | $as_echo_n "(cached) " >&6 | ||||
12854 | else | ||||
12855 | ac_func_search_save_LIBS=$LIBS | ||||
12856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12857 | /* end confdefs.h. */ | ||||
12858 | |||||
12859 | /* Override any GCC internal prototype to avoid an error. | ||||
12860 | Use char because int might match the return type of a GCC | ||||
12861 | builtin and then its argument prototype would still apply. */ | ||||
12862 | #ifdef __cplusplus | ||||
12863 | extern "C" | ||||
12864 | #endif | ||||
12865 | char crypt (); | ||||
12866 | int | ||||
12867 | main () | ||||
12868 | { | ||||
12869 | return crypt (); | ||||
12870 | ; | ||||
12871 | return 0; | ||||
12872 | } | ||||
12873 | _ACEOF | ||||
12874 | for ac_lib in '' crypt; do | ||||
12875 | if test -z "$ac_lib"; then | ||||
12876 | ac_res="none required" | ||||
12877 | else | ||||
12878 | ac_res=-l$ac_lib | ||||
12879 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
12880 | fi | ||||
12881 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12882 | ac_cv_search_crypt=$ac_res | ||||
12883 | fi | ||||
12884 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12885 | conftest$ac_exeext | ||||
12886 | if ${ac_cv_search_crypt+:} false; then : | ||||
12887 | break | ||||
12888 | fi | ||||
12889 | done | ||||
12890 | if ${ac_cv_search_crypt+:} false; then : | ||||
12891 | |||||
12892 | else | ||||
12893 | ac_cv_search_crypt=no | ||||
12894 | fi | ||||
12895 | rm conftest.$ac_ext | ||||
12896 | LIBS=$ac_func_search_save_LIBS | ||||
12897 | fi | ||||
12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | ||||
12899 | $as_echo "$ac_cv_search_crypt" >&6; } | ||||
12900 | ac_res=$ac_cv_search_crypt | ||||
12901 | if test "$ac_res" != no; then : | ||||
12902 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
12903 | |||||
12904 | fi | ||||
12905 | |||||
12906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 | ||||
12907 | $as_echo_n "checking for library containing crypt_r... " >&6; } | ||||
12908 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
12909 | $as_echo_n "(cached) " >&6 | ||||
12910 | else | ||||
12911 | ac_func_search_save_LIBS=$LIBS | ||||
12912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12913 | /* end confdefs.h. */ | ||||
12914 | |||||
12915 | /* Override any GCC internal prototype to avoid an error. | ||||
12916 | Use char because int might match the return type of a GCC | ||||
12917 | builtin and then its argument prototype would still apply. */ | ||||
12918 | #ifdef __cplusplus | ||||
12919 | extern "C" | ||||
12920 | #endif | ||||
12921 | char crypt_r (); | ||||
12922 | int | ||||
12923 | main () | ||||
12924 | { | ||||
12925 | return crypt_r (); | ||||
12926 | ; | ||||
12927 | return 0; | ||||
12928 | } | ||||
12929 | _ACEOF | ||||
12930 | for ac_lib in '' crypt; do | ||||
12931 | if test -z "$ac_lib"; then | ||||
12932 | ac_res="none required" | ||||
12933 | else | ||||
12934 | ac_res=-l$ac_lib | ||||
12935 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
12936 | fi | ||||
12937 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12938 | ac_cv_search_crypt_r=$ac_res | ||||
12939 | fi | ||||
12940 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12941 | conftest$ac_exeext | ||||
12942 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
12943 | break | ||||
12944 | fi | ||||
12945 | done | ||||
12946 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
12947 | |||||
12948 | else | ||||
12949 | ac_cv_search_crypt_r=no | ||||
12950 | fi | ||||
12951 | rm conftest.$ac_ext | ||||
12952 | LIBS=$ac_func_search_save_LIBS | ||||
12953 | fi | ||||
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 | ||||
12955 | $as_echo "$ac_cv_search_crypt_r" >&6; } | ||||
12956 | ac_res=$ac_cv_search_crypt_r | ||||
12957 | if test "$ac_res" != no; then : | ||||
12958 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
12959 | |||||
12960 | fi | ||||
12961 | |||||
12962 | |||||
12963 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" | ||||
12964 | if test "x$ac_cv_func_crypt_r" = xyes; then : | ||||
12965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12966 | /* end confdefs.h. */ | ||||
12967 | |||||
12968 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ | ||||
12969 | #include <crypt.h> | ||||
12970 | |||||
12971 | int | ||||
12972 | main () | ||||
12973 | { | ||||
12974 | |||||
12975 | struct crypt_data d; | ||||
12976 | char *r = crypt_r("", "", &d); | ||||
12977 | |||||
12978 | ; | ||||
12979 | return 0; | ||||
12980 | } | ||||
12981 | _ACEOF | ||||
12982 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12983 | |||||
12984 | $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h | ||||
12985 | |||||
12986 | fi | ||||
12987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
12988 | |||||
12989 | fi | ||||
12990 | |||||
12991 | |||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12992 | for ac_func in clock_gettime |
12993 | do : | ||||
12994 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | ||||
12995 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | ||||
12996 | cat >>confdefs.h <<_ACEOF | ||||
12997 | #define HAVE_CLOCK_GETTIME 1 | ||||
12998 | _ACEOF | ||||
12999 | |||||
13000 | else | ||||
13001 | |||||
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | ||||
13003 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||||
13004 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | ||||
13005 | $as_echo_n "(cached) " >&6 | ||||
13006 | else | ||||
13007 | ac_check_lib_save_LIBS=$LIBS | ||||
13008 | LIBS="-lrt $LIBS" | ||||
13009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13010 | /* end confdefs.h. */ | ||||
13011 | |||||
13012 | /* Override any GCC internal prototype to avoid an error. | ||||
13013 | Use char because int might match the return type of a GCC | ||||
13014 | builtin and then its argument prototype would still apply. */ | ||||
13015 | #ifdef __cplusplus | ||||
13016 | extern "C" | ||||
13017 | #endif | ||||
13018 | char clock_gettime (); | ||||
13019 | int | ||||
13020 | main () | ||||
13021 | { | ||||
13022 | return clock_gettime (); | ||||
13023 | ; | ||||
13024 | return 0; | ||||
13025 | } | ||||
13026 | _ACEOF | ||||
13027 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13028 | ac_cv_lib_rt_clock_gettime=yes | ||||
13029 | else | ||||
13030 | ac_cv_lib_rt_clock_gettime=no | ||||
13031 | fi | ||||
13032 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13033 | conftest$ac_exeext conftest.$ac_ext | ||||
13034 | LIBS=$ac_check_lib_save_LIBS | ||||
13035 | fi | ||||
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | ||||
13037 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||||
13038 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | ||||
13039 | |||||
Victor Stinner | 7efb833 | 2014-08-29 13:41:08 | [diff] [blame] | 13040 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13041 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
13042 | |||||
13043 | |||||
13044 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | ||||
13045 | |||||
13046 | |||||
13047 | fi | ||||
13048 | |||||
13049 | |||||
13050 | fi | ||||
13051 | done | ||||
13052 | |||||
13053 | |||||
13054 | for ac_func in clock_getres | ||||
13055 | do : | ||||
13056 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | ||||
13057 | if test "x$ac_cv_func_clock_getres" = xyes; then : | ||||
13058 | cat >>confdefs.h <<_ACEOF | ||||
13059 | #define HAVE_CLOCK_GETRES 1 | ||||
13060 | _ACEOF | ||||
13061 | |||||
13062 | else | ||||
13063 | |||||
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | ||||
13065 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | ||||
13066 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | ||||
13067 | $as_echo_n "(cached) " >&6 | ||||
13068 | else | ||||
13069 | ac_check_lib_save_LIBS=$LIBS | ||||
13070 | LIBS="-lrt $LIBS" | ||||
13071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13072 | /* end confdefs.h. */ | ||||
13073 | |||||
13074 | /* Override any GCC internal prototype to avoid an error. | ||||
13075 | Use char because int might match the return type of a GCC | ||||
13076 | builtin and then its argument prototype would still apply. */ | ||||
13077 | #ifdef __cplusplus | ||||
13078 | extern "C" | ||||
13079 | #endif | ||||
13080 | char clock_getres (); | ||||
13081 | int | ||||
13082 | main () | ||||
13083 | { | ||||
13084 | return clock_getres (); | ||||
13085 | ; | ||||
13086 | return 0; | ||||
13087 | } | ||||
13088 | _ACEOF | ||||
13089 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13090 | ac_cv_lib_rt_clock_getres=yes | ||||
13091 | else | ||||
13092 | ac_cv_lib_rt_clock_getres=no | ||||
13093 | fi | ||||
13094 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13095 | conftest$ac_exeext conftest.$ac_ext | ||||
13096 | LIBS=$ac_check_lib_save_LIBS | ||||
13097 | fi | ||||
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | ||||
13099 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | ||||
13100 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | ||||
13101 | |||||
13102 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | ||||
13103 | |||||
13104 | |||||
13105 | fi | ||||
13106 | |||||
13107 | |||||
13108 | fi | ||||
13109 | done | ||||
13110 | |||||
13111 | |||||
Benjamin Peterson | 37098cd | 2016-09-14 05:55:09 | [diff] [blame] | 13112 | for ac_func in clock_settime |
13113 | do : | ||||
13114 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | ||||
13115 | if test "x$ac_cv_func_clock_settime" = xyes; then : | ||||
13116 | cat >>confdefs.h <<_ACEOF | ||||
13117 | #define HAVE_CLOCK_SETTIME 1 | ||||
13118 | _ACEOF | ||||
13119 | |||||
13120 | else | ||||
13121 | |||||
13122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | ||||
13123 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | ||||
13124 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | ||||
13125 | $as_echo_n "(cached) " >&6 | ||||
13126 | else | ||||
13127 | ac_check_lib_save_LIBS=$LIBS | ||||
13128 | LIBS="-lrt $LIBS" | ||||
13129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13130 | /* end confdefs.h. */ | ||||
13131 | |||||
13132 | /* Override any GCC internal prototype to avoid an error. | ||||
13133 | Use char because int might match the return type of a GCC | ||||
13134 | builtin and then its argument prototype would still apply. */ | ||||
13135 | #ifdef __cplusplus | ||||
13136 | extern "C" | ||||
13137 | #endif | ||||
13138 | char clock_settime (); | ||||
13139 | int | ||||
13140 | main () | ||||
13141 | { | ||||
13142 | return clock_settime (); | ||||
13143 | ; | ||||
13144 | return 0; | ||||
13145 | } | ||||
13146 | _ACEOF | ||||
13147 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13148 | ac_cv_lib_rt_clock_settime=yes | ||||
13149 | else | ||||
13150 | ac_cv_lib_rt_clock_settime=no | ||||
13151 | fi | ||||
13152 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13153 | conftest$ac_exeext conftest.$ac_ext | ||||
13154 | LIBS=$ac_check_lib_save_LIBS | ||||
13155 | fi | ||||
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | ||||
13157 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | ||||
13158 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | ||||
13159 | |||||
13160 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | ||||
13161 | |||||
13162 | |||||
13163 | fi | ||||
13164 | |||||
13165 | |||||
13166 | fi | ||||
13167 | done | ||||
13168 | |||||
13169 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
13171 | $as_echo_n "checking for major... " >&6; } | ||||
13172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13173 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13174 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 13175 | #if defined(MAJOR_IN_MKDEV) |
13176 | #include <sys/mkdev.h> | ||||
13177 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
13178 | #include <sys/sysmacros.h> | ||||
13179 | #else | ||||
13180 | #include <sys/types.h> | ||||
13181 | #endif | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13182 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13183 | int |
13184 | main () | ||||
13185 | { | ||||
13186 | |||||
13187 | makedev(major(0),minor(0)); | ||||
13188 | |||||
13189 | ; | ||||
13190 | return 0; | ||||
13191 | } | ||||
13192 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13193 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13194 | |
13195 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13196 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13197 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13199 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13200 | |
13201 | else | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13202 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13204 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13205 | |
13206 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13207 | rm -f core conftest.err conftest.$ac_objext \ |
13208 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13209 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13210 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13211 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
13213 | $as_echo_n "checking for getaddrinfo... " >&6; } | ||||
13214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13215 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13216 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 | [diff] [blame] | 13217 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13218 | #include <sys/socket.h> |
13219 | #include <netdb.h> | ||||
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 | [diff] [blame] | 13220 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13222 | int |
13223 | main () | ||||
13224 | { | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13225 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13226 | ; |
13227 | return 0; | ||||
13228 | } | ||||
13229 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13230 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13231 | have_getaddrinfo=yes |
13232 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13233 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13234 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13235 | rm -f core conftest.err conftest.$ac_objext \ |
13236 | conftest$ac_exeext conftest.$ac_ext | ||||
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | ||||
13238 | $as_echo "$have_getaddrinfo" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13239 | if test $have_getaddrinfo = yes |
13240 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
13242 | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13243 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13244 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13245 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13246 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 19:42:23 | [diff] [blame] | 13247 | |
13248 | if test "${enable_ipv6+set}" = set; then | ||||
13249 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | ||||
13250 | else | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13251 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 19:42:23 | [diff] [blame] | 13252 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13253 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13255 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13256 | |
Stefan Krah | 19c2139 | 2012-11-22 22:47:32 | [diff] [blame] | 13257 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13258 | #include <sys/types.h> |
13259 | #include <netdb.h> | ||||
13260 | #include <string.h> | ||||
13261 | #include <sys/socket.h> | ||||
13262 | #include <netinet/in.h> | ||||
13263 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13264 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13265 | { |
13266 | int passive, gaierr, inet4 = 0, inet6 = 0; | ||||
13267 | struct addrinfo hints, *ai, *aitop; | ||||
13268 | char straddr[INET6_ADDRSTRLEN], strport[16]; | ||||
13269 | |||||
13270 | for (passive = 0; passive <= 1; passive++) { | ||||
13271 | memset(&hints, 0, sizeof(hints)); | ||||
13272 | hints.ai_family = AF_UNSPEC; | ||||
13273 | hints.ai_flags = passive ? AI_PASSIVE : 0; | ||||
13274 | hints.ai_socktype = SOCK_STREAM; | ||||
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 | [diff] [blame] | 13275 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13276 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
13277 | (void)gai_strerror(gaierr); | ||||
13278 | goto bad; | ||||
13279 | } | ||||
13280 | for (ai = aitop; ai; ai = ai->ai_next) { | ||||
13281 | if (ai->ai_addr == NULL || | ||||
13282 | ai->ai_addrlen == 0 || | ||||
13283 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | ||||
13284 | straddr, sizeof(straddr), strport, sizeof(strport), | ||||
13285 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | ||||
13286 | goto bad; | ||||
13287 | } | ||||
13288 | switch (ai->ai_family) { | ||||
13289 | case AF_INET: | ||||
13290 | if (strcmp(strport, "54321") != 0) { | ||||
13291 | goto bad; | ||||
13292 | } | ||||
13293 | if (passive) { | ||||
13294 | if (strcmp(straddr, "0.0.0.0") != 0) { | ||||
13295 | goto bad; | ||||
13296 | } | ||||
13297 | } else { | ||||
13298 | if (strcmp(straddr, "127.0.0.1") != 0) { | ||||
13299 | goto bad; | ||||
13300 | } | ||||
13301 | } | ||||
13302 | inet4++; | ||||
13303 | break; | ||||
13304 | case AF_INET6: | ||||
13305 | if (strcmp(strport, "54321") != 0) { | ||||
13306 | goto bad; | ||||
13307 | } | ||||
13308 | if (passive) { | ||||
13309 | if (strcmp(straddr, "::") != 0) { | ||||
13310 | goto bad; | ||||
13311 | } | ||||
13312 | } else { | ||||
13313 | if (strcmp(straddr, "::1") != 0) { | ||||
13314 | goto bad; | ||||
13315 | } | ||||
13316 | } | ||||
13317 | inet6++; | ||||
13318 | break; | ||||
13319 | case AF_UNSPEC: | ||||
13320 | goto bad; | ||||
13321 | break; | ||||
13322 | default: | ||||
13323 | /* another family support? */ | ||||
13324 | break; | ||||
13325 | } | ||||
13326 | } | ||||
Benjamin Peterson | 01c340d | 2016-09-06 22:54:24 | [diff] [blame] | 13327 | freeaddrinfo(aitop); |
13328 | aitop = NULL; | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13329 | } |
13330 | |||||
13331 | if (!(inet4 == 0 || inet4 == 2)) | ||||
13332 | goto bad; | ||||
13333 | if (!(inet6 == 0 || inet6 == 2)) | ||||
13334 | goto bad; | ||||
13335 | |||||
13336 | if (aitop) | ||||
13337 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13338 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13339 | |
13340 | bad: | ||||
13341 | if (aitop) | ||||
13342 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13343 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13344 | } |
13345 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13346 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13347 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13348 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13349 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13350 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13351 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13352 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13353 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13354 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13355 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13356 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13357 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13358 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13359 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 | [diff] [blame] | 13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
13361 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | ||||
13362 | |||||
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 13363 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13364 | then |
13365 | if test $ipv6 = yes | ||||
13366 | then | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13367 | echo 'Fatal: You must get working getaddrinfo() function.' |
13368 | echo ' or you can specify "--disable-ipv6"'. | ||||
13369 | exit 1 | ||||
13370 | fi | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13373 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13374 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13375 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 | [diff] [blame] | 13376 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 13377 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13378 | do : |
13379 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13380 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13381 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13382 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13383 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13384 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13385 | fi |
13386 | done | ||||
13387 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13388 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13389 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13391 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13392 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13393 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13394 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13396 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13397 | #include <sys/types.h> |
13398 | #include <sys/time.h> | ||||
13399 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13401 | int |
13402 | main () | ||||
13403 | { | ||||
13404 | if ((struct tm *) 0) | ||||
13405 | return 0; | ||||
13406 | ; | ||||
13407 | return 0; | ||||
13408 | } | ||||
13409 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13410 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13411 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13412 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13413 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13414 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13416 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
13418 | $as_echo "$ac_cv_header_time" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13419 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13420 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13421 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13422 | |
13423 | fi | ||||
13424 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13426 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13427 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13428 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13429 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13431 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13432 | #include <sys/types.h> |
13433 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13435 | int |
13436 | main () | ||||
13437 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13438 | struct tm tm; |
13439 | int *p = &tm.tm_sec; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13440 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13441 | ; |
13442 | return 0; | ||||
13443 | } | ||||
13444 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13445 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13446 | ac_cv_struct_tm=time.h |
13447 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13448 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13449 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13451 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
13453 | $as_echo "$ac_cv_struct_tm" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13454 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13455 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13456 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13457 | |
13458 | fi | ||||
13459 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13460 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13461 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13462 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13463 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13464 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13465 | |
13466 | cat >>confdefs.h <<_ACEOF | ||||
13467 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||||
13468 | _ACEOF | ||||
13469 | |||||
13470 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13471 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 13472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13473 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
13474 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13475 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13476 | |
13477 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13478 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
13479 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13480 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13481 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13482 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13483 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13484 | fi |
13485 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13486 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13487 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13488 | _ACEOF |
13489 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
13491 | $as_echo_n "checking for tzname... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13492 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13493 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13494 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13496 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13497 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13498 | #if !HAVE_DECL_TZNAME |
13499 | extern char *tzname[]; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13500 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13502 | int |
13503 | main () | ||||
13504 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13505 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13506 | ; |
13507 | return 0; | ||||
13508 | } | ||||
13509 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13510 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13511 | ac_cv_var_tzname=yes |
13512 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13513 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13514 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13515 | rm -f core conftest.err conftest.$ac_objext \ |
13516 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13517 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
13519 | $as_echo "$ac_cv_var_tzname" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13520 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13521 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13522 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13523 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13524 | fi |
13525 | fi | ||||
13526 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13527 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13528 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13529 | |
13530 | cat >>confdefs.h <<_ACEOF | ||||
13531 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | ||||
13532 | _ACEOF | ||||
13533 | |||||
13534 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13535 | fi |
13536 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13537 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13538 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13540 | cat >>confdefs.h <<_ACEOF |
13541 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||||
13542 | _ACEOF | ||||
13543 | |||||
13544 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13545 | fi |
13546 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13547 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13548 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 | [diff] [blame] | 13549 | |
13550 | cat >>confdefs.h <<_ACEOF | ||||
13551 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | ||||
13552 | _ACEOF | ||||
13553 | |||||
13554 | |||||
13555 | fi | ||||
13556 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13557 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13558 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 13559 | |
13560 | cat >>confdefs.h <<_ACEOF | ||||
13561 | #define HAVE_STRUCT_STAT_ST_GEN 1 | ||||
13562 | _ACEOF | ||||
13563 | |||||
13564 | |||||
13565 | fi | ||||
13566 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13567 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13568 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 13569 | |
13570 | cat >>confdefs.h <<_ACEOF | ||||
13571 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | ||||
13572 | _ACEOF | ||||
13573 | |||||
13574 | |||||
13575 | fi | ||||
13576 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13577 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13578 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13580 | cat >>confdefs.h <<_ACEOF |
13581 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | ||||
13582 | _ACEOF | ||||
13583 | |||||
13584 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13585 | fi |
13586 | |||||
Stefan Krah | 267b639 | 2016-04-25 23:09:18 | [diff] [blame] | 13587 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
13588 | #include <sys/types.h> | ||||
13589 | #include <pwd.h> | ||||
13590 | |||||
13591 | " | ||||
13592 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||||
13593 | |||||
13594 | cat >>confdefs.h <<_ACEOF | ||||
13595 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||||
13596 | _ACEOF | ||||
13597 | |||||
13598 | |||||
13599 | fi | ||||
13600 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | ||||
13601 | #include <sys/types.h> | ||||
13602 | #include <pwd.h> | ||||
13603 | |||||
13604 | " | ||||
13605 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | ||||
13606 | |||||
13607 | cat >>confdefs.h <<_ACEOF | ||||
13608 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | ||||
13609 | _ACEOF | ||||
13610 | |||||
13611 | |||||
13612 | fi | ||||
13613 | |||||
Zachary Ware | 6a6967e | 2016-10-01 05:47:27 | [diff] [blame] | 13614 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
13615 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | ||||
13616 | " | ||||
13617 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : | ||||
13618 | |||||
13619 | cat >>confdefs.h <<_ACEOF | ||||
13620 | #define HAVE_SIGINFO_T_SI_BAND 1 | ||||
13621 | _ACEOF | ||||
13622 | |||||
13623 | |||||
13624 | fi | ||||
13625 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13626 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
13628 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13629 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13630 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13631 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13632 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13634 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13635 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13636 | int |
13637 | main () | ||||
13638 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13639 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13640 | ; |
13641 | return 0; | ||||
13642 | } | ||||
13643 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13644 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13645 | ac_cv_header_time_altzone=yes |
13646 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13647 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13648 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13650 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13651 | fi |
13652 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
13654 | $as_echo "$ac_cv_header_time_altzone" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13655 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13656 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13657 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13658 | |
13659 | fi | ||||
13660 | |||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13661 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
13663 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | ||||
13664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13665 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13666 | |
13667 | #include <sys/types.h> | ||||
13668 | #include <sys/select.h> | ||||
13669 | #include <sys/time.h> | ||||
13670 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13671 | int |
13672 | main () | ||||
13673 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13674 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13675 | ; |
13676 | return 0; | ||||
13677 | } | ||||
13678 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13679 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13680 | |
13681 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13682 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13683 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13684 | was_it_defined=yes |
13685 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13686 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
13689 | $as_echo "$was_it_defined" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13690 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
13692 | $as_echo_n "checking for addrinfo... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13693 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13694 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13695 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13697 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13698 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13699 | int |
13700 | main () | ||||
13701 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13702 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13703 | ; |
13704 | return 0; | ||||
13705 | } | ||||
13706 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13707 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13708 | ac_cv_struct_addrinfo=yes |
13709 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13710 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13711 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13713 | fi | ||||
13714 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
13716 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13717 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13718 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13719 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13720 | |
13721 | fi | ||||
13722 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
13724 | $as_echo_n "checking for sockaddr_storage... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13725 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13726 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13727 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13729 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13730 | |
13731 | # include <sys/types.h> | ||||
13732 | # include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13733 | int |
13734 | main () | ||||
13735 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13736 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13737 | ; |
13738 | return 0; | ||||
13739 | } | ||||
13740 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13741 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13742 | ac_cv_struct_sockaddr_storage=yes |
13743 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13744 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13745 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13747 | fi | ||||
13748 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
13750 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13751 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13752 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13753 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13754 | |
13755 | fi | ||||
13756 | |||||
Christian Heimes | dffa394 | 2016-09-05 21:54:41 | [diff] [blame] | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
13758 | $as_echo_n "checking for sockaddr_alg... " >&6; } | ||||
13759 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | ||||
13760 | $as_echo_n "(cached) " >&6 | ||||
13761 | else | ||||
13762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13763 | /* end confdefs.h. */ | ||||
13764 | |||||
13765 | # include <sys/types.h> | ||||
13766 | # include <sys/socket.h> | ||||
13767 | # include <linux/if_alg.h> | ||||
13768 | int | ||||
13769 | main () | ||||
13770 | { | ||||
13771 | struct sockaddr_alg s | ||||
13772 | ; | ||||
13773 | return 0; | ||||
13774 | } | ||||
13775 | _ACEOF | ||||
13776 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13777 | ac_cv_struct_sockaddr_alg=yes | ||||
13778 | else | ||||
13779 | ac_cv_struct_sockaddr_alg=no | ||||
13780 | fi | ||||
13781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13782 | fi | ||||
13783 | |||||
13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | ||||
13785 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | ||||
13786 | if test $ac_cv_struct_sockaddr_alg = yes; then | ||||
13787 | |||||
13788 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | ||||
13789 | |||||
13790 | fi | ||||
13791 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13792 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13793 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
13795 | $as_echo_n "checking whether char is unsigned... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13796 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13797 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13798 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13800 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13801 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13802 | int |
13803 | main () | ||||
13804 | { | ||||
13805 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13806 | test_array [0] = 0; |
13807 | return test_array [0]; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13808 | |
13809 | ; | ||||
13810 | return 0; | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13811 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13812 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13813 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13814 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13815 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13816 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13817 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13819 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
13821 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13822 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13823 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13824 | |
13825 | fi | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13826 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
13828 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13829 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13830 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13831 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13833 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13835 | int |
13836 | main () | ||||
13837 | { | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13839 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13840 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13841 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13842 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13843 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13844 | char const *const *pcpcc; |
13845 | char **ppc; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13846 | /* NEC SVR4.0.2 mips cc rejects this. */ |
13847 | struct point {int x, y;}; | ||||
13848 | static struct point const zero = {0,0}; | ||||
13849 | /* AIX XL C 1.02.0.0 rejects this. | ||||
13850 | It does not let you subtract one const X* pointer from another in | ||||
13851 | an arm of an if-expression whose if-part is not a constant | ||||
13852 | expression */ | ||||
13853 | const char *g = "string"; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13854 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13855 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13856 | ++pcpcc; |
13857 | ppc = (char**) pcpcc; | ||||
13858 | pcpcc = (char const *const *) ppc; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13859 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
13860 | char tx; | ||||
13861 | char *t = &tx; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13862 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13864 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13865 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13866 | } |
13867 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||||
13868 | int x[] = {25, 17}; | ||||
13869 | const int *foo = &x[0]; | ||||
13870 | ++foo; | ||||
13871 | } | ||||
13872 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||||
13873 | typedef const int *iptr; | ||||
13874 | iptr p = 0; | ||||
13875 | ++p; | ||||
13876 | } | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13877 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13878 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13879 | struct s { int j; const int *ap[3]; } bx; |
13880 | struct s *b = &bx; b->j = 5; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13881 | } |
13882 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||||
13883 | const int foo = 10; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13884 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13885 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13886 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13887 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13889 | ; |
13890 | return 0; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13891 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13892 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13893 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13894 | ac_cv_c_const=yes |
13895 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13896 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13897 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
13901 | $as_echo "$ac_cv_c_const" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13902 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13903 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13904 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13905 | |
13906 | fi | ||||
13907 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13908 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13909 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
13911 | $as_echo_n "checking for working signed char... " >&6; } | ||||
13912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13913 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 | [diff] [blame] | 13914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13915 | int |
13916 | main () | ||||
13917 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13918 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13919 | ; |
13920 | return 0; | ||||
13921 | } | ||||
13922 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13923 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13924 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 | [diff] [blame] | 13925 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13926 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13927 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13928 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13929 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13930 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13933 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13934 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13935 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
13937 | $as_echo_n "checking for prototypes... " >&6; } | ||||
13938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13939 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13940 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13941 | int |
13942 | main () | ||||
13943 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13944 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13945 | ; |
13946 | return 0; | ||||
13947 | } | ||||
13948 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13949 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13950 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13951 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13952 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13953 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13954 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
13957 | $as_echo "$have_prototypes" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13958 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13959 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
13961 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | ||||
13962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13963 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13964 | |
13965 | #include <stdarg.h> | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 | [diff] [blame] | 13966 | int foo(int x, ...) { |
13967 | va_list va; | ||||
13968 | va_start(va, x); | ||||
13969 | va_arg(va, int); | ||||
13970 | va_arg(va, char *); | ||||
13971 | va_arg(va, double); | ||||
13972 | return 0; | ||||
13973 | } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13975 | int |
13976 | main () | ||||
13977 | { | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 | [diff] [blame] | 13978 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13979 | ; |
13980 | return 0; | ||||
13981 | } | ||||
13982 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13983 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13984 | |
13985 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13986 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13987 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13988 | works=yes |
13989 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13990 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13993 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13994 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13995 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
13997 | $as_echo_n "checking for socketpair... " >&6; } | ||||
13998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13999 | /* end confdefs.h. */ |
14000 | |||||
14001 | #include <sys/types.h> | ||||
14002 | #include <sys/socket.h> | ||||
14003 | |||||
14004 | int | ||||
14005 | main () | ||||
14006 | { | ||||
14007 | void *x=socketpair | ||||
14008 | ; | ||||
14009 | return 0; | ||||
14010 | } | ||||
14011 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14012 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 14013 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14014 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 14015 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14017 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 14018 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14020 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 14021 | |
14022 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 14024 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 14025 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
14027 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | ||||
14028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14029 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 14030 | #include <sys/types.h> |
14031 | #include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14032 | int |
14033 | main () | ||||
14034 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 14035 | struct sockaddr x; |
14036 | x.sa_len = 0; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14037 | ; |
14038 | return 0; | ||||
14039 | } | ||||
14040 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14041 | if ac_fn_c_try_compile "$LINENO"; then : |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14043 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14044 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14045 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 14046 | |
14047 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14049 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14050 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 14051 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 14053 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14054 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14055 | |
14056 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14057 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14058 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14059 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14060 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 | [diff] [blame] | 14061 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
14063 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14064 | OLD_CFLAGS=$CFLAGS |
14065 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14067 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14068 | |
14069 | # include <netdb.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14071 | int |
14072 | main () | ||||
14073 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14074 | |
14075 | char *name; | ||||
14076 | struct hostent *he, *res; | ||||
14077 | char buffer[2048]; | ||||
14078 | int buflen = 2048; | ||||
14079 | int h_errnop; | ||||
14080 | |||||
14081 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14082 | |
14083 | ; | ||||
14084 | return 0; | ||||
14085 | } | ||||
14086 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14087 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14088 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14089 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 | [diff] [blame] | 14090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14091 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14092 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14093 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14095 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14096 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14097 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14098 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14100 | $as_echo "no" >&6; } | ||||
14101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | ||||
14102 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | ||||
14103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14104 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14105 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14106 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14108 | int |
14109 | main () | ||||
14110 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14111 | |
14112 | char *name; | ||||
14113 | struct hostent *he; | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14114 | char buffer[2048]; |
14115 | int buflen = 2048; | ||||
14116 | int h_errnop; | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14117 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14118 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14119 | |
14120 | ; | ||||
14121 | return 0; | ||||
14122 | } | ||||
14123 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14124 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14125 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14126 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 | [diff] [blame] | 14127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14128 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14129 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14130 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14132 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14133 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14134 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14135 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14137 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
14139 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | ||||
14140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14141 | /* end confdefs.h. */ | ||||
14142 | |||||
14143 | # include <netdb.h> | ||||
14144 | |||||
14145 | int | ||||
14146 | main () | ||||
14147 | { | ||||
14148 | |||||
14149 | char *name; | ||||
14150 | struct hostent *he; | ||||
14151 | struct hostent_data data; | ||||
14152 | |||||
14153 | (void) gethostbyname_r(name, he, &data); | ||||
14154 | |||||
14155 | ; | ||||
14156 | return 0; | ||||
14157 | } | ||||
14158 | _ACEOF | ||||
14159 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
14160 | |||||
14161 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | ||||
14162 | |||||
14163 | |||||
14164 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | ||||
14165 | |||||
14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14167 | $as_echo "yes" >&6; } | ||||
14168 | |||||
14169 | else | ||||
14170 | |||||
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14172 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14173 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14174 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14176 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14177 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14179 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14180 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14182 | CFLAGS=$OLD_CFLAGS |
14183 | |||||
14184 | else | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14185 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14186 | for ac_func in gethostbyname |
14187 | do : | ||||
14188 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14189 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14190 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14191 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14192 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14193 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14194 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 14195 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14197 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14198 | fi |
14199 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14200 | |
14201 | |||||
14202 | |||||
14203 | |||||
14204 | |||||
14205 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14206 | # checks for system services |
14207 | # (none yet) | ||||
14208 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14209 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14210 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14211 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14212 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 | [diff] [blame] | 14213 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
14215 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14216 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14217 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14219 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 14220 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14222 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14223 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14224 | /* Override any GCC internal prototype to avoid an error. |
14225 | Use char because int might match the return type of a GCC | ||||
14226 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14227 | #ifdef __cplusplus |
14228 | extern "C" | ||||
14229 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14230 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14231 | int |
14232 | main () | ||||
14233 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14234 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14235 | ; |
14236 | return 0; | ||||
14237 | } | ||||
14238 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14239 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14240 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14241 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14242 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14243 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14244 | rm -f core conftest.err conftest.$ac_objext \ |
14245 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14246 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14247 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
14249 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14250 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14251 | cat >>confdefs.h <<_ACEOF |
14252 | #define HAVE_LIBIEEE 1 | ||||
14253 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14254 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 14255 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14256 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14257 | fi |
14258 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14259 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 | [diff] [blame] | 14260 | fi |
14261 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14262 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14263 | # check for --with-libm=... |
14264 | |||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 14265 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 | [diff] [blame] | 14266 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 14267 | *) LIBM=-lm |
14268 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
14270 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14271 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14272 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14273 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14274 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14275 | if test "$withval" = no |
14276 | then LIBM= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
14278 | $as_echo "force LIBM empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14279 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14280 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
14282 | $as_echo "set LIBM=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14283 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14284 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14285 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
14287 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14288 | fi |
14289 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14290 | |
14291 | # check for --with-libc=... | ||||
14292 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
14294 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14295 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14296 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14297 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14298 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14299 | if test "$withval" = no |
14300 | then LIBC= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
14302 | $as_echo "force LIBC empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14303 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14304 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
14306 | $as_echo "set LIBC=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14307 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14308 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14309 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
14311 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14312 | fi |
14313 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14314 | |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14315 | # ************************************** |
14316 | # * Check for gcc x64 inline assembler * | ||||
14317 | # ************************************** | ||||
14318 | |||||
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | ||||
14320 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | ||||
14321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14322 | /* end confdefs.h. */ | ||||
14323 | |||||
14324 | int | ||||
14325 | main () | ||||
14326 | { | ||||
14327 | |||||
14328 | __asm__ __volatile__ ("movq %rcx, %rax"); | ||||
14329 | |||||
14330 | ; | ||||
14331 | return 0; | ||||
14332 | } | ||||
14333 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14334 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14335 | have_gcc_asm_for_x64=yes |
14336 | else | ||||
14337 | have_gcc_asm_for_x64=no | ||||
14338 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14339 | rm -f core conftest.err conftest.$ac_objext \ |
14340 | conftest$ac_exeext conftest.$ac_ext | ||||
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
14342 | $as_echo "$have_gcc_asm_for_x64" >&6; } | ||||
14343 | if test "$have_gcc_asm_for_x64" = yes | ||||
14344 | then | ||||
14345 | |||||
14346 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | ||||
14347 | |||||
14348 | fi | ||||
14349 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14350 | # ************************************************** |
14351 | # * Check for various properties of floating point * | ||||
14352 | # ************************************************** | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14353 | |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 |
14355 | $as_echo_n "checking whether float word ordering is bigendian... " >&6; } | ||||
14356 | if ${ax_cv_c_float_words_bigendian+:} false; then : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14357 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14358 | else |
14359 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14360 | |
14361 | ax_cv_c_float_words_bigendian=unknown | ||||
14362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14363 | /* end confdefs.h. */ |
14364 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14365 | |
14366 | double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; | ||||
14367 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14368 | |
14369 | _ACEOF | ||||
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14370 | if ac_fn_c_try_compile "$LINENO"; then : |
14371 | |||||
14372 | |||||
Christian Heimes | e516290 | 2021-03-27 21:47:11 | [diff] [blame] | 14373 | if grep noonsees conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14374 | ax_cv_c_float_words_bigendian=yes |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14375 | fi |
Christian Heimes | e516290 | 2021-03-27 21:47:11 | [diff] [blame] | 14376 | if grep seesnoon conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14377 | if test "$ax_cv_c_float_words_bigendian" = unknown; then |
14378 | ax_cv_c_float_words_bigendian=no | ||||
14379 | else | ||||
14380 | ax_cv_c_float_words_bigendian=unknown | ||||
14381 | fi | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14382 | fi |
14383 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14384 | |
14385 | fi | ||||
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14387 | fi |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 |
14389 | $as_echo "$ax_cv_c_float_words_bigendian" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14390 | |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14391 | case $ax_cv_c_float_words_bigendian in |
14392 | yes) | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14393 | |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14394 | $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h |
14395 | ;; | ||||
14396 | no) | ||||
14397 | ;; | ||||
14398 | *) | ||||
14399 | as_fn_error $? " | ||||
14400 | |||||
14401 | Unknown float word ordering. You need to manually preset | ||||
14402 | ax_cv_c_float_words_bigendian=no (or yes) according to your system. | ||||
14403 | |||||
14404 | " "$LINENO" 5 ;; | ||||
14405 | esac | ||||
14406 | |||||
14407 | |||||
14408 | if test "$ax_cv_c_float_words_bigendian" = "yes" | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14409 | then |
14410 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14411 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14412 | |
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14413 | elif test "$ax_cv_c_float_words_bigendian" = "no" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14414 | then |
14415 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-19 06:49:05 | [diff] [blame] | 14416 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
14417 | |||||
14418 | else | ||||
14419 | # Some ARM platforms use a mixed-endian representation for doubles. | ||||
14420 | # While Python doesn't currently have full support for these platforms | ||||
14421 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | ||||
14422 | # conversions work. | ||||
14423 | # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big | ||||
14424 | # or little, then it must be this? | ||||
14425 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14426 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14427 | |
14428 | fi | ||||
14429 | |||||
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 | [diff] [blame] | 14430 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14431 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 | [diff] [blame] | 14432 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14433 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14434 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14435 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14436 | |
14437 | # This inline assembler syntax may also work for suncc and icc, | ||||
14438 | # so we try it on all platforms. | ||||
14439 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
14441 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | ||||
14442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14443 | /* end confdefs.h. */ |
14444 | |||||
14445 | int | ||||
14446 | main () | ||||
14447 | { | ||||
14448 | |||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14449 | unsigned short cw; |
14450 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | ||||
14451 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14452 | |
14453 | ; | ||||
14454 | return 0; | ||||
14455 | } | ||||
14456 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14457 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14458 | have_gcc_asm_for_x87=yes |
14459 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14460 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14461 | fi |
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14462 | rm -f core conftest.err conftest.$ac_objext \ |
14463 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
14465 | $as_echo "$have_gcc_asm_for_x87" >&6; } | ||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14466 | if test "$have_gcc_asm_for_x87" = yes |
14467 | then | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14469 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14470 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14471 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14472 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
14474 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | ||||
14475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14476 | /* end confdefs.h. */ | ||||
14477 | |||||
14478 | int | ||||
14479 | main () | ||||
14480 | { | ||||
14481 | |||||
14482 | unsigned int fpcr; | ||||
14483 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | ||||
14484 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | ||||
14485 | |||||
14486 | ; | ||||
14487 | return 0; | ||||
14488 | } | ||||
14489 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14490 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14491 | have_gcc_asm_for_mc68881=yes |
14492 | else | ||||
14493 | have_gcc_asm_for_mc68881=no | ||||
14494 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14495 | rm -f core conftest.err conftest.$ac_objext \ |
14496 | conftest$ac_exeext conftest.$ac_ext | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
14498 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | ||||
14499 | if test "$have_gcc_asm_for_mc68881" = yes | ||||
14500 | then | ||||
14501 | |||||
14502 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | ||||
14503 | |||||
14504 | fi | ||||
14505 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14506 | # Detect whether system arithmetic is subject to x87-style double |
14507 | # rounding issues. The result of this test has little meaning on non | ||||
14508 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding | ||||
14509 | # mode is round-to-nearest and double rounding issues are present, and | ||||
14510 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
14512 | $as_echo_n "checking for x87-style double rounding... " >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14513 | # $BASECFLAGS may affect the result |
14514 | ac_save_cc="$CC" | ||||
14515 | CC="$CC $BASECFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14516 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14517 | ac_cv_x87_double_rounding=no |
14518 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14520 | /* end confdefs.h. */ |
14521 | |||||
14522 | #include <stdlib.h> | ||||
14523 | #include <math.h> | ||||
14524 | int main() { | ||||
14525 | volatile double x, y, z; | ||||
14526 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | ||||
14527 | x = 0.99999999999999989; /* 1-2**-53 */ | ||||
14528 | y = 1./x; | ||||
14529 | if (y != 1.) | ||||
14530 | exit(0); | ||||
14531 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | ||||
14532 | x = 1e16; | ||||
14533 | y = 2.99999; | ||||
14534 | z = x + y; | ||||
14535 | if (z != 1e16+4.) | ||||
14536 | exit(0); | ||||
14537 | /* both tests show evidence of double rounding */ | ||||
14538 | exit(1); | ||||
14539 | } | ||||
14540 | |||||
14541 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14542 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14543 | ac_cv_x87_double_rounding=no |
14544 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14545 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14546 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14547 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14548 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14549 | fi |
14550 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14551 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
14553 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14554 | if test "$ac_cv_x87_double_rounding" = yes |
14555 | then | ||||
14556 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14557 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14558 | |
14559 | fi | ||||
14560 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14561 | # ************************************ |
14562 | # * Check for mathematical functions * | ||||
14563 | # ************************************ | ||||
14564 | |||||
14565 | LIBS_SAVE=$LIBS | ||||
14566 | LIBS="$LIBS $LIBM" | ||||
14567 | |||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14568 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
14569 | do : | ||||
14570 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14571 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14572 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14573 | cat >>confdefs.h <<_ACEOF |
14574 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14575 | _ACEOF | ||||
14576 | |||||
14577 | fi | ||||
14578 | done | ||||
14579 | |||||
Victor Stinner | 8f9f8d6 | 2011-05-09 10:45:41 | [diff] [blame] | 14580 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14581 | do : |
14582 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14583 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14584 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14585 | cat >>confdefs.h <<_ACEOF |
14586 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14587 | _ACEOF | ||||
14588 | |||||
14589 | fi | ||||
14590 | done | ||||
14591 | |||||
14592 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | ||||
14593 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14594 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14595 | ac_have_decl=1 |
14596 | else | ||||
14597 | ac_have_decl=0 | ||||
14598 | fi | ||||
14599 | |||||
14600 | cat >>confdefs.h <<_ACEOF | ||||
14601 | #define HAVE_DECL_ISINF $ac_have_decl | ||||
14602 | _ACEOF | ||||
14603 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | ||||
14604 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14605 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14606 | ac_have_decl=1 |
14607 | else | ||||
14608 | ac_have_decl=0 | ||||
14609 | fi | ||||
14610 | |||||
14611 | cat >>confdefs.h <<_ACEOF | ||||
14612 | #define HAVE_DECL_ISNAN $ac_have_decl | ||||
14613 | _ACEOF | ||||
14614 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | ||||
14615 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14616 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14617 | ac_have_decl=1 |
14618 | else | ||||
14619 | ac_have_decl=0 | ||||
14620 | fi | ||||
14621 | |||||
14622 | cat >>confdefs.h <<_ACEOF | ||||
14623 | #define HAVE_DECL_ISFINITE $ac_have_decl | ||||
14624 | _ACEOF | ||||
14625 | |||||
14626 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14627 | # For multiprocessing module, check that sem_open |
14628 | # actually works. For FreeBSD versions <= 7.2, | ||||
14629 | # the kernel module that provides POSIX semaphores | ||||
14630 | # isn't loaded by default, so an attempt to call | ||||
14631 | # sem_open results in a 'Signal 12' error. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
14633 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14634 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14635 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14636 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14637 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14638 | ac_cv_posix_semaphores_enabled=yes |
14639 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14641 | /* end confdefs.h. */ |
14642 | |||||
14643 | #include <unistd.h> | ||||
14644 | #include <fcntl.h> | ||||
14645 | #include <stdio.h> | ||||
14646 | #include <semaphore.h> | ||||
14647 | #include <sys/stat.h> | ||||
14648 | |||||
14649 | int main(void) { | ||||
14650 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | ||||
14651 | if (a == SEM_FAILED) { | ||||
14652 | perror("sem_open"); | ||||
14653 | return 1; | ||||
14654 | } | ||||
14655 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14656 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14657 | return 0; |
14658 | } | ||||
14659 | |||||
14660 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14661 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14662 | ac_cv_posix_semaphores_enabled=yes |
14663 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14664 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14665 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14667 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14668 | fi |
14669 | |||||
14670 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14671 | fi |
14672 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
14674 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14675 | if test $ac_cv_posix_semaphores_enabled = no |
14676 | then | ||||
14677 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14678 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14679 | |
14680 | fi | ||||
14681 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14682 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
14684 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14685 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14686 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14687 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14688 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14689 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14690 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14692 | /* end confdefs.h. */ |
14693 | |||||
14694 | #include <unistd.h> | ||||
14695 | #include <fcntl.h> | ||||
14696 | #include <stdio.h> | ||||
14697 | #include <semaphore.h> | ||||
14698 | #include <sys/stat.h> | ||||
14699 | |||||
14700 | int main(void){ | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14701 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14702 | int count; |
14703 | int res; | ||||
14704 | if(a==SEM_FAILED){ | ||||
14705 | perror("sem_open"); | ||||
14706 | return 1; | ||||
14707 | |||||
14708 | } | ||||
14709 | res = sem_getvalue(a, &count); | ||||
14710 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14711 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14712 | return res==-1 ? 1 : 0; |
14713 | } | ||||
14714 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14715 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14716 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14717 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14718 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14719 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 14720 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14722 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 14723 | fi |
14724 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 14725 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14726 | fi |
14727 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
14729 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14730 | if test $ac_cv_broken_sem_getvalue = yes |
14731 | then | ||||
14732 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14733 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14734 | |
14735 | fi | ||||
14736 | |||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 06:44:44 | [diff] [blame] | 14737 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
14738 | " | ||||
14739 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | ||||
14740 | ac_have_decl=1 | ||||
14741 | else | ||||
14742 | ac_have_decl=0 | ||||
14743 | fi | ||||
14744 | |||||
14745 | cat >>confdefs.h <<_ACEOF | ||||
14746 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | ||||
14747 | _ACEOF | ||||
14748 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||||
14749 | " | ||||
14750 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||||
14751 | ac_have_decl=1 | ||||
14752 | else | ||||
14753 | ac_have_decl=0 | ||||
14754 | fi | ||||
14755 | |||||
14756 | cat >>confdefs.h <<_ACEOF | ||||
14757 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | ||||
14758 | _ACEOF | ||||
14759 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | ||||
14760 | " | ||||
14761 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | ||||
14762 | ac_have_decl=1 | ||||
14763 | else | ||||
14764 | ac_have_decl=0 | ||||
14765 | fi | ||||
14766 | |||||
14767 | cat >>confdefs.h <<_ACEOF | ||||
14768 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | ||||
14769 | _ACEOF | ||||
14770 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | ||||
14771 | " | ||||
14772 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | ||||
14773 | ac_have_decl=1 | ||||
14774 | else | ||||
14775 | ac_have_decl=0 | ||||
14776 | fi | ||||
14777 | |||||
14778 | cat >>confdefs.h <<_ACEOF | ||||
14779 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | ||||
14780 | _ACEOF | ||||
14781 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | ||||
14782 | " | ||||
14783 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | ||||
14784 | ac_have_decl=1 | ||||
14785 | else | ||||
14786 | ac_have_decl=0 | ||||
14787 | fi | ||||
14788 | |||||
14789 | cat >>confdefs.h <<_ACEOF | ||||
14790 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | ||||
14791 | _ACEOF | ||||
14792 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | ||||
14793 | " | ||||
14794 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | ||||
14795 | ac_have_decl=1 | ||||
14796 | else | ||||
14797 | ac_have_decl=0 | ||||
14798 | fi | ||||
14799 | |||||
14800 | cat >>confdefs.h <<_ACEOF | ||||
14801 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | ||||
14802 | _ACEOF | ||||
14803 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | ||||
14804 | " | ||||
14805 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | ||||
14806 | ac_have_decl=1 | ||||
14807 | else | ||||
14808 | ac_have_decl=0 | ||||
14809 | fi | ||||
14810 | |||||
14811 | cat >>confdefs.h <<_ACEOF | ||||
14812 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | ||||
14813 | _ACEOF | ||||
Michael Felt | c5ae169 | 2017-12-19 12:58:49 | [diff] [blame] | 14814 | ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> |
14815 | " | ||||
14816 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : | ||||
14817 | ac_have_decl=1 | ||||
14818 | else | ||||
14819 | ac_have_decl=0 | ||||
14820 | fi | ||||
14821 | |||||
14822 | cat >>confdefs.h <<_ACEOF | ||||
14823 | #define HAVE_DECL_RTLD_MEMBER $ac_have_decl | ||||
14824 | _ACEOF | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 06:44:44 | [diff] [blame] | 14825 | |
14826 | |||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14827 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
14829 | $as_echo_n "checking digit size for Python's longs... " >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14830 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14831 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14832 | enableval=$enable_big_digits; case $enable_big_digits in |
14833 | yes) | ||||
14834 | enable_big_digits=30 ;; | ||||
14835 | no) | ||||
14836 | enable_big_digits=15 ;; | ||||
14837 | 15|30) | ||||
14838 | ;; | ||||
14839 | *) | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14840 | as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14841 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
14843 | $as_echo "$enable_big_digits" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14844 | |
14845 | cat >>confdefs.h <<_ACEOF | ||||
14846 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | ||||
14847 | _ACEOF | ||||
14848 | |||||
14849 | |||||
14850 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
14852 | $as_echo "no value specified" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14853 | fi |
14854 | |||||
14855 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14856 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14857 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14858 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14859 | |
14860 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14861 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14862 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 14863 | wchar_h="yes" |
14864 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14866 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14867 | |
14868 | fi | ||||
14869 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14871 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14872 | # determine wchar_t size |
14873 | if test "$wchar_h" = yes | ||||
14874 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14875 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14876 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
14877 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
14878 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
14880 | $as_echo_n "checking size of wchar_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14881 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14882 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14883 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14884 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
14885 | "; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14887 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14888 | if test "$ac_cv_type_wchar_t" = yes; then |
14889 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
14890 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14891 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14892 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14893 | else |
14894 | ac_cv_sizeof_wchar_t=0 | ||||
14895 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14896 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14898 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
14900 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14901 | |
14902 | |||||
14903 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14904 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14905 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14906 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14907 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14908 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14909 | fi |
14910 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
14912 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14913 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14915 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14916 | |
14917 | #include <tcl.h> | ||||
14918 | #if TCL_UTF_MAX != 6 | ||||
14919 | # error "NOT UCS4_TCL" | ||||
14920 | #endif | ||||
14921 | int | ||||
14922 | main () | ||||
14923 | { | ||||
14924 | |||||
14925 | ; | ||||
14926 | return 0; | ||||
14927 | } | ||||
14928 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14929 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14930 | |
14931 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14932 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14933 | |
14934 | have_ucs4_tcl=yes | ||||
14935 | |||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14936 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
14939 | $as_echo "$have_ucs4_tcl" >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14940 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14941 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14942 | if test "$wchar_h" = yes |
14943 | then | ||||
14944 | # check whether wchar_t is signed or not | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
14946 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14947 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14948 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14949 | else |
14950 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14951 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14952 | ac_cv_wchar_t_signed=yes |
14953 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14955 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14956 | |
14957 | #include <wchar.h> | ||||
14958 | int main() | ||||
14959 | { | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 14960 | /* Success: exit code 0 */ |
Miss Islington (bot) | 9feda9f | 2020-12-13 22:01:59 | [diff] [blame] | 14961 | return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14962 | } |
14963 | |||||
14964 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14965 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14966 | ac_cv_wchar_t_signed=yes |
14967 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14968 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14969 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14971 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14972 | fi |
14973 | |||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14974 | fi |
14975 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
14977 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14978 | fi |
14979 | |||||
Michael Osipov | 3738fad | 2018-08-24 16:17:19 | [diff] [blame] | 14980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
14981 | $as_echo_n "checking whether wchar_t is usable... " >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 14982 | # wchar_t is only usable if it maps to an unsigned type |
Martin v. Löwis | d63a3b8 | 2011-09-28 05:41:54 | [diff] [blame] | 14983 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 | [diff] [blame] | 14984 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 14985 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14986 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14987 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14988 | |
Michael Osipov | 3738fad | 2018-08-24 16:17:19 | [diff] [blame] | 14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14990 | $as_echo "yes" >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 14991 | else |
Michael Osipov | 3738fad | 2018-08-24 16:17:19 | [diff] [blame] | 14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14993 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14994 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14995 | |
14996 | # check for endianness | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
14998 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14999 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15000 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15001 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15002 | ac_cv_c_bigendian=unknown |
15003 | # See if we're dealing with a universal compiler. | ||||
15004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15005 | /* end confdefs.h. */ | ||||
15006 | #ifndef __APPLE_CC__ | ||||
15007 | not a universal capable compiler | ||||
15008 | #endif | ||||
15009 | typedef int dummy; | ||||
15010 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15011 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15012 | if ac_fn_c_try_compile "$LINENO"; then : |
15013 | |||||
15014 | # Check for potential -arch flags. It is not universal unless | ||||
15015 | # there are at least two -arch flags with different values. | ||||
15016 | ac_arch= | ||||
15017 | ac_prev= | ||||
15018 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||||
15019 | if test -n "$ac_prev"; then | ||||
15020 | case $ac_word in | ||||
15021 | i?86 | x86_64 | ppc | ppc64) | ||||
15022 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||||
15023 | ac_arch=$ac_word | ||||
15024 | else | ||||
15025 | ac_cv_c_bigendian=universal | ||||
15026 | break | ||||
15027 | fi | ||||
15028 | ;; | ||||
15029 | esac | ||||
15030 | ac_prev= | ||||
15031 | elif test "x$ac_word" = "x-arch"; then | ||||
15032 | ac_prev=arch | ||||
15033 | fi | ||||
15034 | done | ||||
15035 | fi | ||||
15036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15037 | if test $ac_cv_c_bigendian = unknown; then | ||||
15038 | # See if sys/param.h defines the BYTE_ORDER macro. | ||||
15039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15040 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15041 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15042 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15044 | int |
15045 | main () | ||||
15046 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15047 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
15048 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||||
15049 | && LITTLE_ENDIAN) | ||||
15050 | bogus endian macros | ||||
15051 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15052 | |
15053 | ; | ||||
15054 | return 0; | ||||
15055 | } | ||||
15056 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15057 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15058 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15060 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15061 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15062 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15064 | int |
15065 | main () | ||||
15066 | { | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15067 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15068 | not big endian |
15069 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15070 | |
15071 | ; | ||||
15072 | return 0; | ||||
15073 | } | ||||
15074 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15075 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15076 | ac_cv_c_bigendian=yes |
15077 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15078 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15079 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15081 | fi |
15082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15083 | fi | ||||
15084 | if test $ac_cv_c_bigendian = unknown; then | ||||
15085 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||||
15086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15087 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15088 | #include <limits.h> |
15089 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15090 | int |
15091 | main () | ||||
15092 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15093 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15094 | bogus endian macros | ||||
15095 | #endif | ||||
15096 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15097 | ; |
15098 | return 0; | ||||
15099 | } | ||||
15100 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15101 | if ac_fn_c_try_compile "$LINENO"; then : |
15102 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||||
15103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15104 | /* end confdefs.h. */ | ||||
15105 | #include <limits.h> | ||||
15106 | |||||
15107 | int | ||||
15108 | main () | ||||
15109 | { | ||||
15110 | #ifndef _BIG_ENDIAN | ||||
15111 | not big endian | ||||
15112 | #endif | ||||
15113 | |||||
15114 | ; | ||||
15115 | return 0; | ||||
15116 | } | ||||
15117 | _ACEOF | ||||
15118 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15119 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 15120 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15121 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15122 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15124 | fi | ||||
15125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15126 | fi | ||||
15127 | if test $ac_cv_c_bigendian = unknown; then | ||||
15128 | # Compile a test program. | ||||
15129 | if test "$cross_compiling" = yes; then : | ||||
15130 | # Try to guess by grepping values from an object file. | ||||
15131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15132 | /* end confdefs.h. */ | ||||
15133 | short int ascii_mm[] = | ||||
15134 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||||
15135 | short int ascii_ii[] = | ||||
15136 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||||
15137 | int use_ascii (int i) { | ||||
15138 | return ascii_mm[i] + ascii_ii[i]; | ||||
15139 | } | ||||
15140 | short int ebcdic_ii[] = | ||||
15141 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||||
15142 | short int ebcdic_mm[] = | ||||
15143 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||||
15144 | int use_ebcdic (int i) { | ||||
15145 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||||
15146 | } | ||||
15147 | extern int foo; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15148 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15149 | int |
15150 | main () | ||||
15151 | { | ||||
15152 | return use_ascii (foo) == use_ebcdic (foo); | ||||
15153 | ; | ||||
15154 | return 0; | ||||
15155 | } | ||||
15156 | _ACEOF | ||||
15157 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
15158 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||||
15159 | ac_cv_c_bigendian=yes | ||||
15160 | fi | ||||
15161 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||||
15162 | if test "$ac_cv_c_bigendian" = unknown; then | ||||
15163 | ac_cv_c_bigendian=no | ||||
15164 | else | ||||
15165 | # finding both strings is unlikely to happen, but who knows? | ||||
15166 | ac_cv_c_bigendian=unknown | ||||
15167 | fi | ||||
15168 | fi | ||||
15169 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15171 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15173 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15174 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15175 | int |
15176 | main () | ||||
15177 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15178 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15179 | /* Are we little or big endian? From Harbison&Steele. */ |
15180 | union | ||||
15181 | { | ||||
15182 | long int l; | ||||
15183 | char c[sizeof (long int)]; | ||||
15184 | } u; | ||||
15185 | u.l = 1; | ||||
15186 | return u.c[sizeof (long int) - 1] == 1; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15187 | |
15188 | ; | ||||
15189 | return 0; | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15190 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15191 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15192 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15193 | ac_cv_c_bigendian=no |
15194 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15195 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15196 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15197 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15198 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15199 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15200 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15201 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15202 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15204 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||||
15205 | case $ac_cv_c_bigendian in #( | ||||
15206 | yes) | ||||
15207 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||||
15208 | ;; #( | ||||
15209 | no) | ||||
15210 | ;; #( | ||||
15211 | universal) | ||||
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 15212 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15213 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 15214 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15215 | ;; #( |
15216 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15217 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15218 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15219 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15220 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15221 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15222 | # ABI version string for Python extension modules. This appears between the |
15223 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated | ||||
15224 | # from the following attributes which affect the ABI of this Python build (in | ||||
15225 | # this order): | ||||
15226 | # | ||||
15227 | # * The Python implementation (always 'cpython-' for us) | ||||
15228 | # * The major and minor version numbers | ||||
15229 | # * --with-pydebug (adds a 'd') | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15230 | # |
15231 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | ||||
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 15232 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
15233 | # libraries would be named 'foo.cpython-32dmu.so'. | ||||
Victor Stinner | 6c44fde | 2019-04-24 14:10:09 | [diff] [blame] | 15234 | # |
15235 | # In Python 3.2 and older, --with-wide-unicode added a 'u' flag. | ||||
15236 | # In Python 3.7 and older, --with-pymalloc added a 'm' flag. | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15237 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
15239 | $as_echo_n "checking ABIFLAGS... " >&6; } | ||||
15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | ||||
15241 | $as_echo "$ABIFLAGS" >&6; } | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
15243 | $as_echo_n "checking SOABI... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 15244 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
15246 | $as_echo "$SOABI" >&6; } | ||||
15247 | |||||
Victor Stinner | 6d13e5b | 2019-04-26 16:56:19 | [diff] [blame] | 15248 | # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
15249 | if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then | ||||
Victor Stinner | 5422e3c | 2019-04-25 23:40:00 | [diff] [blame] | 15250 | # Similar to SOABI but remove "d" flag from ABIFLAGS |
15251 | |||||
15252 | ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | ||||
15253 | |||||
15254 | cat >>confdefs.h <<_ACEOF | ||||
15255 | #define ALT_SOABI "${ALT_SOABI}" | ||||
15256 | _ACEOF | ||||
15257 | |||||
15258 | fi | ||||
15259 | |||||
Christian Heimes | e516290 | 2021-03-27 21:47:11 | [diff] [blame] | 15260 | |
Miss Islington (bot) | b01091a | 2020-12-20 03:17:42 | [diff] [blame] | 15261 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 15262 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 15263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
15264 | $as_echo_n "checking LDVERSION... " >&6; } | ||||
15265 | LDVERSION='$(VERSION)$(ABIFLAGS)' | ||||
15266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | ||||
15267 | $as_echo "$LDVERSION" >&6; } | ||||
15268 | |||||
E. M. Bray | c994c8f | 2019-05-24 15:33:47 | [diff] [blame] | 15269 | # On Android and Cygwin the shared libraries must be linked with libpython. |
xdegaye | 254b309 | 2019-04-29 07:27:40 | [diff] [blame] | 15270 | |
E. M. Bray | b1fc417 | 2019-05-24 16:39:39 | [diff] [blame] | 15271 | if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then |
xdegaye | 254b309 | 2019-04-29 07:27:40 | [diff] [blame] | 15272 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" |
E. M. Bray | b1fc417 | 2019-05-24 16:39:39 | [diff] [blame] | 15273 | else |
15274 | LIBPYTHON='' | ||||
xdegaye | 254b309 | 2019-04-29 07:27:40 | [diff] [blame] | 15275 | fi |
15276 | |||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 15277 | |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 15278 | if test x$PLATFORM_TRIPLET = x; then |
15279 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | ||||
15280 | else | ||||
15281 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||||
15282 | fi | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 15283 | |
15284 | |||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15285 | # Check whether right shifting a negative integer extends the sign bit |
15286 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
15288 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15289 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15290 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15292 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15293 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 | [diff] [blame] | 15294 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15295 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15297 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15298 | |
15299 | int main() | ||||
15300 | { | ||||
Miss Islington (bot) | 9feda9f | 2020-12-13 22:01:59 | [diff] [blame] | 15301 | return (((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15302 | } |
15303 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15304 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15305 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15306 | ac_cv_rshift_extends_sign=yes |
15307 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15308 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15309 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15311 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15312 | fi |
15313 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15314 | fi |
15315 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
15317 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15318 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15319 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15320 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15321 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15322 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15323 | fi |
15324 | |||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15325 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
15327 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15328 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15329 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15331 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15333 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15334 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15335 | int |
15336 | main () | ||||
15337 | { | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15338 | |
15339 | FILE *f = fopen("/dev/null", "r"); | ||||
15340 | flockfile(f); | ||||
15341 | getc_unlocked(f); | ||||
15342 | funlockfile(f); | ||||
15343 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15344 | ; |
15345 | return 0; | ||||
15346 | } | ||||
15347 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15348 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15349 | ac_cv_have_getc_unlocked=yes |
15350 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15351 | ac_cv_have_getc_unlocked=no |
15352 | fi | ||||
15353 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15354 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15355 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15356 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
15358 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15359 | if test "$ac_cv_have_getc_unlocked" = yes |
15360 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15361 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15362 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15363 | |
15364 | fi | ||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15365 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15366 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 | [diff] [blame] | 15367 | # save the value of LIBS so we don't actually link Python with readline |
15368 | LIBS_no_readline=$LIBS | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15369 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15370 | # On some systems we need to link readline to a termcap compatible |
15371 | # library. NOTE: Keep the precedence of listed libraries synchronised | ||||
15372 | # with setup.py. | ||||
15373 | py_cv_lib_readline=no | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
15375 | $as_echo_n "checking how to link readline libs... " >&6; } | ||||
doko@ubuntu.com | f2967c7 | 2012-06-30 15:32:23 | [diff] [blame] | 15376 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15377 | if test -z "$py_libtermcap"; then |
15378 | READLINE_LIBS="-lreadline" | ||||
15379 | else | ||||
15380 | READLINE_LIBS="-lreadline -l$py_libtermcap" | ||||
15381 | fi | ||||
15382 | LIBS="$READLINE_LIBS $LIBS_no_readline" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15384 | /* end confdefs.h. */ |
15385 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15386 | /* Override any GCC internal prototype to avoid an error. |
15387 | Use char because int might match the return type of a GCC | ||||
15388 | builtin and then its argument prototype would still apply. */ | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15389 | #ifdef __cplusplus |
15390 | extern "C" | ||||
15391 | #endif | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15392 | char readline (); |
15393 | int | ||||
15394 | main () | ||||
15395 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15396 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15397 | ; |
15398 | return 0; | ||||
15399 | } | ||||
15400 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15401 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15402 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15403 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15404 | rm -f core conftest.err conftest.$ac_objext \ |
15405 | conftest$ac_exeext conftest.$ac_ext | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15406 | if test $py_cv_lib_readline = yes; then |
15407 | break | ||||
15408 | fi | ||||
15409 | done | ||||
15410 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | ||||
15411 | #AC_SUBST([READLINE_LIBS]) | ||||
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 | [diff] [blame] | 15412 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
15414 | $as_echo "none" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15415 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
15417 | $as_echo "$READLINE_LIBS" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15419 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15420 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15421 | fi |
15422 | |||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15423 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15425 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15426 | #include <readline/readline.h> |
15427 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15428 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15429 | have_readline=yes |
15430 | else | ||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15431 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 15432 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15433 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15434 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15435 | if test $have_readline = yes |
15436 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15438 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15439 | #include <readline/readline.h> |
15440 | |||||
15441 | _ACEOF | ||||
15442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15443 | $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15444 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15445 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15446 | |
15447 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15448 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15449 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15451 | /* end confdefs.h. */ |
15452 | #include <readline/readline.h> | ||||
15453 | |||||
15454 | _ACEOF | ||||
15455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15456 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15457 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15458 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15459 | |
15460 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15461 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15462 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15463 | fi |
15464 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15465 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
15467 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15468 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15469 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15471 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15472 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15474 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15475 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15476 | /* Override any GCC internal prototype to avoid an error. |
15477 | Use char because int might match the return type of a GCC | ||||
15478 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15479 | #ifdef __cplusplus |
15480 | extern "C" | ||||
15481 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15482 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15483 | int |
15484 | main () | ||||
15485 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15486 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15487 | ; |
15488 | return 0; | ||||
15489 | } | ||||
15490 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15491 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15492 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15493 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15494 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15495 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15496 | rm -f core conftest.err conftest.$ac_objext \ |
15497 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15498 | LIBS=$ac_check_lib_save_LIBS |
15499 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
15501 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15502 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15503 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15504 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15505 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15506 | fi |
15507 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15508 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15509 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
15511 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15512 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15513 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15514 | else |
15515 | ac_check_lib_save_LIBS=$LIBS | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15516 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15518 | /* end confdefs.h. */ |
15519 | |||||
15520 | /* Override any GCC internal prototype to avoid an error. | ||||
15521 | Use char because int might match the return type of a GCC | ||||
15522 | builtin and then its argument prototype would still apply. */ | ||||
15523 | #ifdef __cplusplus | ||||
15524 | extern "C" | ||||
15525 | #endif | ||||
15526 | char rl_completion_display_matches_hook (); | ||||
15527 | int | ||||
15528 | main () | ||||
15529 | { | ||||
15530 | return rl_completion_display_matches_hook (); | ||||
15531 | ; | ||||
15532 | return 0; | ||||
15533 | } | ||||
15534 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15535 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15536 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
15537 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15538 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15539 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15540 | rm -f core conftest.err conftest.$ac_objext \ |
15541 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15542 | LIBS=$ac_check_lib_save_LIBS |
15543 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
15545 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15546 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15547 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15548 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15549 | |
15550 | fi | ||||
15551 | |||||
15552 | |||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 | [diff] [blame] | 15553 | # also in 4.0, but not in editline |
15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | ||||
15555 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | ||||
15556 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | ||||
15557 | $as_echo_n "(cached) " >&6 | ||||
15558 | else | ||||
15559 | ac_check_lib_save_LIBS=$LIBS | ||||
15560 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15562 | /* end confdefs.h. */ | ||||
15563 | |||||
15564 | /* Override any GCC internal prototype to avoid an error. | ||||
15565 | Use char because int might match the return type of a GCC | ||||
15566 | builtin and then its argument prototype would still apply. */ | ||||
15567 | #ifdef __cplusplus | ||||
15568 | extern "C" | ||||
15569 | #endif | ||||
15570 | char rl_resize_terminal (); | ||||
15571 | int | ||||
15572 | main () | ||||
15573 | { | ||||
15574 | return rl_resize_terminal (); | ||||
15575 | ; | ||||
15576 | return 0; | ||||
15577 | } | ||||
15578 | _ACEOF | ||||
15579 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15580 | ac_cv_lib_readline_rl_resize_terminal=yes | ||||
15581 | else | ||||
15582 | ac_cv_lib_readline_rl_resize_terminal=no | ||||
15583 | fi | ||||
15584 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15585 | conftest$ac_exeext conftest.$ac_ext | ||||
15586 | LIBS=$ac_check_lib_save_LIBS | ||||
15587 | fi | ||||
15588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | ||||
15589 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | ||||
15590 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | ||||
15591 | |||||
15592 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | ||||
15593 | |||||
15594 | fi | ||||
15595 | |||||
15596 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15597 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
15599 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15600 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15601 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15603 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15604 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15607 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15608 | /* Override any GCC internal prototype to avoid an error. |
15609 | Use char because int might match the return type of a GCC | ||||
15610 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15611 | #ifdef __cplusplus |
15612 | extern "C" | ||||
15613 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15614 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15615 | int |
15616 | main () | ||||
15617 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15618 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15619 | ; |
15620 | return 0; | ||||
15621 | } | ||||
15622 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15623 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15624 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15625 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15626 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15627 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15628 | rm -f core conftest.err conftest.$ac_objext \ |
15629 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15630 | LIBS=$ac_check_lib_save_LIBS |
15631 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
15633 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15634 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15635 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15636 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15637 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15638 | fi |
15639 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 15640 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15641 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15643 | /* end confdefs.h. */ |
15644 | #include <readline/readline.h> | ||||
15645 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15646 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15647 | have_readline=yes |
15648 | else | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15649 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 15650 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15651 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15652 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15653 | if test $have_readline = yes |
15654 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15656 | /* end confdefs.h. */ |
15657 | #include <readline/readline.h> | ||||
15658 | |||||
15659 | _ACEOF | ||||
15660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15661 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15663 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15664 | |
15665 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15666 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15667 | |
15668 | fi | ||||
15669 | |||||
Benjamin Peterson | d1e22ba | 2014-11-26 20:35:12 | [diff] [blame] | 15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
15671 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | ||||
15672 | if ${ac_cv_lib_readline_append_history+:} false; then : | ||||
15673 | $as_echo_n "(cached) " >&6 | ||||
15674 | else | ||||
15675 | ac_check_lib_save_LIBS=$LIBS | ||||
15676 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15678 | /* end confdefs.h. */ | ||||
15679 | |||||
15680 | /* Override any GCC internal prototype to avoid an error. | ||||
15681 | Use char because int might match the return type of a GCC | ||||
15682 | builtin and then its argument prototype would still apply. */ | ||||
15683 | #ifdef __cplusplus | ||||
15684 | extern "C" | ||||
15685 | #endif | ||||
15686 | char append_history (); | ||||
15687 | int | ||||
15688 | main () | ||||
15689 | { | ||||
15690 | return append_history (); | ||||
15691 | ; | ||||
15692 | return 0; | ||||
15693 | } | ||||
15694 | _ACEOF | ||||
15695 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15696 | ac_cv_lib_readline_append_history=yes | ||||
15697 | else | ||||
15698 | ac_cv_lib_readline_append_history=no | ||||
15699 | fi | ||||
15700 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15701 | conftest$ac_exeext conftest.$ac_ext | ||||
15702 | LIBS=$ac_check_lib_save_LIBS | ||||
15703 | fi | ||||
15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | ||||
15705 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | ||||
15706 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | ||||
15707 | |||||
15708 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | ||||
15709 | |||||
15710 | fi | ||||
15711 | |||||
15712 | |||||
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 | [diff] [blame] | 15713 | # End of readline checks: restore LIBS |
15714 | LIBS=$LIBS_no_readline | ||||
15715 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
15717 | $as_echo_n "checking for broken nice()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15718 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15719 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15722 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 | [diff] [blame] | 15723 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15724 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15726 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15727 | |
Benjamin Peterson | b84df2d | 2019-02-26 05:37:59 | [diff] [blame] | 15728 | #include <stdlib.h> |
15729 | #include <unistd.h> | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15730 | int main() |
15731 | { | ||||
15732 | int val1 = nice(1); | ||||
15733 | if (val1 != -1 && val1 == nice(2)) | ||||
15734 | exit(0); | ||||
15735 | exit(1); | ||||
15736 | } | ||||
15737 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15738 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15739 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15740 | ac_cv_broken_nice=yes |
15741 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15742 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15743 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15745 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15746 | fi |
15747 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15748 | fi |
15749 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
15751 | $as_echo "$ac_cv_broken_nice" >&6; } | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15752 | if test "$ac_cv_broken_nice" = yes |
15753 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15755 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15756 | |
15757 | fi | ||||
15758 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
15760 | $as_echo_n "checking for broken poll()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15761 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15762 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15763 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15764 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15765 | ac_cv_broken_poll=no |
15766 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15768 | /* end confdefs.h. */ |
15769 | |||||
15770 | #include <poll.h> | ||||
Miss Islington (bot) | 9feda9f | 2020-12-13 22:01:59 | [diff] [blame] | 15771 | #include <unistd.h> |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15772 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15773 | int main() |
15774 | { | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15775 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15776 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15777 | |
15778 | close (42); | ||||
15779 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15780 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15781 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15782 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15783 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15784 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15785 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15786 | return 1; |
15787 | } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15788 | |
15789 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15790 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15791 | ac_cv_broken_poll=yes |
15792 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15793 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15794 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15796 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15797 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15798 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15799 | fi |
15800 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
15802 | $as_echo "$ac_cv_broken_poll" >&6; } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15803 | if test "$ac_cv_broken_poll" = yes |
15804 | then | ||||
15805 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15806 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15807 | |
15808 | fi | ||||
15809 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15810 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
15812 | $as_echo_n "checking for working tzset()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15813 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15814 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15815 | else |
15816 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15817 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15818 | ac_cv_working_tzset=no |
15819 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15821 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15822 | |
15823 | #include <stdlib.h> | ||||
15824 | #include <time.h> | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15825 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15826 | |
15827 | #if HAVE_TZNAME | ||||
15828 | extern char *tzname[]; | ||||
15829 | #endif | ||||
15830 | |||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15831 | int main() |
15832 | { | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15833 | /* Note that we need to ensure that not only does tzset(3) |
15834 | do 'something' with localtime, but it works as documented | ||||
15835 | in the library reference and as expected by the test suite. | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15836 | This includes making sure that tzname is set properly if |
15837 | tm->tm_zone does not exist since it is the alternative way | ||||
15838 | of getting timezone info. | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15839 | |
15840 | Red Hat 6.2 doesn't understand the southern hemisphere | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15841 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15842 | */ |
15843 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15844 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15845 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
15846 | |||||
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 | [diff] [blame] | 15847 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15848 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15849 | if (localtime(&groundhogday)->tm_hour != 0) |
15850 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15851 | #if HAVE_TZNAME |
15852 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ | ||||
15853 | if (strcmp(tzname[0], "UTC") || | ||||
15854 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | ||||
15855 | exit(1); | ||||
15856 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15857 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 | [diff] [blame] | 15858 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15859 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15860 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15861 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15862 | #if HAVE_TZNAME |
15863 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | ||||
15864 | exit(1); | ||||
15865 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15866 | |
15867 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | ||||
15868 | tzset(); | ||||
15869 | if (localtime(&groundhogday)->tm_hour != 11) | ||||
15870 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15871 | #if HAVE_TZNAME |
15872 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | ||||
15873 | exit(1); | ||||
15874 | #endif | ||||
15875 | |||||
15876 | #if HAVE_STRUCT_TM_TM_ZONE | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15877 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
15878 | exit(1); | ||||
15879 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | ||||
15880 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15881 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15882 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15883 | exit(0); |
15884 | } | ||||
15885 | |||||
15886 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15887 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15888 | ac_cv_working_tzset=yes |
15889 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15890 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15891 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15892 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15893 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15894 | fi |
15895 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15896 | fi |
15897 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
15899 | $as_echo "$ac_cv_working_tzset" >&6; } | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15900 | if test "$ac_cv_working_tzset" = yes |
15901 | then | ||||
15902 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15903 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15904 | |
15905 | fi | ||||
15906 | |||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15907 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
15909 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15910 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15911 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15912 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15914 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15915 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15916 | int |
15917 | main () | ||||
15918 | { | ||||
15919 | |||||
15920 | struct stat st; | ||||
15921 | st.st_mtim.tv_nsec = 1; | ||||
15922 | |||||
15923 | ; | ||||
15924 | return 0; | ||||
15925 | } | ||||
15926 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15927 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 | [diff] [blame] | 15928 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15929 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15930 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15931 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15933 | fi | ||||
15934 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
15936 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | ||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15937 | if test "$ac_cv_stat_tv_nsec" = yes |
15938 | then | ||||
15939 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15940 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15941 | |
15942 | fi | ||||
15943 | |||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15944 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
15946 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15947 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15948 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15949 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15951 | /* end confdefs.h. */ |
15952 | #include <sys/stat.h> | ||||
15953 | int | ||||
15954 | main () | ||||
15955 | { | ||||
15956 | |||||
15957 | struct stat st; | ||||
15958 | st.st_mtimespec.tv_nsec = 1; | ||||
15959 | |||||
15960 | ; | ||||
15961 | return 0; | ||||
15962 | } | ||||
15963 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15964 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15965 | ac_cv_stat_tv_nsec2=yes |
15966 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15967 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15968 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15970 | fi | ||||
15971 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
15973 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15974 | if test "$ac_cv_stat_tv_nsec2" = yes |
15975 | then | ||||
15976 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15977 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15978 | |
15979 | fi | ||||
15980 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 15981 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 01:06:42 | [diff] [blame] | 15982 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 15:04:14 | [diff] [blame] | 15983 | if test "$cross_compiling" = no; then |
15984 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||||
15985 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 15986 | |
15987 | for ac_header in curses.h ncurses.h | ||||
15988 | do : | ||||
15989 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
15990 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
15991 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
15992 | cat >>confdefs.h <<_ACEOF | ||||
15993 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
15994 | _ACEOF | ||||
15995 | |||||
15996 | fi | ||||
15997 | |||||
15998 | done | ||||
15999 | |||||
16000 | |||||
16001 | # On Solaris, term.h requires curses.h | ||||
16002 | for ac_header in term.h | ||||
16003 | do : | ||||
16004 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | ||||
16005 | #ifdef HAVE_CURSES_H | ||||
16006 | #include <curses.h> | ||||
16007 | #endif | ||||
16008 | |||||
16009 | " | ||||
16010 | if test "x$ac_cv_header_term_h" = xyes; then : | ||||
16011 | cat >>confdefs.h <<_ACEOF | ||||
16012 | #define HAVE_TERM_H 1 | ||||
16013 | _ACEOF | ||||
16014 | |||||
16015 | fi | ||||
16016 | |||||
16017 | done | ||||
16018 | |||||
16019 | |||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16020 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
16022 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16023 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16024 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16025 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 16027 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16028 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16029 | int |
16030 | main () | ||||
16031 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16032 | |
16033 | int rtn; | ||||
16034 | rtn = mvwdelch(0,0,0); | ||||
16035 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16036 | ; |
16037 | return 0; | ||||
16038 | } | ||||
16039 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16040 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16041 | ac_cv_mvwdelch_is_expression=yes |
16042 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16043 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16044 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16046 | fi | ||||
16047 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
16049 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16050 | |
16051 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||||
16052 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16053 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16054 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16055 | |
16056 | fi | ||||
16057 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 12:05:26 | [diff] [blame] | 16058 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
16059 | # structs since version 5.7. If the macro is defined as zero before including | ||||
16060 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | ||||
16061 | # configuration. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
16063 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16064 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16065 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16066 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 16068 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 12:05:26 | [diff] [blame] | 16069 | |
16070 | #define NCURSES_OPAQUE 0 | ||||
16071 | #include <curses.h> | ||||
16072 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16073 | int |
16074 | main () | ||||
16075 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16076 | |
16077 | WINDOW *w; | ||||
16078 | w->_flags = 0; | ||||
16079 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16080 | ; |
16081 | return 0; | ||||
16082 | } | ||||
16083 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16084 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16085 | ac_cv_window_has_flags=yes |
16086 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16087 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16090 | fi | ||||
16091 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
16093 | $as_echo "$ac_cv_window_has_flags" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16094 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16095 | |
16096 | if test "$ac_cv_window_has_flags" = yes | ||||
16097 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16098 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16099 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16100 | |
16101 | fi | ||||
16102 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 12:05:26 | [diff] [blame] | 16103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
16104 | $as_echo_n "checking for is_pad... " >&6; } | ||||
16105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16106 | /* end confdefs.h. */ | ||||
16107 | #include <curses.h> | ||||
16108 | int | ||||
16109 | main () | ||||
16110 | { | ||||
16111 | |||||
16112 | #ifndef is_pad | ||||
16113 | void *x=is_pad | ||||
16114 | #endif | ||||
16115 | |||||
16116 | ; | ||||
16117 | return 0; | ||||
16118 | } | ||||
16119 | _ACEOF | ||||
16120 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16121 | |||||
16122 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h | ||||
16123 | |||||
16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16125 | $as_echo "yes" >&6; } | ||||
16126 | else | ||||
16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16128 | $as_echo "no" >&6; } | ||||
16129 | |||||
16130 | fi | ||||
16131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16132 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
16134 | $as_echo_n "checking for is_term_resized... " >&6; } | ||||
16135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16136 | /* end confdefs.h. */ |
16137 | #include <curses.h> | ||||
16138 | int | ||||
16139 | main () | ||||
16140 | { | ||||
16141 | void *x=is_term_resized | ||||
16142 | ; | ||||
16143 | return 0; | ||||
16144 | } | ||||
16145 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16146 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16147 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16148 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16149 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16151 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16152 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16154 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16155 | |
16156 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16158 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
16160 | $as_echo_n "checking for resize_term... " >&6; } | ||||
16161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16162 | /* end confdefs.h. */ |
16163 | #include <curses.h> | ||||
16164 | int | ||||
16165 | main () | ||||
16166 | { | ||||
16167 | void *x=resize_term | ||||
16168 | ; | ||||
16169 | return 0; | ||||
16170 | } | ||||
16171 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16172 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16173 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16174 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16175 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16177 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16178 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16180 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16181 | |
16182 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16184 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
16186 | $as_echo_n "checking for resizeterm... " >&6; } | ||||
16187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16188 | /* end confdefs.h. */ |
16189 | #include <curses.h> | ||||
16190 | int | ||||
16191 | main () | ||||
16192 | { | ||||
16193 | void *x=resizeterm | ||||
16194 | ; | ||||
16195 | return 0; | ||||
16196 | } | ||||
16197 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16198 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16199 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16200 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16201 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16203 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16204 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16206 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16207 | |
16208 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 11:56:44 | [diff] [blame] | 16210 | |
16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 | ||||
16212 | $as_echo_n "checking for immedok... " >&6; } | ||||
16213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16214 | /* end confdefs.h. */ | ||||
16215 | #include <curses.h> | ||||
16216 | int | ||||
16217 | main () | ||||
16218 | { | ||||
16219 | |||||
16220 | #ifndef immedok | ||||
16221 | void *x=immedok | ||||
16222 | #endif | ||||
16223 | |||||
16224 | ; | ||||
16225 | return 0; | ||||
16226 | } | ||||
16227 | _ACEOF | ||||
16228 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16229 | |||||
16230 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h | ||||
16231 | |||||
16232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16233 | $as_echo "yes" >&6; } | ||||
16234 | else | ||||
16235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16236 | $as_echo "no" >&6; } | ||||
16237 | |||||
16238 | fi | ||||
16239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16240 | |||||
16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 | ||||
16242 | $as_echo_n "checking for syncok... " >&6; } | ||||
16243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16244 | /* end confdefs.h. */ | ||||
16245 | #include <curses.h> | ||||
16246 | int | ||||
16247 | main () | ||||
16248 | { | ||||
16249 | |||||
16250 | #ifndef syncok | ||||
16251 | void *x=syncok | ||||
16252 | #endif | ||||
16253 | |||||
16254 | ; | ||||
16255 | return 0; | ||||
16256 | } | ||||
16257 | _ACEOF | ||||
16258 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16259 | |||||
16260 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h | ||||
16261 | |||||
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16263 | $as_echo "yes" >&6; } | ||||
16264 | else | ||||
16265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16266 | $as_echo "no" >&6; } | ||||
16267 | |||||
16268 | fi | ||||
16269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16270 | |||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 12:34:20 | [diff] [blame] | 16271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
16272 | $as_echo_n "checking for wchgat... " >&6; } | ||||
16273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16274 | /* end confdefs.h. */ | ||||
16275 | #include <curses.h> | ||||
16276 | int | ||||
16277 | main () | ||||
16278 | { | ||||
16279 | |||||
16280 | #ifndef wchgat | ||||
16281 | void *x=wchgat | ||||
16282 | #endif | ||||
16283 | |||||
16284 | ; | ||||
16285 | return 0; | ||||
16286 | } | ||||
16287 | _ACEOF | ||||
16288 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16289 | |||||
16290 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h | ||||
16291 | |||||
16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16293 | $as_echo "yes" >&6; } | ||||
16294 | else | ||||
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16296 | $as_echo "no" >&6; } | ||||
16297 | |||||
16298 | fi | ||||
16299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16300 | |||||
Serhiy Storchaka | baac01e | 2017-10-31 11:56:44 | [diff] [blame] | 16301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
16302 | $as_echo_n "checking for filter... " >&6; } | ||||
16303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16304 | /* end confdefs.h. */ | ||||
16305 | #include <curses.h> | ||||
16306 | int | ||||
16307 | main () | ||||
16308 | { | ||||
16309 | |||||
16310 | #ifndef filter | ||||
16311 | void *x=filter | ||||
16312 | #endif | ||||
16313 | |||||
16314 | ; | ||||
16315 | return 0; | ||||
16316 | } | ||||
16317 | _ACEOF | ||||
16318 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16319 | |||||
16320 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h | ||||
16321 | |||||
16322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16323 | $as_echo "yes" >&6; } | ||||
16324 | else | ||||
16325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16326 | $as_echo "no" >&6; } | ||||
16327 | |||||
16328 | fi | ||||
16329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16330 | |||||
16331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 | ||||
16332 | $as_echo_n "checking for has_key... " >&6; } | ||||
16333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16334 | /* end confdefs.h. */ | ||||
16335 | #include <curses.h> | ||||
16336 | int | ||||
16337 | main () | ||||
16338 | { | ||||
16339 | |||||
16340 | #ifndef has_key | ||||
16341 | void *x=has_key | ||||
16342 | #endif | ||||
16343 | |||||
16344 | ; | ||||
16345 | return 0; | ||||
16346 | } | ||||
16347 | _ACEOF | ||||
16348 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16349 | |||||
16350 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h | ||||
16351 | |||||
16352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16353 | $as_echo "yes" >&6; } | ||||
16354 | else | ||||
16355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16356 | $as_echo "no" >&6; } | ||||
16357 | |||||
16358 | fi | ||||
16359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16360 | |||||
16361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 | ||||
16362 | $as_echo_n "checking for typeahead... " >&6; } | ||||
16363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16364 | /* end confdefs.h. */ | ||||
16365 | #include <curses.h> | ||||
16366 | int | ||||
16367 | main () | ||||
16368 | { | ||||
16369 | |||||
16370 | #ifndef typeahead | ||||
16371 | void *x=typeahead | ||||
16372 | #endif | ||||
16373 | |||||
16374 | ; | ||||
16375 | return 0; | ||||
16376 | } | ||||
16377 | _ACEOF | ||||
16378 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16379 | |||||
16380 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h | ||||
16381 | |||||
16382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16383 | $as_echo "yes" >&6; } | ||||
16384 | else | ||||
16385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16386 | $as_echo "no" >&6; } | ||||
16387 | |||||
16388 | fi | ||||
16389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16390 | |||||
16391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 | ||||
16392 | $as_echo_n "checking for use_env... " >&6; } | ||||
16393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16394 | /* end confdefs.h. */ | ||||
16395 | #include <curses.h> | ||||
16396 | int | ||||
16397 | main () | ||||
16398 | { | ||||
16399 | |||||
16400 | #ifndef use_env | ||||
16401 | void *x=use_env | ||||
16402 | #endif | ||||
16403 | |||||
16404 | ; | ||||
16405 | return 0; | ||||
16406 | } | ||||
16407 | _ACEOF | ||||
16408 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16409 | |||||
16410 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h | ||||
16411 | |||||
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16413 | $as_echo "yes" >&6; } | ||||
16414 | else | ||||
16415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16416 | $as_echo "no" >&6; } | ||||
16417 | |||||
16418 | fi | ||||
16419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
doko@ubuntu.com | 9dc823d | 2012-07-07 01:06:42 | [diff] [blame] | 16420 | # last curses configure check |
16421 | CPPFLAGS=$ac_save_cppflags | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16422 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
16424 | $as_echo "$as_me: checking for device files" >&6;} | ||||
16425 | |||||
16426 | if test "x$cross_compiling" = xyes; then | ||||
16427 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | ||||
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | ||||
16429 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16431 | $as_echo "not set" >&6; } | ||||
16432 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16433 | fi | ||||
16434 | if test "${ac_cv_file__dev_ptc+set}" != set; then | ||||
16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | ||||
16436 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16438 | $as_echo "not set" >&6; } | ||||
16439 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16440 | fi | ||||
16441 | fi | ||||
16442 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16444 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16445 | if ${ac_cv_file__dev_ptmx+:} false; then : |
16446 | $as_echo_n "(cached) " >&6 | ||||
16447 | else | ||||
16448 | test "$cross_compiling" = yes && | ||||
16449 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16450 | if test -r "/dev/ptmx"; then | ||||
16451 | ac_cv_file__dev_ptmx=yes | ||||
16452 | else | ||||
16453 | ac_cv_file__dev_ptmx=no | ||||
16454 | fi | ||||
16455 | fi | ||||
16456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | ||||
16457 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | ||||
16458 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16459 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16460 | fi |
16461 | |||||
16462 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | ||||
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16463 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16464 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16465 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16466 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16468 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16469 | if ${ac_cv_file__dev_ptc+:} false; then : |
16470 | $as_echo_n "(cached) " >&6 | ||||
16471 | else | ||||
16472 | test "$cross_compiling" = yes && | ||||
16473 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16474 | if test -r "/dev/ptc"; then | ||||
16475 | ac_cv_file__dev_ptc=yes | ||||
16476 | else | ||||
16477 | ac_cv_file__dev_ptc=no | ||||
16478 | fi | ||||
16479 | fi | ||||
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | ||||
16481 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | ||||
16482 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16483 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16484 | fi |
16485 | |||||
16486 | if test "x$ac_cv_file__dev_ptc" = xyes; then | ||||
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16487 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16488 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16489 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16490 | fi |
16491 | |||||
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 | [diff] [blame] | 16492 | if test $ac_sys_system = Darwin |
16493 | then | ||||
16494 | LIBS="$LIBS -framework CoreFoundation" | ||||
16495 | fi | ||||
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 | [diff] [blame] | 16496 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
16498 | $as_echo_n "checking for %zd printf() format support... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16499 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16500 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16501 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16502 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 | [diff] [blame] | 16503 | ac_cv_have_size_t_format="cross -- assuming yes" |
16504 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16505 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16507 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16508 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16509 | #include <stdio.h> |
16510 | #include <stddef.h> | ||||
16511 | #include <string.h> | ||||
16512 | |||||
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 | [diff] [blame] | 16513 | #ifdef HAVE_SYS_TYPES_H |
16514 | #include <sys/types.h> | ||||
16515 | #endif | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16516 | |
16517 | #ifdef HAVE_SSIZE_T | ||||
16518 | typedef ssize_t Py_ssize_t; | ||||
16519 | #elif SIZEOF_VOID_P == SIZEOF_LONG | ||||
16520 | typedef long Py_ssize_t; | ||||
16521 | #else | ||||
16522 | typedef int Py_ssize_t; | ||||
16523 | #endif | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16524 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 | [diff] [blame] | 16525 | int main() |
16526 | { | ||||
16527 | char buffer[256]; | ||||
16528 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16529 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
16530 | return 1; | ||||
16531 | |||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16532 | if (strcmp(buffer, "123")) |
16533 | return 1; | ||||
16534 | |||||
16535 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | ||||
16536 | return 1; | ||||
16537 | |||||
16538 | if (strcmp(buffer, "-123")) | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16539 | return 1; |
16540 | |||||
16541 | return 0; | ||||
16542 | } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16543 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16544 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16545 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16546 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 16547 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16548 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 16549 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16550 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16551 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 16552 | fi |
16553 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16554 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
16556 | $as_echo "$ac_cv_have_size_t_format" >&6; } | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 | [diff] [blame] | 16557 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16558 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16559 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16560 | |
16561 | fi | ||||
16562 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16563 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 | [diff] [blame] | 16564 | #ifdef HAVE_SYS_TYPES_H |
16565 | #include <sys/types.h> | ||||
16566 | #endif | ||||
16567 | #ifdef HAVE_SYS_SOCKET_H | ||||
16568 | #include <sys/socket.h> | ||||
16569 | #endif | ||||
16570 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16571 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16572 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 | [diff] [blame] | 16573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16574 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 | [diff] [blame] | 16575 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16576 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 | [diff] [blame] | 16577 | |
16578 | fi | ||||
16579 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16580 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
16582 | $as_echo_n "checking for broken mbstowcs... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16583 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16584 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16585 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16586 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16587 | ac_cv_broken_mbstowcs=no |
16588 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16590 | /* end confdefs.h. */ |
16591 | |||||
Stefan Krah | 19c2139 | 2012-11-22 22:47:32 | [diff] [blame] | 16592 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16593 | #include<stdlib.h> |
16594 | int main() { | ||||
16595 | size_t len = -1; | ||||
16596 | const char *str = "text"; | ||||
16597 | len = mbstowcs(NULL, str, 0); | ||||
16598 | return (len != 4); | ||||
16599 | } | ||||
16600 | |||||
16601 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16602 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16603 | ac_cv_broken_mbstowcs=no |
16604 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16605 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16606 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16607 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16608 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16609 | fi |
16610 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16611 | fi |
16612 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
16614 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16615 | if test "$ac_cv_broken_mbstowcs" = yes |
16616 | then | ||||
16617 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16618 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16619 | |
16620 | fi | ||||
16621 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16622 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
16624 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16625 | |
16626 | # Check whether --with-computed-gotos was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16627 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16628 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16629 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16630 | then |
16631 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16632 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16633 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16635 | $as_echo "yes" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16636 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16637 | if test "$withval" = no |
16638 | then | ||||
16639 | |||||
16640 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | ||||
16641 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16643 | $as_echo "no" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16644 | fi |
16645 | |||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16646 | else |
16647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
16648 | $as_echo "no value specified" >&6; } | ||||
16649 | fi | ||||
16650 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16651 | |
Matthias Klose | b17289e | 2012-03-15 18:51:34 | [diff] [blame] | 16652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
16653 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | ||||
16654 | if ${ac_cv_computed_gotos+:} false; then : | ||||
16655 | $as_echo_n "(cached) " >&6 | ||||
16656 | else | ||||
16657 | if test "$cross_compiling" = yes; then : | ||||
16658 | if test "${with_computed_gotos+set}" = set; then | ||||
16659 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | ||||
16660 | else | ||||
16661 | ac_cv_computed_gotos=no | ||||
16662 | fi | ||||
16663 | else | ||||
16664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16665 | /* end confdefs.h. */ | ||||
16666 | |||||
16667 | int main(int argc, char **argv) | ||||
16668 | { | ||||
16669 | static void *targets[1] = { &&LABEL1 }; | ||||
16670 | goto LABEL2; | ||||
16671 | LABEL1: | ||||
16672 | return 0; | ||||
16673 | LABEL2: | ||||
16674 | goto *targets[0]; | ||||
16675 | return 1; | ||||
16676 | } | ||||
16677 | |||||
16678 | _ACEOF | ||||
16679 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16680 | ac_cv_computed_gotos=yes | ||||
16681 | else | ||||
16682 | ac_cv_computed_gotos=no | ||||
16683 | fi | ||||
16684 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16685 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16686 | fi | ||||
16687 | |||||
16688 | fi | ||||
16689 | |||||
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | ||||
16691 | $as_echo "$ac_cv_computed_gotos" >&6; } | ||||
16692 | case "$ac_cv_computed_gotos" in yes*) | ||||
16693 | |||||
16694 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | ||||
16695 | |||||
16696 | esac | ||||
16697 | |||||
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 | [diff] [blame] | 16698 | case $ac_sys_system in |
16699 | AIX*) | ||||
16700 | |||||
16701 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | ||||
16702 | ;; | ||||
16703 | esac | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16704 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16705 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 | [diff] [blame] | 16706 | |
16707 | |||||
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 | [diff] [blame] | 16708 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
16709 | do | ||||
16710 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | ||||
16711 | done | ||||
16712 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16713 | |
Victor Stinner | 21a74a9 | 2019-04-11 20:28:12 | [diff] [blame] | 16714 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
16716 | $as_echo_n "checking for build directories... " >&6; } | ||||
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 | [diff] [blame] | 16717 | for dir in $SRCDIRS; do |
16718 | if test ! -d $dir; then | ||||
16719 | mkdir $dir | ||||
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 | [diff] [blame] | 16720 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 | [diff] [blame] | 16721 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
16723 | $as_echo "done" >&6; } | ||||
Fred Drake | 036144d | 2000-10-26 17:09:35 | [diff] [blame] | 16724 | |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 16725 | # Availability of -O2: |
16726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | ||||
16727 | $as_echo_n "checking for -O2... " >&6; } | ||||
16728 | saved_cflags="$CFLAGS" | ||||
16729 | CFLAGS="-O2" | ||||
16730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16731 | /* end confdefs.h. */ | ||||
16732 | |||||
16733 | int | ||||
16734 | main () | ||||
16735 | { | ||||
16736 | |||||
16737 | |||||
16738 | ; | ||||
16739 | return 0; | ||||
16740 | } | ||||
16741 | _ACEOF | ||||
16742 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16743 | have_O2=yes | ||||
16744 | else | ||||
16745 | have_O2=no | ||||
16746 | fi | ||||
16747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | ||||
16749 | $as_echo "$have_O2" >&6; } | ||||
16750 | CFLAGS="$saved_cflags" | ||||
16751 | |||||
16752 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | ||||
16753 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | ||||
16754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | ||||
16755 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | ||||
16756 | saved_cflags="$CFLAGS" | ||||
16757 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | ||||
16758 | if test "$have_O2" = no; then | ||||
16759 | CFLAGS="" | ||||
16760 | fi | ||||
16761 | if test "$cross_compiling" = yes; then : | ||||
16762 | have_glibc_memmove_bug=undefined | ||||
16763 | else | ||||
16764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16765 | /* end confdefs.h. */ | ||||
16766 | |||||
16767 | #include <stdio.h> | ||||
16768 | #include <stdlib.h> | ||||
16769 | #include <string.h> | ||||
16770 | void foo(void *p, void *q) { memmove(p, q, 19); } | ||||
16771 | int main() { | ||||
16772 | char a[32] = "123456789000000000"; | ||||
16773 | foo(&a[9], a); | ||||
16774 | if (strcmp(a, "123456789123456789000000000") != 0) | ||||
16775 | return 1; | ||||
16776 | foo(a, &a[9]); | ||||
16777 | if (strcmp(a, "123456789000000000") != 0) | ||||
16778 | return 1; | ||||
16779 | return 0; | ||||
16780 | } | ||||
16781 | |||||
16782 | _ACEOF | ||||
16783 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16784 | have_glibc_memmove_bug=no | ||||
16785 | else | ||||
16786 | have_glibc_memmove_bug=yes | ||||
16787 | fi | ||||
16788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16789 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16790 | fi | ||||
16791 | |||||
16792 | CFLAGS="$saved_cflags" | ||||
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | ||||
16794 | $as_echo "$have_glibc_memmove_bug" >&6; } | ||||
16795 | if test "$have_glibc_memmove_bug" = yes; then | ||||
16796 | |||||
16797 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | ||||
16798 | |||||
16799 | fi | ||||
16800 | |||||
16801 | if test "$have_gcc_asm_for_x87" = yes; then | ||||
16802 | # Some versions of gcc miscompile inline asm: | ||||
16803 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | ||||
16804 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | ||||
16805 | case $CC in | ||||
16806 | *gcc*) | ||||
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | ||||
16808 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | ||||
16809 | saved_cflags="$CFLAGS" | ||||
16810 | CFLAGS="-O2" | ||||
16811 | if test "$cross_compiling" = yes; then : | ||||
16812 | have_ipa_pure_const_bug=undefined | ||||
16813 | else | ||||
16814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16815 | /* end confdefs.h. */ | ||||
16816 | |||||
16817 | __attribute__((noinline)) int | ||||
16818 | foo(int *p) { | ||||
16819 | int r; | ||||
16820 | asm ( "movl \$6, (%1)\n\t" | ||||
16821 | "xorl %0, %0\n\t" | ||||
16822 | : "=r" (r) : "r" (p) : "memory" | ||||
16823 | ); | ||||
16824 | return r; | ||||
16825 | } | ||||
16826 | int main() { | ||||
16827 | int p = 8; | ||||
16828 | if ((foo(&p) ? : p) != 6) | ||||
16829 | return 1; | ||||
16830 | return 0; | ||||
16831 | } | ||||
16832 | |||||
16833 | _ACEOF | ||||
16834 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16835 | have_ipa_pure_const_bug=no | ||||
16836 | else | ||||
16837 | have_ipa_pure_const_bug=yes | ||||
16838 | fi | ||||
16839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16840 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16841 | fi | ||||
16842 | |||||
16843 | CFLAGS="$saved_cflags" | ||||
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | ||||
16845 | $as_echo "$have_ipa_pure_const_bug" >&6; } | ||||
16846 | if test "$have_ipa_pure_const_bug" = yes; then | ||||
16847 | |||||
16848 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | ||||
16849 | |||||
16850 | fi | ||||
16851 | ;; | ||||
16852 | esac | ||||
16853 | fi | ||||
16854 | |||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16855 | # Check for stdatomic.h |
16856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | ||||
16857 | $as_echo_n "checking for stdatomic.h... " >&6; } | ||||
16858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16859 | /* end confdefs.h. */ | ||||
16860 | |||||
16861 | |||||
16862 | #include <stdatomic.h> | ||||
Miss Skeleton (bot) | dbcea39 | 2019-10-22 20:19:32 | [diff] [blame] | 16863 | atomic_int int_var; |
16864 | atomic_uintptr_t uintptr_var; | ||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16865 | int main() { |
Miss Skeleton (bot) | dbcea39 | 2019-10-22 20:19:32 | [diff] [blame] | 16866 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
16867 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); | ||||
16868 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); | ||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16869 | return 0; |
16870 | } | ||||
16871 | |||||
16872 | |||||
16873 | _ACEOF | ||||
16874 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16875 | have_stdatomic_h=yes | ||||
16876 | else | ||||
16877 | have_stdatomic_h=no | ||||
16878 | fi | ||||
16879 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16880 | conftest$ac_exeext conftest.$ac_ext | ||||
16881 | |||||
16882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | ||||
16883 | $as_echo "$have_stdatomic_h" >&6; } | ||||
16884 | |||||
16885 | if test "$have_stdatomic_h" = yes; then | ||||
16886 | |||||
16887 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | ||||
16888 | |||||
16889 | fi | ||||
16890 | |||||
16891 | # Check for GCC >= 4.7 __atomic builtins | ||||
16892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | ||||
16893 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | ||||
16894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16895 | /* end confdefs.h. */ | ||||
16896 | |||||
16897 | |||||
16898 | volatile int val = 1; | ||||
16899 | int main() { | ||||
16900 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | ||||
16901 | return 0; | ||||
16902 | } | ||||
16903 | |||||
16904 | |||||
16905 | _ACEOF | ||||
16906 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16907 | have_builtin_atomic=yes | ||||
16908 | else | ||||
16909 | have_builtin_atomic=no | ||||
16910 | fi | ||||
16911 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16912 | conftest$ac_exeext conftest.$ac_ext | ||||
16913 | |||||
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | ||||
16915 | $as_echo "$have_builtin_atomic" >&6; } | ||||
16916 | |||||
16917 | if test "$have_builtin_atomic" = yes; then | ||||
16918 | |||||
16919 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | ||||
16920 | |||||
16921 | fi | ||||
16922 | |||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 16923 | # ensurepip option |
16924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | ||||
16925 | $as_echo_n "checking for ensurepip... " >&6; } | ||||
16926 | |||||
16927 | # Check whether --with-ensurepip was given. | ||||
16928 | if test "${with_ensurepip+set}" = set; then : | ||||
16929 | withval=$with_ensurepip; | ||||
16930 | else | ||||
16931 | with_ensurepip=upgrade | ||||
16932 | fi | ||||
16933 | |||||
16934 | case $with_ensurepip in #( | ||||
16935 | yes|upgrade) : | ||||
16936 | ENSUREPIP=upgrade ;; #( | ||||
16937 | install) : | ||||
16938 | ENSUREPIP=install ;; #( | ||||
16939 | no) : | ||||
16940 | ENSUREPIP=no ;; #( | ||||
16941 | *) : | ||||
16942 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | ||||
16943 | esac | ||||
16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | ||||
16945 | $as_echo "$ENSUREPIP" >&6; } | ||||
16946 | |||||
16947 | |||||
Victor Stinner | 35a97c0 | 2015-03-08 01:59:09 | [diff] [blame] | 16948 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
16949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | ||||
16950 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | ||||
16951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16952 | /* end confdefs.h. */ | ||||
16953 | |||||
16954 | |||||
16955 | #include <dirent.h> | ||||
16956 | |||||
16957 | int main() { | ||||
16958 | struct dirent entry; | ||||
16959 | return entry.d_type == DT_UNKNOWN; | ||||
16960 | } | ||||
16961 | |||||
16962 | |||||
16963 | _ACEOF | ||||
16964 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16965 | have_dirent_d_type=yes | ||||
16966 | else | ||||
16967 | have_dirent_d_type=no | ||||
16968 | fi | ||||
16969 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16970 | conftest$ac_exeext conftest.$ac_ext | ||||
16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | ||||
16972 | $as_echo "$have_dirent_d_type" >&6; } | ||||
16973 | |||||
16974 | if test "$have_dirent_d_type" = yes; then | ||||
16975 | |||||
16976 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | ||||
16977 | |||||
16978 | fi | ||||
16979 | |||||
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16980 | # check if the Linux getrandom() syscall is available |
16981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | ||||
16982 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | ||||
16983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16984 | /* end confdefs.h. */ | ||||
16985 | |||||
16986 | |||||
Victor Stinner | 1b80b24 | 2016-04-12 20:34:58 | [diff] [blame] | 16987 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16988 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 09:21:42 | [diff] [blame] | 16989 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16990 | |
16991 | int main() { | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16992 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 16993 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 09:21:42 | [diff] [blame] | 16994 | const int flags = GRND_NONBLOCK; |
16995 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | ||||
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 16996 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16997 | return 0; |
16998 | } | ||||
16999 | |||||
17000 | |||||
17001 | _ACEOF | ||||
17002 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17003 | have_getrandom_syscall=yes | ||||
17004 | else | ||||
17005 | have_getrandom_syscall=no | ||||
17006 | fi | ||||
17007 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17008 | conftest$ac_exeext conftest.$ac_ext | ||||
17009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | ||||
17010 | $as_echo "$have_getrandom_syscall" >&6; } | ||||
17011 | |||||
17012 | if test "$have_getrandom_syscall" = yes; then | ||||
17013 | |||||
17014 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | ||||
17015 | |||||
17016 | fi | ||||
17017 | |||||
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 17018 | # check if the getrandom() function is available |
17019 | # the test was written for the Solaris function of <sys/random.h> | ||||
17020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | ||||
17021 | $as_echo_n "checking for the getrandom() function... " >&6; } | ||||
17022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17023 | /* end confdefs.h. */ | ||||
17024 | |||||
17025 | |||||
17026 | #include <sys/random.h> | ||||
17027 | |||||
17028 | int main() { | ||||
17029 | char buffer[1]; | ||||
17030 | const size_t buflen = sizeof(buffer); | ||||
17031 | const int flags = 0; | ||||
17032 | /* ignore the result, Python checks for ENOSYS at runtime */ | ||||
17033 | (void)getrandom(buffer, buflen, flags); | ||||
17034 | return 0; | ||||
17035 | } | ||||
17036 | |||||
17037 | |||||
17038 | _ACEOF | ||||
17039 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17040 | have_getrandom=yes | ||||
17041 | else | ||||
17042 | have_getrandom=no | ||||
17043 | fi | ||||
17044 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17045 | conftest$ac_exeext conftest.$ac_ext | ||||
17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | ||||
17047 | $as_echo "$have_getrandom" >&6; } | ||||
17048 | |||||
17049 | if test "$have_getrandom" = yes; then | ||||
17050 | |||||
17051 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | ||||
17052 | |||||
17053 | fi | ||||
17054 | |||||
Neil Schemenauer | 5741c45 | 2019-02-08 18:48:46 | [diff] [blame] | 17055 | # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c |
17056 | # shm_* may only be available if linking against librt | ||||
17057 | save_LIBS="$LIBS" | ||||
17058 | save_includes_default="$ac_includes_default" | ||||
17059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 | ||||
17060 | $as_echo_n "checking for library containing shm_open... " >&6; } | ||||
17061 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17062 | $as_echo_n "(cached) " >&6 | ||||
17063 | else | ||||
17064 | ac_func_search_save_LIBS=$LIBS | ||||
17065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17066 | /* end confdefs.h. */ | ||||
17067 | |||||
17068 | /* Override any GCC internal prototype to avoid an error. | ||||
17069 | Use char because int might match the return type of a GCC | ||||
17070 | builtin and then its argument prototype would still apply. */ | ||||
17071 | #ifdef __cplusplus | ||||
17072 | extern "C" | ||||
17073 | #endif | ||||
17074 | char shm_open (); | ||||
17075 | int | ||||
17076 | main () | ||||
17077 | { | ||||
17078 | return shm_open (); | ||||
17079 | ; | ||||
17080 | return 0; | ||||
17081 | } | ||||
17082 | _ACEOF | ||||
17083 | for ac_lib in '' rt; do | ||||
17084 | if test -z "$ac_lib"; then | ||||
17085 | ac_res="none required" | ||||
17086 | else | ||||
17087 | ac_res=-l$ac_lib | ||||
17088 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
17089 | fi | ||||
17090 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17091 | ac_cv_search_shm_open=$ac_res | ||||
17092 | fi | ||||
17093 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17094 | conftest$ac_exeext | ||||
17095 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17096 | break | ||||
17097 | fi | ||||
17098 | done | ||||
17099 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17100 | |||||
17101 | else | ||||
17102 | ac_cv_search_shm_open=no | ||||
17103 | fi | ||||
17104 | rm conftest.$ac_ext | ||||
17105 | LIBS=$ac_func_search_save_LIBS | ||||
17106 | fi | ||||
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 | ||||
17108 | $as_echo "$ac_cv_search_shm_open" >&6; } | ||||
17109 | ac_res=$ac_cv_search_shm_open | ||||
17110 | if test "$ac_res" != no; then : | ||||
17111 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
17112 | |||||
17113 | fi | ||||
17114 | |||||
17115 | if test "$ac_cv_search_shm_open" = "-lrt"; then | ||||
17116 | |||||
17117 | $as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h | ||||
17118 | |||||
17119 | fi | ||||
17120 | for ac_header in sys/mman.h | ||||
17121 | do : | ||||
17122 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | ||||
17123 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : | ||||
17124 | cat >>confdefs.h <<_ACEOF | ||||
17125 | #define HAVE_SYS_MMAN_H 1 | ||||
17126 | _ACEOF | ||||
17127 | |||||
17128 | fi | ||||
17129 | |||||
17130 | done | ||||
17131 | |||||
17132 | # temporarily override ac_includes_default for AC_CHECK_FUNCS below | ||||
17133 | ac_includes_default="\ | ||||
17134 | ${ac_includes_default} | ||||
17135 | #ifndef __cplusplus | ||||
17136 | # ifdef HAVE_SYS_MMAN_H | ||||
17137 | # include <sys/mman.h> | ||||
17138 | # endif | ||||
17139 | #endif | ||||
17140 | " | ||||
17141 | for ac_func in shm_open shm_unlink | ||||
17142 | do : | ||||
17143 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
17144 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
17145 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
17146 | cat >>confdefs.h <<_ACEOF | ||||
17147 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
17148 | _ACEOF | ||||
17149 | |||||
17150 | fi | ||||
17151 | done | ||||
17152 | |||||
17153 | # we don't want to link with librt always, restore LIBS | ||||
17154 | LIBS="$save_LIBS" | ||||
17155 | ac_includes_default="$save_includes_default" | ||||
17156 | |||||
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 17157 | # Check for usable OpenSSL |
17158 | |||||
17159 | found=false | ||||
17160 | |||||
17161 | # Check whether --with-openssl was given. | ||||
17162 | if test "${with_openssl+set}" = set; then : | ||||
17163 | withval=$with_openssl; | ||||
17164 | case "$withval" in | ||||
17165 | "" | y | ye | yes | n | no) | ||||
17166 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 | ||||
17167 | ;; | ||||
17168 | *) ssldirs="$withval" | ||||
17169 | ;; | ||||
17170 | esac | ||||
17171 | |||||
17172 | else | ||||
17173 | |||||
17174 | # if pkg-config is installed and openssl has installed a .pc file, | ||||
17175 | # then use that information and don't search ssldirs | ||||
17176 | if test -n "$ac_tool_prefix"; then | ||||
17177 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
17178 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
17179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
17180 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17181 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : | ||||
17182 | $as_echo_n "(cached) " >&6 | ||||
17183 | else | ||||
17184 | if test -n "$PKG_CONFIG"; then | ||||
17185 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. | ||||
17186 | else | ||||
17187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17188 | for as_dir in $PATH | ||||
17189 | do | ||||
17190 | IFS=$as_save_IFS | ||||
17191 | test -z "$as_dir" && as_dir=. | ||||
17192 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
17193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
17194 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" | ||||
17195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
17196 | break 2 | ||||
17197 | fi | ||||
17198 | done | ||||
17199 | done | ||||
17200 | IFS=$as_save_IFS | ||||
17201 | |||||
17202 | fi | ||||
17203 | fi | ||||
17204 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG | ||||
17205 | if test -n "$PKG_CONFIG"; then | ||||
17206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
17207 | $as_echo "$PKG_CONFIG" >&6; } | ||||
17208 | else | ||||
17209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17210 | $as_echo "no" >&6; } | ||||
17211 | fi | ||||
17212 | |||||
17213 | |||||
17214 | fi | ||||
17215 | if test -z "$ac_cv_prog_PKG_CONFIG"; then | ||||
17216 | ac_ct_PKG_CONFIG=$PKG_CONFIG | ||||
17217 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
17218 | set dummy pkg-config; ac_word=$2 | ||||
17219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
17220 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17221 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : | ||||
17222 | $as_echo_n "(cached) " >&6 | ||||
17223 | else | ||||
17224 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
17225 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. | ||||
17226 | else | ||||
17227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17228 | for as_dir in $PATH | ||||
17229 | do | ||||
17230 | IFS=$as_save_IFS | ||||
17231 | test -z "$as_dir" && as_dir=. | ||||
17232 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
17233 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
17234 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" | ||||
17235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
17236 | break 2 | ||||
17237 | fi | ||||
17238 | done | ||||
17239 | done | ||||
17240 | IFS=$as_save_IFS | ||||
17241 | |||||
17242 | fi | ||||
17243 | fi | ||||
17244 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG | ||||
17245 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 | ||||
17247 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } | ||||
17248 | else | ||||
17249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17250 | $as_echo "no" >&6; } | ||||
17251 | fi | ||||
17252 | |||||
17253 | if test "x$ac_ct_PKG_CONFIG" = x; then | ||||
17254 | PKG_CONFIG="" | ||||
17255 | else | ||||
17256 | case $cross_compiling:$ac_tool_warned in | ||||
17257 | yes:) | ||||
17258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
17259 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
17260 | ac_tool_warned=yes ;; | ||||
17261 | esac | ||||
17262 | PKG_CONFIG=$ac_ct_PKG_CONFIG | ||||
17263 | fi | ||||
17264 | else | ||||
17265 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" | ||||
17266 | fi | ||||
17267 | |||||
17268 | if test x"$PKG_CONFIG" != x""; then | ||||
17269 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` | ||||
17270 | if test $? = 0; then | ||||
17271 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` | ||||
17272 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` | ||||
17273 | found=true | ||||
17274 | fi | ||||
17275 | fi | ||||
17276 | |||||
17277 | # no such luck; use some default ssldirs | ||||
17278 | if ! $found; then | ||||
17279 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" | ||||
17280 | fi | ||||
17281 | |||||
17282 | |||||
17283 | fi | ||||
17284 | |||||
17285 | |||||
17286 | |||||
17287 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in | ||||
17288 | # an 'openssl' subdirectory | ||||
17289 | |||||
17290 | if ! $found; then | ||||
17291 | OPENSSL_INCLUDES= | ||||
17292 | for ssldir in $ssldirs; do | ||||
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 | ||||
17294 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } | ||||
17295 | if test -f "$ssldir/include/openssl/ssl.h"; then | ||||
17296 | OPENSSL_INCLUDES="-I$ssldir/include" | ||||
17297 | OPENSSL_LDFLAGS="-L$ssldir/lib" | ||||
17298 | OPENSSL_LIBS="-lssl -lcrypto" | ||||
17299 | found=true | ||||
17300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17301 | $as_echo "yes" >&6; } | ||||
17302 | break | ||||
17303 | else | ||||
17304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17305 | $as_echo "no" >&6; } | ||||
17306 | fi | ||||
17307 | done | ||||
17308 | |||||
17309 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe | ||||
17310 | # it will just work! | ||||
17311 | fi | ||||
17312 | |||||
17313 | # try the preprocessor and linker with our new flags, | ||||
17314 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS | ||||
17315 | |||||
17316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 | ||||
17317 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } | ||||
17318 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ | ||||
17319 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 | ||||
17320 | |||||
17321 | save_LIBS="$LIBS" | ||||
17322 | save_LDFLAGS="$LDFLAGS" | ||||
17323 | save_CPPFLAGS="$CPPFLAGS" | ||||
17324 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17325 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17326 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17328 | /* end confdefs.h. */ | ||||
17329 | #include <openssl/ssl.h> | ||||
17330 | int | ||||
17331 | main () | ||||
17332 | { | ||||
17333 | SSL_new(NULL) | ||||
17334 | ; | ||||
17335 | return 0; | ||||
17336 | } | ||||
17337 | _ACEOF | ||||
17338 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17339 | |||||
17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17341 | $as_echo "yes" >&6; } | ||||
17342 | have_openssl=yes | ||||
17343 | |||||
17344 | else | ||||
17345 | |||||
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17347 | $as_echo "no" >&6; } | ||||
17348 | have_openssl=no | ||||
17349 | |||||
17350 | fi | ||||
17351 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17352 | conftest$ac_exeext conftest.$ac_ext | ||||
17353 | CPPFLAGS="$save_CPPFLAGS" | ||||
17354 | LDFLAGS="$save_LDFLAGS" | ||||
17355 | LIBS="$save_LIBS" | ||||
17356 | |||||
17357 | |||||
17358 | |||||
17359 | |||||
17360 | |||||
17361 | |||||
17362 | if test "$have_openssl" = yes; then | ||||
17363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 | ||||
17364 | $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } | ||||
17365 | |||||
17366 | save_LIBS="$LIBS" | ||||
17367 | save_LDFLAGS="$LDFLAGS" | ||||
17368 | save_CPPFLAGS="$CPPFLAGS" | ||||
17369 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17370 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17371 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17372 | |||||
17373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17374 | /* end confdefs.h. */ | ||||
17375 | |||||
17376 | #include <openssl/x509_vfy.h> | ||||
17377 | |||||
17378 | int | ||||
17379 | main () | ||||
17380 | { | ||||
17381 | |||||
17382 | X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); | ||||
17383 | X509_VERIFY_PARAM_set1_host(p, "localhost", 0); | ||||
17384 | X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); | ||||
17385 | X509_VERIFY_PARAM_set_hostflags(p, 0); | ||||
17386 | |||||
17387 | ; | ||||
17388 | return 0; | ||||
17389 | } | ||||
17390 | |||||
17391 | _ACEOF | ||||
17392 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17393 | |||||
17394 | ac_cv_has_x509_verify_param_set1_host=yes | ||||
17395 | |||||
17396 | else | ||||
17397 | |||||
17398 | ac_cv_has_x509_verify_param_set1_host=no | ||||
17399 | |||||
17400 | fi | ||||
17401 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17402 | conftest$ac_exeext conftest.$ac_ext | ||||
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 | ||||
17404 | $as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } | ||||
17405 | if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then | ||||
17406 | |||||
17407 | $as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h | ||||
17408 | |||||
17409 | fi | ||||
17410 | |||||
17411 | CPPFLAGS="$save_CPPFLAGS" | ||||
17412 | LDFLAGS="$save_LDFLAGS" | ||||
17413 | LIBS="$save_LIBS" | ||||
17414 | fi | ||||
17415 | |||||
Christian Heimes | 892d66e | 2018-01-29 13:10:18 | [diff] [blame] | 17416 | # ssl module default cipher suite string |
17417 | |||||
17418 | |||||
17419 | |||||
17420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 | ||||
17421 | $as_echo_n "checking for --with-ssl-default-suites... " >&6; } | ||||
17422 | |||||
17423 | # Check whether --with-ssl-default-suites was given. | ||||
17424 | if test "${with_ssl_default_suites+set}" = set; then : | ||||
17425 | withval=$with_ssl_default_suites; | ||||
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
17427 | $as_echo "$withval" >&6; } | ||||
17428 | case "$withval" in | ||||
17429 | python) | ||||
17430 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
17431 | |||||
17432 | ;; | ||||
17433 | openssl) | ||||
17434 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h | ||||
17435 | |||||
17436 | ;; | ||||
17437 | *) | ||||
17438 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h | ||||
17439 | |||||
17440 | cat >>confdefs.h <<_ACEOF | ||||
17441 | #define PY_SSL_DEFAULT_CIPHER_STRING "$withval" | ||||
17442 | _ACEOF | ||||
17443 | |||||
17444 | ;; | ||||
17445 | esac | ||||
17446 | |||||
17447 | else | ||||
17448 | |||||
17449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 | ||||
17450 | $as_echo "python" >&6; } | ||||
17451 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
17452 | |||||
17453 | |||||
17454 | fi | ||||
17455 | |||||
17456 | |||||
17457 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17458 | # generate output files |
Victor Stinner | 0a8e572 | 2019-05-23 01:30:23 | [diff] [blame] | 17459 | ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 17460 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 17461 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
17462 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17463 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17464 | # This file is a shell script that caches the results of configure |
17465 | # tests run on this system so they can be shared between configure | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17466 | # scripts and configure runs, see configure's option --config-cache. |
17467 | # It is not useful on other systems. If it contains results you don't | ||||
17468 | # want to keep, you may remove or edit it. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17469 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17470 | # config.status only pays attention to the cache file if you give it |
17471 | # the --recheck option to rerun configure. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17472 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17473 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17474 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
17475 | # following values. | ||||
17476 | |||||
17477 | _ACEOF | ||||
17478 | |||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 17479 | # The following way of writing the cache mishandles newlines in values, |
17480 | # but we know of no workaround that is simple, portable, and efficient. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17481 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17482 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17483 | # and sets the high bit in the cache file unless we assign to the vars. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17484 | ( |
17485 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||||
17486 | eval ac_val=\$$ac_var | ||||
17487 | case $ac_val in #( | ||||
17488 | *${as_nl}*) | ||||
17489 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17490 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17491 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17492 | esac |
17493 | case $ac_var in #( | ||||
17494 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17495 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17496 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17497 | esac ;; |
17498 | esac | ||||
17499 | done | ||||
17500 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17501 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17502 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17503 | *${as_nl}ac_space=\ *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17504 | # `set' does not quote correctly, so add quotes: double-quote |
17505 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17506 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17507 | "s/'/'\\\\''/g; |
17508 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17509 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17510 | *) |
17511 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17512 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17513 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17514 | esac | |
17515 | sort | ||||
17516 | ) | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17517 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17518 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17519 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17520 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17521 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17522 | t end | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17523 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17524 | :end' >>confcache | ||||
17525 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||||
17526 | if test -w "$cache_file"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17527 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17528 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17529 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17530 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17531 | cat confcache >"$cache_file" | ||||
17532 | else | ||||
17533 | case $cache_file in #( | ||||
17534 | */* | ?:*) | ||||
17535 | mv -f confcache "$cache_file"$$ && | ||||
17536 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||||
17537 | *) | ||||
17538 | mv -f confcache "$cache_file" ;; | ||||
17539 | esac | ||||
17540 | fi | ||||
17541 | fi | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17542 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17544 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17545 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17546 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17547 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 17548 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17549 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17550 | # Let make expand exec_prefix. | ||||
17551 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 17552 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17553 | DEFS=-DHAVE_CONFIG_H |
17554 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17555 | ac_libobjs= |
17556 | ac_ltlibobjs= | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17557 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17558 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17559 | # 1. Remove the extension, and $U if already installed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17560 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17561 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17562 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17563 | # will be set to the directory where LIBOBJS objects are built. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17564 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17565 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17566 | done |
17567 | LIBOBJS=$ac_libobjs | ||||
17568 | |||||
17569 | LTLIBOBJS=$ac_ltlibobjs | ||||
17570 | |||||
17571 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17572 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17573 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17574 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17575 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17576 | ac_clean_files_save=$ac_clean_files |
17577 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17579 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||||
17580 | as_write_fail=0 | ||||
17581 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17582 | #! $SHELL |
17583 | # Generated by $as_me. | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17584 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17585 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17586 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17588 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17589 | ac_cs_recheck=false |
17590 | ac_cs_silent=false | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 17591 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17592 | SHELL=\${CONFIG_SHELL-$SHELL} |
17593 | export SHELL | ||||
17594 | _ASEOF | ||||
17595 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||||
17596 | ## -------------------- ## | ||||
17597 | ## M4sh Initialization. ## | ||||
17598 | ## -------------------- ## | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 17599 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17600 | # Be more Bourne compatible |
17601 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17602 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17603 | emulate sh |
17604 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17605 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17606 | # is contrary to our usage. Disable this feature. |
17607 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17608 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 17609 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17610 | case `(set -o) 2>/dev/null` in #( |
17611 | *posix*) : | ||||
17612 | set -o posix ;; #( | ||||
17613 | *) : | ||||
17614 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17615 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 17616 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 17617 | |
17618 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17619 | as_nl=' |
17620 | ' | ||||
17621 | export as_nl | ||||
17622 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||||
17623 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
17624 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17625 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17626 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
17627 | # but without wasting forks for bash or zsh. | ||||
17628 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
17629 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17630 | as_echo='print -r --' | ||||
17631 | as_echo_n='print -rn --' | ||||
17632 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17633 | as_echo='printf %s\n' | ||||
17634 | as_echo_n='printf %s' | ||||
17635 | else | ||||
17636 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
17637 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
17638 | as_echo_n='/usr/ucb/echo -n' | ||||
17639 | else | ||||
17640 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
17641 | as_echo_n_body='eval | ||||
17642 | arg=$1; | ||||
17643 | case $arg in #( | ||||
17644 | *"$as_nl"*) | ||||
17645 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
17646 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
17647 | esac; | ||||
17648 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
17649 | ' | ||||
17650 | export as_echo_n_body | ||||
17651 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
17652 | fi | ||||
17653 | export as_echo_body | ||||
17654 | as_echo='sh -c $as_echo_body as_echo' | ||||
17655 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17656 | |
17657 | # The user is always right. | ||||
17658 | if test "${PATH_SEPARATOR+set}" != set; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17659 | PATH_SEPARATOR=: |
17660 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
17661 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
17662 | PATH_SEPARATOR=';' | ||||
17663 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17664 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17665 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17666 | |
17667 | # IFS | ||||
17668 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
17669 | # there to prevent editors from complaining about space-tab. | ||||
17670 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
17671 | # splitting by setting IFS to empty value.) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17672 | IFS=" "" $as_nl" |
17673 | |||||
17674 | # Find who we are. Look in the path if we contain no directory separator. | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17675 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17676 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17677 | *[\\/]* ) as_myself=$0 ;; |
17678 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17679 | for as_dir in $PATH |
17680 | do | ||||
17681 | IFS=$as_save_IFS | ||||
17682 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17683 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
17684 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17685 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17686 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17687 | ;; |
17688 | esac | ||||
17689 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
17690 | # in which case we are not to be found in the path. | ||||
17691 | if test "x$as_myself" = x; then | ||||
17692 | as_myself=$0 | ||||
17693 | fi | ||||
17694 | if test ! -f "$as_myself"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17695 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
17696 | exit 1 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17697 | fi |
17698 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17699 | # Unset variables that we do not need and which cause bugs (e.g. in |
17700 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
17701 | # suppresses any "Segmentation fault" message there. '((' could | ||||
17702 | # trigger a bug in pdksh 5.2.14. | ||||
17703 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
17704 | do eval test x\${$as_var+set} = xset \ | ||||
17705 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17706 | done |
17707 | PS1='$ ' | ||||
17708 | PS2='> ' | ||||
17709 | PS4='+ ' | ||||
17710 | |||||
17711 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17712 | LC_ALL=C |
17713 | export LC_ALL | ||||
17714 | LANGUAGE=C | ||||
17715 | export LANGUAGE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17716 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17717 | # CDPATH. |
17718 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
17719 | |||||
17720 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17721 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17722 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17723 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17724 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17725 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17726 | as_fn_error () |
17727 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17728 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17729 | if test "$4"; then | ||||
17730 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
17731 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17732 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17733 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17734 | as_fn_exit $as_status |
17735 | } # as_fn_error | ||||
17736 | |||||
17737 | |||||
17738 | # as_fn_set_status STATUS | ||||
17739 | # ----------------------- | ||||
17740 | # Set $? to STATUS, without forking. | ||||
17741 | as_fn_set_status () | ||||
17742 | { | ||||
17743 | return $1 | ||||
17744 | } # as_fn_set_status | ||||
17745 | |||||
17746 | # as_fn_exit STATUS | ||||
17747 | # ----------------- | ||||
17748 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
17749 | as_fn_exit () | ||||
17750 | { | ||||
17751 | set +e | ||||
17752 | as_fn_set_status $1 | ||||
17753 | exit $1 | ||||
17754 | } # as_fn_exit | ||||
17755 | |||||
17756 | # as_fn_unset VAR | ||||
17757 | # --------------- | ||||
17758 | # Portably unset VAR. | ||||
17759 | as_fn_unset () | ||||
17760 | { | ||||
17761 | { eval $1=; unset $1;} | ||||
17762 | } | ||||
17763 | as_unset=as_fn_unset | ||||
17764 | # as_fn_append VAR VALUE | ||||
17765 | # ---------------------- | ||||
17766 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
17767 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
17768 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
17769 | # implementations. | ||||
17770 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||||
17771 | eval 'as_fn_append () | ||||
17772 | { | ||||
17773 | eval $1+=\$2 | ||||
17774 | }' | ||||
17775 | else | ||||
17776 | as_fn_append () | ||||
17777 | { | ||||
17778 | eval $1=\$$1\$2 | ||||
17779 | } | ||||
17780 | fi # as_fn_append | ||||
17781 | |||||
17782 | # as_fn_arith ARG... | ||||
17783 | # ------------------ | ||||
17784 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
17785 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
17786 | # must be portable across $(()) and expr. | ||||
17787 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||||
17788 | eval 'as_fn_arith () | ||||
17789 | { | ||||
17790 | as_val=$(( $* )) | ||||
17791 | }' | ||||
17792 | else | ||||
17793 | as_fn_arith () | ||||
17794 | { | ||||
17795 | as_val=`expr "$@" || test $? -eq 1` | ||||
17796 | } | ||||
17797 | fi # as_fn_arith | ||||
17798 | |||||
17799 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17800 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17801 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
17802 | as_expr=expr | ||||
17803 | else | ||||
17804 | as_expr=false | ||||
17805 | fi | ||||
17806 | |||||
17807 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
17808 | as_basename=basename | ||||
17809 | else | ||||
17810 | as_basename=false | ||||
17811 | fi | ||||
17812 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17813 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17814 | as_dirname=dirname | ||||
17815 | else | ||||
17816 | as_dirname=false | ||||
17817 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17818 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17819 | as_me=`$as_basename -- "$0" || |
17820 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
17821 | X"$0" : 'X\(//\)$' \| \ | ||||
17822 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17823 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17824 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
17825 | s//\1/ | ||||
17826 | q | ||||
17827 | } | ||||
17828 | /^X\/\(\/\/\)$/{ | ||||
17829 | s//\1/ | ||||
17830 | q | ||||
17831 | } | ||||
17832 | /^X\/\(\/\).*/{ | ||||
17833 | s//\1/ | ||||
17834 | q | ||||
17835 | } | ||||
17836 | s/.*/./; q'` | ||||
17837 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17838 | # Avoid depending upon Character Ranges. |
17839 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
17840 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
17841 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
17842 | as_cr_digits='0123456789' | ||||
17843 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17844 | |
17845 | ECHO_C= ECHO_N= ECHO_T= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17846 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17847 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17848 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17849 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17850 | xy) ECHO_C='\c';; |
17851 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
17852 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17853 | esac;; |
17854 | *) | ||||
17855 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17856 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 17857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17858 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17859 | if test -d conf$$.dir; then |
17860 | rm -f conf$$.dir/conf$$.file | ||||
17861 | else | ||||
17862 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17863 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17864 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17865 | if (echo >conf$$.file) 2>/dev/null; then |
17866 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
17867 | as_ln_s='ln -s' | ||||
17868 | # ... but there are two gotchas: | ||||
17869 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
17870 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17871 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17872 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17873 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17874 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17875 | as_ln_s=ln | ||||
17876 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17877 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17879 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17880 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17881 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17882 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17883 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17884 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17885 | |
17886 | # as_fn_mkdir_p | ||||
17887 | # ------------- | ||||
17888 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
17889 | as_fn_mkdir_p () | ||||
17890 | { | ||||
17891 | |||||
17892 | case $as_dir in #( | ||||
17893 | -*) as_dir=./$as_dir;; | ||||
17894 | esac | ||||
17895 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
17896 | as_dirs= | ||||
17897 | while :; do | ||||
17898 | case $as_dir in #( | ||||
17899 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||||
17900 | *) as_qdir=$as_dir;; | ||||
17901 | esac | ||||
17902 | as_dirs="'$as_qdir' $as_dirs" | ||||
17903 | as_dir=`$as_dirname -- "$as_dir" || | ||||
17904 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
17905 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
17906 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
17907 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
17908 | $as_echo X"$as_dir" | | ||||
17909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||||
17910 | s//\1/ | ||||
17911 | q | ||||
17912 | } | ||||
17913 | /^X\(\/\/\)[^/].*/{ | ||||
17914 | s//\1/ | ||||
17915 | q | ||||
17916 | } | ||||
17917 | /^X\(\/\/\)$/{ | ||||
17918 | s//\1/ | ||||
17919 | q | ||||
17920 | } | ||||
17921 | /^X\(\/\).*/{ | ||||
17922 | s//\1/ | ||||
17923 | q | ||||
17924 | } | ||||
17925 | s/.*/./; q'` | ||||
17926 | test -d "$as_dir" && break | ||||
17927 | done | ||||
17928 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17929 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17930 | |
17931 | |||||
17932 | } # as_fn_mkdir_p | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17933 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17934 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17935 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17936 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17937 | as_mkdir_p=false |
17938 | fi | ||||
17939 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17940 | |
17941 | # as_fn_executable_p FILE | ||||
17942 | # ----------------------- | ||||
17943 | # Test if FILE is an executable regular file. | ||||
17944 | as_fn_executable_p () | ||||
17945 | { | ||||
17946 | test -f "$1" && test -x "$1" | ||||
17947 | } # as_fn_executable_p | ||||
17948 | as_test_x='test -x' | ||||
17949 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17950 | |
17951 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17952 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17953 | |
17954 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17955 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17956 | |
17957 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17958 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17959 | ## ----------------------------------- ## |
17960 | ## Main body of $CONFIG_STATUS script. ## | ||||
17961 | ## ----------------------------------- ## | ||||
17962 | _ASEOF | ||||
17963 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17964 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17965 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17966 | # Save the log message, to keep $0 and so on meaningful, and to | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17967 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17968 | # values after options handling. |
17969 | ac_log=" | ||||
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 17970 | This file was extended by python $as_me 3.8, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17971 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17972 | |
17973 | CONFIG_FILES = $CONFIG_FILES | ||||
17974 | CONFIG_HEADERS = $CONFIG_HEADERS | ||||
17975 | CONFIG_LINKS = $CONFIG_LINKS | ||||
17976 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||||
17977 | $ $0 $@ | ||||
17978 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17979 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17980 | " | ||||
17981 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17982 | _ACEOF |
17983 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17984 | case $ac_config_files in *" |
17985 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||||
17986 | esac | ||||
17987 | |||||
17988 | case $ac_config_headers in *" | ||||
17989 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||||
17990 | esac | ||||
17991 | |||||
17992 | |||||
17993 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17994 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 11:41:06 | [diff] [blame] | 17995 | config_files="$ac_config_files" |
17996 | config_headers="$ac_config_headers" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17997 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17998 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17999 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18000 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18001 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18002 | \`$as_me' instantiates files and other configuration actions |
18003 | from templates according to the current configuration. Unless the files | ||||
18004 | and actions are specified as TAGs, all are instantiated by default. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18005 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18006 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18007 | |
18008 | -h, --help print this help, then exit | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18009 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18010 | --config print configuration, then exit |
18011 | -q, --quiet, --silent | ||||
18012 | do not print progress messages | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18013 | -d, --debug don't remove temporary files |
18014 | --recheck update $as_me by reconfiguring in the same conditions | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18015 | --file=FILE[:TEMPLATE] |
18016 | instantiate the configuration file FILE | ||||
18017 | --header=FILE[:TEMPLATE] | ||||
18018 | instantiate the configuration header FILE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18019 | |
18020 | Configuration files: | ||||
18021 | $config_files | ||||
18022 | |||||
18023 | Configuration headers: | ||||
18024 | $config_headers | ||||
18025 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 18026 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 18027 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18028 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18029 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18030 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18031 | ac_cs_version="\\ |
Ned Deily | 5489bda | 2018-01-31 22:44:09 | [diff] [blame] | 18032 | python config.status 3.8 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 18033 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18034 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18035 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 18036 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18037 | This config.status script is free software; the Free Software Foundation |
18038 | gives unlimited permission to copy, distribute and modify it." | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18039 | |
18040 | ac_pwd='$ac_pwd' | ||||
18041 | srcdir='$srcdir' | ||||
18042 | INSTALL='$INSTALL' | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18043 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18044 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18045 | _ACEOF |
18046 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18048 | # The default lists apply if the user does not specify any file. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18049 | ac_need_defaults=: |
18050 | while test $# != 0 | ||||
18051 | do | ||||
18052 | case $1 in | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18053 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18054 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18055 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18056 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18057 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18058 | --*=) |
18059 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||||
18060 | ac_optarg= | ||||
18061 | ac_shift=: | ||||
18062 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18063 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18064 | ac_option=$1 |
18065 | ac_optarg=$2 | ||||
18066 | ac_shift=shift | ||||
18067 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18068 | esac |
18069 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18070 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18071 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18072 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18073 | ac_cs_recheck=: ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18074 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18075 | $as_echo "$ac_cs_version"; exit ;; |
18076 | --config | --confi | --conf | --con | --co | --c ) | ||||
18077 | $as_echo "$ac_cs_config"; exit ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18078 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18079 | debug=: ;; |
18080 | --file | --fil | --fi | --f ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18081 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18082 | case $ac_optarg in |
18083 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18084 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18085 | esac |
18086 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18087 | ac_need_defaults=false;; |
18088 | --header | --heade | --head | --hea ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18089 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18090 | case $ac_optarg in |
18091 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
18092 | esac | ||||
18093 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18094 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18095 | --he | --h) |
18096 | # Conflict between --help and --header | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18097 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18098 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18099 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18100 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18101 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18102 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||||
18103 | ac_cs_silent=: ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18104 | |
18105 | # This is an error. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18106 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18107 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18108 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18109 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18110 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18111 | |
18112 | esac | ||||
18113 | shift | ||||
18114 | done | ||||
18115 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18116 | ac_configure_extra_args= |
18117 | |||||
18118 | if $ac_cs_silent; then | ||||
18119 | exec 6>/dev/null | ||||
18120 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||||
18121 | fi | ||||
18122 | |||||
18123 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18124 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18125 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 18126 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18127 | shift |
18128 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||||
18129 | CONFIG_SHELL='$SHELL' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18130 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18131 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18132 | fi |
18133 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18134 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18136 | exec 5>>config.log |
18137 | { | ||||
18138 | echo | ||||
18139 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||||
18140 | ## Running $as_me. ## | ||||
18141 | _ASBOX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18142 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18143 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18144 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18145 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18147 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18148 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18149 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18150 | |
18151 | # Handling of arguments. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18152 | for ac_config_target in $ac_config_targets |
18153 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18154 | case $ac_config_target in |
18155 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | ||||
18156 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | ||||
18157 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 18158 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
18159 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18160 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 | [diff] [blame] | 18161 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Victor Stinner | 0a8e572 | 2019-05-23 01:30:23 | [diff] [blame] | 18162 | "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 18163 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 18164 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18165 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18166 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18167 | esac |
18168 | done | ||||
18169 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18171 | # If the user did not use the arguments to specify the items to instantiate, |
18172 | # then the envvar interface is used. Set only those that are not. | ||||
18173 | # We use the long form for the default assignment because of an extremely | ||||
18174 | # bizarre bug on SunOS 4.1.3. | ||||
18175 | if $ac_need_defaults; then | ||||
18176 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||||
18177 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||||
18178 | fi | ||||
18179 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18180 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18181 | # simply because there is no reason against having it here, and in addition, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18182 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18183 | # Hook for its removal unless debugging. |
18184 | # Note that there is a small window in which the directory will not be cleaned: | ||||
18185 | # after its creation but before its name has been assigned to `$tmp'. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18186 | $debug || |
18187 | { | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18188 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18189 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18190 | : "${ac_tmp:=$tmp}" |
18191 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18192 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18193 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18194 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18195 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18197 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18198 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18199 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18200 | } || |
18201 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18202 | tmp=./conf$$-$RANDOM |
18203 | (umask 077 && mkdir "$tmp") | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18204 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18205 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18206 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18207 | # Set up the scripts for CONFIG_FILES section. |
18208 | # No need to generate them if there are no CONFIG_FILES. | ||||
18209 | # This happens for instance with `./config.status config.h'. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18210 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18211 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18212 | |
18213 | ac_cr=`echo X | tr X '\015'` | ||||
18214 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||||
18215 | # But we know of no other shell where ac_cr would be empty at this | ||||
18216 | # point, so we can use a bashism as a fallback. | ||||
18217 | if test "x$ac_cr" = x; then | ||||
18218 | eval ac_cr=\$\'\\r\' | ||||
18219 | fi | ||||
18220 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||||
18221 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18222 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18223 | else |
18224 | ac_cs_awk_cr=$ac_cr | ||||
18225 | fi | ||||
18226 | |||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18227 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18228 | _ACEOF |
18229 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18230 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18231 | { |
18232 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||||
18233 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||||
18234 | echo "_ACEOF" | ||||
18235 | } >conf$$subs.sh || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18236 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18237 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18238 | ac_delim='%!_!# ' |
18239 | for ac_last_try in false false false false false :; do | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18240 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18241 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18242 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18243 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18244 | if test $ac_delim_n = $ac_delim_num; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18245 | break |
18246 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18247 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18248 | else |
18249 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18250 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18251 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18252 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18253 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18254 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18255 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18256 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18257 | sed -n ' |
18258 | h | ||||
18259 | s/^/S["/; s/!.*/"]=/ | ||||
18260 | p | ||||
18261 | g | ||||
18262 | s/^[^!]*!// | ||||
18263 | :repl | ||||
18264 | t repl | ||||
18265 | s/'"$ac_delim"'$// | ||||
18266 | t delim | ||||
18267 | :nl | ||||
18268 | h | ||||
18269 | s/\(.\{148\}\)..*/\1/ | ||||
18270 | t more1 | ||||
18271 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||||
18272 | p | ||||
18273 | n | ||||
18274 | b repl | ||||
18275 | :more1 | ||||
18276 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18277 | p | ||||
18278 | g | ||||
18279 | s/.\{148\}// | ||||
18280 | t nl | ||||
18281 | :delim | ||||
18282 | h | ||||
18283 | s/\(.\{148\}\)..*/\1/ | ||||
18284 | t more2 | ||||
18285 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||||
18286 | p | ||||
18287 | b | ||||
18288 | :more2 | ||||
18289 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18290 | p | ||||
18291 | g | ||||
18292 | s/.\{148\}// | ||||
18293 | t delim | ||||
18294 | ' <conf$$subs.awk | sed ' | ||||
18295 | /^[^""]/{ | ||||
18296 | N | ||||
18297 | s/\n// | ||||
18298 | } | ||||
18299 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18300 | rm -f conf$$subs.awk | ||||
18301 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18302 | _ACAWK | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18303 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18304 | for (key in S) S_is_set[key] = 1 |
18305 | FS = "" | ||||
18306 | |||||
18307 | } | ||||
18308 | { | ||||
18309 | line = $ 0 | ||||
18310 | nfields = split(line, field, "@") | ||||
18311 | substed = 0 | ||||
18312 | len = length(field[1]) | ||||
18313 | for (i = 2; i < nfields; i++) { | ||||
18314 | key = field[i] | ||||
18315 | keylen = length(key) | ||||
18316 | if (S_is_set[key]) { | ||||
18317 | value = S[key] | ||||
18318 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||||
18319 | len += length(value) + length(field[++i]) | ||||
18320 | substed = 1 | ||||
18321 | } else | ||||
18322 | len += 1 + keylen | ||||
18323 | } | ||||
18324 | |||||
18325 | print line | ||||
18326 | } | ||||
18327 | |||||
18328 | _ACAWK | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18329 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18331 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||||
18332 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||||
18333 | else | ||||
18334 | cat | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18335 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18336 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 18337 | _ACEOF |
18338 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18339 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18340 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18341 | # trailing colons and then remove the whole line if VPATH becomes empty |
18342 | # (actually we leave an empty line to preserve line numbers). | ||||
18343 | if test "x$srcdir" = x.; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18344 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18345 | h | ||||
18346 | s/// | ||||
18347 | s/^/:/ | ||||
18348 | s/[ ]*$/:/ | ||||
18349 | s/:\$(srcdir):/:/g | ||||
18350 | s/:\${srcdir}:/:/g | ||||
18351 | s/:@srcdir@:/:/g | ||||
18352 | s/^:*// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18353 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18354 | x |
18355 | s/\(=[ ]*\).*/\1/ | ||||
18356 | G | ||||
18357 | s/\n// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18358 | s/^[^=]*=[ ]*$// |
18359 | }' | ||||
18360 | fi | ||||
18361 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18362 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18363 | fi # test -n "$CONFIG_FILES" |
18364 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18365 | # Set up the scripts for CONFIG_HEADERS section. |
18366 | # No need to generate them if there are no CONFIG_HEADERS. | ||||
18367 | # This happens for instance with `./config.status Makefile'. | ||||
18368 | if test -n "$CONFIG_HEADERS"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18369 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18370 | BEGIN { |
18371 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18373 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18374 | # here-document in config.status, that substitutes the proper values into | ||||
18375 | # config.h.in to produce config.h. | ||||
18376 | |||||
18377 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||||
18378 | # handling of long lines. | ||||
18379 | ac_delim='%!_!# ' | ||||
18380 | for ac_last_try in false false :; do | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18381 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18382 | if test -z "$ac_tt"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18383 | break |
18384 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18385 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18386 | else |
18387 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
18388 | fi | ||||
18389 | done | ||||
18390 | |||||
18391 | # For the awk script, D is an array of macro values keyed by name, | ||||
18392 | # likewise P contains macro parameters if any. Preserve backslash | ||||
18393 | # newline sequences. | ||||
18394 | |||||
18395 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||||
18396 | sed -n ' | ||||
18397 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18398 | t rset | ||||
18399 | :rset | ||||
18400 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||||
18401 | t def | ||||
18402 | d | ||||
18403 | :def | ||||
18404 | s/\\$// | ||||
18405 | t bsnl | ||||
18406 | s/["\\]/\\&/g | ||||
18407 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18408 | D["\1"]=" \3"/p | ||||
18409 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||||
18410 | d | ||||
18411 | :bsnl | ||||
18412 | s/["\\]/\\&/g | ||||
18413 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18414 | D["\1"]=" \3\\\\\\n"\\/p | ||||
18415 | t cont | ||||
18416 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||||
18417 | t cont | ||||
18418 | d | ||||
18419 | :cont | ||||
18420 | n | ||||
18421 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18422 | t clear | ||||
18423 | :clear | ||||
18424 | s/\\$// | ||||
18425 | t bsnlc | ||||
18426 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||||
18427 | d | ||||
18428 | :bsnlc | ||||
18429 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||||
18430 | b cont | ||||
18431 | ' <confdefs.h | sed ' | ||||
18432 | s/'"$ac_delim"'/"\\\ | ||||
18433 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18434 | |||||
18435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18436 | for (key in D) D_is_set[key] = 1 | ||||
18437 | FS = "" | ||||
18438 | } | ||||
18439 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||||
18440 | line = \$ 0 | ||||
18441 | split(line, arg, " ") | ||||
18442 | if (arg[1] == "#") { | ||||
18443 | defundef = arg[2] | ||||
18444 | mac1 = arg[3] | ||||
18445 | } else { | ||||
18446 | defundef = substr(arg[1], 2) | ||||
18447 | mac1 = arg[2] | ||||
18448 | } | ||||
18449 | split(mac1, mac2, "(") #) | ||||
18450 | macro = mac2[1] | ||||
18451 | prefix = substr(line, 1, index(line, defundef) - 1) | ||||
18452 | if (D_is_set[macro]) { | ||||
18453 | # Preserve the white space surrounding the "#". | ||||
18454 | print prefix "define", macro P[macro] D[macro] | ||||
18455 | next | ||||
18456 | } else { | ||||
18457 | # Replace #undef with comments. This is necessary, for example, | ||||
18458 | # in the case of _POSIX_SOURCE, which is predefined and required | ||||
18459 | # on some systems where configure will not decide to define it. | ||||
18460 | if (defundef == "undef") { | ||||
18461 | print "/*", prefix defundef, macro, "*/" | ||||
18462 | next | ||||
18463 | } | ||||
18464 | } | ||||
18465 | } | ||||
18466 | { print } | ||||
18467 | _ACAWK | ||||
18468 | _ACEOF | ||||
18469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18470 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18471 | fi # test -n "$CONFIG_HEADERS" |
18472 | |||||
18473 | |||||
18474 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||||
18475 | shift | ||||
18476 | for ac_tag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18477 | do |
18478 | case $ac_tag in | ||||
18479 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||||
18480 | esac | ||||
18481 | case $ac_mode$ac_tag in | ||||
18482 | :[FHL]*:*);; | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18483 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18484 | :[FH]-) ac_tag=-:-;; |
18485 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||||
18486 | esac | ||||
18487 | ac_save_IFS=$IFS | ||||
18488 | IFS=: | ||||
18489 | set x $ac_tag | ||||
18490 | IFS=$ac_save_IFS | ||||
18491 | shift | ||||
18492 | ac_file=$1 | ||||
18493 | shift | ||||
18494 | |||||
18495 | case $ac_mode in | ||||
18496 | :L) ac_source=$1;; | ||||
18497 | :[FH]) | ||||
18498 | ac_file_inputs= | ||||
18499 | for ac_f | ||||
18500 | do | ||||
18501 | case $ac_f in | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18502 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18503 | *) # Look for the file first in the build tree, then in the source tree |
18504 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||||
18505 | # because $ac_f cannot contain `:'. | ||||
18506 | test -f "$ac_f" || | ||||
18507 | case $ac_f in | ||||
18508 | [\\/$]*) false;; | ||||
18509 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||||
18510 | esac || | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18511 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18512 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18513 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18514 | as_fn_append ac_file_inputs " '$ac_f'" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18515 | done |
18516 | |||||
18517 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||||
18518 | # use $as_me), people would be surprised to read: | ||||
18519 | # /* config.h. Generated by config.status. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18520 | configure_input='Generated from '` |
18521 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||||
18522 | `' by configure.' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18523 | if test x"$ac_file" != x-; then |
18524 | configure_input="$ac_file. $configure_input" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18525 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
18526 | $as_echo "$as_me: creating $ac_file" >&6;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18527 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18528 | # Neutralize special characters interpreted by sed in replacement strings. |
18529 | case $configure_input in #( | ||||
18530 | *\&* | *\|* | *\\* ) | ||||
18531 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||||
18532 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||||
18533 | *) ac_sed_conf_input=$configure_input;; | ||||
18534 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18535 | |
18536 | case $ac_tag in | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18537 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18538 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18539 | esac |
18540 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18541 | esac |
18542 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18543 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18544 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 18545 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18546 | X"$ac_file" : 'X\(//\)$' \| \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18547 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18548 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18550 | s//\1/ | ||||
18551 | q | ||||
18552 | } | ||||
18553 | /^X\(\/\/\)[^/].*/{ | ||||
18554 | s//\1/ | ||||
18555 | q | ||||
18556 | } | ||||
18557 | /^X\(\/\/\)$/{ | ||||
18558 | s//\1/ | ||||
18559 | q | ||||
18560 | } | ||||
18561 | /^X\(\/\).*/{ | ||||
18562 | s//\1/ | ||||
18563 | q | ||||
18564 | } | ||||
18565 | s/.*/./; q'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18566 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18567 | ac_builddir=. |
18568 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18569 | case "$ac_dir" in |
18570 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18571 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18572 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18573 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18574 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18575 | case $ac_top_builddir_sub in |
18576 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18577 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
18578 | esac ;; | ||||
18579 | esac | ||||
18580 | ac_abs_top_builddir=$ac_pwd | ||||
18581 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
18582 | # for backward compatibility: | ||||
18583 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18584 | |
18585 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18586 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18587 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18588 | ac_top_srcdir=$ac_top_builddir_sub |
18589 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
18590 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18591 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18592 | ac_top_srcdir=$srcdir |
18593 | ac_abs_top_srcdir=$srcdir ;; | ||||
18594 | *) # Relative name. | ||||
18595 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
18596 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
18597 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18598 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18599 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 18600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18601 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18602 | case $ac_mode in |
18603 | :F) | ||||
18604 | # | ||||
18605 | # CONFIG_FILE | ||||
18606 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18607 | |
18608 | case $INSTALL in | ||||
18609 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18610 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18611 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18612 | ac_MKDIR_P=$MKDIR_P |
18613 | case $MKDIR_P in | ||||
18614 | [\\/$]* | ?:[\\/]* ) ;; | ||||
18615 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||||
18616 | esac | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 18617 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18618 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18619 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18620 | # If the template does not know about datarootdir, expand it. |
18621 | # FIXME: This hack should be removed a few years after 2.60. | ||||
18622 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18623 | ac_sed_dataroot=' |
18624 | /datarootdir/ { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18625 | p |
18626 | q | ||||
18627 | } | ||||
18628 | /@datadir@/p | ||||
18629 | /@docdir@/p | ||||
18630 | /@infodir@/p | ||||
18631 | /@localedir@/p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18632 | /@mandir@/p' |
18633 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18634 | *datarootdir*) ac_datarootdir_seen=yes;; |
18635 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
18637 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18638 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18639 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18640 | ac_datarootdir_hack=' |
18641 | s&@datadir@&$datadir&g | ||||
18642 | s&@docdir@&$docdir&g | ||||
18643 | s&@infodir@&$infodir&g | ||||
18644 | s&@localedir@&$localedir&g | ||||
18645 | s&@mandir@&$mandir&g | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18646 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18647 | esac |
18648 | _ACEOF | ||||
18649 | |||||
18650 | # Neutralize VPATH when `$srcdir' = `.'. | ||||
18651 | # Shell code in configure.ac might set extrasub. | ||||
18652 | # FIXME: do we really want to maintain this feature? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18653 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18654 | ac_sed_extra="$ac_vpsub | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18655 | $extrasub |
18656 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18657 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18658 | :t |
18659 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18660 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18661 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18662 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18663 | s&@srcdir@&$ac_srcdir&;t t |
18664 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||||
18665 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||||
18666 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||||
18667 | s&@builddir@&$ac_builddir&;t t | ||||
18668 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||||
18669 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||||
18670 | s&@INSTALL@&$ac_INSTALL&;t t | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18671 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18672 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18673 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18674 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18675 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 18676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18677 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18678 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18679 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||||
18680 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18682 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18683 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18684 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 18685 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18686 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18687 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18688 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18689 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18690 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18691 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18692 | ;; |
18693 | :H) | ||||
18694 | # | ||||
18695 | # CONFIG_HEADER | ||||
18696 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18697 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18698 | { |
18699 | $as_echo "/* $configure_input */" \ | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18700 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18701 | } >"$ac_tmp/config.h" \ | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18702 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18703 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18704 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18705 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18707 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18708 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18709 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18710 | fi |
18711 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18712 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18713 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18714 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18715 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18716 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 18717 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18718 | |
18719 | esac | ||||
18720 | |||||
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 18721 | |
18722 | case $ac_file$ac_mode in | ||||
18723 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | ||||
18724 | |||||
18725 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18726 | done # for ac_tag |
18727 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 18728 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18729 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18730 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18731 | ac_clean_files=$ac_clean_files_save |
18732 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18733 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18734 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18736 | |
18737 | # configure is writing to config.log, and then calls config.status. | ||||
18738 | # config.status does its own redirection, appending to config.log. | ||||
18739 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||||
18740 | # by configure, so config.status won't be able to write to it; its | ||||
18741 | # output is simply discarded. So we exec the FD to /dev/null, | ||||
18742 | # effectively closing config.log, so it can be properly (re)opened and | ||||
18743 | # appended to by config.status. When coming back to configure, we | ||||
18744 | # need to make the FD available again. | ||||
18745 | if test "$no_create" != yes; then | ||||
18746 | ac_cs_success=: | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18747 | ac_config_status_args= |
18748 | test "$silent" = yes && | ||||
18749 | ac_config_status_args="$ac_config_status_args --quiet" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18750 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18751 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18752 | exec 5>>config.log |
18753 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||||
18754 | # would make configure fail if this is the last instruction. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18755 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18756 | fi |
18757 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||||
18758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||||
18759 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18760 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 18761 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18762 | |
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18763 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18764 | if test ! -f Modules/Setup.local |
18765 | then | ||||
18766 | echo "# Edit this file for local setup changes" >Modules/Setup.local | ||||
18767 | fi | ||||
18768 | |||||
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18769 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18770 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 18771 | -s Modules \ |
Antoine Pitrou | 961d54c | 2018-07-16 17:03:03 | [diff] [blame] | 18772 | Modules/Setup.local $srcdir/Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 | [diff] [blame] | 18773 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 18774 | |
18775 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | ||||
18776 | echo "" >&6 | ||||
18777 | echo "" >&6 | ||||
Brett Cannon | b4e5fee | 2017-06-09 20:56:57 | [diff] [blame] | 18778 | echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 18779 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 18780 | echo "" >&6 |
18781 | echo "" >&6 | ||||
18782 | fi | ||||
18783 |