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. |
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.6. |
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' | ||||
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 583 | PACKAGE_VERSION='3.6' |
584 | PACKAGE_STRING='python 3.6' | ||||
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 |
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 626 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 627 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 628 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 629 | LIBPL |
630 | PY_ENABLE_SHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 631 | EXT_SUFFIX |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 632 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 633 | LIBC |
634 | LIBM | ||||
635 | HAVE_GETHOSTBYNAME | ||||
636 | HAVE_GETHOSTBYNAME_R | ||||
637 | HAVE_GETHOSTBYNAME_R_3_ARG | ||||
638 | HAVE_GETHOSTBYNAME_R_5_ARG | ||||
639 | HAVE_GETHOSTBYNAME_R_6_ARG | ||||
640 | LIBOBJS | ||||
641 | TRUE | ||||
642 | MACHDEP_OBJS | ||||
643 | DYNLOADFILE | ||||
644 | DLINCLDIR | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 645 | DTRACE_OBJS |
646 | DTRACE_HEADERS | ||||
647 | DFLAGS | ||||
648 | DTRACE | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 649 | THREADOBJ |
650 | LDLAST | ||||
651 | USE_THREAD_MODULE | ||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 652 | TCLTK_LIBS |
653 | TCLTK_INCLUDES | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 654 | LIBFFI_INCLUDEDIR |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 655 | PKG_CONFIG_LIBDIR |
656 | PKG_CONFIG_PATH | ||||
657 | PKG_CONFIG | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 658 | SHLIBS |
659 | CFLAGSFORSHARED | ||||
660 | LINKFORSHARED | ||||
661 | CCSHARED | ||||
662 | BLDSHARED | ||||
663 | LDCXXSHARED | ||||
664 | LDSHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 665 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 666 | LIBTOOL_CRUFT |
667 | OTHER_LIBTOOL_OPT | ||||
668 | UNIVERSAL_ARCH_FLAGS | ||||
Victor Stinner | a21bedf | 2018-12-20 20:31:22 | [diff] [blame] | 669 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-10 03:01:49 | [diff] [blame] | 670 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 671 | BASECFLAGS |
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 672 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 673 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 674 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 675 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 676 | LLVM_PROF_ERR |
677 | LLVM_PROF_FILE | ||||
678 | LLVM_PROF_MERGER | ||||
679 | PGO_PROF_USE_FLAG | ||||
680 | PGO_PROF_GEN_FLAG | ||||
stratakis | f83ee47 | 2018-12-09 08:08:43 | [diff] [blame] | 681 | LLVM_AR_FOUND |
682 | target_os | ||||
683 | target_vendor | ||||
684 | target_cpu | ||||
685 | target | ||||
686 | LLVM_AR | ||||
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 687 | DEF_MAKE_RULE |
688 | DEF_MAKE_ALL_RULE | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 689 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 690 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 691 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 692 | INSTALL_DATA |
693 | INSTALL_SCRIPT | ||||
694 | INSTALL_PROGRAM | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 695 | ac_ct_READELF |
696 | READELF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 697 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 698 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 699 | AR |
Ned Deily | cc3e732 | 2018-12-11 21:47:14 | [diff] [blame] | 700 | USE_INLINE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 701 | GNULD |
702 | LINKCC | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 703 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 704 | RUNSHARED |
705 | INSTSONAME | ||||
706 | LDLIBRARYDIR | ||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 707 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 708 | BLDLIBRARY |
709 | DLLLIBRARY | ||||
710 | LDLIBRARY | ||||
711 | LIBRARY | ||||
712 | BUILDEXEEXT | ||||
713 | EGREP | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 714 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 715 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 716 | PLATFORM_TRIPLET |
717 | MULTIARCH | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 718 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 719 | MAINCC |
720 | CXX | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 721 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 722 | GREP |
723 | CPP | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 724 | OBJEXT |
725 | EXEEXT | ||||
726 | ac_ct_CC | ||||
727 | CPPFLAGS | ||||
728 | LDFLAGS | ||||
729 | CFLAGS | ||||
730 | CC | ||||
731 | EXPORT_MACOSX_DEPLOYMENT_TARGET | ||||
732 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | ||||
733 | SGI_ABI | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 734 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 735 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 736 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 737 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 738 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 739 | FRAMEWORKALTINSTALLLAST |
740 | FRAMEWORKALTINSTALLFIRST | ||||
741 | FRAMEWORKINSTALLLAST | ||||
742 | FRAMEWORKINSTALLFIRST | ||||
743 | PYTHONFRAMEWORKINSTALLDIR | ||||
744 | PYTHONFRAMEWORKPREFIX | ||||
745 | PYTHONFRAMEWORKDIR | ||||
746 | PYTHONFRAMEWORKIDENTIFIER | ||||
747 | PYTHONFRAMEWORK | ||||
748 | LIPO_32BIT_FLAGS | ||||
749 | ARCH_RUN_32BIT | ||||
750 | UNIVERSALSDK | ||||
751 | CONFIG_ARGS | ||||
752 | SOVERSION | ||||
753 | VERSION | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 754 | PYTHON_FOR_BUILD |
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 755 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 756 | host_os |
757 | host_vendor | ||||
758 | host_cpu | ||||
759 | host | ||||
760 | build_os | ||||
761 | build_vendor | ||||
762 | build_cpu | ||||
763 | build | ||||
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 764 | HAS_GIT |
765 | GITBRANCH | ||||
766 | GITTAG | ||||
767 | GITVERSION | ||||
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 768 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 769 | target_alias |
770 | host_alias | ||||
771 | build_alias | ||||
772 | LIBS | ||||
773 | ECHO_T | ||||
774 | ECHO_N | ||||
775 | ECHO_C | ||||
776 | DEFS | ||||
777 | mandir | ||||
778 | localedir | ||||
779 | libdir | ||||
780 | psdir | ||||
781 | pdfdir | ||||
782 | dvidir | ||||
783 | htmldir | ||||
784 | infodir | ||||
785 | docdir | ||||
786 | oldincludedir | ||||
787 | includedir | ||||
788 | localstatedir | ||||
789 | sharedstatedir | ||||
790 | sysconfdir | ||||
791 | datadir | ||||
792 | datarootdir | ||||
793 | libexecdir | ||||
794 | sbindir | ||||
795 | bindir | ||||
796 | program_transform_name | ||||
797 | prefix | ||||
798 | exec_prefix | ||||
799 | PACKAGE_URL | ||||
800 | PACKAGE_BUGREPORT | ||||
801 | PACKAGE_STRING | ||||
802 | PACKAGE_VERSION | ||||
803 | PACKAGE_TARNAME | ||||
804 | PACKAGE_NAME | ||||
805 | PATH_SEPARATOR | ||||
806 | SHELL' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 807 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 808 | ac_user_opts=' |
809 | enable_option_checking | ||||
810 | enable_universalsdk | ||||
811 | with_universal_archs | ||||
812 | with_framework_name | ||||
813 | enable_framework | ||||
814 | with_gcc | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 815 | with_icc |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 816 | with_cxx_main |
817 | with_suffix | ||||
818 | enable_shared | ||||
819 | enable_profiling | ||||
820 | with_pydebug | ||||
T. Wouters | 07a40a1 | 2017-05-23 05:25:17 | [diff] [blame] | 821 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 822 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 823 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 824 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 825 | with_address_sanitizer |
Gregory P. Smith | 3b5b1c0 | 2018-11-13 00:10:21 | [diff] [blame] | 826 | with_memory_sanitizer |
827 | with_undefined_behavior_sanitizer | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 828 | with_libs |
829 | with_system_expat | ||||
830 | with_system_ffi | ||||
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 831 | with_system_libmpdec |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 832 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 833 | with_tcltk_includes |
834 | with_tcltk_libs | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 835 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 836 | with_threads |
837 | with_thread | ||||
838 | enable_ipv6 | ||||
839 | with_doc_strings | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 840 | with_pymalloc |
841 | with_valgrind | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 842 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 843 | with_fpectl |
844 | with_libm | ||||
845 | with_libc | ||||
846 | enable_big_digits | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 847 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 848 | with_ensurepip |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 849 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 850 | ac_precious_vars='build_alias |
851 | host_alias | ||||
852 | target_alias | ||||
doko@python.org | eab42bf | 2013-01-26 17:57:19 | [diff] [blame] | 853 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 854 | CC |
855 | CFLAGS | ||||
856 | LDFLAGS | ||||
857 | LIBS | ||||
858 | CPPFLAGS | ||||
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 859 | CPP |
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' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 901 | includedir='${prefix}/include' |
902 | oldincludedir='/usr/include' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 903 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
904 | infodir='${datarootdir}/info' | ||||
905 | htmldir='${docdir}' | ||||
906 | dvidir='${docdir}' | ||||
907 | pdfdir='${docdir}' | ||||
908 | psdir='${docdir}' | ||||
909 | libdir='${exec_prefix}/lib' | ||||
910 | localedir='${datarootdir}/locale' | ||||
911 | mandir='${datarootdir}/man' | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 912 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 913 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 914 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 915 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 916 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 917 | # If the previous option needs an argument, assign it. |
918 | if test -n "$ac_prev"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 919 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 920 | ac_prev= |
921 | continue | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 922 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 923 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 924 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 925 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
926 | *=) ac_optarg= ;; | ||||
927 | *) ac_optarg=yes ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 928 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 929 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 930 | # Accept the important Cygnus configure options, so we can diagnose typos. |
931 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 932 | case $ac_dashdash$ac_option in |
933 | --) | ||||
934 | ac_dashdash=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 935 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 936 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
937 | ac_prev=bindir ;; | ||||
938 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 939 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 940 | |
941 | -build | --build | --buil | --bui | --bu) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 942 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 943 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 944 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 946 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
947 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||||
948 | ac_prev=cache_file ;; | ||||
949 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||||
950 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 951 | cache_file=$ac_optarg ;; |
952 | |||||
953 | --config-cache | -C) | ||||
954 | cache_file=config.cache ;; | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 955 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 956 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 957 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 958 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 959 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 960 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 961 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
962 | | --dataroo | --dataro | --datar) | ||||
963 | ac_prev=datarootdir ;; | ||||
964 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||||
965 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||||
966 | datarootdir=$ac_optarg ;; | ||||
967 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 968 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 969 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 970 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 972 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 973 | ac_useropt_orig=$ac_useropt |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
975 | case $ac_user_opts in | ||||
976 | *" | ||||
977 | "enable_$ac_useropt" | ||||
978 | "*) ;; | ||||
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||||
980 | ac_unrecognized_sep=', ';; | ||||
981 | esac | ||||
982 | eval enable_$ac_useropt=no ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 983 | |
984 | -docdir | --docdir | --docdi | --doc | --do) | ||||
985 | ac_prev=docdir ;; | ||||
986 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||||
987 | docdir=$ac_optarg ;; | ||||
988 | |||||
989 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||||
990 | ac_prev=dvidir ;; | ||||
991 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||||
992 | dvidir=$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 993 | |
994 | -enable-* | --enable-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 995 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 996 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 997 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 998 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 999 | ac_useropt_orig=$ac_useropt |
1000 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1001 | case $ac_user_opts in | ||||
1002 | *" | ||||
1003 | "enable_$ac_useropt" | ||||
1004 | "*) ;; | ||||
1005 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||||
1006 | ac_unrecognized_sep=', ';; | ||||
1007 | esac | ||||
1008 | eval enable_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1009 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1010 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1011 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||||
1012 | | --exec | --exe | --ex) | ||||
1013 | ac_prev=exec_prefix ;; | ||||
1014 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||||
1015 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||||
1016 | | --exec=* | --exe=* | --ex=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1017 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1018 | |
1019 | -gas | --gas | --ga | --g) | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1020 | # Obsolete; use --with-gas. |
1021 | with_gas=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1023 | -help | --help | --hel | --he | -h) |
1024 | ac_init_help=long ;; | ||||
1025 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||||
1026 | ac_init_help=recursive ;; | ||||
1027 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||||
1028 | ac_init_help=short ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1029 | |
1030 | -host | --host | --hos | --ho) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1031 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1032 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1033 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1034 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1035 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1036 | ac_prev=htmldir ;; | ||||
1037 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||||
1038 | | --ht=*) | ||||
1039 | htmldir=$ac_optarg ;; | ||||
1040 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1041 | -includedir | --includedir | --includedi | --included | --include \ |
1042 | | --includ | --inclu | --incl | --inc) | ||||
1043 | ac_prev=includedir ;; | ||||
1044 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||||
1045 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1046 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1047 | |
1048 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||||
1049 | ac_prev=infodir ;; | ||||
1050 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1051 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1052 | |
1053 | -libdir | --libdir | --libdi | --libd) | ||||
1054 | ac_prev=libdir ;; | ||||
1055 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1056 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1057 | |
1058 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||||
1059 | | --libexe | --libex | --libe) | ||||
1060 | ac_prev=libexecdir ;; | ||||
1061 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||||
1062 | | --libexe=* | --libex=* | --libe=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1063 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1065 | -localedir | --localedir | --localedi | --localed | --locale) |
1066 | ac_prev=localedir ;; | ||||
1067 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||||
1068 | localedir=$ac_optarg ;; | ||||
1069 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1070 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1071 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1072 | ac_prev=localstatedir ;; |
1073 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1074 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1075 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1076 | |
1077 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||||
1078 | ac_prev=mandir ;; | ||||
1079 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1080 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1081 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1082 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1083 | # Obsolete; use --without-fp. |
1084 | with_fp=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1085 | |
1086 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1087 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1088 | no_create=yes ;; |
1089 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1090 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1091 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||||
1092 | no_recursion=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1093 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1094 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1095 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||||
1096 | | --oldin | --oldi | --old | --ol | --o) | ||||
1097 | ac_prev=oldincludedir ;; | ||||
1098 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||||
1099 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||||
1100 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1101 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1102 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1103 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1104 | ac_prev=prefix ;; | ||||
1105 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1106 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1107 | |
1108 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||||
1109 | | --program-pre | --program-pr | --program-p) | ||||
1110 | ac_prev=program_prefix ;; | ||||
1111 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||||
1112 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1113 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1114 | |
1115 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||||
1116 | | --program-suf | --program-su | --program-s) | ||||
1117 | ac_prev=program_suffix ;; | ||||
1118 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||||
1119 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1120 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1121 | |
1122 | -program-transform-name | --program-transform-name \ | ||||
1123 | | --program-transform-nam | --program-transform-na \ | ||||
1124 | | --program-transform-n | --program-transform- \ | ||||
1125 | | --program-transform | --program-transfor \ | ||||
1126 | | --program-transfo | --program-transf \ | ||||
1127 | | --program-trans | --program-tran \ | ||||
1128 | | --progr-tra | --program-tr | --program-t) | ||||
1129 | ac_prev=program_transform_name ;; | ||||
1130 | -program-transform-name=* | --program-transform-name=* \ | ||||
1131 | | --program-transform-nam=* | --program-transform-na=* \ | ||||
1132 | | --program-transform-n=* | --program-transform-=* \ | ||||
1133 | | --program-transform=* | --program-transfor=* \ | ||||
1134 | | --program-transfo=* | --program-transf=* \ | ||||
1135 | | --program-trans=* | --program-tran=* \ | ||||
1136 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1137 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1138 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1139 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1140 | ac_prev=pdfdir ;; | ||||
1141 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||||
1142 | pdfdir=$ac_optarg ;; | ||||
1143 | |||||
1144 | -psdir | --psdir | --psdi | --psd | --ps) | ||||
1145 | ac_prev=psdir ;; | ||||
1146 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||||
1147 | psdir=$ac_optarg ;; | ||||
1148 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1149 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1150 | | -silent | --silent | --silen | --sile | --sil) | ||||
1151 | silent=yes ;; | ||||
1152 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1153 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1154 | ac_prev=sbindir ;; | ||||
1155 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||||
1156 | | --sbi=* | --sb=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1157 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1158 | |
1159 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||||
1160 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||||
1161 | | --sharedst | --shareds | --shared | --share | --shar \ | ||||
1162 | | --sha | --sh) | ||||
1163 | ac_prev=sharedstatedir ;; | ||||
1164 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||||
1165 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||||
1166 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||||
1167 | | --sha=* | --sh=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1168 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1169 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1170 | -site | --site | --sit) |
1171 | ac_prev=site ;; | ||||
1172 | -site=* | --site=* | --sit=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1173 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1174 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1175 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1176 | ac_prev=srcdir ;; | ||||
1177 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1178 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1179 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1180 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1181 | | --syscon | --sysco | --sysc | --sys | --sy) | ||||
1182 | ac_prev=sysconfdir ;; | ||||
1183 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||||
1184 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1185 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1186 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1187 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1188 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1189 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1190 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1191 | |
1192 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||||
1193 | verbose=yes ;; | ||||
1194 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1195 | -version | --version | --versio | --versi | --vers | -V) |
1196 | ac_init_version=: ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1197 | |
1198 | -with-* | --with-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1199 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1200 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1201 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1202 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1203 | ac_useropt_orig=$ac_useropt |
1204 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1205 | case $ac_user_opts in | ||||
1206 | *" | ||||
1207 | "with_$ac_useropt" | ||||
1208 | "*) ;; | ||||
1209 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||||
1210 | ac_unrecognized_sep=', ';; | ||||
1211 | esac | ||||
1212 | eval with_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1213 | |
1214 | -without-* | --without-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1215 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1216 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1217 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1218 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1219 | ac_useropt_orig=$ac_useropt |
1220 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1221 | case $ac_user_opts in | ||||
1222 | *" | ||||
1223 | "with_$ac_useropt" | ||||
1224 | "*) ;; | ||||
1225 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||||
1226 | ac_unrecognized_sep=', ';; | ||||
1227 | esac | ||||
1228 | eval with_$ac_useropt=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1229 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1230 | --x) |
1231 | # Obsolete; use --with-x. | ||||
1232 | with_x=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1233 | |
1234 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||||
1235 | | --x-incl | --x-inc | --x-in | --x-i) | ||||
1236 | ac_prev=x_includes ;; | ||||
1237 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||||
1238 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1239 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1240 | |
1241 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||||
1242 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||||
1243 | ac_prev=x_libraries ;; | ||||
1244 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||||
1245 | | --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] | 1246 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1247 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1248 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1249 | Try \`$0 --help' for more information" | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1250 | ;; |
1251 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1252 | *=*) |
1253 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||||
1254 | # Reject names that are not valid shell variable names. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1255 | case $ac_envvar in #( |
1256 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1257 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1258 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1259 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1260 | export $ac_envvar ;; |
1261 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1262 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1263 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1264 | $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] | 1265 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1266 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1267 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1268 | ;; |
1269 | |||||
1270 | esac | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1271 | done |
1272 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1273 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1274 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1275 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1276 | fi |
1277 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1278 | if test -n "$ac_unrecognized_opts"; then |
1279 | case $enable_option_checking in | ||||
1280 | no) ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1281 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1282 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1283 | esac | ||||
1284 | fi | ||||
1285 | |||||
1286 | # Check all directory arguments for consistency. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1287 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1288 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||||
1289 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||||
Ned Deily | cc3e732 | 2018-12-11 21:47:14 | [diff] [blame] | 1290 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1291 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1292 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1293 | # Remove trailing slashes. |
1294 | case $ac_val in | ||||
1295 | */ ) | ||||
1296 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||||
1297 | eval $ac_var=\$ac_val;; | ||||
1298 | esac | ||||
1299 | # Be sure to have absolute directory names. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1300 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1301 | [\\/$]* | ?:[\\/]* ) continue;; |
1302 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1303 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1304 | 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] | 1305 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1307 | # There might be people who depend on the old broken behavior: `$host' |
1308 | # used to hold the argument of --host etc. | ||||
1309 | # FIXME: To remove some day. | ||||
1310 | build=$build_alias | ||||
1311 | host=$host_alias | ||||
1312 | target=$target_alias | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1314 | # FIXME: To remove some day. |
1315 | if test "x$host_alias" != x; then | ||||
1316 | if test "x$build_alias" = x; then | ||||
1317 | cross_compiling=maybe | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1318 | elif test "x$build_alias" != "x$host_alias"; then |
1319 | cross_compiling=yes | ||||
1320 | fi | ||||
1321 | fi | ||||
1322 | |||||
1323 | ac_tool_prefix= | ||||
1324 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||||
1325 | |||||
1326 | test "$silent" = yes && exec 6>/dev/null | ||||
1327 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1328 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1329 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1330 | ac_ls_di=`ls -di .` && | ||||
1331 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1332 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1333 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1334 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1335 | |
1336 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1337 | # Find the source files, if location was not specified. |
1338 | if test -z "$srcdir"; then | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1339 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1340 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1341 | ac_confdir=`$as_dirname -- "$as_myself" || |
1342 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
1343 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||||
1344 | X"$as_myself" : 'X\(//\)$' \| \ | ||||
1345 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||||
1346 | $as_echo X"$as_myself" | | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1348 | s//\1/ | ||||
1349 | q | ||||
1350 | } | ||||
1351 | /^X\(\/\/\)[^/].*/{ | ||||
1352 | s//\1/ | ||||
1353 | q | ||||
1354 | } | ||||
1355 | /^X\(\/\/\)$/{ | ||||
1356 | s//\1/ | ||||
1357 | q | ||||
1358 | } | ||||
1359 | /^X\(\/\).*/{ | ||||
1360 | s//\1/ | ||||
1361 | q | ||||
1362 | } | ||||
1363 | s/.*/./; q'` | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1364 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1365 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1366 | srcdir=.. |
1367 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1368 | else |
1369 | ac_srcdir_defaulted=no | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1371 | if test ! -r "$srcdir/$ac_unique_file"; then |
1372 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1373 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 1374 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1375 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1376 | ac_abs_confdir=`( | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1377 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1378 | pwd)` |
1379 | # When building in place, set srcdir=. | ||||
1380 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||||
1381 | srcdir=. | ||||
1382 | fi | ||||
1383 | # Remove unnecessary trailing slashes from srcdir. | ||||
1384 | # Double slashes in file names in object file debugging info | ||||
1385 | # mess up M-x gdb in Emacs. | ||||
1386 | case $srcdir in | ||||
1387 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||||
1388 | esac | ||||
1389 | for ac_var in $ac_precious_vars; do | ||||
1390 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||||
1391 | eval ac_env_${ac_var}_value=\$${ac_var} | ||||
1392 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||||
1393 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||||
1394 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1396 | # |
1397 | # Report the --help message. | ||||
1398 | # | ||||
1399 | if test "$ac_init_help" = "long"; then | ||||
1400 | # Omit some internal or obsolete options to make the list less imposing. | ||||
1401 | # This message is too long to be a string in the A/UX 3.1 sh. | ||||
1402 | cat <<_ACEOF | ||||
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 1403 | \`configure' configures python 3.6 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1404 | |
1405 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||||
1406 | |||||
1407 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||||
1408 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||||
1409 | |||||
1410 | Defaults for the options are specified in brackets. | ||||
1411 | |||||
1412 | Configuration: | ||||
1413 | -h, --help display this help and exit | ||||
1414 | --help=short display options specific to this package | ||||
1415 | --help=recursive display the short help of all the included packages | ||||
1416 | -V, --version display version information and exit | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1417 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1418 | --cache-file=FILE cache test results in FILE [disabled] |
1419 | -C, --config-cache alias for \`--cache-file=config.cache' | ||||
1420 | -n, --no-create do not create output files | ||||
1421 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||||
1422 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1423 | Installation directories: |
1424 | --prefix=PREFIX install architecture-independent files in PREFIX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1425 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1426 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1427 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1428 | |
1429 | By default, \`make install' will install all the files in | ||||
1430 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||||
1431 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||||
1432 | for instance \`--prefix=\$HOME'. | ||||
1433 | |||||
1434 | For better control, use the options below. | ||||
1435 | |||||
1436 | Fine tuning of the installation directories: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1437 | --bindir=DIR user executables [EPREFIX/bin] |
1438 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||||
1439 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||||
1440 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||||
1441 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||||
1442 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||||
1443 | --libdir=DIR object code libraries [EPREFIX/lib] | ||||
1444 | --includedir=DIR C header files [PREFIX/include] | ||||
1445 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||||
1446 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||||
1447 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||||
1448 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||||
1449 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||||
1450 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||||
1451 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] | ||||
1452 | --htmldir=DIR html documentation [DOCDIR] | ||||
1453 | --dvidir=DIR dvi documentation [DOCDIR] | ||||
1454 | --pdfdir=DIR pdf documentation [DOCDIR] | ||||
1455 | --psdir=DIR ps documentation [DOCDIR] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1456 | _ACEOF |
1457 | |||||
1458 | cat <<\_ACEOF | ||||
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 1459 | |
1460 | System types: | ||||
1461 | --build=BUILD configure for building on BUILD [guessed] | ||||
1462 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 1463 | --target=TARGET configure for building compilers for TARGET [HOST] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1464 | _ACEOF |
1465 | fi | ||||
1466 | |||||
1467 | if test -n "$ac_init_help"; then | ||||
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 1468 | case $ac_init_help in |
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 1469 | short | recursive ) echo "Configuration of python 3.6:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 1470 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1471 | cat <<\_ACEOF |
1472 | |||||
1473 | Optional Features: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1474 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1475 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1476 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||||
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 | [diff] [blame] | 1477 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 1478 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1479 | --enable-framework[=INSTALLDIR] |
1480 | Build (MacOSX|Darwin) framework | ||||
1481 | --enable-shared disable/enable building shared python library | ||||
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 | [diff] [blame] | 1482 | --enable-profiling enable C-level code profiling |
Brett Cannon | d24429a | 2017-06-09 21:34:32 | [diff] [blame] | 1483 | --enable-optimizations Enable expensive, stable optimizations (PGO, etc). |
1484 | Disabled by default. | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 1485 | --enable-loadable-sqlite-extensions |
1486 | support loadable extensions in _sqlite module | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1487 | --enable-ipv6 Enable ipv6 (with ipv4) support |
1488 | --disable-ipv6 Disable ipv6 support | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 1489 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1490 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1491 | |
1492 | Optional Packages: | ||||
1493 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
1494 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 1495 | --with-universal-archs=ARCH |
1496 | select architectures for universal build ("32-bit", | ||||
Ned Deily | 9455244 | 2018-03-13 06:51:54 | [diff] [blame] | 1497 | "64-bit", "3-way", "intel", "intel-32", "intel-64", |
1498 | or "all") | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 1499 | --with-framework-name=FRAMEWORK |
1500 | specify an alternate name of the framework built | ||||
1501 | with --enable-framework | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1502 | --without-gcc never use gcc |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 1503 | --with-icc build with icc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 1504 | --with-cxx-main=<compiler> |
1505 | compile main() and link python executable with C++ | ||||
1506 | compiler | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1507 | --with-suffix=.exe set executable suffix |
1508 | --with-pydebug build with Py_DEBUG defined | ||||
T. Wouters | 07a40a1 | 2017-05-23 05:25:17 | [diff] [blame] | 1509 | --with-assertions build with C assertions enabled |
stratakis | f6b9459 | 2018-11-07 22:05:13 | [diff] [blame] | 1510 | --with-lto Enable Link Time Optimization in any build. Disabled |
1511 | by default. | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 1512 | --with-hash-algorithm=[fnv|siphash24] |
1513 | select hash algorithm | ||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 1514 | --with-address-sanitizer |
Gregory P. Smith | 3b5b1c0 | 2018-11-13 00:10:21 | [diff] [blame] | 1515 | enable AddressSanitizer (asan) |
1516 | --with-memory-sanitizer enable MemorySanitizer (msan) | ||||
1517 | --with-undefined-behavior-sanitizer | ||||
1518 | enable UndefinedBehaviorSanitizer (ubsan) | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1519 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 | [diff] [blame] | 1520 | --with-system-expat build pyexpat module using an installed expat |
1521 | library | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 1522 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 1523 | --with-system-libmpdec build _decimal module using an installed libmpdec |
1524 | library | ||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 1525 | --with-tcltk-includes='-I...' |
1526 | override search for Tcl and Tk include files | ||||
1527 | --with-tcltk-libs='-L...' | ||||
1528 | override search for Tcl and Tk libs | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 1529 | --with-dbmliborder=db1:db2:... |
1530 | order to check db backends for dbm. Valid value is a | ||||
1531 | colon separated string with the backend names | ||||
1532 | `ndbm', `gdbm' and `bdb'. | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1533 | --with(out)-threads[=DIRECTORY] |
1534 | disable/enable thread support | ||||
1535 | --with(out)-thread[=DIRECTORY] | ||||
1536 | deprecated; use --with(out)-threads | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1537 | --with(out)-doc-strings disable/enable documentation strings |
1538 | --with(out)-pymalloc disable/enable specialized mallocs | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 1539 | --with-valgrind Enable Valgrind support |
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 1540 | --with(out)-dtrace disable/enable DTrace support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1541 | --with-fpectl enable SIGFPE catching |
1542 | --with-libm=STRING math library | ||||
1543 | --with-libc=STRING C library | ||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 1544 | --with(out)-computed-gotos |
1545 | Use computed gotos in evaluation loop (enabled by | ||||
1546 | default on supported compilers) | ||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 1547 | --with(out)-ensurepip=[=upgrade] |
1548 | "install" or "upgrade" using bundled pip | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1549 | |
1550 | Some influential environment variables: | ||||
doko@python.org | eab42bf | 2013-01-26 17:57:19 | [diff] [blame] | 1551 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1552 | CC C compiler command |
1553 | CFLAGS C compiler flags | ||||
1554 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
1555 | nonstandard directory <lib dir> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1556 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1557 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1558 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1559 | CPP C preprocessor |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 1560 | PKG_CONFIG path to pkg-config utility |
1561 | PKG_CONFIG_PATH | ||||
1562 | directories to add to pkg-config's search path | ||||
1563 | PKG_CONFIG_LIBDIR | ||||
1564 | path overriding pkg-config's built-in search path | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1565 | |
1566 | Use these variables to override the choices made by `configure' or to help | ||||
1567 | it to find libraries and programs with nonstandard names/locations. | ||||
1568 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 1569 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1570 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1571 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1572 | fi |
1573 | |||||
1574 | if test "$ac_init_help" = "recursive"; then | ||||
1575 | # If there are subdirs, report their specific --help. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1576 | 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] | 1577 | test -d "$ac_dir" || |
1578 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||||
1579 | continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1580 | ac_builddir=. |
1581 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1582 | case "$ac_dir" in |
1583 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1584 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1585 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1586 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1587 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1588 | case $ac_top_builddir_sub in |
1589 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1590 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
1591 | esac ;; | ||||
1592 | esac | ||||
1593 | ac_abs_top_builddir=$ac_pwd | ||||
1594 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
1595 | # for backward compatibility: | ||||
1596 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1597 | |
1598 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1599 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1600 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1601 | ac_top_srcdir=$ac_top_builddir_sub |
1602 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
1603 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1604 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1605 | ac_top_srcdir=$srcdir |
1606 | ac_abs_top_srcdir=$srcdir ;; | ||||
1607 | *) # Relative name. | ||||
1608 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
1609 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
1610 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1611 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1612 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 1613 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1614 | cd "$ac_dir" || { ac_status=$?; continue; } |
1615 | # Check for guested configure. | ||||
1616 | if test -f "$ac_srcdir/configure.gnu"; then | ||||
1617 | echo && | ||||
1618 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||||
1619 | elif test -f "$ac_srcdir/configure"; then | ||||
1620 | echo && | ||||
1621 | $SHELL "$ac_srcdir/configure" --help=recursive | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1622 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1623 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1624 | fi || ac_status=$? |
1625 | cd "$ac_pwd" || { ac_status=$?; break; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1626 | done |
1627 | fi | ||||
1628 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1629 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1630 | if $ac_init_version; then |
1631 | cat <<\_ACEOF | ||||
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 1632 | python configure 3.6 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1633 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1634 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1635 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1636 | This configure script is free software; the Free Software Foundation |
1637 | gives unlimited permission to copy, distribute and modify it. | ||||
1638 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1639 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1640 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1641 | |
1642 | ## ------------------------ ## | ||||
1643 | ## Autoconf initialization. ## | ||||
1644 | ## ------------------------ ## | ||||
1645 | |||||
1646 | # ac_fn_c_try_compile LINENO | ||||
1647 | # -------------------------- | ||||
1648 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||||
1649 | ac_fn_c_try_compile () | ||||
1650 | { | ||||
1651 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1652 | rm -f conftest.$ac_objext | ||||
1653 | if { { ac_try="$ac_compile" | ||||
1654 | case "(($ac_try" in | ||||
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1656 | *) ac_try_echo=$ac_try;; | ||||
1657 | esac | ||||
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1659 | $as_echo "$ac_try_echo"; } >&5 | ||||
1660 | (eval "$ac_compile") 2>conftest.err | ||||
1661 | ac_status=$? | ||||
1662 | if test -s conftest.err; then | ||||
1663 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1664 | cat conftest.er1 >&5 | ||||
1665 | mv -f conftest.er1 conftest.err | ||||
1666 | fi | ||||
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1668 | test $ac_status = 0; } && { | ||||
1669 | test -z "$ac_c_werror_flag" || | ||||
1670 | test ! -s conftest.err | ||||
1671 | } && test -s conftest.$ac_objext; then : | ||||
1672 | ac_retval=0 | ||||
1673 | else | ||||
1674 | $as_echo "$as_me: failed program was:" >&5 | ||||
1675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1676 | |||||
1677 | ac_retval=1 | ||||
1678 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1680 | as_fn_set_status $ac_retval |
1681 | |||||
1682 | } # ac_fn_c_try_compile | ||||
1683 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 1684 | # ac_fn_c_try_cpp LINENO |
1685 | # ---------------------- | ||||
1686 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||||
1687 | ac_fn_c_try_cpp () | ||||
1688 | { | ||||
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1690 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||||
1691 | case "(($ac_try" in | ||||
1692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1693 | *) ac_try_echo=$ac_try;; | ||||
1694 | esac | ||||
1695 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1696 | $as_echo "$ac_try_echo"; } >&5 | ||||
1697 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||||
1698 | ac_status=$? | ||||
1699 | if test -s conftest.err; then | ||||
1700 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1701 | cat conftest.er1 >&5 | ||||
1702 | mv -f conftest.er1 conftest.err | ||||
1703 | fi | ||||
1704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1705 | test $ac_status = 0; } > conftest.i && { | ||||
1706 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||||
1707 | test ! -s conftest.err | ||||
1708 | }; then : | ||||
1709 | ac_retval=0 | ||||
1710 | else | ||||
1711 | $as_echo "$as_me: failed program was:" >&5 | ||||
1712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1713 | |||||
1714 | ac_retval=1 | ||||
1715 | fi | ||||
1716 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1717 | as_fn_set_status $ac_retval | ||||
1718 | |||||
1719 | } # ac_fn_c_try_cpp | ||||
1720 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1721 | # ac_fn_c_try_link LINENO |
1722 | # ----------------------- | ||||
1723 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||||
1724 | ac_fn_c_try_link () | ||||
1725 | { | ||||
1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1727 | rm -f conftest.$ac_objext conftest$ac_exeext | ||||
1728 | if { { ac_try="$ac_link" | ||||
1729 | case "(($ac_try" in | ||||
1730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1731 | *) ac_try_echo=$ac_try;; | ||||
1732 | esac | ||||
1733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1734 | $as_echo "$ac_try_echo"; } >&5 | ||||
1735 | (eval "$ac_link") 2>conftest.err | ||||
1736 | ac_status=$? | ||||
1737 | if test -s conftest.err; then | ||||
1738 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1739 | cat conftest.er1 >&5 | ||||
1740 | mv -f conftest.er1 conftest.err | ||||
1741 | fi | ||||
1742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1743 | test $ac_status = 0; } && { | ||||
1744 | test -z "$ac_c_werror_flag" || | ||||
1745 | test ! -s conftest.err | ||||
1746 | } && test -s conftest$ac_exeext && { | ||||
1747 | test "$cross_compiling" = yes || | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1748 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1749 | }; then : |
1750 | ac_retval=0 | ||||
1751 | else | ||||
1752 | $as_echo "$as_me: failed program was:" >&5 | ||||
1753 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1754 | |||||
1755 | ac_retval=1 | ||||
1756 | fi | ||||
1757 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||||
1758 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||||
1759 | # interfere with the next link command; also delete a directory that is | ||||
1760 | # left behind by Apple's compiler. We do this before executing the actions. | ||||
1761 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1762 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1763 | as_fn_set_status $ac_retval |
1764 | |||||
1765 | } # ac_fn_c_try_link | ||||
1766 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1767 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1768 | # ------------------------------------------------------- | ||||
1769 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||||
1770 | # the include files in INCLUDES and setting the cache variable VAR | ||||
1771 | # accordingly. | ||||
1772 | ac_fn_c_check_header_mongrel () | ||||
1773 | { | ||||
1774 | 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] | 1775 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1777 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1778 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1779 | $as_echo_n "(cached) " >&6 |
1780 | fi | ||||
1781 | eval ac_res=\$$3 | ||||
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1783 | $as_echo "$ac_res" >&6; } | ||||
1784 | else | ||||
1785 | # Is the header compilable? | ||||
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||||
1787 | $as_echo_n "checking $2 usability... " >&6; } | ||||
1788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1789 | /* end confdefs.h. */ | ||||
1790 | $4 | ||||
1791 | #include <$2> | ||||
1792 | _ACEOF | ||||
1793 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1794 | ac_header_compiler=yes | ||||
1795 | else | ||||
1796 | ac_header_compiler=no | ||||
1797 | fi | ||||
1798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||||
1800 | $as_echo "$ac_header_compiler" >&6; } | ||||
1801 | |||||
1802 | # Is the header present? | ||||
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||||
1804 | $as_echo_n "checking $2 presence... " >&6; } | ||||
1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1806 | /* end confdefs.h. */ | ||||
1807 | #include <$2> | ||||
1808 | _ACEOF | ||||
1809 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
1810 | ac_header_preproc=yes | ||||
1811 | else | ||||
1812 | ac_header_preproc=no | ||||
1813 | fi | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1814 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1816 | $as_echo "$ac_header_preproc" >&6; } | ||||
1817 | |||||
1818 | # So? What about this header? | ||||
1819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||||
1820 | yes:no: ) | ||||
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||||
1822 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||||
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1824 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1825 | ;; | ||||
1826 | no:yes:* ) | ||||
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||||
1828 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||||
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||||
1830 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||||
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||||
1832 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||||
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||||
1834 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||||
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1836 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 1837 | ( $as_echo "## --------------------------------------- ## |
1838 | ## Report this to https://bugs.python.org/ ## | ||||
1839 | ## --------------------------------------- ##" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1840 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1841 | ;; | ||||
1842 | esac | ||||
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1844 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1845 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1846 | $as_echo_n "(cached) " >&6 |
1847 | else | ||||
1848 | eval "$3=\$ac_header_compiler" | ||||
1849 | fi | ||||
1850 | eval ac_res=\$$3 | ||||
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1852 | $as_echo "$ac_res" >&6; } | ||||
1853 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1854 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1855 | |
1856 | } # ac_fn_c_check_header_mongrel | ||||
1857 | |||||
1858 | # ac_fn_c_try_run LINENO | ||||
1859 | # ---------------------- | ||||
1860 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||||
1861 | # that executables *can* be run. | ||||
1862 | ac_fn_c_try_run () | ||||
1863 | { | ||||
1864 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1865 | if { { ac_try="$ac_link" | ||||
1866 | case "(($ac_try" in | ||||
1867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1868 | *) ac_try_echo=$ac_try;; | ||||
1869 | esac | ||||
1870 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1871 | $as_echo "$ac_try_echo"; } >&5 | ||||
1872 | (eval "$ac_link") 2>&5 | ||||
1873 | ac_status=$? | ||||
1874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1875 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||||
1876 | { { case "(($ac_try" in | ||||
1877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1878 | *) ac_try_echo=$ac_try;; | ||||
1879 | esac | ||||
1880 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1881 | $as_echo "$ac_try_echo"; } >&5 | ||||
1882 | (eval "$ac_try") 2>&5 | ||||
1883 | ac_status=$? | ||||
1884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1885 | test $ac_status = 0; }; }; then : | ||||
1886 | ac_retval=0 | ||||
1887 | else | ||||
1888 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||||
1889 | $as_echo "$as_me: failed program was:" >&5 | ||||
1890 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1891 | |||||
1892 | ac_retval=$ac_status | ||||
1893 | fi | ||||
1894 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1895 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1896 | as_fn_set_status $ac_retval |
1897 | |||||
1898 | } # ac_fn_c_try_run | ||||
1899 | |||||
1900 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||||
1901 | # ------------------------------------------------------- | ||||
1902 | # Tests whether HEADER exists and can be compiled using the include files in | ||||
1903 | # INCLUDES, setting the cache variable VAR accordingly. | ||||
1904 | ac_fn_c_check_header_compile () | ||||
1905 | { | ||||
1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1908 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1909 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1910 | $as_echo_n "(cached) " >&6 |
1911 | else | ||||
1912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1913 | /* end confdefs.h. */ | ||||
1914 | $4 | ||||
1915 | #include <$2> | ||||
1916 | _ACEOF | ||||
1917 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1918 | eval "$3=yes" | ||||
1919 | else | ||||
1920 | eval "$3=no" | ||||
1921 | fi | ||||
1922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1923 | fi | ||||
1924 | eval ac_res=\$$3 | ||||
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1926 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1928 | |
1929 | } # ac_fn_c_check_header_compile | ||||
1930 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1931 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1932 | # ------------------------------------------- | ||||
1933 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||||
1934 | # variable VAR accordingly. | ||||
1935 | ac_fn_c_check_type () | ||||
1936 | { | ||||
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1939 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1940 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1941 | $as_echo_n "(cached) " >&6 |
1942 | else | ||||
1943 | eval "$3=no" | ||||
1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1945 | /* end confdefs.h. */ | ||||
1946 | $4 | ||||
1947 | int | ||||
1948 | main () | ||||
1949 | { | ||||
1950 | if (sizeof ($2)) | ||||
1951 | return 0; | ||||
1952 | ; | ||||
1953 | return 0; | ||||
1954 | } | ||||
1955 | _ACEOF | ||||
1956 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1958 | /* end confdefs.h. */ | ||||
1959 | $4 | ||||
1960 | int | ||||
1961 | main () | ||||
1962 | { | ||||
1963 | if (sizeof (($2))) | ||||
1964 | return 0; | ||||
1965 | ; | ||||
1966 | return 0; | ||||
1967 | } | ||||
1968 | _ACEOF | ||||
1969 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1970 | |||||
1971 | else | ||||
1972 | eval "$3=yes" | ||||
1973 | fi | ||||
1974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1975 | fi | ||||
1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1977 | fi | ||||
1978 | eval ac_res=\$$3 | ||||
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1980 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1981 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1982 | |
1983 | } # ac_fn_c_check_type | ||||
1984 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1985 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1986 | # -------------------------------------------- | ||||
1987 | # Tries to find the compile-time value of EXPR in a program that includes | ||||
1988 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||||
1989 | # computed | ||||
1990 | ac_fn_c_compute_int () | ||||
1991 | { | ||||
1992 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1993 | if test "$cross_compiling" = yes; then | ||||
1994 | # Depending upon the size, compute the lo and hi bounds. | ||||
1995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1996 | /* end confdefs.h. */ | ||||
1997 | $4 | ||||
1998 | int | ||||
1999 | main () | ||||
2000 | { | ||||
2001 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2002 | test_array [0] = 0; |
2003 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2004 | |
2005 | ; | ||||
2006 | return 0; | ||||
2007 | } | ||||
2008 | _ACEOF | ||||
2009 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2010 | ac_lo=0 ac_mid=0 | ||||
2011 | while :; do | ||||
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2013 | /* end confdefs.h. */ | ||||
2014 | $4 | ||||
2015 | int | ||||
2016 | main () | ||||
2017 | { | ||||
2018 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2019 | test_array [0] = 0; |
2020 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2021 | |
2022 | ; | ||||
2023 | return 0; | ||||
2024 | } | ||||
2025 | _ACEOF | ||||
2026 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2027 | ac_hi=$ac_mid; break | ||||
2028 | else | ||||
2029 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||||
2030 | if test $ac_lo -le $ac_mid; then | ||||
2031 | ac_lo= ac_hi= | ||||
2032 | break | ||||
2033 | fi | ||||
2034 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||||
2035 | fi | ||||
2036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2037 | done | ||||
2038 | else | ||||
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2040 | /* end confdefs.h. */ | ||||
2041 | $4 | ||||
2042 | int | ||||
2043 | main () | ||||
2044 | { | ||||
2045 | static int test_array [1 - 2 * !(($2) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2046 | test_array [0] = 0; |
2047 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2048 | |
2049 | ; | ||||
2050 | return 0; | ||||
2051 | } | ||||
2052 | _ACEOF | ||||
2053 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2054 | ac_hi=-1 ac_mid=-1 | ||||
2055 | while :; do | ||||
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2057 | /* end confdefs.h. */ | ||||
2058 | $4 | ||||
2059 | int | ||||
2060 | main () | ||||
2061 | { | ||||
2062 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2063 | test_array [0] = 0; |
2064 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2065 | |
2066 | ; | ||||
2067 | return 0; | ||||
2068 | } | ||||
2069 | _ACEOF | ||||
2070 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2071 | ac_lo=$ac_mid; break | ||||
2072 | else | ||||
2073 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||||
2074 | if test $ac_mid -le $ac_hi; then | ||||
2075 | ac_lo= ac_hi= | ||||
2076 | break | ||||
2077 | fi | ||||
2078 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||||
2079 | fi | ||||
2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2081 | done | ||||
2082 | else | ||||
2083 | ac_lo= ac_hi= | ||||
2084 | fi | ||||
2085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2086 | fi | ||||
2087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2088 | # Binary search between lo and hi bounds. | ||||
2089 | while test "x$ac_lo" != "x$ac_hi"; do | ||||
2090 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||||
2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2092 | /* end confdefs.h. */ | ||||
2093 | $4 | ||||
2094 | int | ||||
2095 | main () | ||||
2096 | { | ||||
2097 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2098 | test_array [0] = 0; |
2099 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2100 | |
2101 | ; | ||||
2102 | return 0; | ||||
2103 | } | ||||
2104 | _ACEOF | ||||
2105 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2106 | ac_hi=$ac_mid | ||||
2107 | else | ||||
2108 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||||
2109 | fi | ||||
2110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2111 | done | ||||
2112 | case $ac_lo in #(( | ||||
2113 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||||
2114 | '') ac_retval=1 ;; | ||||
2115 | esac | ||||
2116 | else | ||||
2117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2118 | /* end confdefs.h. */ | ||||
2119 | $4 | ||||
2120 | static long int longval () { return $2; } | ||||
2121 | static unsigned long int ulongval () { return $2; } | ||||
2122 | #include <stdio.h> | ||||
2123 | #include <stdlib.h> | ||||
2124 | int | ||||
2125 | main () | ||||
2126 | { | ||||
2127 | |||||
2128 | FILE *f = fopen ("conftest.val", "w"); | ||||
2129 | if (! f) | ||||
2130 | return 1; | ||||
2131 | if (($2) < 0) | ||||
2132 | { | ||||
2133 | long int i = longval (); | ||||
2134 | if (i != ($2)) | ||||
2135 | return 1; | ||||
2136 | fprintf (f, "%ld", i); | ||||
2137 | } | ||||
2138 | else | ||||
2139 | { | ||||
2140 | unsigned long int i = ulongval (); | ||||
2141 | if (i != ($2)) | ||||
2142 | return 1; | ||||
2143 | fprintf (f, "%lu", i); | ||||
2144 | } | ||||
2145 | /* Do not output a trailing newline, as this causes \r\n confusion | ||||
2146 | on some platforms. */ | ||||
2147 | return ferror (f) || fclose (f) != 0; | ||||
2148 | |||||
2149 | ; | ||||
2150 | return 0; | ||||
2151 | } | ||||
2152 | _ACEOF | ||||
2153 | if ac_fn_c_try_run "$LINENO"; then : | ||||
2154 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||||
2155 | else | ||||
2156 | ac_retval=1 | ||||
2157 | fi | ||||
2158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
2159 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
2160 | rm -f conftest.val | ||||
2161 | |||||
2162 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2163 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2164 | as_fn_set_status $ac_retval |
2165 | |||||
2166 | } # ac_fn_c_compute_int | ||||
2167 | |||||
2168 | # ac_fn_c_check_func LINENO FUNC VAR | ||||
2169 | # ---------------------------------- | ||||
2170 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||||
2171 | ac_fn_c_check_func () | ||||
2172 | { | ||||
2173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
2175 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2176 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2177 | $as_echo_n "(cached) " >&6 |
2178 | else | ||||
2179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2180 | /* end confdefs.h. */ | ||||
2181 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||||
2182 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||||
2183 | #define $2 innocuous_$2 | ||||
2184 | |||||
2185 | /* System header to define __stub macros and hopefully few prototypes, | ||||
2186 | which can conflict with char $2 (); below. | ||||
2187 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
2188 | <limits.h> exists even on freestanding compilers. */ | ||||
2189 | |||||
2190 | #ifdef __STDC__ | ||||
2191 | # include <limits.h> | ||||
2192 | #else | ||||
2193 | # include <assert.h> | ||||
2194 | #endif | ||||
2195 | |||||
2196 | #undef $2 | ||||
2197 | |||||
2198 | /* Override any GCC internal prototype to avoid an error. | ||||
2199 | Use char because int might match the return type of a GCC | ||||
2200 | builtin and then its argument prototype would still apply. */ | ||||
2201 | #ifdef __cplusplus | ||||
2202 | extern "C" | ||||
2203 | #endif | ||||
2204 | char $2 (); | ||||
2205 | /* The GNU C library defines this for functions which it implements | ||||
2206 | to always fail with ENOSYS. Some functions are actually named | ||||
2207 | something starting with __ and the normal name is an alias. */ | ||||
2208 | #if defined __stub_$2 || defined __stub___$2 | ||||
2209 | choke me | ||||
2210 | #endif | ||||
2211 | |||||
2212 | int | ||||
2213 | main () | ||||
2214 | { | ||||
2215 | return $2 (); | ||||
2216 | ; | ||||
2217 | return 0; | ||||
2218 | } | ||||
2219 | _ACEOF | ||||
2220 | if ac_fn_c_try_link "$LINENO"; then : | ||||
2221 | eval "$3=yes" | ||||
2222 | else | ||||
2223 | eval "$3=no" | ||||
2224 | fi | ||||
2225 | rm -f core conftest.err conftest.$ac_objext \ | ||||
2226 | conftest$ac_exeext conftest.$ac_ext | ||||
2227 | fi | ||||
2228 | eval ac_res=\$$3 | ||||
2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2230 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2231 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2232 | |
2233 | } # ac_fn_c_check_func | ||||
2234 | |||||
Gregory P. Smith | df300d5 | 2012-01-22 02:20:15 | [diff] [blame] | 2235 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2236 | # --------------------------------------------- | ||||
2237 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||||
2238 | # accordingly. | ||||
2239 | ac_fn_c_check_decl () | ||||
2240 | { | ||||
2241 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2242 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||||
2243 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||||
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||||
2245 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||||
2246 | if eval \${$3+:} false; then : | ||||
2247 | $as_echo_n "(cached) " >&6 | ||||
2248 | else | ||||
2249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2250 | /* end confdefs.h. */ | ||||
2251 | $4 | ||||
2252 | int | ||||
2253 | main () | ||||
2254 | { | ||||
2255 | #ifndef $as_decl_name | ||||
2256 | #ifdef __cplusplus | ||||
2257 | (void) $as_decl_use; | ||||
2258 | #else | ||||
2259 | (void) $as_decl_name; | ||||
2260 | #endif | ||||
2261 | #endif | ||||
2262 | |||||
2263 | ; | ||||
2264 | return 0; | ||||
2265 | } | ||||
2266 | _ACEOF | ||||
2267 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2268 | eval "$3=yes" | ||||
2269 | else | ||||
2270 | eval "$3=no" | ||||
2271 | fi | ||||
2272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2273 | fi | ||||
2274 | eval ac_res=\$$3 | ||||
2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2276 | $as_echo "$ac_res" >&6; } | ||||
2277 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
2278 | |||||
2279 | } # ac_fn_c_check_decl | ||||
2280 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2281 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2282 | # ---------------------------------------------------- | ||||
2283 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||||
2284 | # INCLUDES, setting cache variable VAR accordingly. | ||||
2285 | ac_fn_c_check_member () | ||||
2286 | { | ||||
2287 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||||
2289 | $as_echo_n "checking for $2.$3... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2290 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2291 | $as_echo_n "(cached) " >&6 |
2292 | else | ||||
2293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2294 | /* end confdefs.h. */ | ||||
2295 | $5 | ||||
2296 | int | ||||
2297 | main () | ||||
2298 | { | ||||
2299 | static $2 ac_aggr; | ||||
2300 | if (ac_aggr.$3) | ||||
2301 | return 0; | ||||
2302 | ; | ||||
2303 | return 0; | ||||
2304 | } | ||||
2305 | _ACEOF | ||||
2306 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2307 | eval "$4=yes" | ||||
2308 | else | ||||
2309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2310 | /* end confdefs.h. */ | ||||
2311 | $5 | ||||
2312 | int | ||||
2313 | main () | ||||
2314 | { | ||||
2315 | static $2 ac_aggr; | ||||
2316 | if (sizeof ac_aggr.$3) | ||||
2317 | return 0; | ||||
2318 | ; | ||||
2319 | return 0; | ||||
2320 | } | ||||
2321 | _ACEOF | ||||
2322 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2323 | eval "$4=yes" | ||||
2324 | else | ||||
2325 | eval "$4=no" | ||||
2326 | fi | ||||
2327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2328 | fi | ||||
2329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2330 | fi | ||||
2331 | eval ac_res=\$$4 | ||||
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2333 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2334 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2335 | |
2336 | } # ac_fn_c_check_member | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2337 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2338 | This file contains any messages produced by compilers while |
2339 | running configure, to aid debugging if configure makes a mistake. | ||||
2340 | |||||
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 2341 | It was created by python $as_me 3.6, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2342 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2343 | |
2344 | $ $0 $@ | ||||
2345 | |||||
2346 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2347 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2348 | { |
2349 | cat <<_ASUNAME | ||||
2350 | ## --------- ## | ||||
2351 | ## Platform. ## | ||||
2352 | ## --------- ## | ||||
2353 | |||||
2354 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
2355 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||||
2356 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||||
2357 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||||
2358 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||||
2359 | |||||
2360 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||||
2361 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||||
2362 | |||||
2363 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||||
2364 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||||
2365 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2366 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2367 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2368 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||||
2369 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||||
2370 | |||||
2371 | _ASUNAME | ||||
2372 | |||||
2373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2374 | for as_dir in $PATH | ||||
2375 | do | ||||
2376 | IFS=$as_save_IFS | ||||
2377 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2378 | $as_echo "PATH: $as_dir" |
2379 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2380 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2381 | |
2382 | } >&5 | ||||
2383 | |||||
2384 | cat >&5 <<_ACEOF | ||||
2385 | |||||
2386 | |||||
2387 | ## ----------- ## | ||||
2388 | ## Core tests. ## | ||||
2389 | ## ----------- ## | ||||
2390 | |||||
2391 | _ACEOF | ||||
2392 | |||||
2393 | |||||
2394 | # Keep a trace of the command line. | ||||
2395 | # Strip out --no-create and --no-recursion so they do not pile up. | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2396 | # 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] | 2397 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2398 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2399 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2400 | ac_configure_args0= |
2401 | ac_configure_args1= | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2402 | ac_must_keep_next=false |
2403 | for ac_pass in 1 2 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2404 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2405 | for ac_arg |
2406 | do | ||||
2407 | case $ac_arg in | ||||
2408 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||||
2409 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||||
2410 | | -silent | --silent | --silen | --sile | --sil) | ||||
2411 | continue ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2412 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2413 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2414 | esac |
2415 | case $ac_pass in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2416 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2417 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2418 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2419 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 2420 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2421 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 2422 | case $ac_arg in |
2423 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||||
2424 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||||
2425 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||||
2426 | | -with-* | --with-* | -without-* | --without-* | --x) | ||||
2427 | case "$ac_configure_args0 " in | ||||
2428 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||||
2429 | esac | ||||
2430 | ;; | ||||
2431 | -* ) ac_must_keep_next=true ;; | ||||
2432 | esac | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2433 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2434 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2435 | ;; |
2436 | esac | ||||
2437 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2438 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2439 | { ac_configure_args0=; unset ac_configure_args0;} |
2440 | { ac_configure_args1=; unset ac_configure_args1;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2441 | |
2442 | # When interrupted or exit'd, cleanup temporary files, and complete | ||||
2443 | # config.log. We remove comments because anyway the quotes in there | ||||
2444 | # would cause problems or look ugly. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2445 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2446 | # 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] | 2447 | trap 'exit_status=$? |
2448 | # Save into config.log some information that might help in debugging. | ||||
2449 | { | ||||
2450 | echo | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2451 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2452 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2453 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2454 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2455 | echo |
2456 | # The following way of writing the cache mishandles newlines in values, | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2457 | ( |
2458 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||||
2459 | eval ac_val=\$$ac_var | ||||
2460 | case $ac_val in #( | ||||
2461 | *${as_nl}*) | ||||
2462 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2463 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2464 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2465 | esac |
2466 | case $ac_var in #( | ||||
2467 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2468 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2469 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2470 | esac ;; |
2471 | esac | ||||
2472 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2473 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2474 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2475 | *${as_nl}ac_space=\ *) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2476 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2477 | "s/'\''/'\''\\\\'\'''\''/g; |
2478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||||
2479 | ;; #( | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 2480 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2481 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 2482 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2483 | esac | |
2484 | sort | ||||
2485 | ) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2486 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2487 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2488 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2489 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2490 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2491 | echo |
2492 | for ac_var in $ac_subst_vars | ||||
2493 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2494 | eval ac_val=\$$ac_var |
2495 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2496 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2497 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2498 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2499 | done | sort |
2500 | echo | ||||
2501 | |||||
2502 | if test -n "$ac_subst_files"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2503 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2504 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2505 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2506 | echo |
2507 | for ac_var in $ac_subst_files | ||||
2508 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2509 | eval ac_val=\$$ac_var |
2510 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2511 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2512 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2513 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2514 | done | sort |
2515 | echo | ||||
2516 | fi | ||||
2517 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2518 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2519 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2520 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2521 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2522 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2523 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2524 | echo |
2525 | fi | ||||
2526 | test "$ac_signal" != 0 && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2527 | $as_echo "$as_me: caught signal $ac_signal" |
2528 | $as_echo "$as_me: exit $exit_status" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2529 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2530 | rm -f core *.core core.conftest.* && |
2531 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2532 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2533 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2534 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2535 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2536 | done |
2537 | ac_signal=0 | ||||
2538 | |||||
2539 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2540 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2541 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2542 | $as_echo "/* confdefs.h */" > confdefs.h |
2543 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2544 | # Predefined preprocessor variables. |
2545 | |||||
2546 | cat >>confdefs.h <<_ACEOF | ||||
2547 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||||
2548 | _ACEOF | ||||
2549 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2550 | cat >>confdefs.h <<_ACEOF |
2551 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||||
2552 | _ACEOF | ||||
2553 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2554 | cat >>confdefs.h <<_ACEOF |
2555 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||||
2556 | _ACEOF | ||||
2557 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2558 | cat >>confdefs.h <<_ACEOF |
2559 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||||
2560 | _ACEOF | ||||
2561 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2562 | cat >>confdefs.h <<_ACEOF |
2563 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||||
2564 | _ACEOF | ||||
2565 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2566 | cat >>confdefs.h <<_ACEOF |
2567 | #define PACKAGE_URL "$PACKAGE_URL" | ||||
2568 | _ACEOF | ||||
2569 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2570 | |
2571 | # Let the site file select an alternate cache file if it wants to. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2572 | # Prefer an explicitly selected file to automatically selected ones. |
2573 | ac_site_file1=NONE | ||||
2574 | ac_site_file2=NONE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2575 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2576 | # We do not want a PATH search for config.site. |
2577 | case $CONFIG_SITE in #(( | ||||
2578 | -*) ac_site_file1=./$CONFIG_SITE;; | ||||
2579 | */*) ac_site_file1=$CONFIG_SITE;; | ||||
2580 | *) ac_site_file1=./$CONFIG_SITE;; | ||||
2581 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2582 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2583 | ac_site_file1=$prefix/share/config.site |
2584 | ac_site_file2=$prefix/etc/config.site | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2585 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2586 | ac_site_file1=$ac_default_prefix/share/config.site |
2587 | ac_site_file2=$ac_default_prefix/etc/config.site | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2588 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2589 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2590 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2591 | test "x$ac_site_file" = xNONE && continue |
2592 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||||
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||||
2594 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2595 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2596 | . "$ac_site_file" \ |
2597 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
2598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2599 | as_fn_error $? "failed to load site script $ac_site_file | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2600 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2601 | fi |
2602 | done | ||||
2603 | |||||
2604 | if test -r "$cache_file"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2605 | # Some versions of bash will fail to source /dev/null (special files |
2606 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||||
2607 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||||
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||||
2609 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2610 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2611 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2612 | *) . "./$cache_file";; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2613 | esac |
2614 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2615 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2617 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2618 | >$cache_file |
2619 | fi | ||||
2620 | |||||
2621 | # Check that the precious variables saved in the cache have kept the same | ||||
2622 | # value. | ||||
2623 | ac_cache_corrupted=false | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2624 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2625 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2626 | eval ac_new_set=\$ac_env_${ac_var}_set | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2627 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2628 | eval ac_new_val=\$ac_env_${ac_var}_value | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2629 | case $ac_old_set,$ac_new_set in |
2630 | set,) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2632 | $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] | 2633 | ac_cache_corrupted=: ;; |
2634 | ,set) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2636 | $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] | 2637 | ac_cache_corrupted=: ;; |
2638 | ,);; | ||||
2639 | *) | ||||
2640 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2641 | # differences in whitespace do not lead to failure. |
2642 | ac_old_val_w=`echo x $ac_old_val` | ||||
2643 | ac_new_val_w=`echo x $ac_new_val` | ||||
2644 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||||
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||||
2646 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||||
2647 | ac_cache_corrupted=: | ||||
2648 | else | ||||
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||||
2650 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||||
2651 | eval $ac_var=\$ac_old_val | ||||
2652 | fi | ||||
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||||
2654 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||||
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||||
2656 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2657 | fi;; |
2658 | esac | ||||
2659 | # Pass precious variables to config.status. | ||||
2660 | if test "$ac_new_set" = set; then | ||||
2661 | case $ac_new_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2662 | *\'*) 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] | 2663 | *) ac_arg=$ac_var=$ac_new_val ;; |
2664 | esac | ||||
2665 | case " $ac_configure_args " in | ||||
2666 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2667 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2668 | esac |
2669 | fi | ||||
2670 | done | ||||
2671 | if $ac_cache_corrupted; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2673 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||||
2675 | $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] | 2676 | 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] | 2677 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2678 | ## -------------------- ## |
2679 | ## Main body of script. ## | ||||
2680 | ## -------------------- ## | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2681 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 2682 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2683 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
2686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2687 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 2688 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 2689 | |
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 2690 | |
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 | [diff] [blame] | 2691 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 2692 | # If we're building out-of-tree, we need to make sure the following |
2693 | # resources get picked up before their $srcdir counterparts. | ||||
2694 | # Objects/ -> typeslots.inc | ||||
2695 | # Include/ -> Python-ast.h, graminit.h | ||||
2696 | # Python/ -> importlib.h | ||||
2697 | # (A side effect of this is that these resources will automatically be | ||||
2698 | # regenerated when building out-of-tree, regardless of whether or not | ||||
2699 | # the $srcdir counterpart is up-to-date. This is an acceptable trade | ||||
2700 | # off.) | ||||
2701 | BASECPPFLAGS="-IObjects -IInclude -IPython" | ||||
2702 | else | ||||
2703 | BASECPPFLAGS="" | ||||
2704 | fi | ||||
2705 | |||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2706 | |
2707 | |||||
2708 | |||||
2709 | |||||
Victor Stinner | 4dae0d1 | 2017-05-02 21:46:06 | [diff] [blame] | 2710 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2711 | then |
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2712 | # Extract the first word of "git", so it can be a program name with args. |
2713 | set dummy git; ac_word=$2 | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2715 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2716 | if ${ac_cv_prog_HAS_GIT+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2717 | $as_echo_n "(cached) " >&6 |
2718 | else | ||||
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2719 | if test -n "$HAS_GIT"; then |
2720 | ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2721 | else |
2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2723 | for as_dir in $PATH | ||||
2724 | do | ||||
2725 | IFS=$as_save_IFS | ||||
2726 | test -z "$as_dir" && as_dir=. | ||||
2727 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 2728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2729 | ac_cv_prog_HAS_GIT="found" |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2731 | break 2 | ||||
2732 | fi | ||||
2733 | done | ||||
2734 | done | ||||
2735 | IFS=$as_save_IFS | ||||
2736 | |||||
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2737 | 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] | 2738 | fi |
2739 | fi | ||||
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2740 | HAS_GIT=$ac_cv_prog_HAS_GIT |
2741 | if test -n "$HAS_GIT"; then | ||||
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 | ||||
2743 | $as_echo "$HAS_GIT" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2744 | else |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2746 | $as_echo "no" >&6; } | ||||
2747 | fi | ||||
2748 | |||||
2749 | |||||
2750 | else | ||||
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2751 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2752 | fi |
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2753 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2754 | then |
Miss Islington (bot) | 92970cc | 2018-08-20 15:00:07 | [diff] [blame] | 2755 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
2756 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" | ||||
2757 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2758 | else |
Ned Deily | 95c50e5 | 2017-03-04 06:05:06 | [diff] [blame] | 2759 | GITVERSION="" |
2760 | GITTAG="" | ||||
2761 | GITBRANCH="" | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2762 | fi |
2763 | |||||
2764 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2765 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2766 | |
2767 | |||||
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 2768 | ac_aux_dir= |
2769 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||||
2770 | if test -f "$ac_dir/install-sh"; then | ||||
2771 | ac_aux_dir=$ac_dir | ||||
2772 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||||
2773 | break | ||||
2774 | elif test -f "$ac_dir/install.sh"; then | ||||
2775 | ac_aux_dir=$ac_dir | ||||
2776 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||||
2777 | break | ||||
2778 | elif test -f "$ac_dir/shtool"; then | ||||
2779 | ac_aux_dir=$ac_dir | ||||
2780 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||||
2781 | break | ||||
2782 | fi | ||||
2783 | done | ||||
2784 | if test -z "$ac_aux_dir"; then | ||||
2785 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||||
2786 | fi | ||||
2787 | |||||
2788 | # These three variables are undocumented and unsupported, | ||||
2789 | # and are intended to be withdrawn in a future Autoconf release. | ||||
2790 | # They can cause serious problems if a builder's source tree is in a directory | ||||
2791 | # whose full name contains unusual characters. | ||||
2792 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||||
2793 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||||
2794 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||||
2795 | |||||
2796 | |||||
2797 | # Make sure we can run config.sub. | ||||
2798 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||||
2799 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||||
2800 | |||||
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||||
2802 | $as_echo_n "checking build system type... " >&6; } | ||||
2803 | if ${ac_cv_build+:} false; then : | ||||
2804 | $as_echo_n "(cached) " >&6 | ||||
2805 | else | ||||
2806 | ac_build_alias=$build_alias | ||||
2807 | test "x$ac_build_alias" = x && | ||||
2808 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||||
2809 | test "x$ac_build_alias" = x && | ||||
2810 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
2811 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||||
2812 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||||
2813 | |||||
2814 | fi | ||||
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||||
2816 | $as_echo "$ac_cv_build" >&6; } | ||||
2817 | case $ac_cv_build in | ||||
2818 | *-*-*) ;; | ||||
2819 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
2820 | esac | ||||
2821 | build=$ac_cv_build | ||||
2822 | ac_save_IFS=$IFS; IFS='-' | ||||
2823 | set x $ac_cv_build | ||||
2824 | shift | ||||
2825 | build_cpu=$1 | ||||
2826 | build_vendor=$2 | ||||
2827 | shift; shift | ||||
2828 | # Remember, the first character of IFS is used to create $*, | ||||
2829 | # except with old shells: | ||||
2830 | build_os=$* | ||||
2831 | IFS=$ac_save_IFS | ||||
2832 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
2833 | |||||
2834 | |||||
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||||
2836 | $as_echo_n "checking host system type... " >&6; } | ||||
2837 | if ${ac_cv_host+:} false; then : | ||||
2838 | $as_echo_n "(cached) " >&6 | ||||
2839 | else | ||||
2840 | if test "x$host_alias" = x; then | ||||
2841 | ac_cv_host=$ac_cv_build | ||||
2842 | else | ||||
2843 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||||
2844 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||||
2845 | fi | ||||
2846 | |||||
2847 | fi | ||||
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||||
2849 | $as_echo "$ac_cv_host" >&6; } | ||||
2850 | case $ac_cv_host in | ||||
2851 | *-*-*) ;; | ||||
2852 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
2853 | esac | ||||
2854 | host=$ac_cv_host | ||||
2855 | ac_save_IFS=$IFS; IFS='-' | ||||
2856 | set x $ac_cv_host | ||||
2857 | shift | ||||
2858 | host_cpu=$1 | ||||
2859 | host_vendor=$2 | ||||
2860 | shift; shift | ||||
2861 | # Remember, the first character of IFS is used to create $*, | ||||
2862 | # except with old shells: | ||||
2863 | host_os=$* | ||||
2864 | IFS=$ac_save_IFS | ||||
2865 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
2866 | |||||
2867 | |||||
2868 | |||||
doko@python.org | a10e4a9 | 2013-01-25 17:45:12 | [diff] [blame] | 2869 | |
2870 | |||||
Ned Deily | fcbc246 | 2014-08-22 20:32:49 | [diff] [blame] | 2871 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
2872 | rm -f pybuilddir.txt | ||||
2873 | |||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2874 | for ac_prog in python$PACKAGE_VERSION python3 python |
2875 | do | ||||
2876 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
2877 | set dummy $ac_prog; ac_word=$2 | ||||
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
2879 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 2880 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2881 | $as_echo_n "(cached) " >&6 |
2882 | else | ||||
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 2883 | if test -n "$PYTHON_FOR_REGEN"; then |
2884 | 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] | 2885 | else |
2886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2887 | for as_dir in $PATH | ||||
2888 | do | ||||
2889 | IFS=$as_save_IFS | ||||
2890 | test -z "$as_dir" && as_dir=. | ||||
2891 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
2892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 2893 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2895 | break 2 | ||||
2896 | fi | ||||
2897 | done | ||||
2898 | done | ||||
2899 | IFS=$as_save_IFS | ||||
2900 | |||||
2901 | fi | ||||
2902 | fi | ||||
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 2903 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
2904 | if test -n "$PYTHON_FOR_REGEN"; then | ||||
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 | ||||
2906 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2907 | else |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2909 | $as_echo "no" >&6; } | ||||
2910 | fi | ||||
2911 | |||||
2912 | |||||
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 2913 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2914 | done |
Victor Stinner | 9d02f56 | 2017-05-04 22:46:56 | [diff] [blame] | 2915 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2916 | |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2917 | |
2918 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2919 | if test "$cross_compiling" = yes; then |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | ||||
2921 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | ||||
2922 | if test -z "$PYTHON_FOR_BUILD"; then | ||||
2923 | for interp in python$PACKAGE_VERSION python3 python; do | ||||
2924 | which $interp >/dev/null 2>&1 || continue | ||||
Xavier de Gaye | 4afd143 | 2016-07-07 16:00:22 | [diff] [blame] | 2925 | 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] | 2926 | break |
2927 | fi | ||||
2928 | interp= | ||||
2929 | done | ||||
2930 | if test x$interp = x; then | ||||
2931 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | ||||
2932 | fi | ||||
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | ||||
2934 | $as_echo "$interp" >&6; } | ||||
Xavier de Gaye | 92dec54 | 2016-09-11 20:22:24 | [diff] [blame] | 2935 | 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] | 2936 | fi |
Christian Heimes | 954ac03 | 2012-12-12 12:10:21 | [diff] [blame] | 2937 | elif test "$cross_compiling" = maybe; then |
2938 | 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] | 2939 | else |
2940 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2941 | fi |
2942 | |||||
2943 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2944 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 | [diff] [blame] | 2945 | if test "$prefix" != "/"; then |
2946 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | ||||
2947 | fi | ||||
2948 | |||||
2949 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2950 | |
2951 | |||||
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 | [diff] [blame] | 2952 | # We don't use PACKAGE_ variables, and they cause conflicts |
2953 | # with other autoconf-based packages that include Python.h | ||||
2954 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | ||||
2955 | rm confdefs.h | ||||
2956 | mv confdefs.h.new confdefs.h | ||||
2957 | |||||
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 | [diff] [blame] | 2958 | |
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 2959 | VERSION=3.6 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 | [diff] [blame] | 2960 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 2961 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 2962 | |
2963 | SOVERSION=1.0 | ||||
2964 | |||||
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2965 | # The later defininition of _XOPEN_SOURCE disables certain features |
2966 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | ||||
2967 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2968 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2969 | |
2970 | |||||
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 | [diff] [blame] | 2971 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2972 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | ||||
2973 | # them. | ||||
2974 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2975 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 | [diff] [blame] | 2976 | |
2977 | |||||
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 | [diff] [blame] | 2978 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2979 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | ||||
2980 | # them. | ||||
2981 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2982 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 | [diff] [blame] | 2983 | |
2984 | |||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 2985 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2986 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | ||||
2987 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2988 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 2989 | |
2990 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 2991 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2992 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | ||||
2993 | # them. | ||||
2994 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2995 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 2996 | |
2997 | |||||
2998 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 2999 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 3000 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 | [diff] [blame] | 3001 | # Arguments passed to configure. |
3002 | |||||
3003 | CONFIG_ARGS="$ac_configure_args" | ||||
3004 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
3006 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3007 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3008 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3009 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3010 | case $enableval in |
3011 | yes) | ||||
Mariatta | 4ba4ff4 | 2018-06-09 00:17:32 | [diff] [blame] | 3012 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3013 | # information |
3014 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3015 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3016 | then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3017 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
3018 | if test ! -d "${enableval}" | ||||
3019 | then | ||||
3020 | enableval=/ | ||||
3021 | fi | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3022 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3023 | ;; |
3024 | esac | ||||
3025 | case $enableval in | ||||
3026 | no) | ||||
3027 | UNIVERSALSDK= | ||||
3028 | enable_universalsdk= | ||||
3029 | ;; | ||||
3030 | *) | ||||
3031 | UNIVERSALSDK=$enableval | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3032 | if test ! -d "${UNIVERSALSDK}" |
3033 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3034 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3035 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3036 | ;; |
3037 | esac | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3038 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3039 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3040 | else |
3041 | |||||
3042 | UNIVERSALSDK= | ||||
3043 | enable_universalsdk= | ||||
3044 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3045 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3046 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3047 | if test -n "${UNIVERSALSDK}" |
3048 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
3050 | $as_echo "${UNIVERSALSDK}" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3051 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3053 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3054 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3055 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3056 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 | [diff] [blame] | 3057 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3058 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 | [diff] [blame] | 3059 | |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3060 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
3061 | # otherwise use 'intel' | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3062 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3063 | if test "`uname -s`" = "Darwin" |
3064 | then | ||||
3065 | if test -n "${UNIVERSALSDK}" | ||||
3066 | then | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3067 | 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] | 3068 | then |
3069 | UNIVERSAL_ARCHS="intel" | ||||
3070 | fi | ||||
3071 | fi | ||||
3072 | fi | ||||
3073 | |||||
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 | [diff] [blame] | 3074 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
3076 | $as_echo_n "checking for --with-universal-archs... " >&6; } | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3077 | |
3078 | # Check whether --with-universal-archs was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3079 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3080 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3081 | UNIVERSAL_ARCHS="$withval" |
3082 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3083 | fi |
3084 | |||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3085 | if test -n "${UNIVERSALSDK}" |
3086 | then | ||||
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | ||||
3088 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | ||||
3089 | else | ||||
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3091 | $as_echo "no" >&6; } | ||||
3092 | fi | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3093 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3094 | |
3095 | # Check whether --with-framework-name was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3096 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3097 | withval=$with_framework_name; |
3098 | PYTHONFRAMEWORK=${withval} | ||||
3099 | PYTHONFRAMEWORKDIR=${withval}.framework | ||||
3100 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | ||||
3101 | |||||
3102 | else | ||||
3103 | |||||
3104 | PYTHONFRAMEWORK=Python | ||||
3105 | PYTHONFRAMEWORKDIR=Python.framework | ||||
3106 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | ||||
3107 | |||||
3108 | fi | ||||
3109 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3110 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3111 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3112 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3113 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3114 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3115 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3116 | esac |
3117 | case $enableval in | ||||
3118 | no) | ||||
3119 | PYTHONFRAMEWORK= | ||||
3120 | PYTHONFRAMEWORKDIR=no-framework | ||||
3121 | PYTHONFRAMEWORKPREFIX= | ||||
3122 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3123 | FRAMEWORKINSTALLFIRST= |
3124 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3125 | FRAMEWORKALTINSTALLFIRST= |
3126 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3127 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3128 | if test "x${prefix}" = "xNONE"; then |
3129 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3130 | else | ||||
3131 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3132 | fi | ||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3133 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3134 | ;; |
3135 | *) | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3136 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3137 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3138 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 | [diff] [blame] | 3139 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 | [diff] [blame] | 3140 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
3141 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3142 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3143 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3144 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3145 | if test "x${prefix}" = "xNONE" ; then |
3146 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3147 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3148 | else |
3149 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3150 | fi | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3151 | |
3152 | case "${enableval}" in | ||||
3153 | /System*) | ||||
3154 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3155 | if test "${prefix}" = "NONE" ; then | ||||
3156 | # See below | ||||
3157 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | ||||
3158 | fi | ||||
3159 | ;; | ||||
3160 | |||||
3161 | /Library*) | ||||
3162 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3163 | ;; | ||||
3164 | |||||
3165 | */Library/Frameworks) | ||||
3166 | MDIR="`dirname "${enableval}"`" | ||||
3167 | MDIR="`dirname "${MDIR}"`" | ||||
3168 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | ||||
3169 | |||||
3170 | if test "${prefix}" = "NONE"; then | ||||
3171 | # User hasn't specified the | ||||
3172 | # --prefix option, but wants to install | ||||
3173 | # the framework in a non-default location, | ||||
3174 | # ensure that the compatibility links get | ||||
3175 | # installed relative to that prefix as well | ||||
3176 | # instead of in /usr/local. | ||||
3177 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | ||||
3178 | fi | ||||
3179 | ;; | ||||
3180 | |||||
3181 | *) | ||||
3182 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3183 | ;; | ||||
3184 | esac | ||||
3185 | |||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3186 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3187 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3188 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3189 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3190 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3191 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3192 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3193 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3194 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
3195 | |||||
3196 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | ||||
3197 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3198 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3199 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3201 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3202 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3203 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3204 | PYTHONFRAMEWORKPREFIX= |
3205 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3206 | FRAMEWORKINSTALLFIRST= |
3207 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3208 | FRAMEWORKALTINSTALLFIRST= |
3209 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3210 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3211 | if test "x${prefix}" = "xNONE" ; then |
3212 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3213 | else | ||||
3214 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3215 | fi | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3216 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3217 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3218 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3219 | fi |
3220 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3221 | |
3222 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3223 | |
3224 | |||||
3225 | |||||
3226 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3227 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3228 | |
3229 | |||||
3230 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3231 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3232 | |
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3233 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3234 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 | [diff] [blame] | 3235 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 3236 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3237 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3238 | # Set name for machine-dependent library files |
3239 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
3241 | $as_echo_n "checking MACHDEP... " >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3242 | if test -z "$MACHDEP" |
3243 | then | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3244 | # avoid using uname for cross builds |
3245 | if test "$cross_compiling" = yes; then | ||||
doko@python.org | 44bbbda | 2013-01-25 13:44:00 | [diff] [blame] | 3246 | # ac_sys_system and ac_sys_release are used for setting |
3247 | # a lot of different things including 'define_xopen_source' | ||||
3248 | # in the case statement below. | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3249 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 3250 | *-*-linux-android*) |
3251 | ac_sys_system=Linux-android | ||||
3252 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3253 | *-*-linux*) |
3254 | ac_sys_system=Linux | ||||
3255 | ;; | ||||
3256 | *-*-cygwin*) | ||||
3257 | ac_sys_system=Cygwin | ||||
3258 | ;; | ||||
3259 | *) | ||||
3260 | # for now, limit cross builds to known configurations | ||||
3261 | MACHDEP="unknown" | ||||
3262 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3263 | esac | ||||
3264 | ac_sys_release= | ||||
3265 | else | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3266 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 3267 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 3268 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3269 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3270 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3271 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3272 | fi |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3273 | fi |
3274 | ac_md_system=`echo $ac_sys_system | | ||||
3275 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | ||||
3276 | ac_md_release=`echo $ac_sys_release | | ||||
3277 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | ||||
3278 | MACHDEP="$ac_md_system$ac_md_release" | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3279 | |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3280 | case $MACHDEP in |
Victor Stinner | 7209ff2 | 2011-08-20 22:00:16 | [diff] [blame] | 3281 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 | [diff] [blame] | 3282 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 | [diff] [blame] | 3283 | darwin*) MACHDEP="darwin";; |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 3284 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 | [diff] [blame] | 3285 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3286 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3287 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 | [diff] [blame] | 3288 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 3289 | |
3290 | if test "$cross_compiling" = yes; then | ||||
3291 | case "$host" in | ||||
3292 | *-*-linux*) | ||||
3293 | case "$host_cpu" in | ||||
3294 | arm*) | ||||
3295 | _host_cpu=arm | ||||
3296 | ;; | ||||
3297 | *) | ||||
3298 | _host_cpu=$host_cpu | ||||
3299 | esac | ||||
3300 | ;; | ||||
3301 | *-*-cygwin*) | ||||
3302 | _host_cpu= | ||||
3303 | ;; | ||||
3304 | *) | ||||
3305 | # for now, limit cross builds to known configurations | ||||
3306 | MACHDEP="unknown" | ||||
3307 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3308 | esac | ||||
3309 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||||
3310 | fi | ||||
3311 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3312 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
3313 | # disable features if it is defined, without any means to access these | ||||
3314 | # features as extensions. For these systems, we skip the definition of | ||||
3315 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | ||||
3316 | # some feature, make sure there is no alternative way to access this | ||||
3317 | # feature. Also, when using wildcards, make sure you have verified the | ||||
3318 | # need for not defining _XOPEN_SOURCE on all systems matching the | ||||
3319 | # wildcard, and that the wildcard does not include future systems | ||||
3320 | # (which may remove their limitations). | ||||
3321 | case $ac_sys_system/$ac_sys_release in | ||||
3322 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | ||||
3323 | # even though select is a POSIX function. Reported by J. Ribbens. | ||||
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 | [diff] [blame] | 3324 | # 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] | 3325 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
3326 | # OpenBSD 4.6, but is fixed in 4.7. | ||||
Charles-François Natali | 54ef40b | 2011-07-22 21:52:02 | [diff] [blame] | 3327 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 | [diff] [blame] | 3328 | define_xopen_source=no |
3329 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | ||||
3330 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3331 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3332 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3333 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 | [diff] [blame] | 3334 | |
3335 | ;; | ||||
Charles-François Natali | 54ef40b | 2011-07-22 21:52:02 | [diff] [blame] | 3336 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 | [diff] [blame] | 3337 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
3338 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3339 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3340 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3341 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 | [diff] [blame] | 3342 | |
3343 | ;; | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 3344 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
3345 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | ||||
3346 | # Marc Recht | ||||
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 | [diff] [blame] | 3347 | 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] | 3348 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 | [diff] [blame] | 3349 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
3350 | # request to enable features supported by the standard as a request | ||||
3351 | # to disable features not supported by the standard. The best way | ||||
3352 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | ||||
3353 | # entirely and define __EXTENSIONS__ instead. | ||||
3354 | SunOS/*) | ||||
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 | [diff] [blame] | 3355 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3356 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
3357 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3358 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 | [diff] [blame] | 3359 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3360 | define_xopen_source=no;; |
3361 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | ||||
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 | [diff] [blame] | 3362 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3363 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 | [diff] [blame] | 3364 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 | [diff] [blame] | 3365 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
3366 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | ||||
3367 | FreeBSD/4.*) | ||||
3368 | define_xopen_source=no;; | ||||
3369 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | ||||
3370 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | ||||
3371 | # identifies itself as Darwin/7.* | ||||
3372 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3373 | # disables platform specific features beyond repair. | ||||
3374 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3375 | # has no effect, don't bother defining them | ||||
3376 | Darwin/[6789].*) | ||||
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 | [diff] [blame] | 3377 | define_xopen_source=no;; |
Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 | [diff] [blame] | 3378 | Darwin/1[0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 | [diff] [blame] | 3379 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 | [diff] [blame] | 3380 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
3381 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | ||||
3382 | # 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] | 3383 | AIX/4) |
3384 | define_xopen_source=no;; | ||||
Trent Mick | c5625ba | 2004-08-25 23:59:39 | [diff] [blame] | 3385 | AIX/5) |
3386 | if test `uname -r` -eq 1; then | ||||
3387 | define_xopen_source=no | ||||
3388 | fi | ||||
3389 | ;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 | [diff] [blame] | 3390 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
3391 | # defining NI_NUMERICHOST. | ||||
3392 | QNX/6.3.2) | ||||
3393 | define_xopen_source=no | ||||
3394 | ;; | ||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 3395 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3396 | esac |
3397 | |||||
3398 | if test $define_xopen_source = yes | ||||
3399 | then | ||||
Victor Stinner | 14d098d | 2011-09-07 20:29:43 | [diff] [blame] | 3400 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3401 | |
Victor Stinner | 14d098d | 2011-09-07 20:29:43 | [diff] [blame] | 3402 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3403 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3404 | |
3405 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | ||||
3406 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | ||||
3407 | # several APIs are not declared. Since this is also needed in some | ||||
3408 | # cases for HP-UX, we define it globally. | ||||
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3409 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3410 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3411 | |
3412 | |||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 3413 | |
Victor Stinner | d169fdc | 2011-09-07 22:56:17 | [diff] [blame] | 3414 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3415 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3416 | fi |
3417 | |||||
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3418 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
3419 | case $ac_sys_system in | ||||
Christian Heimes | b02bcae | 2013-12-08 14:21:08 | [diff] [blame] | 3420 | hp*|HP*) |
3421 | define_stdc_a1=yes;; | ||||
3422 | *) | ||||
3423 | define_stdc_a1=no;; | ||||
3424 | esac | ||||
3425 | |||||
3426 | if test $define_stdc_a1 = yes | ||||
3427 | then | ||||
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3428 | |
3429 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | ||||
3430 | |||||
Christian Heimes | b02bcae | 2013-12-08 14:21:08 | [diff] [blame] | 3431 | fi |
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3432 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 | [diff] [blame] | 3433 | # |
3434 | # SGI compilers allow the specification of the both the ABI and the | ||||
3435 | # ISA on the command line. Depending on the values of these switches, | ||||
Martin Panter | 46f5072 | 2016-05-26 05:35:26 | [diff] [blame] | 3436 | # different and often incompatible code will be generated. |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 | [diff] [blame] | 3437 | # |
3438 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | ||||
3439 | # thus supply support for various ABI/ISA combinations. The MACHDEP | ||||
3440 | # variable is also adjusted. | ||||
3441 | # | ||||
3442 | |||||
3443 | if test ! -z "$SGI_ABI" | ||||
3444 | then | ||||
3445 | CC="cc $SGI_ABI" | ||||
3446 | LDFLAGS="$SGI_ABI $LDFLAGS" | ||||
3447 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | ||||
3448 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
3450 | $as_echo "$MACHDEP" >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3451 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3452 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
3453 | # it may influence the way we can build extensions, so distutils | ||||
3454 | # needs to check it | ||||
3455 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3456 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3457 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3458 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3459 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 3460 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 3461 | |
3462 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just | ||||
3463 | # for debug/optimization stuff. BASECFLAGS is for flags that are required | ||||
3464 | # just to get things to compile and link. Users are free to override OPT | ||||
3465 | # when running configure or make. The build should not break if they do. | ||||
3466 | # BASECFLAGS should generally not be messed with, however. | ||||
3467 | |||||
3468 | # XXX shouldn't some/most/all of this code be merged with the stuff later | ||||
3469 | # on that fiddles with OPT and BASECFLAGS? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
3471 | $as_echo_n "checking for --without-gcc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3472 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3473 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3474 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3475 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 3476 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 3477 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 3478 | without_gcc=yes;; |
3479 | yes) CC=gcc | ||||
3480 | without_gcc=no;; | ||||
3481 | *) CC=$withval | ||||
3482 | without_gcc=$withval;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 3483 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 3484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3485 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3486 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 | [diff] [blame] | 3487 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 3488 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 3489 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 | [diff] [blame] | 3490 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3491 | fi |
3492 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
3494 | $as_echo "$without_gcc" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3495 | |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 |
3497 | $as_echo_n "checking for --with-icc... " >&6; } | ||||
3498 | |||||
3499 | # Check whether --with-icc was given. | ||||
3500 | if test "${with_icc+set}" = set; then : | ||||
3501 | withval=$with_icc; | ||||
3502 | case $withval in | ||||
3503 | no) CC=${CC:-cc} | ||||
3504 | with_icc=no;; | ||||
3505 | yes) CC=icc | ||||
3506 | CXX=icpc | ||||
3507 | with_icc=yes;; | ||||
3508 | *) CC=$withval | ||||
3509 | with_icc=$withval;; | ||||
3510 | esac | ||||
3511 | else | ||||
3512 | |||||
3513 | with_icc=no | ||||
3514 | fi | ||||
3515 | |||||
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | ||||
3517 | $as_echo "$with_icc" >&6; } | ||||
3518 | |||||
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 | [diff] [blame] | 3519 | # If the user switches compilers, we can't believe the cache |
3520 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | ||||
3521 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3522 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3523 | (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] | 3524 | fi |
3525 | |||||
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 | [diff] [blame] | 3526 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
3527 | # when the compiler supports them, but we don't always want -O2, and | ||||
3528 | # we set -g later. | ||||
3529 | if test -z "$CFLAGS"; then | ||||
3530 | CFLAGS= | ||||
3531 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3532 | |
3533 | if test "$ac_sys_system" = "Darwin" | ||||
3534 | then | ||||
3535 | # Compiler selection on MacOSX is more complicated than | ||||
Mariatta | 4ba4ff4 | 2018-06-09 00:17:32 | [diff] [blame] | 3536 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3537 | # information |
3538 | if test -z "${CC}" | ||||
3539 | then | ||||
3540 | found_gcc= | ||||
3541 | found_clang= | ||||
3542 | as_save_IFS=$IFS; IFS=: | ||||
3543 | for as_dir in $PATH | ||||
3544 | do | ||||
3545 | IFS=$as_save_IFS | ||||
Ned Deily | ac360fc | 2017-10-09 18:30:59 | [diff] [blame] | 3546 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3547 | if test -z "${found_gcc}"; then |
Ned Deily | ac360fc | 2017-10-09 18:30:59 | [diff] [blame] | 3548 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3549 | fi |
3550 | fi | ||||
Ned Deily | ac360fc | 2017-10-09 18:30:59 | [diff] [blame] | 3551 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3552 | if test -z "${found_clang}"; then |
Ned Deily | ac360fc | 2017-10-09 18:30:59 | [diff] [blame] | 3553 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3554 | fi |
3555 | fi | ||||
3556 | done | ||||
3557 | IFS=$as_save_IFS | ||||
3558 | |||||
3559 | if test -n "$found_gcc" -a -n "$found_clang" | ||||
3560 | then | ||||
3561 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | ||||
3562 | then | ||||
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | ||||
3564 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | ||||
3565 | CC="$found_clang" | ||||
3566 | CXX="$found_clang++" | ||||
3567 | fi | ||||
3568 | |||||
3569 | |||||
3570 | elif test -z "$found_gcc" -a -n "$found_clang" | ||||
3571 | then | ||||
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | ||||
3573 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | ||||
3574 | CC="$found_clang" | ||||
3575 | CXX="$found_clang++" | ||||
3576 | |||||
3577 | elif test -z "$found_gcc" -a -z "$found_clang" | ||||
3578 | then | ||||
3579 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | ||||
3580 | if test -n "${found_clang}" | ||||
3581 | then | ||||
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | ||||
3583 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | ||||
3584 | CC="${found_clang}" | ||||
3585 | CXX="`/usr/bin/xcrun -find clang++`" | ||||
3586 | |||||
3587 | # else: use default behaviour | ||||
3588 | fi | ||||
3589 | fi | ||||
3590 | fi | ||||
3591 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3592 | ac_ext=c |
3593 | ac_cpp='$CPP $CPPFLAGS' | ||||
3594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
3595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
3596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
3597 | if test -n "$ac_tool_prefix"; then | ||||
3598 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||||
3599 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3601 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3602 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3603 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3604 | else |
3605 | if test -n "$CC"; then | ||||
3606 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3607 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3609 | for as_dir in $PATH | ||||
3610 | do | ||||
3611 | IFS=$as_save_IFS | ||||
3612 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3613 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3614 | 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] | 3615 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3616 | $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] | 3617 | break 2 |
3618 | fi | ||||
3619 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3620 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3621 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3622 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3623 | fi |
3624 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3625 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3626 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3628 | $as_echo "$CC" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3629 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3631 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3632 | fi |
3633 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3635 | fi |
3636 | if test -z "$ac_cv_prog_CC"; then | ||||
3637 | ac_ct_CC=$CC | ||||
3638 | # Extract the first word of "gcc", so it can be a program name with args. | ||||
3639 | set dummy gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3641 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3642 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3643 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3644 | else |
3645 | if test -n "$ac_ct_CC"; then | ||||
3646 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3647 | else | ||||
3648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3649 | for as_dir in $PATH | ||||
3650 | do | ||||
3651 | IFS=$as_save_IFS | ||||
3652 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3653 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3654 | 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] | 3655 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3656 | $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] | 3657 | break 2 |
3658 | fi | ||||
3659 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3660 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3661 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3662 | |
3663 | fi | ||||
3664 | fi | ||||
3665 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3666 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3668 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3669 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3671 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3672 | fi |
3673 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3674 | if test "x$ac_ct_CC" = x; then |
3675 | CC="" | ||||
3676 | else | ||||
3677 | case $cross_compiling:$ac_tool_warned in | ||||
3678 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3680 | $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] | 3681 | ac_tool_warned=yes ;; |
3682 | esac | ||||
3683 | CC=$ac_ct_CC | ||||
3684 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3685 | else |
3686 | CC="$ac_cv_prog_CC" | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3687 | fi |
3688 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3689 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3690 | if test -n "$ac_tool_prefix"; then |
3691 | # 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] | 3692 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3694 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3695 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3696 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3697 | else |
3698 | if test -n "$CC"; then | ||||
3699 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3700 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3702 | for as_dir in $PATH | ||||
3703 | do | ||||
3704 | IFS=$as_save_IFS | ||||
3705 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3706 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3707 | 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] | 3708 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3709 | $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] | 3710 | break 2 |
3711 | fi | ||||
3712 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3713 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3714 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3715 | |
3716 | fi | ||||
3717 | fi | ||||
3718 | CC=$ac_cv_prog_CC | ||||
3719 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3721 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3722 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3724 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3725 | fi |
3726 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3729 | fi |
3730 | if test -z "$CC"; then | ||||
3731 | # Extract the first word of "cc", so it can be a program name with args. | ||||
3732 | set dummy cc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3734 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3735 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3736 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3737 | else |
3738 | if test -n "$CC"; then | ||||
3739 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3740 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3741 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3743 | for as_dir in $PATH | ||||
3744 | do | ||||
3745 | IFS=$as_save_IFS | ||||
3746 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3747 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3748 | 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] | 3749 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3750 | ac_prog_rejected=yes | ||||
3751 | continue | ||||
3752 | fi | ||||
3753 | ac_cv_prog_CC="cc" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3754 | $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] | 3755 | break 2 |
3756 | fi | ||||
3757 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3758 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3759 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3760 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3761 | if test $ac_prog_rejected = yes; then |
3762 | # We found a bogon in the path, so make sure we never use it. | ||||
3763 | set dummy $ac_cv_prog_CC | ||||
3764 | shift | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3765 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3766 | # We chose a different compiler from the bogus one. |
3767 | # However, it has the same basename, so the bogon will be chosen | ||||
3768 | # first if we set CC to just the basename; use the full file name. | ||||
3769 | shift | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3770 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3771 | fi |
3772 | fi | ||||
3773 | fi | ||||
3774 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3775 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3776 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3778 | $as_echo "$CC" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3779 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3781 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3782 | fi |
3783 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3785 | fi |
3786 | if test -z "$CC"; then | ||||
3787 | if test -n "$ac_tool_prefix"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3788 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3789 | do |
3790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
3791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3793 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3794 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3795 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 3796 | else |
3797 | if test -n "$CC"; then | ||||
3798 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3799 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3801 | for as_dir in $PATH | ||||
3802 | do | ||||
3803 | IFS=$as_save_IFS | ||||
3804 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3805 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3806 | 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] | 3807 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3808 | $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] | 3809 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 3810 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3811 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3812 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3813 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3814 | |
3815 | fi | ||||
3816 | fi | ||||
3817 | CC=$ac_cv_prog_CC | ||||
3818 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3820 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3821 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3823 | $as_echo "no" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3824 | fi |
3825 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3827 | test -n "$CC" && break |
3828 | done | ||||
3829 | fi | ||||
3830 | if test -z "$CC"; then | ||||
3831 | ac_ct_CC=$CC | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3832 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3833 | do |
3834 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
3835 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3837 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3838 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3839 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3840 | else |
3841 | if test -n "$ac_ct_CC"; then | ||||
3842 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3843 | else | ||||
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3845 | for as_dir in $PATH | ||||
3846 | do | ||||
3847 | IFS=$as_save_IFS | ||||
3848 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3849 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3850 | 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] | 3851 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3852 | $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] | 3853 | break 2 |
3854 | fi | ||||
3855 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3856 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3857 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3859 | fi |
3860 | fi | ||||
3861 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3862 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3864 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3865 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3867 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3868 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3869 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3871 | test -n "$ac_ct_CC" && break |
3872 | done | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3874 | if test "x$ac_ct_CC" = x; then |
3875 | CC="" | ||||
3876 | else | ||||
3877 | case $cross_compiling:$ac_tool_warned in | ||||
3878 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3880 | $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] | 3881 | ac_tool_warned=yes ;; |
3882 | esac | ||||
3883 | CC=$ac_ct_CC | ||||
3884 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3885 | fi |
3886 | |||||
3887 | fi | ||||
3888 | |||||
3889 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3890 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3892 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3893 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3894 | |
3895 | # Provide some information about the compiler. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3896 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3897 | set X $ac_compile | ||||
3898 | ac_compiler=$2 | ||||
3899 | for ac_option in --version -v -V -qversion; do | ||||
3900 | { { ac_try="$ac_compiler $ac_option >&5" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3901 | case "(($ac_try" in |
3902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3903 | *) ac_try_echo=$ac_try;; | ||||
3904 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3906 | $as_echo "$ac_try_echo"; } >&5 | ||||
3907 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3908 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3909 | if test -s conftest.err; then |
3910 | sed '10a\ | ||||
3911 | ... rest of stderr output deleted ... | ||||
3912 | 10q' conftest.err >conftest.er1 | ||||
3913 | cat conftest.er1 >&5 | ||||
3914 | fi | ||||
3915 | rm -f conftest.er1 conftest.err | ||||
3916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
3917 | test $ac_status = 0; } | ||||
3918 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3921 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3923 | int |
3924 | main () | ||||
3925 | { | ||||
3926 | |||||
3927 | ; | ||||
3928 | return 0; | ||||
3929 | } | ||||
3930 | _ACEOF | ||||
3931 | ac_clean_files_save=$ac_clean_files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3932 | 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] | 3933 | # Try to create an executable without -o first, disregard a.out. |
3934 | # It will help us diagnose broken compilers, and finding out an intuition | ||||
3935 | # of exeext. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3937 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||||
3938 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||||
3939 | |||||
3940 | # The possible output files: | ||||
3941 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||||
3942 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3943 | ac_rmfiles= |
3944 | for ac_file in $ac_files | ||||
3945 | do | ||||
3946 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3947 | *.$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] | 3948 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3949 | esac | ||||
3950 | done | ||||
3951 | rm -f $ac_rmfiles | ||||
3952 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3953 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3954 | case "(($ac_try" in |
3955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3956 | *) ac_try_echo=$ac_try;; | ||||
3957 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3959 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3960 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3961 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3963 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3964 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3965 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||||
3966 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||||
3967 | # so that the user can short-circuit this test for compilers unknown to | ||||
3968 | # Autoconf. | ||||
3969 | for ac_file in $ac_files '' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3970 | do |
3971 | test -f "$ac_file" || continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3972 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3973 | *.$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] | 3974 | ;; |
3975 | [ab].out ) | ||||
3976 | # We found the default executable, but exeext='' is most | ||||
3977 | # certainly right. | ||||
3978 | break;; | ||||
3979 | *.* ) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3980 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3981 | then :; else |
3982 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||||
3983 | fi | ||||
3984 | # We set ac_cv_exeext here because the later test for it is not | ||||
3985 | # safe: cross compilers may not add the suffix if given an `-o' | ||||
3986 | # argument, so we may need to know it at that point already. | ||||
3987 | # Even if this section looks crufty: it has the advantage of | ||||
3988 | # actually working. | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3989 | break;; |
3990 | * ) | ||||
3991 | break;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3992 | esac |
3993 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3994 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3995 | |||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 3996 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3997 | ac_file='' |
3998 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3999 | if test -z "$ac_file"; then : |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4001 | $as_echo "no" >&6; } | ||||
4002 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4003 | sed 's/^/| /' conftest.$ac_ext >&5 |
4004 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4007 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4008 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4009 | else |
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
4011 | $as_echo "yes" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 4012 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4014 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||||
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||||
4016 | $as_echo "$ac_file" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4017 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4018 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4019 | 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] | 4020 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4022 | $as_echo_n "checking for suffix of executables... " >&6; } | ||||
4023 | if { { ac_try="$ac_link" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4024 | case "(($ac_try" in |
4025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4026 | *) ac_try_echo=$ac_try;; | ||||
4027 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4029 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4030 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4031 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4033 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4034 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4035 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||||
4036 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||||
4037 | # `rm'. | ||||
4038 | for ac_file in conftest.exe conftest conftest.*; do | ||||
4039 | test -f "$ac_file" || continue | ||||
4040 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4041 | *.$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] | 4042 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4043 | break;; | ||||
4044 | * ) break;; | ||||
4045 | esac | ||||
4046 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4047 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4048 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4050 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4051 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 4052 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4053 | rm -f conftest conftest$ac_cv_exeext |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||||
4055 | $as_echo "$ac_cv_exeext" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4056 | |
4057 | rm -f conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4058 | EXEEXT=$ac_cv_exeext |
4059 | ac_exeext=$EXEEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4061 | /* end confdefs.h. */ | ||||
4062 | #include <stdio.h> | ||||
4063 | int | ||||
4064 | main () | ||||
4065 | { | ||||
4066 | FILE *f = fopen ("conftest.out", "w"); | ||||
4067 | return ferror (f) || fclose (f) != 0; | ||||
4068 | |||||
4069 | ; | ||||
4070 | return 0; | ||||
4071 | } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4072 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4073 | ac_clean_files="$ac_clean_files conftest.out" |
4074 | # Check that the compiler produces executables we can run. If not, either | ||||
4075 | # the compiler is broken, or we cross compile. | ||||
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||||
4077 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||||
4078 | if test "$cross_compiling" != yes; then | ||||
4079 | { { ac_try="$ac_link" | ||||
4080 | case "(($ac_try" in | ||||
4081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4082 | *) ac_try_echo=$ac_try;; | ||||
4083 | esac | ||||
4084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4085 | $as_echo "$ac_try_echo"; } >&5 | ||||
4086 | (eval "$ac_link") 2>&5 | ||||
4087 | ac_status=$? | ||||
4088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4089 | test $ac_status = 0; } | ||||
4090 | if { ac_try='./conftest$ac_cv_exeext' | ||||
4091 | { { case "(($ac_try" in | ||||
4092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4093 | *) ac_try_echo=$ac_try;; | ||||
4094 | esac | ||||
4095 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4096 | $as_echo "$ac_try_echo"; } >&5 | ||||
4097 | (eval "$ac_try") 2>&5 | ||||
4098 | ac_status=$? | ||||
4099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4100 | test $ac_status = 0; }; }; then | ||||
4101 | cross_compiling=no | ||||
4102 | else | ||||
4103 | if test "$cross_compiling" = maybe; then | ||||
4104 | cross_compiling=yes | ||||
4105 | else | ||||
4106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4108 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4109 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4110 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4111 | fi |
4112 | fi | ||||
4113 | fi | ||||
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||||
4115 | $as_echo "$cross_compiling" >&6; } | ||||
4116 | |||||
4117 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||||
4118 | ac_clean_files=$ac_clean_files_save | ||||
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||||
4120 | $as_echo_n "checking for suffix of object files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4121 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4122 | $as_echo_n "(cached) " >&6 |
4123 | else | ||||
4124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4125 | /* end confdefs.h. */ |
4126 | |||||
4127 | int | ||||
4128 | main () | ||||
4129 | { | ||||
4130 | |||||
4131 | ; | ||||
4132 | return 0; | ||||
4133 | } | ||||
4134 | _ACEOF | ||||
4135 | rm -f conftest.o conftest.obj | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4136 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4137 | case "(($ac_try" in |
4138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4139 | *) ac_try_echo=$ac_try;; | ||||
4140 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4141 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4142 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4143 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4144 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4146 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4147 | for ac_file in conftest.o conftest.obj conftest.*; do |
4148 | test -f "$ac_file" || continue; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4149 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4150 | *.$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] | 4151 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4152 | break;; | ||||
4153 | esac | ||||
4154 | done | ||||
4155 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4156 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4157 | sed 's/^/| /' conftest.$ac_ext >&5 |
4158 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4159 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4160 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4161 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4162 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4163 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4164 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4165 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4167 | $as_echo "$ac_cv_objext" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4168 | OBJEXT=$ac_cv_objext |
4169 | ac_objext=$OBJEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4171 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4172 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4173 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4174 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4176 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4178 | int |
4179 | main () | ||||
4180 | { | ||||
4181 | #ifndef __GNUC__ | ||||
4182 | choke me | ||||
4183 | #endif | ||||
4184 | |||||
4185 | ; | ||||
4186 | return 0; | ||||
4187 | } | ||||
4188 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4189 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4190 | ac_compiler_gnu=yes |
4191 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4192 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4193 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4195 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4196 | |||||
4197 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4199 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||||
4200 | if test $ac_compiler_gnu = yes; then | ||||
4201 | GCC=yes | ||||
4202 | else | ||||
4203 | GCC= | ||||
4204 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4205 | ac_test_CFLAGS=${CFLAGS+set} |
4206 | ac_save_CFLAGS=$CFLAGS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4208 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4209 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4210 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4211 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4212 | ac_save_c_werror_flag=$ac_c_werror_flag |
4213 | ac_c_werror_flag=yes | ||||
4214 | ac_cv_prog_cc_g=no | ||||
4215 | CFLAGS="-g" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4217 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 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 : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 4228 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4229 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4230 | CFLAGS="" |
4231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4232 | /* end confdefs.h. */ |
4233 | |||||
4234 | int | ||||
4235 | main () | ||||
4236 | { | ||||
4237 | |||||
4238 | ; | ||||
4239 | return 0; | ||||
4240 | } | ||||
4241 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4242 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4243 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4244 | else |
4245 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4246 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4248 | /* end confdefs.h. */ |
4249 | |||||
4250 | int | ||||
4251 | main () | ||||
4252 | { | ||||
4253 | |||||
4254 | ; | ||||
4255 | return 0; | ||||
4256 | } | ||||
4257 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4258 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4259 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 4260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4262 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4264 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4266 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
4267 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4269 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4270 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4271 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4272 | elif test $ac_cv_prog_cc_g = yes; then |
4273 | if test "$GCC" = yes; then | ||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 4274 | CFLAGS="-g -O2" |
4275 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4276 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4277 | fi |
4278 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4279 | if test "$GCC" = yes; then |
4280 | CFLAGS="-O2" | ||||
4281 | else | ||||
4282 | CFLAGS= | ||||
4283 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4284 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4286 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4287 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4288 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4289 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4290 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4291 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4293 | /* end confdefs.h. */ |
4294 | #include <stdarg.h> | ||||
4295 | #include <stdio.h> | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4296 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4297 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4298 | struct buf { int x; }; | ||||
4299 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||||
4300 | static char *e (p, i) | ||||
4301 | char **p; | ||||
4302 | int i; | ||||
4303 | { | ||||
4304 | return p[i]; | ||||
4305 | } | ||||
4306 | static char *f (char * (*g) (char **, int), char **p, ...) | ||||
4307 | { | ||||
4308 | char *s; | ||||
4309 | va_list v; | ||||
4310 | va_start (v,p); | ||||
4311 | s = g (p, va_arg (v,int)); | ||||
4312 | va_end (v); | ||||
4313 | return s; | ||||
4314 | } | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4315 | |
4316 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||||
4317 | function prototypes and stuff, but not '\xHH' hex character constants. | ||||
4318 | These don't provoke an error unfortunately, instead are silently treated | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4319 | as 'x'. The following induces an error, until -std is added to get |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4320 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4321 | 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] | 4322 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4323 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4324 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4325 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4326 | inside strings and character constants. */ | ||||
4327 | #define FOO(x) 'x' | ||||
4328 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||||
4329 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4330 | int test (int i, double x); |
4331 | struct s1 {int (*f) (int a);}; | ||||
4332 | struct s2 {int (*f) (double a);}; | ||||
4333 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||||
4334 | int argc; | ||||
4335 | char **argv; | ||||
4336 | int | ||||
4337 | main () | ||||
4338 | { | ||||
4339 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||||
4340 | ; | ||||
4341 | return 0; | ||||
4342 | } | ||||
4343 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4344 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4345 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4346 | do |
4347 | CC="$ac_save_CC $ac_arg" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4348 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4349 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4350 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4351 | rm -f core conftest.err conftest.$ac_objext |
4352 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4353 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4354 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4355 | CC=$ac_save_CC |
4356 | |||||
4357 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4358 | # AC_CACHE_VAL |
4359 | case "x$ac_cv_prog_cc_c89" in | ||||
4360 | x) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4362 | $as_echo "none needed" >&6; } ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4363 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4365 | $as_echo "unsupported" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4366 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4367 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4369 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4370 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4371 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4373 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4375 | ac_ext=c |
4376 | ac_cpp='$CPP $CPPFLAGS' | ||||
4377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4380 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 4381 | ac_ext=c |
4382 | ac_cpp='$CPP $CPPFLAGS' | ||||
4383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||||
4387 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||||
4388 | # On Suns, sometimes $CPP names a directory. | ||||
4389 | if test -n "$CPP" && test -d "$CPP"; then | ||||
4390 | CPP= | ||||
4391 | fi | ||||
4392 | if test -z "$CPP"; then | ||||
4393 | if ${ac_cv_prog_CPP+:} false; then : | ||||
4394 | $as_echo_n "(cached) " >&6 | ||||
4395 | else | ||||
4396 | # Double quotes because CPP needs to be expanded | ||||
4397 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||||
4398 | do | ||||
4399 | ac_preproc_ok=false | ||||
4400 | for ac_c_preproc_warn_flag in '' yes | ||||
4401 | do | ||||
4402 | # Use a header file that comes with gcc, so configuring glibc | ||||
4403 | # with a fresh cross-compiler works. | ||||
4404 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4405 | # <limits.h> exists even on freestanding compilers. | ||||
4406 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4407 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4409 | /* end confdefs.h. */ | ||||
4410 | #ifdef __STDC__ | ||||
4411 | # include <limits.h> | ||||
4412 | #else | ||||
4413 | # include <assert.h> | ||||
4414 | #endif | ||||
4415 | Syntax error | ||||
4416 | _ACEOF | ||||
4417 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4418 | |||||
4419 | else | ||||
4420 | # Broken: fails on valid input. | ||||
4421 | continue | ||||
4422 | fi | ||||
4423 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4424 | |||||
4425 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4426 | # can be detected and how. | ||||
4427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4428 | /* end confdefs.h. */ | ||||
4429 | #include <ac_nonexistent.h> | ||||
4430 | _ACEOF | ||||
4431 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4432 | # Broken: success on invalid input. | ||||
4433 | continue | ||||
4434 | else | ||||
4435 | # Passes both tests. | ||||
4436 | ac_preproc_ok=: | ||||
4437 | break | ||||
4438 | fi | ||||
4439 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4440 | |||||
4441 | done | ||||
4442 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4443 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4444 | if $ac_preproc_ok; then : | ||||
4445 | break | ||||
4446 | fi | ||||
4447 | |||||
4448 | done | ||||
4449 | ac_cv_prog_CPP=$CPP | ||||
4450 | |||||
4451 | fi | ||||
4452 | CPP=$ac_cv_prog_CPP | ||||
4453 | else | ||||
4454 | ac_cv_prog_CPP=$CPP | ||||
4455 | fi | ||||
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||||
4457 | $as_echo "$CPP" >&6; } | ||||
4458 | ac_preproc_ok=false | ||||
4459 | for ac_c_preproc_warn_flag in '' yes | ||||
4460 | do | ||||
4461 | # Use a header file that comes with gcc, so configuring glibc | ||||
4462 | # with a fresh cross-compiler works. | ||||
4463 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4464 | # <limits.h> exists even on freestanding compilers. | ||||
4465 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4466 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4468 | /* end confdefs.h. */ | ||||
4469 | #ifdef __STDC__ | ||||
4470 | # include <limits.h> | ||||
4471 | #else | ||||
4472 | # include <assert.h> | ||||
4473 | #endif | ||||
4474 | Syntax error | ||||
4475 | _ACEOF | ||||
4476 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4477 | |||||
4478 | else | ||||
4479 | # Broken: fails on valid input. | ||||
4480 | continue | ||||
4481 | fi | ||||
4482 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4483 | |||||
4484 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4485 | # can be detected and how. | ||||
4486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4487 | /* end confdefs.h. */ | ||||
4488 | #include <ac_nonexistent.h> | ||||
4489 | _ACEOF | ||||
4490 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4491 | # Broken: success on invalid input. | ||||
4492 | continue | ||||
4493 | else | ||||
4494 | # Passes both tests. | ||||
4495 | ac_preproc_ok=: | ||||
4496 | break | ||||
4497 | fi | ||||
4498 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4499 | |||||
4500 | done | ||||
4501 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4502 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4503 | if $ac_preproc_ok; then : | ||||
4504 | |||||
4505 | else | ||||
4506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
4508 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||||
4509 | See \`config.log' for more details" "$LINENO" 5; } | ||||
4510 | fi | ||||
4511 | |||||
4512 | ac_ext=c | ||||
4513 | ac_cpp='$CPP $CPPFLAGS' | ||||
4514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4517 | |||||
4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||||
4519 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||||
4520 | if ${ac_cv_path_GREP+:} false; then : | ||||
4521 | $as_echo_n "(cached) " >&6 | ||||
4522 | else | ||||
4523 | if test -z "$GREP"; then | ||||
4524 | ac_path_GREP_found=false | ||||
4525 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4527 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
4528 | do | ||||
4529 | IFS=$as_save_IFS | ||||
4530 | test -z "$as_dir" && as_dir=. | ||||
4531 | for ac_prog in grep ggrep; do | ||||
4532 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4533 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
4534 | as_fn_executable_p "$ac_path_GREP" || continue | ||||
4535 | # Check for GNU ac_path_GREP and select it if it is found. | ||||
4536 | # Check for GNU $ac_path_GREP | ||||
4537 | case `"$ac_path_GREP" --version 2>&1` in | ||||
4538 | *GNU*) | ||||
4539 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
4540 | *) | ||||
4541 | ac_count=0 | ||||
4542 | $as_echo_n 0123456789 >"conftest.in" | ||||
4543 | while : | ||||
4544 | do | ||||
4545 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4546 | mv "conftest.tmp" "conftest.in" | ||||
4547 | cp "conftest.in" "conftest.nl" | ||||
4548 | $as_echo 'GREP' >> "conftest.nl" | ||||
4549 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4550 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4551 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4552 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
4553 | # Best one so far, save it but keep looking for a better one | ||||
4554 | ac_cv_path_GREP="$ac_path_GREP" | ||||
4555 | ac_path_GREP_max=$ac_count | ||||
4556 | fi | ||||
4557 | # 10*(2^10) chars as input seems more than enough | ||||
4558 | test $ac_count -gt 10 && break | ||||
4559 | done | ||||
4560 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4561 | esac | ||||
4562 | |||||
4563 | $ac_path_GREP_found && break 3 | ||||
4564 | done | ||||
4565 | done | ||||
4566 | done | ||||
4567 | IFS=$as_save_IFS | ||||
4568 | if test -z "$ac_cv_path_GREP"; then | ||||
4569 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
4570 | fi | ||||
4571 | else | ||||
4572 | ac_cv_path_GREP=$GREP | ||||
4573 | fi | ||||
4574 | |||||
4575 | fi | ||||
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||||
4577 | $as_echo "$ac_cv_path_GREP" >&6; } | ||||
4578 | GREP="$ac_cv_path_GREP" | ||||
4579 | |||||
4580 | |||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4582 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||||
4583 | if ${ac_cv_path_SED+:} false; then : | ||||
4584 | $as_echo_n "(cached) " >&6 | ||||
4585 | else | ||||
4586 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||||
4587 | for ac_i in 1 2 3 4 5 6 7; do | ||||
4588 | ac_script="$ac_script$as_nl$ac_script" | ||||
4589 | done | ||||
4590 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||||
4591 | { ac_script=; unset ac_script;} | ||||
4592 | if test -z "$SED"; then | ||||
4593 | ac_path_SED_found=false | ||||
4594 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4596 | for as_dir in $PATH | ||||
4597 | do | ||||
4598 | IFS=$as_save_IFS | ||||
4599 | test -z "$as_dir" && as_dir=. | ||||
4600 | for ac_prog in sed gsed; do | ||||
4601 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4602 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||||
4603 | as_fn_executable_p "$ac_path_SED" || continue | ||||
4604 | # Check for GNU ac_path_SED and select it if it is found. | ||||
4605 | # Check for GNU $ac_path_SED | ||||
4606 | case `"$ac_path_SED" --version 2>&1` in | ||||
4607 | *GNU*) | ||||
4608 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
4609 | *) | ||||
4610 | ac_count=0 | ||||
4611 | $as_echo_n 0123456789 >"conftest.in" | ||||
4612 | while : | ||||
4613 | do | ||||
4614 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4615 | mv "conftest.tmp" "conftest.in" | ||||
4616 | cp "conftest.in" "conftest.nl" | ||||
4617 | $as_echo '' >> "conftest.nl" | ||||
4618 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4619 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4620 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4621 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
4622 | # Best one so far, save it but keep looking for a better one | ||||
4623 | ac_cv_path_SED="$ac_path_SED" | ||||
4624 | ac_path_SED_max=$ac_count | ||||
4625 | fi | ||||
4626 | # 10*(2^10) chars as input seems more than enough | ||||
4627 | test $ac_count -gt 10 && break | ||||
4628 | done | ||||
4629 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4630 | esac | ||||
4631 | |||||
4632 | $ac_path_SED_found && break 3 | ||||
4633 | done | ||||
4634 | done | ||||
4635 | done | ||||
4636 | IFS=$as_save_IFS | ||||
4637 | if test -z "$ac_cv_path_SED"; then | ||||
4638 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||||
4639 | fi | ||||
4640 | else | ||||
4641 | ac_cv_path_SED=$SED | ||||
4642 | fi | ||||
4643 | |||||
4644 | fi | ||||
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||||
4646 | $as_echo "$ac_cv_path_SED" >&6; } | ||||
4647 | SED="$ac_cv_path_SED" | ||||
4648 | rm -f conftest.sed | ||||
4649 | |||||
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 | [diff] [blame] | 4650 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4651 | |
4652 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
4654 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4655 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4656 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4657 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4658 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4659 | |
4660 | case $withval in | ||||
4661 | no) with_cxx_main=no | ||||
4662 | MAINCC='$(CC)';; | ||||
4663 | yes) with_cxx_main=yes | ||||
4664 | MAINCC='$(CXX)';; | ||||
4665 | *) with_cxx_main=yes | ||||
4666 | MAINCC=$withval | ||||
4667 | if test -z "$CXX" | ||||
4668 | then | ||||
4669 | CXX=$withval | ||||
4670 | fi;; | ||||
4671 | esac | ||||
4672 | else | ||||
4673 | |||||
4674 | with_cxx_main=no | ||||
4675 | MAINCC='$(CC)' | ||||
4676 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4677 | fi |
4678 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
4680 | $as_echo "$with_cxx_main" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4681 | |
4682 | preset_cxx="$CXX" | ||||
4683 | if test -z "$CXX" | ||||
4684 | then | ||||
4685 | case "$CC" in | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4686 | gcc) if test -n "$ac_tool_prefix"; then |
4687 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | ||||
4688 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | ||||
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4690 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4691 | if ${ac_cv_path_CXX+:} false; then : | ||||
4692 | $as_echo_n "(cached) " >&6 | ||||
4693 | else | ||||
4694 | case $CXX in | ||||
4695 | [\\/]* | ?:[\\/]*) | ||||
4696 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4697 | ;; | ||||
4698 | *) | ||||
4699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4700 | for as_dir in notfound | ||||
4701 | do | ||||
4702 | IFS=$as_save_IFS | ||||
4703 | test -z "$as_dir" && as_dir=. | ||||
4704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4705 | 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] | 4706 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4708 | break 2 | ||||
4709 | fi | ||||
4710 | done | ||||
4711 | done | ||||
4712 | IFS=$as_save_IFS | ||||
4713 | |||||
4714 | ;; | ||||
4715 | esac | ||||
4716 | fi | ||||
4717 | CXX=$ac_cv_path_CXX | ||||
4718 | if test -n "$CXX"; then | ||||
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4720 | $as_echo "$CXX" >&6; } | ||||
4721 | else | ||||
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4723 | $as_echo "no" >&6; } | ||||
4724 | fi | ||||
4725 | |||||
4726 | |||||
4727 | fi | ||||
4728 | if test -z "$ac_cv_path_CXX"; then | ||||
4729 | ac_pt_CXX=$CXX | ||||
4730 | # 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] | 4731 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4733 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4734 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
4735 | $as_echo_n "(cached) " >&6 | ||||
4736 | else | ||||
4737 | case $ac_pt_CXX in | ||||
4738 | [\\/]* | ?:[\\/]*) | ||||
4739 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4740 | ;; | ||||
4741 | *) | ||||
4742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4743 | for as_dir in notfound | ||||
4744 | do | ||||
4745 | IFS=$as_save_IFS | ||||
4746 | test -z "$as_dir" && as_dir=. | ||||
4747 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4748 | 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] | 4749 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4751 | break 2 | ||||
4752 | fi | ||||
4753 | done | ||||
4754 | done | ||||
4755 | IFS=$as_save_IFS | ||||
4756 | |||||
4757 | ;; | ||||
4758 | esac | ||||
4759 | fi | ||||
4760 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4761 | if test -n "$ac_pt_CXX"; then | ||||
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4763 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4764 | else | ||||
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4766 | $as_echo "no" >&6; } | ||||
4767 | fi | ||||
4768 | |||||
4769 | if test "x$ac_pt_CXX" = x; then | ||||
4770 | CXX="g++" | ||||
4771 | else | ||||
4772 | case $cross_compiling:$ac_tool_warned in | ||||
4773 | yes:) | ||||
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4775 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4776 | ac_tool_warned=yes ;; | ||||
4777 | esac | ||||
4778 | CXX=$ac_pt_CXX | ||||
4779 | fi | ||||
4780 | else | ||||
4781 | CXX="$ac_cv_path_CXX" | ||||
4782 | fi | ||||
4783 | ;; | ||||
4784 | cc) if test -n "$ac_tool_prefix"; then | ||||
4785 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | ||||
4786 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | ||||
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4788 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4789 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4790 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4791 | else |
4792 | case $CXX in | ||||
4793 | [\\/]* | ?:[\\/]*) | ||||
4794 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4795 | ;; | ||||
4796 | *) | ||||
4797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4798 | for as_dir in notfound | ||||
4799 | do | ||||
4800 | IFS=$as_save_IFS | ||||
4801 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4804 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4805 | $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] | 4806 | break 2 |
4807 | fi | ||||
4808 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4809 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4810 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4811 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4812 | ;; |
4813 | esac | ||||
4814 | fi | ||||
4815 | CXX=$ac_cv_path_CXX | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4816 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4818 | $as_echo "$CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4819 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4821 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4822 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4823 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4824 | |
4825 | fi | ||||
4826 | if test -z "$ac_cv_path_CXX"; then | ||||
4827 | ac_pt_CXX=$CXX | ||||
4828 | # 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] | 4829 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4831 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4832 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4833 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4834 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4835 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4836 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4837 | 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] | 4838 | ;; |
4839 | *) | ||||
4840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4841 | for as_dir in notfound | ||||
4842 | do | ||||
4843 | IFS=$as_save_IFS | ||||
4844 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4845 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4846 | 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] | 4847 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4848 | $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] | 4849 | break 2 |
4850 | fi | ||||
4851 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4852 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4853 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4854 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4855 | ;; |
4856 | esac | ||||
4857 | fi | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4858 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
4859 | if test -n "$ac_pt_CXX"; then | ||||
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4861 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4862 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4864 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4865 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4866 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4867 | if test "x$ac_pt_CXX" = x; then |
4868 | CXX="c++" | ||||
4869 | else | ||||
4870 | case $cross_compiling:$ac_tool_warned in | ||||
4871 | yes:) | ||||
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4873 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4874 | ac_tool_warned=yes ;; | ||||
4875 | esac | ||||
4876 | CXX=$ac_pt_CXX | ||||
4877 | fi | ||||
4878 | else | ||||
4879 | CXX="$ac_cv_path_CXX" | ||||
4880 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4881 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4882 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
4883 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | ||||
4884 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4886 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4887 | if ${ac_cv_path_CXX+:} false; then : | ||||
4888 | $as_echo_n "(cached) " >&6 | ||||
4889 | else | ||||
4890 | case $CXX in | ||||
4891 | [\\/]* | ?:[\\/]*) | ||||
4892 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4893 | ;; | ||||
4894 | *) | ||||
4895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4896 | for as_dir in notfound | ||||
4897 | do | ||||
4898 | IFS=$as_save_IFS | ||||
4899 | test -z "$as_dir" && as_dir=. | ||||
4900 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4902 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4904 | break 2 | ||||
4905 | fi | ||||
4906 | done | ||||
4907 | done | ||||
4908 | IFS=$as_save_IFS | ||||
4909 | |||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4910 | ;; |
4911 | esac | ||||
4912 | fi | ||||
4913 | CXX=$ac_cv_path_CXX | ||||
4914 | if test -n "$CXX"; then | ||||
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4916 | $as_echo "$CXX" >&6; } | ||||
4917 | else | ||||
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4919 | $as_echo "no" >&6; } | ||||
4920 | fi | ||||
4921 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4922 | |
4923 | fi | ||||
4924 | if test -z "$ac_cv_path_CXX"; then | ||||
4925 | ac_pt_CXX=$CXX | ||||
4926 | # Extract the first word of "clang++", so it can be a program name with args. | ||||
4927 | set dummy clang++; ac_word=$2 | ||||
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4929 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4930 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4931 | $as_echo_n "(cached) " >&6 | ||||
4932 | else | ||||
4933 | case $ac_pt_CXX in | ||||
4934 | [\\/]* | ?:[\\/]*) | ||||
4935 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4936 | ;; | ||||
4937 | *) | ||||
4938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4939 | for as_dir in notfound | ||||
4940 | do | ||||
4941 | IFS=$as_save_IFS | ||||
4942 | test -z "$as_dir" && as_dir=. | ||||
4943 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4944 | 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] | 4945 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4947 | break 2 | ||||
4948 | fi | ||||
4949 | done | ||||
4950 | done | ||||
4951 | IFS=$as_save_IFS | ||||
4952 | |||||
4953 | ;; | ||||
4954 | esac | ||||
4955 | fi | ||||
4956 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4957 | if test -n "$ac_pt_CXX"; then | ||||
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4959 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4960 | else | ||||
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4962 | $as_echo "no" >&6; } | ||||
4963 | fi | ||||
4964 | |||||
4965 | if test "x$ac_pt_CXX" = x; then | ||||
4966 | CXX="clang++" | ||||
4967 | else | ||||
4968 | case $cross_compiling:$ac_tool_warned in | ||||
4969 | yes:) | ||||
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4972 | ac_tool_warned=yes ;; | ||||
4973 | esac | ||||
4974 | CXX=$ac_pt_CXX | ||||
4975 | fi | ||||
4976 | else | ||||
4977 | CXX="$ac_cv_path_CXX" | ||||
4978 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4979 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 4980 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
4981 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | ||||
4982 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | ||||
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4984 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4985 | if ${ac_cv_path_CXX+:} false; then : | ||||
4986 | $as_echo_n "(cached) " >&6 | ||||
4987 | else | ||||
4988 | case $CXX in | ||||
4989 | [\\/]* | ?:[\\/]*) | ||||
4990 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4991 | ;; | ||||
4992 | *) | ||||
4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4994 | for as_dir in notfound | ||||
4995 | do | ||||
4996 | IFS=$as_save_IFS | ||||
4997 | test -z "$as_dir" && as_dir=. | ||||
4998 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
5000 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5002 | break 2 | ||||
5003 | fi | ||||
5004 | done | ||||
5005 | done | ||||
5006 | IFS=$as_save_IFS | ||||
5007 | |||||
5008 | ;; | ||||
5009 | esac | ||||
5010 | fi | ||||
5011 | CXX=$ac_cv_path_CXX | ||||
5012 | if test -n "$CXX"; then | ||||
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
5014 | $as_echo "$CXX" >&6; } | ||||
5015 | else | ||||
5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5017 | $as_echo "no" >&6; } | ||||
5018 | fi | ||||
5019 | |||||
5020 | |||||
5021 | fi | ||||
5022 | if test -z "$ac_cv_path_CXX"; then | ||||
5023 | ac_pt_CXX=$CXX | ||||
5024 | # Extract the first word of "icpc", so it can be a program name with args. | ||||
5025 | set dummy icpc; ac_word=$2 | ||||
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5027 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5028 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
5029 | $as_echo_n "(cached) " >&6 | ||||
5030 | else | ||||
5031 | case $ac_pt_CXX in | ||||
5032 | [\\/]* | ?:[\\/]*) | ||||
5033 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
5034 | ;; | ||||
5035 | *) | ||||
5036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5037 | for as_dir in notfound | ||||
5038 | do | ||||
5039 | IFS=$as_save_IFS | ||||
5040 | test -z "$as_dir" && as_dir=. | ||||
5041 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
5043 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5045 | break 2 | ||||
5046 | fi | ||||
5047 | done | ||||
5048 | done | ||||
5049 | IFS=$as_save_IFS | ||||
5050 | |||||
5051 | ;; | ||||
5052 | esac | ||||
5053 | fi | ||||
5054 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
5055 | if test -n "$ac_pt_CXX"; then | ||||
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
5057 | $as_echo "$ac_pt_CXX" >&6; } | ||||
5058 | else | ||||
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5060 | $as_echo "no" >&6; } | ||||
5061 | fi | ||||
5062 | |||||
5063 | if test "x$ac_pt_CXX" = x; then | ||||
5064 | CXX="icpc" | ||||
5065 | else | ||||
5066 | case $cross_compiling:$ac_tool_warned in | ||||
5067 | yes:) | ||||
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5069 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5070 | ac_tool_warned=yes ;; | ||||
5071 | esac | ||||
5072 | CXX=$ac_pt_CXX | ||||
5073 | fi | ||||
5074 | else | ||||
5075 | CXX="$ac_cv_path_CXX" | ||||
5076 | fi | ||||
5077 | ;; | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5078 | esac |
5079 | if test "$CXX" = "notfound" | ||||
5080 | then | ||||
5081 | CXX="" | ||||
5082 | fi | ||||
5083 | fi | ||||
5084 | if test -z "$CXX" | ||||
5085 | then | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5086 | if test -n "$ac_tool_prefix"; then |
5087 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5088 | do | ||||
5089 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5090 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5092 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5093 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5094 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5095 | else |
5096 | if test -n "$CXX"; then | ||||
5097 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||||
5098 | else | ||||
5099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5100 | for as_dir in $PATH | ||||
5101 | do | ||||
5102 | IFS=$as_save_IFS | ||||
5103 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5104 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5105 | 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] | 5106 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5107 | $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] | 5108 | break 2 |
5109 | fi | ||||
5110 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5111 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5112 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5113 | |
5114 | fi | ||||
5115 | fi | ||||
5116 | CXX=$ac_cv_prog_CXX | ||||
5117 | if test -n "$CXX"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5119 | $as_echo "$CXX" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5120 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5122 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5123 | fi |
5124 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5125 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5126 | test -n "$CXX" && break |
5127 | done | ||||
5128 | fi | ||||
5129 | if test -z "$CXX"; then | ||||
5130 | ac_ct_CXX=$CXX | ||||
5131 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5132 | do | ||||
5133 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
5134 | set dummy $ac_prog; ac_word=$2 | ||||
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5136 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5137 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||||
5138 | $as_echo_n "(cached) " >&6 | ||||
5139 | else | ||||
5140 | if test -n "$ac_ct_CXX"; then | ||||
5141 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||||
5142 | else | ||||
5143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5144 | for as_dir in $PATH | ||||
5145 | do | ||||
5146 | IFS=$as_save_IFS | ||||
5147 | test -z "$as_dir" && as_dir=. | ||||
5148 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 5149 | 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] | 5150 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5152 | break 2 | ||||
5153 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5154 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5155 | done |
5156 | IFS=$as_save_IFS | ||||
5157 | |||||
5158 | fi | ||||
5159 | fi | ||||
5160 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||||
5161 | if test -n "$ac_ct_CXX"; then | ||||
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||||
5163 | $as_echo "$ac_ct_CXX" >&6; } | ||||
5164 | else | ||||
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5166 | $as_echo "no" >&6; } | ||||
5167 | fi | ||||
5168 | |||||
5169 | |||||
5170 | test -n "$ac_ct_CXX" && break | ||||
5171 | done | ||||
5172 | |||||
5173 | if test "x$ac_ct_CXX" = x; then | ||||
5174 | CXX="notfound" | ||||
5175 | else | ||||
5176 | case $cross_compiling:$ac_tool_warned in | ||||
5177 | yes:) | ||||
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5180 | ac_tool_warned=yes ;; | ||||
5181 | esac | ||||
5182 | CXX=$ac_ct_CXX | ||||
5183 | fi | ||||
5184 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5185 | |
5186 | if test "$CXX" = "notfound" | ||||
5187 | then | ||||
5188 | CXX="" | ||||
5189 | fi | ||||
5190 | fi | ||||
5191 | if test "$preset_cxx" != "$CXX" | ||||
5192 | then | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5194 | |
5195 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5196 | If this is not intended, then set CXX on the configure command line. | ||||
5197 | " >&5 | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5198 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5199 | |
5200 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5201 | If this is not intended, then set CXX on the configure command line. | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5202 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5203 | fi |
5204 | |||||
5205 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5206 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
5207 | |||||
5208 | |||||
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | ||||
5210 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | ||||
5211 | cat >> conftest.c <<EOF | ||||
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5212 | #undef bfin |
5213 | #undef cris | ||||
5214 | #undef fr30 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5215 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5216 | #undef hppa |
5217 | #undef hpux | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5218 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5219 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 21:31:02 | [diff] [blame] | 5220 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5221 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5222 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 20:05:20 | [diff] [blame] | 5223 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 16:31:28 | [diff] [blame] | 5224 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 20:05:20 | [diff] [blame] | 5225 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5226 | # if defined(__x86_64__) && defined(__LP64__) |
5227 | x86_64-linux-gnu | ||||
5228 | # elif defined(__x86_64__) && defined(__ILP32__) | ||||
5229 | x86_64-linux-gnux32 | ||||
5230 | # elif defined(__i386__) | ||||
5231 | i386-linux-gnu | ||||
5232 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | ||||
5233 | # if defined(__ILP32__) | ||||
5234 | aarch64_ilp32-linux-gnu | ||||
5235 | # else | ||||
5236 | aarch64-linux-gnu | ||||
5237 | # endif | ||||
5238 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | ||||
5239 | # if defined(__ILP32__) | ||||
5240 | aarch64_be_ilp32-linux-gnu | ||||
5241 | # else | ||||
5242 | aarch64_be-linux-gnu | ||||
5243 | # endif | ||||
5244 | # elif defined(__alpha__) | ||||
5245 | alpha-linux-gnu | ||||
5246 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | ||||
5247 | # if defined(__ARMEL__) | ||||
5248 | arm-linux-gnueabihf | ||||
5249 | # else | ||||
5250 | armeb-linux-gnueabihf | ||||
5251 | # endif | ||||
5252 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | ||||
5253 | # if defined(__ARMEL__) | ||||
5254 | arm-linux-gnueabi | ||||
5255 | # else | ||||
5256 | armeb-linux-gnueabi | ||||
5257 | # endif | ||||
5258 | # elif defined(__hppa__) | ||||
5259 | hppa-linux-gnu | ||||
5260 | # elif defined(__ia64__) | ||||
5261 | ia64-linux-gnu | ||||
5262 | # elif defined(__m68k__) && !defined(__mcoldfire__) | ||||
5263 | m68k-linux-gnu | ||||
5264 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | ||||
5265 | # if _MIPS_SIM == _ABIO32 | ||||
5266 | mipsel-linux-gnu | ||||
5267 | # elif _MIPS_SIM == _ABIN32 | ||||
5268 | mips64el-linux-gnuabin32 | ||||
5269 | # elif _MIPS_SIM == _ABI64 | ||||
5270 | mips64el-linux-gnuabi64 | ||||
5271 | # else | ||||
5272 | # error unknown platform triplet | ||||
5273 | # endif | ||||
5274 | # elif defined(__mips_hard_float) | ||||
5275 | # if _MIPS_SIM == _ABIO32 | ||||
5276 | mips-linux-gnu | ||||
5277 | # elif _MIPS_SIM == _ABIN32 | ||||
5278 | mips64-linux-gnuabin32 | ||||
5279 | # elif _MIPS_SIM == _ABI64 | ||||
5280 | mips64-linux-gnuabi64 | ||||
5281 | # else | ||||
5282 | # error unknown platform triplet | ||||
5283 | # endif | ||||
5284 | # elif defined(__or1k__) | ||||
5285 | or1k-linux-gnu | ||||
5286 | # elif defined(__powerpc__) && defined(__SPE__) | ||||
5287 | powerpc-linux-gnuspe | ||||
5288 | # elif defined(__powerpc64__) | ||||
5289 | # if defined(__LITTLE_ENDIAN__) | ||||
5290 | powerpc64le-linux-gnu | ||||
5291 | # else | ||||
5292 | powerpc64-linux-gnu | ||||
5293 | # endif | ||||
5294 | # elif defined(__powerpc__) | ||||
5295 | powerpc-linux-gnu | ||||
5296 | # elif defined(__s390x__) | ||||
5297 | s390x-linux-gnu | ||||
5298 | # elif defined(__s390__) | ||||
5299 | s390-linux-gnu | ||||
5300 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | ||||
5301 | sh4-linux-gnu | ||||
5302 | # elif defined(__sparc__) && defined(__arch64__) | ||||
5303 | sparc64-linux-gnu | ||||
5304 | # elif defined(__sparc__) | ||||
5305 | sparc-linux-gnu | ||||
5306 | # else | ||||
5307 | # error unknown platform triplet | ||||
5308 | # endif | ||||
5309 | #elif defined(__FreeBSD_kernel__) | ||||
5310 | # if defined(__LP64__) | ||||
5311 | x86_64-kfreebsd-gnu | ||||
5312 | # elif defined(__i386__) | ||||
5313 | i386-kfreebsd-gnu | ||||
5314 | # else | ||||
5315 | # error unknown platform triplet | ||||
5316 | # endif | ||||
5317 | #elif defined(__gnu_hurd__) | ||||
5318 | i386-gnu | ||||
Ned Deily | 3b81248 | 2015-04-16 00:11:47 | [diff] [blame] | 5319 | #elif defined(__APPLE__) |
5320 | darwin | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5321 | #else |
5322 | # error unknown platform triplet | ||||
5323 | #endif | ||||
5324 | |||||
5325 | EOF | ||||
5326 | |||||
Xavier de Gaye | 3a32bdf | 2016-07-30 09:28:35 | [diff] [blame] | 5327 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5328 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | ||||
5330 | $as_echo "$PLATFORM_TRIPLET" >&6; } | ||||
5331 | else | ||||
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
5333 | $as_echo "none" >&6; } | ||||
5334 | fi | ||||
5335 | rm -f conftest.c conftest.out | ||||
5336 | |||||
5337 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | ||||
5338 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | ||||
5339 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | ||||
5340 | fi | ||||
doko@ubuntu.com | 75b1cb1 | 2016-08-29 18:03:25 | [diff] [blame] | 5341 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
5342 | MULTIARCH=$PLATFORM_TRIPLET | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5343 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5344 | |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 5345 | if test x$MULTIARCH != x; then |
5346 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | ||||
5347 | fi | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5348 | |
5349 | |||||
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
5351 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | ||||
5352 | save_LDFLAGS="$LDFLAGS" | ||||
5353 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 5354 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 5355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5356 | /* end confdefs.h. */ | ||||
5357 | |||||
5358 | int | ||||
5359 | main () | ||||
5360 | { | ||||
5361 | |||||
5362 | ; | ||||
5363 | return 0; | ||||
5364 | } | ||||
5365 | _ACEOF | ||||
5366 | if ac_fn_c_try_link "$LINENO"; then : | ||||
5367 | NO_AS_NEEDED="-Wl,--no-as-needed" | ||||
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
5369 | $as_echo "yes" >&6; } | ||||
5370 | else | ||||
5371 | NO_AS_NEEDED="" | ||||
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5373 | $as_echo "no" >&6; } | ||||
5374 | fi | ||||
5375 | rm -f core conftest.err conftest.$ac_objext \ | ||||
5376 | conftest$ac_exeext conftest.$ac_ext | ||||
5377 | LDFLAGS="$save_LDFLAGS" | ||||
5378 | |||||
5379 | |||||
5380 | |||||
5381 | # checks for UNIX variants that set C preprocessor variables | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5382 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5384 | $as_echo_n "checking for egrep... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5385 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5386 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5387 | else |
5388 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
5389 | then ac_cv_path_EGREP="$GREP -E" | ||||
5390 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5391 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5392 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5393 | # Loop through the user's path and test for each of PROGNAME-LIST |
5394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5395 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5396 | do | ||||
5397 | IFS=$as_save_IFS | ||||
5398 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5399 | for ac_prog in egrep; do |
5400 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5401 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5402 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5403 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5404 | # Check for GNU $ac_path_EGREP |
5405 | case `"$ac_path_EGREP" --version 2>&1` in | ||||
5406 | *GNU*) | ||||
5407 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
5408 | *) | ||||
5409 | ac_count=0 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5410 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5411 | while : |
5412 | do | ||||
5413 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
5414 | mv "conftest.tmp" "conftest.in" | ||||
5415 | cp "conftest.in" "conftest.nl" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5416 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5417 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5418 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5419 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5420 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5421 | # Best one so far, save it but keep looking for a better one | ||||
5422 | ac_cv_path_EGREP="$ac_path_EGREP" | ||||
5423 | ac_path_EGREP_max=$ac_count | ||||
5424 | fi | ||||
5425 | # 10*(2^10) chars as input seems more than enough | ||||
5426 | test $ac_count -gt 10 && break | ||||
5427 | done | ||||
5428 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
5429 | esac | ||||
5430 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5431 | $ac_path_EGREP_found && break 3 |
5432 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5433 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5434 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5435 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5436 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 5437 | 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] | 5438 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5439 | else |
5440 | ac_cv_path_EGREP=$EGREP | ||||
5441 | fi | ||||
5442 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5443 | fi |
5444 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5446 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5447 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 5448 | |
5449 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5451 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5452 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5453 | $as_echo_n "(cached) " >&6 |
5454 | else | ||||
5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5456 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5457 | #include <stdlib.h> |
5458 | #include <stdarg.h> | ||||
5459 | #include <string.h> | ||||
5460 | #include <float.h> | ||||
5461 | |||||
5462 | int | ||||
5463 | main () | ||||
5464 | { | ||||
5465 | |||||
5466 | ; | ||||
5467 | return 0; | ||||
5468 | } | ||||
5469 | _ACEOF | ||||
5470 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5471 | ac_cv_header_stdc=yes | ||||
5472 | else | ||||
5473 | ac_cv_header_stdc=no | ||||
5474 | fi | ||||
5475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5476 | |||||
5477 | if test $ac_cv_header_stdc = yes; then | ||||
5478 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
5479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5480 | /* end confdefs.h. */ | ||||
5481 | #include <string.h> | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5482 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5483 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5485 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5486 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5487 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5488 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5489 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 5490 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5491 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5492 | fi |
5493 | |||||
5494 | if test $ac_cv_header_stdc = yes; then | ||||
5495 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
5496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5497 | /* end confdefs.h. */ | ||||
5498 | #include <stdlib.h> | ||||
5499 | |||||
5500 | _ACEOF | ||||
5501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5502 | $EGREP "free" >/dev/null 2>&1; then : | ||||
5503 | |||||
5504 | else | ||||
5505 | ac_cv_header_stdc=no | ||||
5506 | fi | ||||
5507 | rm -f conftest* | ||||
5508 | |||||
5509 | fi | ||||
5510 | |||||
5511 | if test $ac_cv_header_stdc = yes; then | ||||
5512 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
5513 | if test "$cross_compiling" = yes; then : | ||||
5514 | : | ||||
5515 | else | ||||
5516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5517 | /* end confdefs.h. */ | ||||
5518 | #include <ctype.h> | ||||
5519 | #include <stdlib.h> | ||||
5520 | #if ((' ' & 0x0FF) == 0x020) | ||||
5521 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
5522 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
5523 | #else | ||||
5524 | # define ISLOWER(c) \ | ||||
5525 | (('a' <= (c) && (c) <= 'i') \ | ||||
5526 | || ('j' <= (c) && (c) <= 'r') \ | ||||
5527 | || ('s' <= (c) && (c) <= 'z')) | ||||
5528 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
5529 | #endif | ||||
5530 | |||||
5531 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
5532 | int | ||||
5533 | main () | ||||
5534 | { | ||||
5535 | int i; | ||||
5536 | for (i = 0; i < 256; i++) | ||||
5537 | if (XOR (islower (i), ISLOWER (i)) | ||||
5538 | || toupper (i) != TOUPPER (i)) | ||||
5539 | return 2; | ||||
5540 | return 0; | ||||
5541 | } | ||||
5542 | _ACEOF | ||||
5543 | if ac_fn_c_try_run "$LINENO"; then : | ||||
5544 | |||||
5545 | else | ||||
5546 | ac_cv_header_stdc=no | ||||
5547 | fi | ||||
5548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
5549 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
5550 | fi | ||||
5551 | |||||
5552 | fi | ||||
5553 | fi | ||||
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||
5555 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
5556 | if test $ac_cv_header_stdc = yes; then | ||||
5557 | |||||
5558 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||
5559 | |||||
5560 | fi | ||||
5561 | |||||
5562 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||
5563 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||
5564 | inttypes.h stdint.h unistd.h | ||||
5565 | do : | ||||
5566 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
5567 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||
5568 | " | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 5569 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5570 | cat >>confdefs.h <<_ACEOF |
5571 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
5572 | _ACEOF | ||||
5573 | |||||
5574 | fi | ||||
5575 | |||||
5576 | done | ||||
5577 | |||||
5578 | |||||
5579 | |||||
5580 | 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] | 5581 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5582 | MINIX=yes |
5583 | else | ||||
5584 | MINIX= | ||||
5585 | fi | ||||
5586 | |||||
5587 | |||||
5588 | if test "$MINIX" = yes; then | ||||
5589 | |||||
5590 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||||
5591 | |||||
5592 | |||||
5593 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||||
5594 | |||||
5595 | |||||
5596 | $as_echo "#define _MINIX 1" >>confdefs.h | ||||
5597 | |||||
5598 | fi | ||||
5599 | |||||
5600 | |||||
5601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||||
5602 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5603 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5604 | $as_echo_n "(cached) " >&6 |
5605 | else | ||||
5606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5607 | /* end confdefs.h. */ | ||||
5608 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5609 | # define __EXTENSIONS__ 1 |
5610 | $ac_includes_default | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5611 | int |
5612 | main () | ||||
5613 | { | ||||
5614 | |||||
5615 | ; | ||||
5616 | return 0; | ||||
5617 | } | ||||
5618 | _ACEOF | ||||
5619 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5620 | ac_cv_safe_to_define___extensions__=yes | ||||
5621 | else | ||||
5622 | ac_cv_safe_to_define___extensions__=no | ||||
5623 | fi | ||||
5624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5625 | fi | ||||
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||||
5627 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||||
5628 | test $ac_cv_safe_to_define___extensions__ = yes && | ||||
5629 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||||
5630 | |||||
5631 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||||
5632 | |||||
5633 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||||
5634 | |||||
5635 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||||
5636 | |||||
5637 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||||
5638 | |||||
5639 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5640 | |
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
5642 | $as_echo_n "checking for the Android API level... " >&6; } | ||||
5643 | cat >> conftest.c <<EOF | ||||
5644 | #ifdef __ANDROID__ | ||||
5645 | #include <android/api-level.h> | ||||
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; } | ||||
5658 | |||||
5659 | cat >>confdefs.h <<_ACEOF | ||||
5660 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | ||||
5661 | _ACEOF | ||||
5662 | |||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5663 | |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 | ||||
5665 | $as_echo_n "checking for the Android arm ABI... " >&6; } | ||||
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | ||||
5667 | $as_echo "$_arm_arch" >&6; } | ||||
5668 | if test "$_arm_arch" = 7; then | ||||
5669 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | ||||
5670 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | ||||
5671 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5672 | else |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | ||||
5674 | $as_echo "not Android" >&6; } | ||||
5675 | fi | ||||
5676 | rm -f conftest.c conftest.out | ||||
5677 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5678 | # Check for unsupported systems |
5679 | case $ac_sys_system/$ac_sys_release in | ||||
5680 | atheos*|Linux*/1*) | ||||
5681 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | ||||
5682 | echo See README for details. | ||||
5683 | exit 1;; | ||||
5684 | esac | ||||
5685 | |||||
5686 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
5688 | $as_echo_n "checking for --with-suffix... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5689 | |
5690 | # Check whether --with-suffix was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5691 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5692 | withval=$with_suffix; |
5693 | case $withval in | ||||
5694 | no) EXEEXT=;; | ||||
5695 | yes) EXEEXT=.exe;; | ||||
5696 | *) EXEEXT=$withval;; | ||||
5697 | esac | ||||
5698 | fi | ||||
5699 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
5701 | $as_echo "$EXEEXT" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5702 | |
5703 | # Test whether we're running on a non-case-sensitive system, in which | ||||
5704 | # case we give a warning if no ext is given | ||||
5705 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
5707 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5708 | if test ! -d CaseSensitiveTestDir; then |
5709 | mkdir CaseSensitiveTestDir | ||||
5710 | fi | ||||
5711 | |||||
5712 | if test -d casesensitivetestdir | ||||
5713 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5715 | $as_echo "yes" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5716 | BUILDEXEEXT=.exe |
5717 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5719 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5720 | BUILDEXEEXT=$EXEEXT |
5721 | fi | ||||
5722 | rmdir CaseSensitiveTestDir | ||||
5723 | |||||
5724 | case $MACHDEP in | ||||
5725 | bsdos*) | ||||
5726 | case $CC in | ||||
5727 | gcc) CC="$CC -D_HAVE_BSDI";; | ||||
5728 | esac;; | ||||
5729 | esac | ||||
5730 | |||||
5731 | case $ac_sys_system in | ||||
5732 | hp*|HP*) | ||||
5733 | case $CC in | ||||
5734 | cc|*/cc) CC="$CC -Ae";; | ||||
5735 | esac;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5736 | esac |
5737 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5738 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
5740 | $as_echo_n "checking LIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5741 | if test -z "$LIBRARY" |
5742 | then | ||||
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 | [diff] [blame] | 5743 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
5746 | $as_echo "$LIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5747 | |
5748 | # LDLIBRARY is the name of the library to link against (as opposed to the | ||||
5749 | # name of the library into which to insert object files). BLDLIBRARY is also | ||||
5750 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | ||||
5751 | # is blank as the main program is not linked directly against LDLIBRARY. | ||||
5752 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | ||||
5753 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | ||||
5754 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | ||||
5755 | # DLLLIBRARY is the shared (i.e., DLL) library. | ||||
5756 | # | ||||
5757 | # RUNSHARED is used to run shared python without installed libraries | ||||
5758 | # | ||||
5759 | # INSTSONAME is the name of the shared library that will be use to install | ||||
5760 | # on the system - some systems like version suffix, others don't | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5761 | # |
5762 | # LDVERSION is the shared library version number, normally the Python version | ||||
5763 | # with the ABI build flags appended. | ||||
5764 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5765 | |
5766 | |||||
5767 | |||||
5768 | |||||
5769 | |||||
5770 | |||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5771 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5772 | LDLIBRARY="$LIBRARY" |
5773 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5774 | INSTSONAME='$(LDLIBRARY)' | ||||
5775 | DLLLIBRARY='' | ||||
5776 | LDLIBRARYDIR='' | ||||
5777 | RUNSHARED='' | ||||
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 | [diff] [blame] | 5778 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5779 | |
5780 | # LINKCC is the command that links the python executable -- default is $(CC). | ||||
5781 | # If CXX is set, and if it is needed to link a main function that was | ||||
5782 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | ||||
5783 | # python might then depend on the C++ runtime | ||||
5784 | # This is altered for AIX in order to build the export list before | ||||
5785 | # linking. | ||||
5786 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
5788 | $as_echo_n "checking LINKCC... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5789 | if test -z "$LINKCC" |
5790 | then | ||||
5791 | LINKCC='$(PURIFY) $(MAINCC)' | ||||
5792 | case $ac_sys_system in | ||||
5793 | AIX*) | ||||
5794 | exp_extra="\"\"" | ||||
5795 | if test $ac_sys_release -ge 5 -o \ | ||||
5796 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | ||||
5797 | exp_extra="." | ||||
5798 | fi | ||||
5799 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5800 | QNX*) |
5801 | # qcc must be used because the other compilers do not | ||||
5802 | # support -N. | ||||
5803 | LINKCC=qcc;; | ||||
5804 | esac | ||||
5805 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
5807 | $as_echo "$LINKCC" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5808 | |
5809 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong | ||||
5810 | # make sure we default having it set to "no": this is used by | ||||
5811 | # distutils.unixccompiler to know if it should add --enable-new-dtags | ||||
5812 | # to linker command lines, and failing to detect GNU ld simply results | ||||
5813 | # in the same bahaviour as before. | ||||
5814 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5816 | $as_echo_n "checking for GNU ld... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5817 | ac_prog=ld |
5818 | if test "$GCC" = yes; then | ||||
5819 | ac_prog=`$CC -print-prog-name=ld` | ||||
5820 | fi | ||||
5821 | case `"$ac_prog" -V 2>&1 < /dev/null` in | ||||
5822 | *GNU*) | ||||
5823 | GNULD=yes;; | ||||
5824 | *) | ||||
5825 | GNULD=no;; | ||||
5826 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
5828 | $as_echo "$GNULD" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5829 | |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 | [diff] [blame] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5831 | $as_echo_n "checking for inline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5832 | if ${ac_cv_c_inline+:} false; then : |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 | [diff] [blame] | 5833 | $as_echo_n "(cached) " >&6 |
5834 | else | ||||
5835 | ac_cv_c_inline=no | ||||
5836 | for ac_kw in inline __inline__ __inline; do | ||||
5837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5838 | /* end confdefs.h. */ | ||||
5839 | #ifndef __cplusplus | ||||
5840 | typedef int foo_t; | ||||
5841 | static $ac_kw foo_t static_foo () {return 0; } | ||||
5842 | $ac_kw foo_t foo () {return 0; } | ||||
5843 | #endif | ||||
5844 | |||||
5845 | _ACEOF | ||||
5846 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5847 | ac_cv_c_inline=$ac_kw | ||||
5848 | fi | ||||
5849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5850 | test "$ac_cv_c_inline" != no && break | ||||
5851 | done | ||||
5852 | |||||
5853 | fi | ||||
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||||
5855 | $as_echo "$ac_cv_c_inline" >&6; } | ||||
5856 | |||||
5857 | case $ac_cv_c_inline in | ||||
5858 | inline | yes) ;; | ||||
5859 | *) | ||||
5860 | case $ac_cv_c_inline in | ||||
5861 | no) ac_val=;; | ||||
5862 | *) ac_val=$ac_cv_c_inline;; | ||||
5863 | esac | ||||
5864 | cat >>confdefs.h <<_ACEOF | ||||
5865 | #ifndef __cplusplus | ||||
5866 | #define inline $ac_val | ||||
5867 | #endif | ||||
5868 | _ACEOF | ||||
5869 | ;; | ||||
5870 | esac | ||||
5871 | |||||
5872 | if test "$ac_cv_c_inline" != no ; then | ||||
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 5873 | |
5874 | $as_echo "#define USE_INLINE 1" >>confdefs.h | ||||
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 | [diff] [blame] | 5875 | |
5876 | |||||
5877 | fi | ||||
5878 | |||||
5879 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
5881 | $as_echo_n "checking for --enable-shared... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5882 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5883 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5884 | enableval=$enable_shared; |
5885 | fi | ||||
5886 | |||||
5887 | |||||
5888 | if test -z "$enable_shared" | ||||
5889 | then | ||||
5890 | case $ac_sys_system in | ||||
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 | [diff] [blame] | 5891 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5892 | enable_shared="yes";; |
5893 | *) | ||||
5894 | enable_shared="no";; | ||||
5895 | esac | ||||
5896 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
5898 | $as_echo "$enable_shared" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
5901 | $as_echo_n "checking for --enable-profiling... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5902 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5903 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5904 | enableval=$enable_profiling; |
5905 | fi | ||||
5906 | |||||
5907 | if test "x$enable_profiling" = xyes; then | ||||
5908 | ac_save_cc="$CC" | ||||
Benjamin Peterson | 615ea1a | 2013-03-26 12:55:37 | [diff] [blame] | 5909 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5911 | /* end confdefs.h. */ |
5912 | int main() { return 0; } | ||||
5913 | _ACEOF | ||||
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5914 | if ac_fn_c_try_link "$LINENO"; then : |
5915 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5916 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5917 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5918 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5919 | rm -f core conftest.err conftest.$ac_objext \ |
5920 | conftest$ac_exeext conftest.$ac_ext | ||||
5921 | CC="$ac_save_cc" | ||||
5922 | else | ||||
5923 | enable_profiling=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5924 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
5926 | $as_echo "$enable_profiling" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5927 | |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5928 | if test "x$enable_profiling" = xyes; then |
5929 | BASECFLAGS="-pg $BASECFLAGS" | ||||
5930 | LDFLAGS="-pg $LDFLAGS" | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5931 | fi |
5932 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
5934 | $as_echo_n "checking LDLIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5935 | |
5936 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | ||||
5937 | # library that we build, but we do not want to link against it (we | ||||
5938 | # will find it with a -framework option). For this reason there is an | ||||
5939 | # extra variable BLDLIBRARY against which Python and the extension | ||||
5940 | # modules are linked, BLDLIBRARY. This is normally the same as | ||||
5941 | # LDLIBRARY, but empty for MacOSX framework builds. | ||||
5942 | if test "$enable_framework" | ||||
5943 | then | ||||
5944 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5945 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5946 | BLDLIBRARY='' |
5947 | else | ||||
5948 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5949 | fi | ||||
5950 | |||||
5951 | # Other platforms follow | ||||
5952 | if test $enable_shared = "yes"; then | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 5953 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5954 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5955 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5956 | |
5957 | case $ac_sys_system in | ||||
5958 | CYGWIN*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5959 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
5960 | DLLLIBRARY='libpython$(LDVERSION).dll' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5961 | ;; |
5962 | SunOS*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5963 | LDLIBRARY='libpython$(LDVERSION).so' |
5964 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5965 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5966 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 | [diff] [blame] | 5967 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5968 | then |
5969 | PY3LIBRARY=libpython3.so | ||||
5970 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5971 | ;; |
Charles-François Natali | 749400a | 2011-07-24 20:41:18 | [diff] [blame] | 5972 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5973 | LDLIBRARY='libpython$(LDVERSION).so' |
5974 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5975 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5976 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 | [diff] [blame] | 5977 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5978 | then |
5979 | PY3LIBRARY=libpython3.so | ||||
5980 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5981 | ;; |
5982 | hp*|HP*) | ||||
5983 | case `uname -m` in | ||||
5984 | ia64) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5985 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5986 | ;; |
5987 | *) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5988 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5989 | ;; |
5990 | esac | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5991 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5992 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5993 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5994 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5995 | LDLIBRARY='libpython$(LDVERSION).dylib' |
5996 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5997 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5998 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 5999 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6000 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 6001 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 6002 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6003 | |
6004 | esac | ||||
6005 | else # shared is disabled | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 6006 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6007 | case $ac_sys_system in |
6008 | CYGWIN*) | ||||
6009 | BLDLIBRARY='$(LIBRARY)' | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6010 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6011 | ;; |
6012 | esac | ||||
6013 | fi | ||||
6014 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 6015 | if test "$cross_compiling" = yes; then |
6016 | RUNSHARED= | ||||
6017 | fi | ||||
6018 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
6020 | $as_echo "$LDLIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6021 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6022 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6023 | if test -n "$ac_tool_prefix"; then |
6024 | for ac_prog in ar aal | ||||
6025 | do | ||||
6026 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6027 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6029 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 6030 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6031 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6032 | else |
6033 | if test -n "$AR"; then | ||||
6034 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||||
6035 | else | ||||
6036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6037 | for as_dir in $PATH | ||||
6038 | do | ||||
6039 | IFS=$as_save_IFS | ||||
6040 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6041 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6042 | 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] | 6043 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6044 | $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] | 6045 | break 2 |
6046 | fi | ||||
6047 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6048 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6049 | IFS=$as_save_IFS |
6050 | |||||
6051 | fi | ||||
6052 | fi | ||||
6053 | AR=$ac_cv_prog_AR | ||||
6054 | if test -n "$AR"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6056 | $as_echo "$AR" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6057 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6059 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6060 | fi |
6061 | |||||
6062 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6063 | test -n "$AR" && break |
6064 | done | ||||
6065 | fi | ||||
6066 | if test -z "$AR"; then | ||||
6067 | ac_ct_AR=$AR | ||||
6068 | for ac_prog in ar aal | ||||
6069 | do | ||||
6070 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6071 | set dummy $ac_prog; ac_word=$2 | ||||
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6073 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6074 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||||
6075 | $as_echo_n "(cached) " >&6 | ||||
6076 | else | ||||
6077 | if test -n "$ac_ct_AR"; then | ||||
6078 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||||
6079 | else | ||||
6080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6081 | for as_dir in $PATH | ||||
6082 | do | ||||
6083 | IFS=$as_save_IFS | ||||
6084 | test -z "$as_dir" && as_dir=. | ||||
6085 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 6086 | 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] | 6087 | ac_cv_prog_ac_ct_AR="$ac_prog" |
6088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6089 | break 2 | ||||
6090 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6091 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6092 | done |
6093 | IFS=$as_save_IFS | ||||
6094 | |||||
6095 | fi | ||||
6096 | fi | ||||
6097 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||||
6098 | if test -n "$ac_ct_AR"; then | ||||
6099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||||
6100 | $as_echo "$ac_ct_AR" >&6; } | ||||
6101 | else | ||||
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6103 | $as_echo "no" >&6; } | ||||
6104 | fi | ||||
6105 | |||||
6106 | |||||
6107 | test -n "$ac_ct_AR" && break | ||||
6108 | done | ||||
6109 | |||||
6110 | if test "x$ac_ct_AR" = x; then | ||||
6111 | AR="ar" | ||||
6112 | else | ||||
6113 | case $cross_compiling:$ac_tool_warned in | ||||
6114 | yes:) | ||||
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6116 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6117 | ac_tool_warned=yes ;; | ||||
6118 | esac | ||||
6119 | AR=$ac_ct_AR | ||||
6120 | fi | ||||
6121 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6122 | |
6123 | |||||
6124 | # tweak ARFLAGS only if the user didn't set it on the command line | ||||
6125 | |||||
6126 | if test -z "$ARFLAGS" | ||||
6127 | then | ||||
stratakis | e1b2103 | 2018-11-29 14:43:24 | [diff] [blame] | 6128 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6129 | fi |
6130 | |||||
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6131 | if test -n "$ac_tool_prefix"; then |
6132 | for ac_prog in readelf | ||||
6133 | do | ||||
6134 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6135 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6137 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6138 | if ${ac_cv_prog_READELF+:} false; then : | ||||
6139 | $as_echo_n "(cached) " >&6 | ||||
6140 | else | ||||
6141 | if test -n "$READELF"; then | ||||
6142 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||||
6143 | else | ||||
6144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6145 | for as_dir in $PATH | ||||
6146 | do | ||||
6147 | IFS=$as_save_IFS | ||||
6148 | test -z "$as_dir" && as_dir=. | ||||
6149 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6150 | 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] | 6151 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
6152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6153 | break 2 | ||||
6154 | fi | ||||
6155 | done | ||||
6156 | done | ||||
6157 | IFS=$as_save_IFS | ||||
6158 | |||||
6159 | fi | ||||
6160 | fi | ||||
6161 | READELF=$ac_cv_prog_READELF | ||||
6162 | if test -n "$READELF"; then | ||||
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | ||||
6164 | $as_echo "$READELF" >&6; } | ||||
6165 | else | ||||
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6167 | $as_echo "no" >&6; } | ||||
6168 | fi | ||||
6169 | |||||
6170 | |||||
6171 | test -n "$READELF" && break | ||||
6172 | done | ||||
6173 | fi | ||||
6174 | if test -z "$READELF"; then | ||||
6175 | ac_ct_READELF=$READELF | ||||
6176 | for ac_prog in readelf | ||||
6177 | do | ||||
6178 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6179 | set dummy $ac_prog; ac_word=$2 | ||||
6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6181 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6182 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | ||||
6183 | $as_echo_n "(cached) " >&6 | ||||
6184 | else | ||||
6185 | if test -n "$ac_ct_READELF"; then | ||||
6186 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||||
6187 | else | ||||
6188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6189 | for as_dir in $PATH | ||||
6190 | do | ||||
6191 | IFS=$as_save_IFS | ||||
6192 | test -z "$as_dir" && as_dir=. | ||||
6193 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6194 | 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] | 6195 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
6196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6197 | break 2 | ||||
6198 | fi | ||||
6199 | done | ||||
6200 | done | ||||
6201 | IFS=$as_save_IFS | ||||
6202 | |||||
6203 | fi | ||||
6204 | fi | ||||
6205 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||||
6206 | if test -n "$ac_ct_READELF"; then | ||||
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | ||||
6208 | $as_echo "$ac_ct_READELF" >&6; } | ||||
6209 | else | ||||
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6211 | $as_echo "no" >&6; } | ||||
6212 | fi | ||||
6213 | |||||
6214 | |||||
6215 | test -n "$ac_ct_READELF" && break | ||||
6216 | done | ||||
6217 | |||||
6218 | if test "x$ac_ct_READELF" = x; then | ||||
6219 | READELF=":" | ||||
6220 | else | ||||
6221 | case $cross_compiling:$ac_tool_warned in | ||||
6222 | yes:) | ||||
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6224 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6225 | ac_tool_warned=yes ;; | ||||
6226 | esac | ||||
6227 | READELF=$ac_ct_READELF | ||||
6228 | fi | ||||
6229 | fi | ||||
6230 | |||||
6231 | if test "$cross_compiling" = yes; then | ||||
6232 | case "$READELF" in | ||||
6233 | readelf|:) | ||||
6234 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||||
6235 | ;; | ||||
6236 | esac | ||||
6237 | fi | ||||
6238 | |||||
6239 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6240 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6241 | case $MACHDEP in |
6242 | bsdos*|hp*|HP*) | ||||
6243 | # install -d does not work on BSDI or HP-UX | ||||
6244 | if test -z "$INSTALL" | ||||
6245 | then | ||||
6246 | INSTALL="${srcdir}/install-sh -c" | ||||
6247 | fi | ||||
6248 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6249 | # Find a good install program. We prefer a C program (faster), |
6250 | # so one script is as good as another. But avoid the broken or | ||||
6251 | # incompatible versions: | ||||
6252 | # SysV /etc/install, /usr/sbin/install | ||||
6253 | # SunOS /usr/etc/install | ||||
6254 | # IRIX /sbin/install | ||||
6255 | # AIX /bin/install | ||||
6256 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||||
6257 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||||
6258 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||||
6259 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||||
6260 | # OS/2's system install, which has a completely different semantic | ||||
6261 | # ./install, which can be erroneously created by make from ./install.sh. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6262 | # Reject install programs that cannot install multiple files. |
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||||
6264 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6265 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 6266 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6267 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6268 | else |
6269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6270 | for as_dir in $PATH | ||||
6271 | do | ||||
6272 | IFS=$as_save_IFS | ||||
6273 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6274 | # Account for people who put trailing slashes in PATH elements. |
6275 | case $as_dir/ in #(( | ||||
6276 | ./ | .// | /[cC]/* | \ | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6277 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6278 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6279 | /usr/ucb/* ) ;; |
6280 | *) | ||||
6281 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||||
6282 | # Don't use installbsd from OSF since it installs stuff as root | ||||
6283 | # by default. | ||||
6284 | for ac_prog in ginstall scoinst install; do | ||||
6285 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6286 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6287 | if test $ac_prog = install && |
6288 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6289 | # AIX install. It has an incompatible calling convention. | ||||
6290 | : | ||||
6291 | elif test $ac_prog = install && | ||||
6292 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6293 | # program-specific install script used by HP pwplus--don't use. | ||||
6294 | : | ||||
6295 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6296 | rm -rf conftest.one conftest.two conftest.dir |
6297 | echo one > conftest.one | ||||
6298 | echo two > conftest.two | ||||
6299 | mkdir conftest.dir | ||||
6300 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||||
6301 | test -s conftest.one && test -s conftest.two && | ||||
6302 | test -s conftest.dir/conftest.one && | ||||
6303 | test -s conftest.dir/conftest.two | ||||
6304 | then | ||||
6305 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||||
6306 | break 3 | ||||
6307 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6308 | fi |
6309 | fi | ||||
6310 | done | ||||
6311 | done | ||||
6312 | ;; | ||||
6313 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6314 | |
6315 | done | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6316 | IFS=$as_save_IFS |
6317 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6318 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6319 | |
6320 | fi | ||||
6321 | if test "${ac_cv_path_install+set}" = set; then | ||||
6322 | INSTALL=$ac_cv_path_install | ||||
6323 | else | ||||
6324 | # As a last resort, use the slow shell script. Don't cache a | ||||
6325 | # value for INSTALL within a source directory, because that will | ||||
6326 | # break other packages using the cache if that directory is | ||||
6327 | # removed, or if the value is a relative name. | ||||
6328 | INSTALL=$ac_install_sh | ||||
6329 | fi | ||||
6330 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6332 | $as_echo "$INSTALL" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6333 | |
6334 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||||
6335 | # It thinks the first close brace ends the variable substitution. | ||||
6336 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||||
6337 | |||||
6338 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||||
6339 | |||||
6340 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||||
6341 | |||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6343 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||||
6344 | if test -z "$MKDIR_P"; then | ||||
6345 | if ${ac_cv_path_mkdir+:} false; then : | ||||
6346 | $as_echo_n "(cached) " >&6 | ||||
6347 | else | ||||
6348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6349 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||||
6350 | do | ||||
6351 | IFS=$as_save_IFS | ||||
6352 | test -z "$as_dir" && as_dir=. | ||||
6353 | for ac_prog in mkdir gmkdir; do | ||||
6354 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6355 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 6356 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
6357 | 'mkdir (GNU coreutils) '* | \ | ||||
6358 | 'mkdir (coreutils) '* | \ | ||||
6359 | 'mkdir (fileutils) '4.1*) | ||||
6360 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||||
6361 | break 3;; | ||||
6362 | esac | ||||
6363 | done | ||||
6364 | done | ||||
6365 | done | ||||
6366 | IFS=$as_save_IFS | ||||
6367 | |||||
6368 | fi | ||||
6369 | |||||
6370 | test -d ./--version && rmdir ./--version | ||||
6371 | if test "${ac_cv_path_mkdir+set}" = set; then | ||||
6372 | MKDIR_P="$ac_cv_path_mkdir -p" | ||||
6373 | else | ||||
6374 | # As a last resort, use the slow shell script. Don't cache a | ||||
6375 | # value for MKDIR_P within a source directory, because that will | ||||
6376 | # break other packages using the cache if that directory is | ||||
6377 | # removed, or if the value is a relative name. | ||||
6378 | MKDIR_P="$ac_install_sh -d" | ||||
6379 | fi | ||||
6380 | fi | ||||
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||||
6382 | $as_echo "$MKDIR_P" >&6; } | ||||
6383 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6384 | |
6385 | # Not every filesystem supports hard links | ||||
6386 | |||||
6387 | if test -z "$LN" ; then | ||||
6388 | case $ac_sys_system in | ||||
6389 | CYGWIN*) LN="ln -s";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6390 | *) LN=ln;; |
6391 | esac | ||||
6392 | fi | ||||
6393 | |||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 6394 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6395 | |
6396 | ABIFLAGS="" | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 6397 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6398 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
6400 | $as_echo_n "checking for --with-pydebug... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6401 | |
6402 | # Check whether --with-pydebug was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6403 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6404 | withval=$with_pydebug; |
6405 | if test "$withval" != no | ||||
6406 | then | ||||
6407 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6408 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6409 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6411 | $as_echo "yes" >&6; }; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6412 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6413 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6414 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6415 | $as_echo "no" >&6; }; Py_DEBUG='false' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6416 | fi |
6417 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6419 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6420 | fi |
6421 | |||||
6422 | |||||
T. Wouters | 07a40a1 | 2017-05-23 05:25:17 | [diff] [blame] | 6423 | # Check for --with-assertions. Py_DEBUG implies assertions, but also changes |
6424 | # the ABI. This allows enabling assertions without changing the ABI. | ||||
6425 | assertions='false' | ||||
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 | ||||
6427 | $as_echo_n "checking for --with-assertions... " >&6; } | ||||
6428 | |||||
6429 | # Check whether --with-assertions was given. | ||||
6430 | if test "${with_assertions+set}" = set; then : | ||||
6431 | withval=$with_assertions; | ||||
6432 | if test "$withval" != no | ||||
6433 | then | ||||
6434 | assertions='true' | ||||
6435 | fi | ||||
6436 | fi | ||||
6437 | |||||
6438 | if test "$assertions" = 'true'; then | ||||
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6440 | $as_echo "yes" >&6; } | ||||
6441 | elif test "$Py_DEBUG" = 'true'; then | ||||
6442 | assertions='true' | ||||
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 | ||||
6444 | $as_echo "implied by --with-pydebug" >&6; } | ||||
6445 | else | ||||
6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6447 | $as_echo "no" >&6; } | ||||
6448 | fi | ||||
6449 | |||||
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6450 | # Enable optimization flags |
6451 | |||||
6452 | |||||
6453 | Py_OPT='false' | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
6455 | $as_echo_n "checking for --enable-optimizations... " >&6; } | ||||
6456 | # Check whether --enable-optimizations was given. | ||||
6457 | if test "${enable_optimizations+set}" = set; then : | ||||
6458 | enableval=$enable_optimizations; | ||||
INADA Naoki | f01de61 | 2017-03-28 15:25:26 | [diff] [blame] | 6459 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6460 | then |
6461 | Py_OPT='true' | ||||
6462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6463 | $as_echo "yes" >&6; }; | ||||
6464 | else | ||||
6465 | Py_OPT='false' | ||||
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6467 | $as_echo "no" >&6; }; | ||||
6468 | fi | ||||
6469 | else | ||||
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6471 | $as_echo "no" >&6; } | ||||
6472 | fi | ||||
6473 | |||||
6474 | if test "$Py_OPT" = 'true' ; then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 | [diff] [blame] | 6475 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
6476 | # compile working code using it and both test_distutils and test_gdb are | ||||
Brett Cannon | 1d8f755 | 2016-11-03 23:20:00 | [diff] [blame] | 6477 | # 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] | 6478 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6479 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6480 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6481 | DEF_MAKE_RULE="build_all" |
6482 | else | ||||
6483 | DEF_MAKE_ALL_RULE="build_all" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6484 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6485 | DEF_MAKE_RULE="all" |
6486 | fi | ||||
6487 | |||||
stratakis | f83ee47 | 2018-12-09 08:08:43 | [diff] [blame] | 6488 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
6489 | # normal names in the default $PATH (ie: Ubuntu). They exist under the | ||||
6490 | # non-suffixed name in their versioned llvm directory. | ||||
6491 | |||||
6492 | llvm_bin_dir='' | ||||
6493 | llvm_path="${PATH}" | ||||
6494 | if test "${CC}" = "clang" | ||||
6495 | then | ||||
6496 | clang_bin=`which clang` | ||||
6497 | # Some systems install clang elsewhere as a symlink to the real path | ||||
6498 | # which is where the related llvm tools are located. | ||||
6499 | if test -L "${clang_bin}" | ||||
6500 | then | ||||
6501 | clang_dir=`dirname "${clang_bin}"` | ||||
6502 | clang_bin=`readlink "${clang_bin}"` | ||||
6503 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | ||||
6504 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | ||||
6505 | fi | ||||
6506 | fi | ||||
6507 | |||||
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 6508 | # Enable LTO flags |
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
6510 | $as_echo_n "checking for --with-lto... " >&6; } | ||||
6511 | |||||
6512 | # Check whether --with-lto was given. | ||||
6513 | if test "${with_lto+set}" = set; then : | ||||
6514 | withval=$with_lto; | ||||
6515 | if test "$withval" != no | ||||
6516 | then | ||||
6517 | Py_LTO='true' | ||||
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6519 | $as_echo "yes" >&6; }; | ||||
6520 | else | ||||
6521 | Py_LTO='false' | ||||
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6523 | $as_echo "no" >&6; }; | ||||
6524 | fi | ||||
6525 | else | ||||
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6527 | $as_echo "no" >&6; } | ||||
6528 | fi | ||||
6529 | |||||
6530 | if test "$Py_LTO" = 'true' ; then | ||||
6531 | case $CC in | ||||
6532 | *clang*) | ||||
Victor Stinner | 7839288 | 2018-06-22 07:10:42 | [diff] [blame] | 6533 | |
stratakis | f83ee47 | 2018-12-09 08:08:43 | [diff] [blame] | 6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6535 | $as_echo_n "checking target system type... " >&6; } |
6536 | if ${ac_cv_target+:} false; then : | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6537 | $as_echo_n "(cached) " >&6 |
6538 | else | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6539 | if test "x$target_alias" = x; then |
6540 | ac_cv_target=$ac_cv_host | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6541 | else |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6542 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
6543 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | ||||
6544 | fi | ||||
6545 | |||||
6546 | fi | ||||
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | ||||
6548 | $as_echo "$ac_cv_target" >&6; } | ||||
6549 | case $ac_cv_target in | ||||
6550 | *-*-*) ;; | ||||
6551 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | ||||
6552 | esac | ||||
6553 | target=$ac_cv_target | ||||
6554 | ac_save_IFS=$IFS; IFS='-' | ||||
6555 | set x $ac_cv_target | ||||
6556 | shift | ||||
6557 | target_cpu=$1 | ||||
6558 | target_vendor=$2 | ||||
6559 | shift; shift | ||||
6560 | # Remember, the first character of IFS is used to create $*, | ||||
6561 | # except with old shells: | ||||
6562 | target_os=$* | ||||
6563 | IFS=$ac_save_IFS | ||||
6564 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | ||||
6565 | |||||
6566 | |||||
6567 | # The aliases save the names the user supplied, while $host etc. | ||||
6568 | # will get canonicalized. | ||||
6569 | test -n "$target_alias" && | ||||
6570 | test "$program_prefix$program_suffix$program_transform_name" = \ | ||||
6571 | NONENONEs,x,x, && | ||||
6572 | program_prefix=${target_alias}- | ||||
stratakis | f83ee47 | 2018-12-09 08:08:43 | [diff] [blame] | 6573 | # Extract the first word of "$target_alias-llvm-ar", so it can be a program name with args. |
6574 | set dummy $target_alias-llvm-ar; ac_word=$2 | ||||
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6576 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6577 | if ${ac_cv_path_LLVM_AR+:} false; then : | ||||
6578 | $as_echo_n "(cached) " >&6 | ||||
6579 | else | ||||
6580 | case $LLVM_AR in | ||||
6581 | [\\/]* | ?:[\\/]*) | ||||
6582 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. | ||||
6583 | ;; | ||||
6584 | *) | ||||
6585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6586 | for as_dir in ${llvm_path} | ||||
6587 | do | ||||
6588 | IFS=$as_save_IFS | ||||
6589 | test -z "$as_dir" && as_dir=. | ||||
6590 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6592 | ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6594 | break 2 | ||||
6595 | fi | ||||
6596 | done | ||||
6597 | done | ||||
6598 | IFS=$as_save_IFS | ||||
6599 | |||||
6600 | ;; | ||||
6601 | esac | ||||
6602 | fi | ||||
6603 | LLVM_AR=$ac_cv_path_LLVM_AR | ||||
6604 | if test -n "$LLVM_AR"; then | ||||
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 | ||||
6606 | $as_echo "$LLVM_AR" >&6; } | ||||
6607 | else | ||||
6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6609 | $as_echo "no" >&6; } | ||||
6610 | fi | ||||
6611 | |||||
6612 | |||||
6613 | if test -z "$ac_cv_path_LLVM_AR"; then | ||||
6614 | if test "$build" = "$target"; then | ||||
6615 | ac_pt_LLVM_AR=$LLVM_AR | ||||
6616 | # Extract the first word of "llvm-ar", so it can be a program name with args. | ||||
6617 | set dummy llvm-ar; ac_word=$2 | ||||
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6619 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6620 | if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : | ||||
6621 | $as_echo_n "(cached) " >&6 | ||||
6622 | else | ||||
6623 | case $ac_pt_LLVM_AR in | ||||
6624 | [\\/]* | ?:[\\/]*) | ||||
6625 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. | ||||
6626 | ;; | ||||
6627 | *) | ||||
6628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6629 | for as_dir in ${llvm_path} | ||||
6630 | do | ||||
6631 | IFS=$as_save_IFS | ||||
6632 | test -z "$as_dir" && as_dir=. | ||||
6633 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6635 | ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6637 | break 2 | ||||
6638 | fi | ||||
6639 | done | ||||
6640 | done | ||||
6641 | IFS=$as_save_IFS | ||||
6642 | |||||
6643 | test -z "$ac_cv_path_ac_pt_LLVM_AR" && ac_cv_path_ac_pt_LLVM_AR="''" | ||||
6644 | ;; | ||||
6645 | esac | ||||
6646 | fi | ||||
6647 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR | ||||
6648 | if test -n "$ac_pt_LLVM_AR"; then | ||||
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 | ||||
6650 | $as_echo "$ac_pt_LLVM_AR" >&6; } | ||||
6651 | else | ||||
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6653 | $as_echo "no" >&6; } | ||||
6654 | fi | ||||
6655 | |||||
6656 | LLVM_AR=$ac_pt_LLVM_AR | ||||
6657 | else | ||||
6658 | LLVM_AR="''" | ||||
6659 | fi | ||||
6660 | else | ||||
6661 | LLVM_AR="$ac_cv_path_LLVM_AR" | ||||
6662 | fi | ||||
6663 | |||||
6664 | |||||
6665 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" | ||||
6666 | then | ||||
6667 | LLVM_AR_FOUND="found" | ||||
6668 | else | ||||
6669 | LLVM_AR_FOUND="not-found" | ||||
6670 | fi | ||||
6671 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" | ||||
6672 | then | ||||
6673 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` | ||||
6674 | if test -n "${found_llvm_ar}" | ||||
6675 | then | ||||
6676 | LLVM_AR='/usr/bin/xcrun llvm-ar' | ||||
6677 | LLVM_AR_FOUND=found | ||||
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 | ||||
6679 | $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} | ||||
6680 | fi | ||||
6681 | fi | ||||
6682 | if test $LLVM_AR_FOUND = not-found | ||||
6683 | then | ||||
6684 | LLVM_PROFR_ERR=yes | ||||
6685 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 | ||||
6686 | else | ||||
6687 | LLVM_AR_ERR=no | ||||
6688 | fi | ||||
6689 | AR="${LLVM_AR}" | ||||
6690 | case $ac_sys_system in | ||||
6691 | Darwin*) | ||||
6692 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6693 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6694 | ;; | ||||
6695 | *) | ||||
6696 | LTOFLAGS="-flto" | ||||
6697 | ;; | ||||
6698 | esac | ||||
6699 | ;; | ||||
6700 | *gcc*) | ||||
6701 | case $ac_sys_system in | ||||
6702 | Darwin*) | ||||
6703 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6704 | ;; | ||||
6705 | *) | ||||
6706 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | ||||
6707 | ;; | ||||
6708 | esac | ||||
6709 | ;; | ||||
6710 | esac | ||||
6711 | |||||
6712 | if test "$ac_cv_prog_cc_g" = "yes" | ||||
6713 | then | ||||
6714 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO | ||||
6715 | # to get debug symbols. | ||||
6716 | LTOFLAGS="$LTOFLAGS -g" | ||||
6717 | fi | ||||
6718 | |||||
Miss Islington (bot) | f2d2cb1 | 2018-12-09 08:35:13 | [diff] [blame] | 6719 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
Victor Stinner | a21bedf | 2018-12-20 20:31:22 | [diff] [blame] | 6720 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
stratakis | f83ee47 | 2018-12-09 08:08:43 | [diff] [blame] | 6721 | fi |
6722 | |||||
6723 | # Enable PGO flags. | ||||
6724 | |||||
6725 | |||||
6726 | |||||
6727 | |||||
6728 | |||||
6729 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6730 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. |
6731 | set dummy $target_alias-llvm-profdata; ac_word=$2 | ||||
6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6733 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6734 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | ||||
6735 | $as_echo_n "(cached) " >&6 | ||||
6736 | else | ||||
6737 | case $LLVM_PROFDATA in | ||||
6738 | [\\/]* | ?:[\\/]*) | ||||
6739 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6740 | ;; | ||||
6741 | *) | ||||
6742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6743 | for as_dir in ${llvm_path} | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6744 | do |
6745 | IFS=$as_save_IFS | ||||
6746 | test -z "$as_dir" && as_dir=. | ||||
6747 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6748 | 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] | 6749 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6751 | break 2 | ||||
6752 | fi | ||||
6753 | done | ||||
6754 | done | ||||
6755 | IFS=$as_save_IFS | ||||
6756 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6757 | ;; |
6758 | esac | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6759 | fi |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6760 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
6761 | if test -n "$LLVM_PROFDATA"; then | ||||
6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | ||||
6763 | $as_echo "$LLVM_PROFDATA" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6764 | else |
6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6766 | $as_echo "no" >&6; } | ||||
6767 | fi | ||||
6768 | |||||
6769 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6770 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
6771 | if test "$build" = "$target"; then | ||||
6772 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | ||||
6773 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | ||||
6774 | set dummy llvm-profdata; ac_word=$2 | ||||
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6776 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6777 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | ||||
6778 | $as_echo_n "(cached) " >&6 | ||||
6779 | else | ||||
6780 | case $ac_pt_LLVM_PROFDATA in | ||||
6781 | [\\/]* | ?:[\\/]*) | ||||
6782 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6783 | ;; | ||||
6784 | *) | ||||
6785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6786 | for as_dir in ${llvm_path} | ||||
6787 | do | ||||
6788 | IFS=$as_save_IFS | ||||
6789 | test -z "$as_dir" && as_dir=. | ||||
6790 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6792 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6794 | break 2 | ||||
6795 | fi | ||||
6796 | done | ||||
6797 | done | ||||
6798 | IFS=$as_save_IFS | ||||
6799 | |||||
6800 | test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | ||||
6801 | ;; | ||||
6802 | esac | ||||
6803 | fi | ||||
6804 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | ||||
6805 | if test -n "$ac_pt_LLVM_PROFDATA"; then | ||||
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | ||||
6807 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | ||||
6808 | else | ||||
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6810 | $as_echo "no" >&6; } | ||||
6811 | fi | ||||
6812 | |||||
6813 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | ||||
6814 | else | ||||
6815 | LLVM_PROFDATA="''" | ||||
6816 | fi | ||||
6817 | else | ||||
6818 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | ||||
6819 | fi | ||||
6820 | |||||
6821 | |||||
6822 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | ||||
6823 | then | ||||
6824 | LLVM_PROF_FOUND="found" | ||||
6825 | else | ||||
6826 | LLVM_PROF_FOUND="not-found" | ||||
6827 | fi | ||||
6828 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | ||||
6829 | then | ||||
6830 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | ||||
6831 | if test -n "${found_llvm_profdata}" | ||||
6832 | then | ||||
6833 | # llvm-profdata isn't directly in $PATH in some cases. | ||||
6834 | # https://apple.stackexchange.com/questions/197053/ | ||||
6835 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | ||||
6836 | LLVM_PROF_FOUND=found | ||||
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | ||||
6838 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | ||||
6839 | fi | ||||
6840 | fi | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6841 | LLVM_PROF_ERR=no |
6842 | case $CC in | ||||
6843 | *clang*) | ||||
6844 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6845 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6846 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6847 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6848 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
6849 | if test $LLVM_PROF_FOUND = not-found | ||||
6850 | then | ||||
6851 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6852 | if test "${REQUIRE_PGO}" = "yes" |
6853 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6854 | 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] | 6855 | fi |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6856 | fi |
6857 | ;; | ||||
6858 | *gcc*) | ||||
6859 | case $ac_sys_system in | ||||
6860 | Darwin*) | ||||
6861 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6862 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6863 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6864 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6865 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6866 | then |
6867 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6868 | if test "${REQUIRE_PGO}" = "yes" |
6869 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6870 | 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] | 6871 | fi |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6872 | fi |
6873 | ;; | ||||
6874 | *) | ||||
6875 | PGO_PROF_GEN_FLAG="-fprofile-generate" | ||||
6876 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||||
6877 | LLVM_PROF_MERGER="true" | ||||
6878 | LLVM_PROF_FILE="" | ||||
6879 | ;; | ||||
6880 | esac | ||||
6881 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 6882 | *icc*) |
6883 | PGO_PROF_GEN_FLAG="-prof-gen" | ||||
6884 | PGO_PROF_USE_FLAG="-prof-use" | ||||
6885 | LLVM_PROF_MERGER="true" | ||||
6886 | LLVM_PROF_FILE="" | ||||
6887 | ;; | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6888 | esac |
6889 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6890 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
6891 | # merged with this chunk of code? | ||||
6892 | |||||
6893 | # Optimizer/debugger flags | ||||
6894 | # ------------------------ | ||||
6895 | # (The following bit of code is complicated enough - please keep things | ||||
6896 | # indented properly. Just pretend you're editing Python code. ;-) | ||||
6897 | |||||
6898 | # There are two parallel sets of case statements below, one that checks to | ||||
6899 | # see if OPT was set and one that does BASECFLAGS setting based upon | ||||
6900 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | ||||
6901 | # user set OPT. | ||||
6902 | |||||
6903 | # tweak OPT based on compiler and platform, only if the user didn't set | ||||
6904 | # it on the command line | ||||
6905 | |||||
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6906 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 | [diff] [blame] | 6907 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6908 | then |
6909 | case $GCC in | ||||
6910 | yes) | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6911 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
6912 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | ||||
6913 | WRAP="-fwrapv" | ||||
6914 | fi | ||||
Stefan Krah | 962055d | 2011-09-14 13:14:08 | [diff] [blame] | 6915 | |
Stefan Krah | af04ff2 | 2011-12-08 21:20:31 | [diff] [blame] | 6916 | case $CC in |
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6917 | *clang*) |
6918 | cc_is_clang=1 | ||||
6919 | ;; | ||||
6920 | *) | ||||
6921 | if $CC --version 2>&1 | grep -q clang | ||||
6922 | then | ||||
6923 | cc_is_clang=1 | ||||
6924 | else | ||||
6925 | cc_is_clang= | ||||
6926 | fi | ||||
Stefan Krah | af04ff2 | 2011-12-08 21:20:31 | [diff] [blame] | 6927 | esac |
Stefan Krah | 962055d | 2011-09-14 13:14:08 | [diff] [blame] | 6928 | |
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6929 | if test -n "${cc_is_clang}" |
6930 | then | ||||
6931 | # Clang also needs -fwrapv | ||||
6932 | WRAP="-fwrapv" | ||||
6933 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, | ||||
6934 | # see Makefile.pre.in for more information | ||||
6935 | CFLAGS_ALIASING="-fno-strict-aliasing" | ||||
6936 | fi | ||||
6937 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6938 | case $ac_cv_prog_cc_g in |
6939 | yes) | ||||
6940 | if test "$Py_DEBUG" = 'true' ; then | ||||
6941 | # Optimization messes up debuggers, so turn it off for | ||||
6942 | # debug builds. | ||||
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6943 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6944 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6945 | else |
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6946 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6947 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6948 | else |
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6949 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6950 | fi |
6951 | ;; | ||||
6952 | *) | ||||
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6953 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6954 | ;; |
6955 | esac | ||||
Victor Stinner | 809101f | 2017-05-02 08:47:37 | [diff] [blame] | 6956 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6957 | case $ac_sys_system in |
6958 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | ||||
6959 | ;; | ||||
6960 | esac | ||||
6961 | ;; | ||||
6962 | |||||
6963 | *) | ||||
6964 | OPT="-O" | ||||
6965 | ;; | ||||
6966 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6967 | fi |
6968 | |||||
6969 | |||||
6970 | |||||
Benjamin Peterson | acb8c52 | 2014-08-10 03:01:49 | [diff] [blame] | 6971 | |
Victor Stinner | a21bedf | 2018-12-20 20:31:22 | [diff] [blame] | 6972 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6973 | # The -arch flags for universal builds on OSX |
6974 | UNIVERSAL_ARCH_FLAGS= | ||||
6975 | |||||
6976 | |||||
6977 | # tweak BASECFLAGS based on compiler and platform | ||||
6978 | case $GCC in | ||||
6979 | yes) | ||||
Benjamin Peterson | 050af5d | 2016-09-11 00:53:13 | [diff] [blame] | 6980 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 19:00:06 | [diff] [blame] | 6981 | |
Serhiy Storchaka | ea80ffb | 2016-09-11 18:56:32 | [diff] [blame] | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
6983 | $as_echo_n "checking for -Wextra... " >&6; } | ||||
6984 | ac_save_cc="$CC" | ||||
6985 | CC="$CC -Wextra -Werror" | ||||
6986 | if ${ac_cv_extra_warnings+:} false; then : | ||||
6987 | $as_echo_n "(cached) " >&6 | ||||
6988 | else | ||||
6989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
6990 | /* end confdefs.h. */ | ||||
6991 | |||||
6992 | |||||
6993 | int | ||||
6994 | main () | ||||
6995 | { | ||||
6996 | |||||
6997 | ; | ||||
6998 | return 0; | ||||
6999 | } | ||||
7000 | |||||
7001 | _ACEOF | ||||
7002 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7003 | |||||
7004 | ac_cv_extra_warnings=yes | ||||
7005 | |||||
7006 | else | ||||
7007 | |||||
7008 | ac_cv_extra_warnings=no | ||||
7009 | |||||
7010 | fi | ||||
7011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7012 | fi | ||||
7013 | |||||
7014 | CC="$ac_save_cc" | ||||
7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | ||||
7016 | $as_echo "$ac_cv_extra_warnings" >&6; } | ||||
7017 | |||||
7018 | if test $ac_cv_extra_warnings = yes | ||||
7019 | then | ||||
7020 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | ||||
7021 | fi | ||||
7022 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7023 | # Python doesn't violate C99 aliasing rules, but older versions of |
7024 | # GCC produce warnings for legal Python code. Enable | ||||
7025 | # -fno-strict-aliasing on versions of GCC that support but produce | ||||
7026 | # warnings. See Issue3326 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
7028 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7029 | ac_save_cc="$CC" |
7030 | CC="$CC -fno-strict-aliasing" | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7031 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7032 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7033 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 7034 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7036 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 7037 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7038 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 7039 | int |
7040 | main () | ||||
7041 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 7042 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 7043 | ; |
7044 | return 0; | ||||
7045 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7046 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7047 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7048 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7049 | |
7050 | CC="$ac_save_cc -fstrict-aliasing" | ||||
7051 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | ||||
7052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7053 | /* end confdefs.h. */ |
7054 | |||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 7055 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7056 | int |
7057 | main () | ||||
7058 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 7059 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7060 | ; |
7061 | return 0; | ||||
7062 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7063 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7064 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7065 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7066 | |
7067 | ac_cv_no_strict_aliasing=no | ||||
7068 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7069 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7070 | |
7071 | ac_cv_no_strict_aliasing=yes | ||||
7072 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7073 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7075 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7076 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7077 | |
7078 | ac_cv_no_strict_aliasing=no | ||||
7079 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7080 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 7081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 7082 | fi |
7083 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7084 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7085 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
7087 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7088 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7089 | then |
7090 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | ||||
7091 | fi | ||||
7092 | |||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7093 | # ICC doesn't recognize the option, but only emits a warning |
7094 | ## XXX does it emit an unused result warning and can it be disabled? | ||||
7095 | case "$CC" in | ||||
7096 | *icc*) | ||||
7097 | ac_cv_disable_unused_result_warning=no | ||||
7098 | ;; | ||||
7099 | *) | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
7101 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | ||||
7102 | ac_save_cc="$CC" | ||||
7103 | CC="$CC -Wunused-result -Werror" | ||||
7104 | save_CFLAGS="$CFLAGS" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7105 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7106 | $as_echo_n "(cached) " >&6 |
7107 | else | ||||
7108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7109 | /* end confdefs.h. */ | ||||
7110 | |||||
7111 | |||||
7112 | int | ||||
7113 | main () | ||||
7114 | { | ||||
7115 | |||||
7116 | ; | ||||
7117 | return 0; | ||||
7118 | } | ||||
7119 | |||||
7120 | _ACEOF | ||||
7121 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7122 | |||||
7123 | ac_cv_disable_unused_result_warning=yes | ||||
7124 | |||||
7125 | else | ||||
7126 | |||||
7127 | ac_cv_disable_unused_result_warning=no | ||||
7128 | |||||
7129 | fi | ||||
7130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7131 | fi | ||||
7132 | |||||
7133 | CFLAGS="$save_CFLAGS" | ||||
7134 | CC="$ac_save_cc" | ||||
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | ||||
7136 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7137 | ;; |
7138 | esac | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7139 | |
7140 | if test $ac_cv_disable_unused_result_warning = yes | ||||
7141 | then | ||||
7142 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 18:56:32 | [diff] [blame] | 7143 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
7144 | fi | ||||
7145 | |||||
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | ||||
7147 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | ||||
7148 | ac_save_cc="$CC" | ||||
7149 | CC="$CC -Wunused-parameter -Werror" | ||||
7150 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | ||||
7151 | $as_echo_n "(cached) " >&6 | ||||
7152 | else | ||||
7153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7154 | /* end confdefs.h. */ | ||||
7155 | |||||
7156 | |||||
7157 | int | ||||
7158 | main () | ||||
7159 | { | ||||
7160 | |||||
7161 | ; | ||||
7162 | return 0; | ||||
7163 | } | ||||
7164 | |||||
7165 | _ACEOF | ||||
7166 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7167 | |||||
7168 | ac_cv_disable_unused_parameter_warning=yes | ||||
7169 | |||||
7170 | else | ||||
7171 | |||||
7172 | ac_cv_disable_unused_parameter_warning=no | ||||
7173 | |||||
7174 | fi | ||||
7175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7176 | fi | ||||
7177 | |||||
7178 | CC="$ac_save_cc" | ||||
7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | ||||
7180 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | ||||
7181 | |||||
7182 | if test $ac_cv_disable_unused_parameter_warning = yes | ||||
7183 | then | ||||
7184 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | ||||
7185 | fi | ||||
7186 | |||||
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | ||||
7188 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | ||||
7189 | ac_save_cc="$CC" | ||||
7190 | CC="$CC -Wmissing-field-initializers -Werror" | ||||
7191 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | ||||
7192 | $as_echo_n "(cached) " >&6 | ||||
7193 | else | ||||
7194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7195 | /* end confdefs.h. */ | ||||
7196 | |||||
7197 | |||||
7198 | int | ||||
7199 | main () | ||||
7200 | { | ||||
7201 | |||||
7202 | ; | ||||
7203 | return 0; | ||||
7204 | } | ||||
7205 | |||||
7206 | _ACEOF | ||||
7207 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7208 | |||||
7209 | ac_cv_disable_missing_field_initializers=yes | ||||
7210 | |||||
7211 | else | ||||
7212 | |||||
7213 | ac_cv_disable_missing_field_initializers=no | ||||
7214 | |||||
7215 | fi | ||||
7216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7217 | fi | ||||
7218 | |||||
7219 | CC="$ac_save_cc" | ||||
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | ||||
7221 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | ||||
7222 | |||||
7223 | if test $ac_cv_disable_missing_field_initializers = yes | ||||
7224 | then | ||||
7225 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7226 | fi |
7227 | |||||
Miss Islington (bot) | 20b797d | 2018-05-25 11:02:54 | [diff] [blame] | 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5 |
7229 | $as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; } | ||||
7230 | ac_save_cc="$CC" | ||||
7231 | CC="$CC -Wcast-function-type -Werror" | ||||
7232 | if ${ac_cv_disable_cast_function_type+:} false; then : | ||||
7233 | $as_echo_n "(cached) " >&6 | ||||
7234 | else | ||||
7235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7236 | /* end confdefs.h. */ | ||||
7237 | |||||
7238 | |||||
7239 | int | ||||
7240 | main () | ||||
7241 | { | ||||
7242 | |||||
7243 | ; | ||||
7244 | return 0; | ||||
7245 | } | ||||
7246 | |||||
7247 | _ACEOF | ||||
7248 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7249 | |||||
7250 | ac_cv_disable_cast_function_type=yes | ||||
7251 | |||||
7252 | else | ||||
7253 | |||||
7254 | ac_cv_disable_cast_function_type=no | ||||
7255 | |||||
7256 | fi | ||||
7257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7258 | fi | ||||
7259 | |||||
7260 | CC="$ac_save_cc" | ||||
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5 | ||||
7262 | $as_echo "$ac_cv_disable_cast_function_type" >&6; } | ||||
7263 | |||||
7264 | if test $ac_cv_disable_cast_function_type = yes | ||||
7265 | then | ||||
7266 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type" | ||||
7267 | fi | ||||
7268 | |||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7270 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | ||||
7271 | ac_save_cc="$CC" | ||||
7272 | CC="$CC -Wsign-compare" | ||||
7273 | save_CFLAGS="$CFLAGS" | ||||
7274 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | ||||
7275 | $as_echo_n "(cached) " >&6 | ||||
7276 | else | ||||
7277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7278 | /* end confdefs.h. */ | ||||
7279 | |||||
7280 | |||||
7281 | int | ||||
7282 | main () | ||||
7283 | { | ||||
7284 | |||||
7285 | ; | ||||
7286 | return 0; | ||||
7287 | } | ||||
7288 | |||||
7289 | _ACEOF | ||||
7290 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7291 | |||||
7292 | ac_cv_enable_sign_compare_warning=yes | ||||
7293 | |||||
7294 | else | ||||
7295 | |||||
7296 | ac_cv_enable_sign_compare_warning=no | ||||
7297 | |||||
7298 | fi | ||||
7299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7300 | fi | ||||
7301 | |||||
7302 | CFLAGS="$save_CFLAGS" | ||||
7303 | CC="$ac_save_cc" | ||||
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | ||||
7305 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | ||||
7306 | |||||
7307 | if test $ac_cv_enable_sign_compare_warning = yes | ||||
7308 | then | ||||
7309 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | ||||
7310 | fi | ||||
7311 | |||||
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | ||||
7313 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | ||||
7314 | ac_save_cc="$CC" | ||||
7315 | CC="$CC -Wunreachable-code" | ||||
7316 | save_CFLAGS="$CFLAGS" | ||||
7317 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | ||||
7318 | $as_echo_n "(cached) " >&6 | ||||
7319 | else | ||||
7320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7321 | /* end confdefs.h. */ | ||||
7322 | |||||
7323 | |||||
7324 | int | ||||
7325 | main () | ||||
7326 | { | ||||
7327 | |||||
7328 | ; | ||||
7329 | return 0; | ||||
7330 | } | ||||
7331 | |||||
7332 | _ACEOF | ||||
7333 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7334 | |||||
7335 | ac_cv_enable_unreachable_code_warning=yes | ||||
7336 | |||||
7337 | else | ||||
7338 | |||||
7339 | ac_cv_enable_unreachable_code_warning=no | ||||
7340 | |||||
7341 | fi | ||||
7342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7343 | fi | ||||
7344 | |||||
7345 | CFLAGS="$save_CFLAGS" | ||||
7346 | CC="$ac_save_cc" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7347 | |
7348 | # Don't enable unreachable code warning in debug mode, since it usually | ||||
7349 | # results in non-standard code paths. | ||||
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7350 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
7351 | # correctly on gcc and has been silently removed from the compiler. | ||||
7352 | # It is supported on clang but on OS X systems gcc may be an alias | ||||
7353 | # for clang. Try to determine if the compiler is not really gcc and, | ||||
7354 | # if so, only then enable the warning. | ||||
7355 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | ||||
7356 | test "$Py_DEBUG" != "true" && \ | ||||
7357 | test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7358 | then |
7359 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | ||||
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7360 | else |
7361 | ac_cv_enable_unreachable_code_warning=no | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7362 | fi |
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7364 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7365 | |
INADA Naoki | d59f97c | 2018-06-06 05:18:14 | [diff] [blame] | 7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
7367 | $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } | ||||
7368 | ac_save_cc="$CC" | ||||
7369 | CC="$CC -Werror -Wstrict-prototypes" | ||||
7370 | if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : | ||||
7371 | $as_echo_n "(cached) " >&6 | ||||
7372 | else | ||||
7373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7374 | /* end confdefs.h. */ | ||||
7375 | |||||
7376 | |||||
7377 | int | ||||
7378 | main () | ||||
7379 | { | ||||
7380 | |||||
7381 | ; | ||||
7382 | return 0; | ||||
7383 | } | ||||
7384 | |||||
7385 | _ACEOF | ||||
7386 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7387 | |||||
7388 | ac_cv_enable_strict_prototypes_warning=yes | ||||
7389 | |||||
7390 | else | ||||
7391 | |||||
7392 | ac_cv_enable_strict_prototypes_warning=no | ||||
7393 | |||||
7394 | fi | ||||
7395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7396 | fi | ||||
7397 | |||||
7398 | CC="$ac_save_cc" | ||||
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 | ||||
7400 | $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } | ||||
7401 | |||||
7402 | if test $ac_cv_enable_strict_prototypes_warning = yes | ||||
7403 | then | ||||
7404 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" | ||||
7405 | fi | ||||
7406 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7407 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
7408 | # support. Without this, treatment of subnormals doesn't follow | ||||
7409 | # the standard. | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 7410 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7411 | alpha*) |
7412 | BASECFLAGS="$BASECFLAGS -mieee" | ||||
7413 | ;; | ||||
7414 | esac | ||||
7415 | |||||
7416 | case $ac_sys_system in | ||||
7417 | SCO_SV*) | ||||
7418 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | ||||
7419 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7420 | |
7421 | # is there any other compiler on Darwin besides gcc? | ||||
7422 | Darwin*) | ||||
7423 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | ||||
7424 | # used to be here, but non-Apple gcc doesn't accept them. | ||||
7425 | if test "${CC}" = gcc | ||||
7426 | then | ||||
7427 | { $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] | 7428 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7429 | case "${UNIVERSALSDK}" in |
7430 | */MacOSX10.4u.sdk) | ||||
7431 | # Build using 10.4 SDK, force usage of gcc when the | ||||
7432 | # compiler is gcc, otherwise the user will get very | ||||
7433 | # confusing error messages when building on OSX 10.6 | ||||
7434 | CC=gcc-4.0 | ||||
7435 | CPP=cpp-4.0 | ||||
7436 | ;; | ||||
7437 | esac | ||||
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7439 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7440 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7441 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7442 | if test "${enable_universalsdk}" |
7443 | then | ||||
7444 | case "$UNIVERSAL_ARCHS" in | ||||
7445 | 32-bit) | ||||
7446 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | ||||
7447 | LIPO_32BIT_FLAGS="" | ||||
7448 | ARCH_RUN_32BIT="" | ||||
7449 | ;; | ||||
7450 | 64-bit) | ||||
7451 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | ||||
7452 | LIPO_32BIT_FLAGS="" | ||||
7453 | ARCH_RUN_32BIT="true" | ||||
7454 | ;; | ||||
7455 | all) | ||||
7456 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | ||||
7457 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7458 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7459 | ;; | ||||
7460 | intel) | ||||
7461 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | ||||
7462 | LIPO_32BIT_FLAGS="-extract i386" | ||||
7463 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | ||||
7464 | ;; | ||||
7465 | intel-32) | ||||
7466 | UNIVERSAL_ARCH_FLAGS="-arch i386" | ||||
7467 | LIPO_32BIT_FLAGS="" | ||||
7468 | ARCH_RUN_32BIT="" | ||||
7469 | ;; | ||||
Ned Deily | 9455244 | 2018-03-13 06:51:54 | [diff] [blame] | 7470 | intel-64) |
7471 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" | ||||
7472 | LIPO_32BIT_FLAGS="" | ||||
7473 | ARCH_RUN_32BIT="true" | ||||
7474 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7475 | 3-way) |
7476 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | ||||
7477 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7478 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7479 | ;; | ||||
7480 | *) | ||||
7481 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | ||||
7482 | ;; | ||||
7483 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7484 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7485 | if test "${UNIVERSALSDK}" != "/" |
7486 | then | ||||
Ned Deily | 9455244 | 2018-03-13 06:51:54 | [diff] [blame] | 7487 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
7488 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7489 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 9455244 | 2018-03-13 06:51:54 | [diff] [blame] | 7490 | else |
7491 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | ||||
7492 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7493 | fi |
7494 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7495 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7496 | # Calculate an appropriate deployment target for this build: |
7497 | # The deployment target value is used explicitly to enable certain | ||||
7498 | # features are enabled (such as builtin libedit support for readline) | ||||
Raymond Hettinger | 15f44ab | 2016-08-30 17:47:49 | [diff] [blame] | 7499 | # through the use of Apple's Availability Macros and is used as a |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7500 | # component of the string returned by distutils.get_platform(). |
7501 | # | ||||
7502 | # Use the value from: | ||||
7503 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | ||||
7504 | # 2. the operating system version of the build machine if >= 10.6 | ||||
7505 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | ||||
7506 | # below to pick either 10.3, 10.4, or 10.5 as the target. | ||||
7507 | # 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] | 7508 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
7510 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | ||||
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 7511 | cur_target_major=`sw_vers -productVersion | \ |
7512 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
7513 | cur_target_minor=`sw_vers -productVersion | \ | ||||
7514 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
7515 | cur_target="${cur_target_major}.${cur_target_minor}" | ||||
7516 | if test ${cur_target_major} -eq 10 && \ | ||||
7517 | test ${cur_target_minor} -ge 3 && \ | ||||
7518 | test ${cur_target_minor} -le 5 | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7519 | then |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 7520 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7521 | cur_target=10.3 |
7522 | if test ${enable_universalsdk} | ||||
7523 | then | ||||
7524 | case "$UNIVERSAL_ARCHS" in | ||||
7525 | all|3-way|intel|64-bit) | ||||
7526 | # These configurations were first supported in 10.5 | ||||
7527 | cur_target='10.5' | ||||
7528 | ;; | ||||
7529 | esac | ||||
7530 | else | ||||
7531 | if test `/usr/bin/arch` = "i386" | ||||
7532 | then | ||||
7533 | # 10.4 was the first release to support Intel archs | ||||
7534 | cur_target="10.4" | ||||
7535 | fi | ||||
7536 | fi | ||||
7537 | fi | ||||
7538 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 7539 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7540 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
7541 | # environment with a value that is the same as what we'll use | ||||
7542 | # in the Makefile to ensure that we'll get the same compiler | ||||
7543 | # environment during configure and build time. | ||||
7544 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | ||||
7545 | export MACOSX_DEPLOYMENT_TARGET | ||||
7546 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | ||||
7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | ||||
7548 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 7549 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7550 | # end of Darwin* tests |
7551 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7552 | esac |
7553 | ;; | ||||
7554 | |||||
7555 | *) | ||||
7556 | case $ac_sys_system in | ||||
7557 | OpenUNIX*|UnixWare*) | ||||
7558 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | ||||
7559 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7560 | SCO_SV*) |
7561 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | ||||
7562 | ;; | ||||
7563 | esac | ||||
7564 | ;; | ||||
7565 | esac | ||||
7566 | |||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7567 | # ICC needs -fp-model strict or floats behave badly |
7568 | case "$CC" in | ||||
7569 | *icc*) | ||||
7570 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | ||||
7571 | ;; | ||||
7572 | esac | ||||
7573 | |||||
T. Wouters | 07a40a1 | 2017-05-23 05:25:17 | [diff] [blame] | 7574 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7575 | : |
7576 | else | ||||
7577 | OPT="-DNDEBUG $OPT" | ||||
7578 | fi | ||||
7579 | |||||
7580 | if test "$ac_arch_flags" | ||||
7581 | then | ||||
7582 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | ||||
7583 | fi | ||||
7584 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7585 | # On some compilers, pthreads are available without further options |
7586 | # (e.g. MacOS X). On some of these systems, the compiler will not | ||||
7587 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | ||||
7588 | # So we have to see first whether pthreads are available without | ||||
7589 | # options before we can check whether -Kpthread improves anything. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
7591 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7592 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7593 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7594 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7595 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7596 | ac_cv_pthread_is_default=no |
7597 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7599 | /* end confdefs.h. */ |
7600 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7601 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7602 | #include <pthread.h> |
7603 | |||||
7604 | void* routine(void* p){return NULL;} | ||||
7605 | |||||
7606 | int main(){ | ||||
7607 | pthread_t p; | ||||
7608 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7609 | return 1; | ||||
7610 | (void)pthread_detach(p); | ||||
7611 | return 0; | ||||
7612 | } | ||||
7613 | |||||
7614 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7615 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7616 | |
7617 | ac_cv_pthread_is_default=yes | ||||
7618 | ac_cv_kthread=no | ||||
7619 | ac_cv_pthread=no | ||||
7620 | |||||
7621 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7622 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7623 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7624 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7625 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7626 | fi |
7627 | |||||
7628 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7629 | fi |
7630 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
7632 | $as_echo "$ac_cv_pthread_is_default" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7633 | |
7634 | |||||
7635 | if test $ac_cv_pthread_is_default = yes | ||||
7636 | then | ||||
7637 | ac_cv_kpthread=no | ||||
7638 | else | ||||
7639 | # -Kpthread, if available, provides the right #defines | ||||
7640 | # and linker options to make pthread_create available | ||||
7641 | # Some compilers won't report that they do not support -Kpthread, | ||||
7642 | # so we need to run a program to see whether it really made the | ||||
7643 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
7645 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7646 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7647 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7648 | else |
7649 | ac_save_cc="$CC" | ||||
7650 | CC="$CC -Kpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7651 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7652 | ac_cv_kpthread=no |
7653 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7655 | /* end confdefs.h. */ |
7656 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7657 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7658 | #include <pthread.h> |
7659 | |||||
7660 | void* routine(void* p){return NULL;} | ||||
7661 | |||||
7662 | int main(){ | ||||
7663 | pthread_t p; | ||||
7664 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7665 | return 1; | ||||
7666 | (void)pthread_detach(p); | ||||
7667 | return 0; | ||||
7668 | } | ||||
7669 | |||||
7670 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7671 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7672 | ac_cv_kpthread=yes |
7673 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7674 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7675 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7677 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7678 | fi |
7679 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7680 | CC="$ac_save_cc" |
7681 | fi | ||||
7682 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
7684 | $as_echo "$ac_cv_kpthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7685 | fi |
7686 | |||||
7687 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | ||||
7688 | then | ||||
7689 | # -Kthread, if available, provides the right #defines | ||||
7690 | # and linker options to make pthread_create available | ||||
7691 | # Some compilers won't report that they do not support -Kthread, | ||||
7692 | # so we need to run a program to see whether it really made the | ||||
7693 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
7695 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7696 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7697 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7698 | else |
7699 | ac_save_cc="$CC" | ||||
7700 | CC="$CC -Kthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7701 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7702 | ac_cv_kthread=no |
7703 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7705 | /* end confdefs.h. */ |
7706 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7707 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7708 | #include <pthread.h> |
7709 | |||||
7710 | void* routine(void* p){return NULL;} | ||||
7711 | |||||
7712 | int main(){ | ||||
7713 | pthread_t p; | ||||
7714 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7715 | return 1; | ||||
7716 | (void)pthread_detach(p); | ||||
7717 | return 0; | ||||
7718 | } | ||||
7719 | |||||
7720 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7721 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7722 | ac_cv_kthread=yes |
7723 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7724 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7725 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7727 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7728 | fi |
7729 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7730 | CC="$ac_save_cc" |
7731 | fi | ||||
7732 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
7734 | $as_echo "$ac_cv_kthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7735 | fi |
7736 | |||||
7737 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | ||||
7738 | then | ||||
7739 | # -pthread, if available, provides the right #defines | ||||
7740 | # and linker options to make pthread_create available | ||||
7741 | # Some compilers won't report that they do not support -pthread, | ||||
7742 | # so we need to run a program to see whether it really made the | ||||
7743 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
7745 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | ||||
doko@python.org | 7981f20 | 2013-01-25 14:33:25 | [diff] [blame] | 7746 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7747 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7748 | else |
7749 | ac_save_cc="$CC" | ||||
7750 | CC="$CC -pthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7751 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7752 | ac_cv_pthread=no |
7753 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7755 | /* end confdefs.h. */ |
7756 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7757 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7758 | #include <pthread.h> |
7759 | |||||
7760 | void* routine(void* p){return NULL;} | ||||
7761 | |||||
7762 | int main(){ | ||||
7763 | pthread_t p; | ||||
7764 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7765 | return 1; | ||||
7766 | (void)pthread_detach(p); | ||||
7767 | return 0; | ||||
7768 | } | ||||
7769 | |||||
7770 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7771 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7772 | ac_cv_pthread=yes |
7773 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7774 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7775 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7777 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7778 | fi |
7779 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7780 | CC="$ac_save_cc" |
7781 | fi | ||||
7782 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
7784 | $as_echo "$ac_cv_pthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7785 | fi |
7786 | |||||
7787 | # If we have set a CC compiler flag for thread support then | ||||
7788 | # check if it works for CXX, too. | ||||
7789 | ac_cv_cxx_thread=no | ||||
7790 | if test ! -z "$CXX" | ||||
7791 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
7793 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7794 | ac_save_cxx="$CXX" |
7795 | |||||
7796 | if test "$ac_cv_kpthread" = "yes" | ||||
7797 | then | ||||
7798 | CXX="$CXX -Kpthread" | ||||
7799 | ac_cv_cxx_thread=yes | ||||
7800 | elif test "$ac_cv_kthread" = "yes" | ||||
7801 | then | ||||
7802 | CXX="$CXX -Kthread" | ||||
7803 | ac_cv_cxx_thread=yes | ||||
7804 | elif test "$ac_cv_pthread" = "yes" | ||||
7805 | then | ||||
7806 | CXX="$CXX -pthread" | ||||
7807 | ac_cv_cxx_thread=yes | ||||
7808 | fi | ||||
7809 | |||||
7810 | if test $ac_cv_cxx_thread = yes | ||||
7811 | then | ||||
7812 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | ||||
7813 | $CXX -c conftest.$ac_ext 2>&5 | ||||
7814 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | ||||
7815 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | ||||
7816 | then | ||||
7817 | ac_cv_cxx_thread=yes | ||||
7818 | else | ||||
7819 | ac_cv_cxx_thread=no | ||||
7820 | fi | ||||
7821 | rm -fr conftest* | ||||
7822 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
7824 | $as_echo "$ac_cv_cxx_thread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7825 | fi |
7826 | CXX="$ac_save_cxx" | ||||
7827 | |||||
7828 | |||||
7829 | # checks for header files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7831 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7832 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7833 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7834 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7836 | /* end confdefs.h. */ |
7837 | #include <stdlib.h> | ||||
7838 | #include <stdarg.h> | ||||
7839 | #include <string.h> | ||||
7840 | #include <float.h> | ||||
7841 | |||||
7842 | int | ||||
7843 | main () | ||||
7844 | { | ||||
7845 | |||||
7846 | ; | ||||
7847 | return 0; | ||||
7848 | } | ||||
7849 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7850 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7851 | ac_cv_header_stdc=yes |
7852 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7853 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7854 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7856 | |||||
7857 | if test $ac_cv_header_stdc = yes; then | ||||
7858 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7860 | /* end confdefs.h. */ |
7861 | #include <string.h> | ||||
7862 | |||||
7863 | _ACEOF | ||||
7864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7865 | $EGREP "memchr" >/dev/null 2>&1; then : |
7866 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7867 | else |
7868 | ac_cv_header_stdc=no | ||||
7869 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 7870 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7871 | |
7872 | fi | ||||
7873 | |||||
7874 | if test $ac_cv_header_stdc = yes; then | ||||
7875 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7877 | /* end confdefs.h. */ |
7878 | #include <stdlib.h> | ||||
7879 | |||||
7880 | _ACEOF | ||||
7881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7882 | $EGREP "free" >/dev/null 2>&1; then : |
7883 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7884 | else |
7885 | ac_cv_header_stdc=no | ||||
7886 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 7887 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7888 | |
7889 | fi | ||||
7890 | |||||
7891 | if test $ac_cv_header_stdc = yes; then | ||||
7892 | # /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] | 7893 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7894 | : |
7895 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7897 | /* end confdefs.h. */ |
7898 | #include <ctype.h> | ||||
7899 | #include <stdlib.h> | ||||
7900 | #if ((' ' & 0x0FF) == 0x020) | ||||
7901 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
7902 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
7903 | #else | ||||
7904 | # define ISLOWER(c) \ | ||||
7905 | (('a' <= (c) && (c) <= 'i') \ | ||||
7906 | || ('j' <= (c) && (c) <= 'r') \ | ||||
7907 | || ('s' <= (c) && (c) <= 'z')) | ||||
7908 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
7909 | #endif | ||||
7910 | |||||
7911 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
7912 | int | ||||
7913 | main () | ||||
7914 | { | ||||
7915 | int i; | ||||
7916 | for (i = 0; i < 256; i++) | ||||
7917 | if (XOR (islower (i), ISLOWER (i)) | ||||
7918 | || toupper (i) != TOUPPER (i)) | ||||
7919 | return 2; | ||||
7920 | return 0; | ||||
7921 | } | ||||
7922 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7923 | if ac_fn_c_try_run "$LINENO"; then : |
7924 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7925 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7926 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7927 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7928 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7929 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7930 | fi |
7931 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7932 | fi |
7933 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7935 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7936 | if test $ac_cv_header_stdc = yes; then |
7937 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7938 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7939 | |
7940 | fi | ||||
7941 | |||||
Miss Islington (bot) | 8e230e1 | 2018-01-24 10:11:16 | [diff] [blame] | 7942 | 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] | 7943 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 7944 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 4fe5510 | 2016-09-06 18:58:01 | [diff] [blame] | 7945 | sched.h shadow.h signal.h stropts.h termios.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 | [diff] [blame] | 7946 | unistd.h utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 18:07:41 | [diff] [blame] | 7947 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 22:28:36 | [diff] [blame] | 7948 | 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] | 7949 | 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] | 7950 | 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] | 7951 | 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] | 7952 | 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] | 7953 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Benjamin Peterson | 93b2dee | 2016-09-09 17:22:45 | [diff] [blame] | 7954 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ |
Christian Heimes | 02854da | 2017-09-05 15:09:12 | [diff] [blame] | 7955 | sys/endian.h sys/sysmacros.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7956 | do : |
7957 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
7958 | 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] | 7959 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7960 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7961 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7962 | _ACEOF |
7963 | |||||
7964 | fi | ||||
7965 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 7966 | done |
7967 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7968 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7969 | 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] | 7970 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||||
7972 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7973 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7974 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 7975 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 7977 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7978 | #include <sys/types.h> |
7979 | #include <$ac_hdr> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7981 | int |
7982 | main () | ||||
7983 | { | ||||
7984 | if ((DIR *) 0) | ||||
7985 | return 0; | ||||
7986 | ; | ||||
7987 | return 0; | ||||
7988 | } | ||||
7989 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7990 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7991 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7992 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7993 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7994 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 7995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7996 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7997 | eval ac_res=\$$as_ac_Header |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
7999 | $as_echo "$ac_res" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8000 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8001 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8002 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8003 | _ACEOF |
8004 | |||||
8005 | ac_header_dirent=$ac_hdr; break | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8007 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8008 | done |
8009 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||||
8010 | if test $ac_header_dirent = dirent.h; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8012 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8013 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8014 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8016 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8018 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8019 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8020 | /* Override any GCC internal prototype to avoid an error. |
8021 | Use char because int might match the return type of a GCC | ||||
8022 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8023 | #ifdef __cplusplus |
8024 | extern "C" | ||||
8025 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8026 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8027 | int |
8028 | main () | ||||
8029 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8030 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8031 | ; |
8032 | return 0; | ||||
8033 | } | ||||
8034 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8035 | for ac_lib in '' dir; do |
8036 | if test -z "$ac_lib"; then | ||||
8037 | ac_res="none required" | ||||
8038 | else | ||||
8039 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8040 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8041 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8042 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8043 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 8044 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8045 | rm -f core conftest.err conftest.$ac_objext \ |
8046 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8047 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8048 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8049 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8050 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8051 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8052 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8053 | else |
8054 | ac_cv_search_opendir=no | ||||
8055 | fi | ||||
8056 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8057 | LIBS=$ac_func_search_save_LIBS |
8058 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8060 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8061 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8062 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8063 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8064 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8066 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8067 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8069 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8070 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8071 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8072 | else |
8073 | ac_func_search_save_LIBS=$LIBS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8075 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8076 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8077 | /* Override any GCC internal prototype to avoid an error. |
8078 | Use char because int might match the return type of a GCC | ||||
8079 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8080 | #ifdef __cplusplus |
8081 | extern "C" | ||||
8082 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8083 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8084 | int |
8085 | main () | ||||
8086 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8087 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8088 | ; |
8089 | return 0; | ||||
8090 | } | ||||
8091 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8092 | for ac_lib in '' x; do |
8093 | if test -z "$ac_lib"; then | ||||
8094 | ac_res="none required" | ||||
8095 | else | ||||
8096 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8097 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8098 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8099 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8100 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 8101 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8102 | rm -f core conftest.err conftest.$ac_objext \ |
8103 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8104 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8105 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8106 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8107 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8108 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8109 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8110 | else |
8111 | ac_cv_search_opendir=no | ||||
8112 | fi | ||||
8113 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8114 | LIBS=$ac_func_search_save_LIBS |
8115 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8117 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8118 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8119 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8120 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8121 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8122 | fi |
8123 | |||||
8124 | fi | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8125 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
8127 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8128 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8129 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8130 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8132 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8133 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8134 | int |
8135 | main () | ||||
8136 | { | ||||
8137 | return makedev(0, 0); | ||||
8138 | ; | ||||
8139 | return 0; | ||||
8140 | } | ||||
8141 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8142 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8143 | ac_cv_header_sys_types_h_makedev=yes |
8144 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8145 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8146 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8147 | rm -f core conftest.err conftest.$ac_objext \ |
8148 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8149 | |
8150 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
8152 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8153 | |
8154 | if test $ac_cv_header_sys_types_h_makedev = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8155 | 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] | 8156 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8157 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8158 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8159 | |
8160 | fi | ||||
8161 | |||||
8162 | |||||
8163 | |||||
8164 | if test $ac_cv_header_sys_mkdev_h = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8165 | 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] | 8166 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8168 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8169 | |
8170 | fi | ||||
8171 | |||||
8172 | |||||
8173 | fi | ||||
8174 | fi | ||||
8175 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8176 | |
Benjamin Peterson | 93b2dee | 2016-09-09 17:22:45 | [diff] [blame] | 8177 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
8178 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | ||||
8179 | SAVE_CFLAGS=$CFLAGS | ||||
8180 | CFLAGS="-std=c99 $CFLAGS" | ||||
8181 | for ac_header in bluetooth/bluetooth.h | ||||
8182 | do : | ||||
8183 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | ||||
8184 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | ||||
8185 | cat >>confdefs.h <<_ACEOF | ||||
8186 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | ||||
8187 | _ACEOF | ||||
8188 | |||||
8189 | fi | ||||
8190 | |||||
8191 | done | ||||
8192 | |||||
8193 | CFLAGS=$SAVE_CFLAGS | ||||
8194 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 8195 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
8196 | for ac_header in net/if.h | ||||
8197 | do : | ||||
8198 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | ||||
8199 | #ifdef STDC_HEADERS | ||||
8200 | # include <stdlib.h> | ||||
8201 | # include <stddef.h> | ||||
8202 | #else | ||||
8203 | # ifdef HAVE_STDLIB_H | ||||
8204 | # include <stdlib.h> | ||||
8205 | # endif | ||||
8206 | #endif | ||||
8207 | #ifdef HAVE_SYS_SOCKET_H | ||||
8208 | # include <sys/socket.h> | ||||
8209 | #endif | ||||
8210 | |||||
8211 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8212 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 8213 | cat >>confdefs.h <<_ACEOF |
8214 | #define HAVE_NET_IF_H 1 | ||||
8215 | _ACEOF | ||||
8216 | |||||
8217 | fi | ||||
8218 | |||||
8219 | done | ||||
8220 | |||||
8221 | |||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8222 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8223 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8224 | do : |
8225 | 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] | 8226 | #ifdef HAVE_ASM_TYPES_H |
8227 | #include <asm/types.h> | ||||
8228 | #endif | ||||
8229 | #ifdef HAVE_SYS_SOCKET_H | ||||
8230 | #include <sys/socket.h> | ||||
8231 | #endif | ||||
8232 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8233 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8234 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8235 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8236 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8237 | _ACEOF |
8238 | |||||
8239 | fi | ||||
8240 | |||||
8241 | done | ||||
8242 | |||||
8243 | |||||
Charles-François Natali | 47413c1 | 2011-10-06 17:47:44 | [diff] [blame] | 8244 | # 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] | 8245 | 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] | 8246 | do : |
8247 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8248 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||||
8249 | #ifdef HAVE_SYS_SOCKET_H | ||||
8250 | #include <sys/socket.h> | ||||
8251 | #endif | ||||
8252 | |||||
8253 | " | ||||
8254 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
8255 | cat >>confdefs.h <<_ACEOF | ||||
8256 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8257 | _ACEOF | ||||
8258 | |||||
8259 | fi | ||||
8260 | |||||
8261 | done | ||||
8262 | |||||
8263 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8264 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8265 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
8267 | $as_echo_n "checking for clock_t in time.h... " >&6; } | ||||
8268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8269 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8270 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8271 | |
8272 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8274 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8275 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8277 | |
8278 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8279 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8280 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 8281 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8282 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 8283 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8284 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
8286 | $as_echo "$was_it_defined" >&6; } | ||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8287 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
8289 | $as_echo_n "checking for makedev... " >&6; } | ||||
8290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8291 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 8292 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 | [diff] [blame] | 8293 | #if defined(MAJOR_IN_MKDEV) |
8294 | #include <sys/mkdev.h> | ||||
8295 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
8296 | #include <sys/sysmacros.h> | ||||
8297 | #else | ||||
8298 | #include <sys/types.h> | ||||
8299 | #endif | ||||
8300 | |||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8301 | int |
8302 | main () | ||||
8303 | { | ||||
Jesus Cea | 740f53a | 2010-04-28 11:35:30 | [diff] [blame] | 8304 | |
8305 | makedev(0, 0) | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8306 | ; |
8307 | return 0; | ||||
8308 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 8309 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8310 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8311 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8312 | ac_cv_has_makedev=yes |
8313 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8314 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8315 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8316 | rm -f core conftest.err conftest.$ac_objext \ |
8317 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
8319 | $as_echo "$ac_cv_has_makedev" >&6; } | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8320 | if test "$ac_cv_has_makedev" = "yes"; then |
8321 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8322 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8323 | |
8324 | fi | ||||
8325 | |||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 8326 | # byte swapping |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | ||||
8328 | $as_echo_n "checking for le64toh... " >&6; } | ||||
8329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8330 | /* end confdefs.h. */ | ||||
8331 | |||||
8332 | #ifdef HAVE_ENDIAN_H | ||||
8333 | #include <endian.h> | ||||
8334 | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
8335 | #include <sys/endian.h> | ||||
8336 | #endif | ||||
8337 | |||||
8338 | int | ||||
8339 | main () | ||||
8340 | { | ||||
8341 | |||||
8342 | le64toh(1) | ||||
8343 | ; | ||||
8344 | return 0; | ||||
8345 | } | ||||
8346 | |||||
8347 | _ACEOF | ||||
8348 | if ac_fn_c_try_link "$LINENO"; then : | ||||
8349 | ac_cv_has_le64toh=yes | ||||
8350 | else | ||||
8351 | ac_cv_has_le64toh=no | ||||
8352 | fi | ||||
8353 | rm -f core conftest.err conftest.$ac_objext \ | ||||
8354 | conftest$ac_exeext conftest.$ac_ext | ||||
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | ||||
8356 | $as_echo "$ac_cv_has_le64toh" >&6; } | ||||
8357 | if test "$ac_cv_has_le64toh" = "yes"; then | ||||
8358 | |||||
8359 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | ||||
8360 | |||||
8361 | fi | ||||
8362 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8363 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
8364 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | ||||
8365 | # defined, but the compiler does not support pragma redefine_extname, | ||||
8366 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | ||||
8367 | # structures (such as rlimit64) without declaring them. As a | ||||
8368 | # work-around, disable LFS on such configurations | ||||
8369 | |||||
8370 | use_lfs=yes | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
8372 | $as_echo_n "checking Solaris LFS bug... " >&6; } | ||||
8373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8374 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8375 | |
8376 | #define _LARGEFILE_SOURCE 1 | ||||
8377 | #define _FILE_OFFSET_BITS 64 | ||||
8378 | #include <sys/resource.h> | ||||
8379 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8380 | int |
8381 | main () | ||||
8382 | { | ||||
8383 | struct rlimit foo; | ||||
8384 | ; | ||||
8385 | return 0; | ||||
8386 | } | ||||
8387 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8388 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8389 | sol_lfs_bug=no |
8390 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8391 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8392 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
8395 | $as_echo "$sol_lfs_bug" >&6; } | ||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8396 | if test "$sol_lfs_bug" = "yes"; then |
8397 | use_lfs=no | ||||
8398 | fi | ||||
8399 | |||||
doko@ubuntu.com | 006a56c | 2016-06-14 08:15:25 | [diff] [blame] | 8400 | # Don't use largefile support for GNU/Hurd |
8401 | case $ac_sys_system in GNU*) | ||||
8402 | use_lfs=no | ||||
8403 | esac | ||||
8404 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8405 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8406 | # Two defines needed to enable largefile support on various platforms |
8407 | # These may affect some typedefs | ||||
Georg Brandl | 216e404 | 2011-02-19 08:58:23 | [diff] [blame] | 8408 | case $ac_sys_system/$ac_sys_release in |
8409 | AIX*) | ||||
8410 | |||||
8411 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | ||||
8412 | |||||
8413 | ;; | ||||
8414 | esac | ||||
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8415 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8416 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8417 | |
8418 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8419 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8420 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8421 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8422 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 | [diff] [blame] | 8423 | # Add some code to confdefs.h so that the test for off_t works on SCO |
8424 | cat >> confdefs.h <<\EOF | ||||
8425 | #if defined(SCO_DS) | ||||
8426 | #undef _OFF_T | ||||
8427 | #endif | ||||
8428 | EOF | ||||
8429 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8430 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8431 | 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] | 8432 | if test "x$ac_cv_type_mode_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 | ||||
8437 | #define mode_t int | ||||
8438 | _ACEOF | ||||
8439 | |||||
8440 | fi | ||||
8441 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8442 | 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] | 8443 | if test "x$ac_cv_type_off_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 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8448 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8449 | _ACEOF |
8450 | |||||
8451 | fi | ||||
8452 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8453 | 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] | 8454 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8455 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8457 | |
8458 | cat >>confdefs.h <<_ACEOF | ||||
8459 | #define pid_t int | ||||
8460 | _ACEOF | ||||
8461 | |||||
8462 | fi | ||||
8463 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 8464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8465 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 | [diff] [blame] | 8466 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8467 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8469 | 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] | 8470 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8471 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8473 | |
8474 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8475 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8476 | _ACEOF |
8477 | |||||
8478 | fi | ||||
8479 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8481 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8482 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8483 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8484 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8486 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8487 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8488 | |
8489 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8491 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8492 | ac_cv_type_uid_t=yes |
8493 | else | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8494 | ac_cv_type_uid_t=no |
8495 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 8496 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8497 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8498 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8500 | $as_echo "$ac_cv_type_uid_t" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8501 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8502 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8503 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8504 | |
8505 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8506 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8507 | |
8508 | fi | ||||
8509 | |||||
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 | [diff] [blame] | 8510 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8511 | 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] | 8512 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8513 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8514 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8515 | |
8516 | fi | ||||
8517 | |||||
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 8518 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
8519 | if test "x$ac_cv_type___uint128_t" = xyes; then : | ||||
8520 | |||||
8521 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | ||||
8522 | |||||
8523 | fi | ||||
8524 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 8525 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8526 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 | [diff] [blame] | 8527 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8528 | # The cast to long int works around a bug in the HP C Compiler |
8529 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8530 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8531 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
8533 | $as_echo_n "checking size of int... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8534 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8535 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8536 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8537 | 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] | 8538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8539 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8540 | if test "$ac_cv_type_int" = yes; then |
8541 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8543 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8544 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8545 | else |
8546 | ac_cv_sizeof_int=0 | ||||
8547 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8548 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8550 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
8552 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8553 | |
8554 | |||||
8555 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8556 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8557 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8558 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8559 | |
8560 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8561 | # The cast to long int works around a bug in the HP C Compiler |
8562 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8563 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8564 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
8566 | $as_echo_n "checking size of long... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8567 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8568 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8569 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8570 | 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] | 8571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8572 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8573 | if test "$ac_cv_type_long" = yes; then |
8574 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8575 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8576 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8577 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8578 | else |
8579 | ac_cv_sizeof_long=0 | ||||
8580 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8581 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8583 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
8585 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8586 | |
8587 | |||||
8588 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8589 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8590 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8591 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8592 | |
8593 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8594 | # The cast to long int works around a bug in the HP C Compiler |
8595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8597 | # This bug is HP SR number 8606223364. | ||||
Benjamin Peterson | ed4aa83 | 2016-09-06 00:44:18 | [diff] [blame] | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
8599 | $as_echo_n "checking size of long long... " >&6; } | ||||
8600 | if ${ac_cv_sizeof_long_long+:} false; then : | ||||
8601 | $as_echo_n "(cached) " >&6 | ||||
8602 | else | ||||
8603 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | ||||
8604 | |||||
8605 | else | ||||
8606 | if test "$ac_cv_type_long_long" = yes; then | ||||
8607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8609 | as_fn_error 77 "cannot compute sizeof (long long) | ||||
8610 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8611 | else | ||||
8612 | ac_cv_sizeof_long_long=0 | ||||
8613 | fi | ||||
8614 | fi | ||||
8615 | |||||
8616 | fi | ||||
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | ||||
8618 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | ||||
8619 | |||||
8620 | |||||
8621 | |||||
8622 | cat >>confdefs.h <<_ACEOF | ||||
8623 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | ||||
8624 | _ACEOF | ||||
8625 | |||||
8626 | |||||
8627 | # The cast to long int works around a bug in the HP C Compiler | ||||
8628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8630 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
8632 | $as_echo_n "checking size of void *... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8633 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8634 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8635 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8636 | 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] | 8637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8638 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8639 | if test "$ac_cv_type_void_p" = yes; then |
8640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8642 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8643 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8644 | else |
8645 | ac_cv_sizeof_void_p=0 | ||||
8646 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8647 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8649 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
8651 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8652 | |
8653 | |||||
8654 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8655 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 8656 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8657 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 8658 | |
8659 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8660 | # The cast to long int works around a bug in the HP C Compiler |
8661 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8662 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8663 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
8665 | $as_echo_n "checking size of short... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8666 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8667 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8668 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8669 | 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] | 8670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8671 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8672 | if test "$ac_cv_type_short" = yes; then |
8673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8675 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8676 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8677 | else |
8678 | ac_cv_sizeof_short=0 | ||||
8679 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8680 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8682 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
8684 | $as_echo "$ac_cv_sizeof_short" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8685 | |
8686 | |||||
8687 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8688 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8689 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8690 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8691 | |
8692 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8693 | # The cast to long int works around a bug in the HP C Compiler |
8694 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8695 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8696 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
8698 | $as_echo_n "checking size of float... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8699 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8700 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8701 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8702 | 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] | 8703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8704 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8705 | if test "$ac_cv_type_float" = yes; then |
8706 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8707 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8708 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8709 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8710 | else |
8711 | ac_cv_sizeof_float=0 | ||||
8712 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8713 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8715 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
8717 | $as_echo "$ac_cv_sizeof_float" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8718 | |
8719 | |||||
8720 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8721 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8722 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8723 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8724 | |
8725 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8726 | # The cast to long int works around a bug in the HP C Compiler |
8727 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8728 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8729 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
8731 | $as_echo_n "checking size of double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8732 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8733 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8734 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8735 | 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] | 8736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8737 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8738 | if test "$ac_cv_type_double" = yes; then |
8739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8741 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8742 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8743 | else |
8744 | ac_cv_sizeof_double=0 | ||||
8745 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8746 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8748 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
8750 | $as_echo "$ac_cv_sizeof_double" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8751 | |
8752 | |||||
8753 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8754 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8755 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8756 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8757 | |
8758 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8759 | # The cast to long int works around a bug in the HP C Compiler |
8760 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8761 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8762 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
8764 | $as_echo_n "checking size of fpos_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8765 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8766 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8767 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8768 | 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] | 8769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8770 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8771 | if test "$ac_cv_type_fpos_t" = yes; then |
8772 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8774 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8775 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8776 | else |
8777 | ac_cv_sizeof_fpos_t=0 | ||||
8778 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8779 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8781 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
8783 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8784 | |
8785 | |||||
8786 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8787 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 8788 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8789 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 8790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8791 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8792 | # The cast to long int works around a bug in the HP C Compiler |
8793 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8794 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8795 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
8797 | $as_echo_n "checking size of size_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8798 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8799 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8800 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8801 | 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] | 8802 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8803 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8804 | if test "$ac_cv_type_size_t" = yes; then |
8805 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8807 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8808 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8809 | else |
8810 | ac_cv_sizeof_size_t=0 | ||||
8811 | fi | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8812 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8813 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8814 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
8816 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8817 | |
8818 | |||||
8819 | |||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8820 | cat >>confdefs.h <<_ACEOF |
8821 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||||
8822 | _ACEOF | ||||
8823 | |||||
8824 | |||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8825 | # The cast to long int works around a bug in the HP C Compiler |
8826 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8827 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8828 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
8830 | $as_echo_n "checking size of pid_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8831 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8832 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8833 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8834 | 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] | 8835 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8836 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8837 | if test "$ac_cv_type_pid_t" = yes; then |
8838 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8840 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8841 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8842 | else |
8843 | ac_cv_sizeof_pid_t=0 | ||||
8844 | fi | ||||
8845 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8846 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8847 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
8849 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8850 | |
8851 | |||||
8852 | |||||
8853 | cat >>confdefs.h <<_ACEOF | ||||
8854 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | ||||
8855 | _ACEOF | ||||
8856 | |||||
8857 | |||||
Benjamin Peterson | df6ff7b | 2016-09-06 20:53:14 | [diff] [blame] | 8858 | # The cast to long int works around a bug in the HP C Compiler |
8859 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8860 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8861 | # This bug is HP SR number 8606223364. | ||||
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | ||||
8863 | $as_echo_n "checking size of uintptr_t... " >&6; } | ||||
8864 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | ||||
8865 | $as_echo_n "(cached) " >&6 | ||||
8866 | else | ||||
8867 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : | ||||
8868 | |||||
8869 | else | ||||
8870 | if test "$ac_cv_type_uintptr_t" = yes; then | ||||
8871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8873 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | ||||
8874 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8875 | else | ||||
8876 | ac_cv_sizeof_uintptr_t=0 | ||||
8877 | fi | ||||
8878 | fi | ||||
8879 | |||||
8880 | fi | ||||
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | ||||
8882 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | ||||
8883 | |||||
8884 | |||||
8885 | |||||
8886 | cat >>confdefs.h <<_ACEOF | ||||
8887 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | ||||
8888 | _ACEOF | ||||
8889 | |||||
8890 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8891 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
8893 | $as_echo_n "checking for long double support... " >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8894 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8896 | /* end confdefs.h. */ |
8897 | |||||
8898 | int | ||||
8899 | main () | ||||
8900 | { | ||||
8901 | long double x; x = (long double)0; | ||||
8902 | ; | ||||
8903 | return 0; | ||||
8904 | } | ||||
8905 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8906 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8907 | |
8908 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8909 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8910 | |
8911 | have_long_double=yes | ||||
8912 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8913 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
8916 | $as_echo "$have_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8917 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8918 | # The cast to long int works around a bug in the HP C Compiler |
8919 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8920 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8921 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
8923 | $as_echo_n "checking size of long double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8924 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8925 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8926 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8927 | 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] | 8928 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8929 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8930 | if test "$ac_cv_type_long_double" = yes; then |
8931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8933 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8934 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8935 | else |
8936 | ac_cv_sizeof_long_double=0 | ||||
8937 | fi | ||||
8938 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8939 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8940 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
8942 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8943 | |
8944 | |||||
8945 | |||||
8946 | cat >>confdefs.h <<_ACEOF | ||||
8947 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | ||||
8948 | _ACEOF | ||||
8949 | |||||
8950 | |||||
8951 | fi | ||||
8952 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8953 | # The cast to long int works around a bug in the HP C Compiler |
8954 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8955 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8956 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
8958 | $as_echo_n "checking size of _Bool... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8959 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8960 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8961 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8962 | 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] | 8963 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8964 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8965 | if test "$ac_cv_type__Bool" = yes; then |
8966 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8967 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8968 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8969 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8970 | else |
8971 | ac_cv_sizeof__Bool=0 | ||||
8972 | fi | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8973 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8974 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8975 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
8977 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8978 | |
8979 | |||||
8980 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8981 | cat >>confdefs.h <<_ACEOF |
8982 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | ||||
8983 | _ACEOF | ||||
8984 | |||||
8985 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8986 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8987 | # The cast to long int works around a bug in the HP C Compiler |
8988 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8989 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8990 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
8992 | $as_echo_n "checking size of off_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8993 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8994 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8995 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8996 | 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] | 8997 | #ifdef HAVE_SYS_TYPES_H |
8998 | #include <sys/types.h> | ||||
8999 | #endif | ||||
9000 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9001 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9002 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9003 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9004 | if test "$ac_cv_type_off_t" = yes; then |
9005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9007 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9008 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9009 | else |
9010 | ac_cv_sizeof_off_t=0 | ||||
9011 | fi | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9012 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9013 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9014 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
9016 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9017 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9018 | |
9019 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9020 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9021 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9022 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9023 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9024 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9025 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
9027 | $as_echo_n "checking whether to enable large file support... " >&6; } | ||||
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 | [diff] [blame] | 9028 | 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] | 9029 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9030 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9031 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9032 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9034 | $as_echo "yes" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9035 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9037 | $as_echo "no" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 9038 | fi |
9039 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9040 | # The cast to long int works around a bug in the HP C Compiler |
9041 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9042 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9043 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
9045 | $as_echo_n "checking size of time_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9046 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9047 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9048 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9049 | 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] | 9050 | #ifdef HAVE_SYS_TYPES_H |
9051 | #include <sys/types.h> | ||||
9052 | #endif | ||||
9053 | #ifdef HAVE_TIME_H | ||||
9054 | #include <time.h> | ||||
9055 | #endif | ||||
9056 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9057 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9058 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9059 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9060 | if test "$ac_cv_type_time_t" = yes; then |
9061 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9062 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9063 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9064 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9065 | else |
9066 | ac_cv_sizeof_time_t=0 | ||||
9067 | fi | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9068 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9069 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9070 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
9072 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9073 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9074 | |
9075 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9076 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9077 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9078 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9079 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9080 | |
9081 | |||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9082 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9083 | ac_save_cc="$CC" |
9084 | if test "$ac_cv_kpthread" = "yes" | ||||
9085 | then CC="$CC -Kpthread" | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 9086 | elif test "$ac_cv_kthread" = "yes" |
9087 | then CC="$CC -Kthread" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 9088 | elif test "$ac_cv_pthread" = "yes" |
9089 | then CC="$CC -pthread" | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9090 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9091 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
9093 | $as_echo_n "checking for pthread_t... " >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9094 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9096 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9097 | |
9098 | #include <pthread.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9099 | int |
9100 | main () | ||||
9101 | { | ||||
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 | [diff] [blame] | 9102 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9103 | ; |
9104 | return 0; | ||||
9105 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9107 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9108 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9109 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9110 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
9113 | $as_echo "$have_pthread_t" >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9114 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9115 | # 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] | 9116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
9117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9118 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
9120 | $as_echo_n "checking size of pthread_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9121 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9122 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9123 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9124 | 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] | 9125 | #ifdef HAVE_PTHREAD_H |
9126 | #include <pthread.h> | ||||
9127 | #endif | ||||
9128 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9129 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9130 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9131 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9132 | if test "$ac_cv_type_pthread_t" = yes; then |
9133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9135 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9136 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9137 | else |
9138 | ac_cv_sizeof_pthread_t=0 | ||||
9139 | fi | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9140 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9141 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9142 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
9144 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9145 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9146 | |
9147 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9148 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9149 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9150 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9151 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9152 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9153 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9154 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9155 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9156 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9157 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 9158 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9159 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
9160 | ;; | ||||
9161 | Darwin/*) | ||||
9162 | OTHER_LIBTOOL_OPT="" | ||||
9163 | ;; | ||||
9164 | esac | ||||
9165 | |||||
9166 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9167 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9168 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 9169 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9170 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
9171 | if test "${enable_universalsdk}"; then | ||||
9172 | : | ||||
9173 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9174 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9175 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 | [diff] [blame] | 9176 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9177 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 | [diff] [blame] | 9178 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 | [diff] [blame] | 9179 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9180 | if test ${gcc_version} '<' 4.0 |
9181 | then | ||||
9182 | LIBTOOL_CRUFT="-lcc_dynamic" | ||||
9183 | else | ||||
9184 | LIBTOOL_CRUFT="" | ||||
9185 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9186 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9187 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9188 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9190 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9191 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9192 | #include <unistd.h> |
9193 | int main(int argc, char*argv[]) | ||||
9194 | { | ||||
9195 | if (sizeof(long) == 4) { | ||||
9196 | return 0; | ||||
9197 | } else { | ||||
9198 | return 1; | ||||
9199 | } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9200 | } |
9201 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9202 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9203 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9204 | ac_osx_32bit=yes |
9205 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9206 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9207 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9208 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9209 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9210 | fi |
9211 | |||||
9212 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9213 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9214 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9215 | i386) |
9216 | MACOSX_DEFAULT_ARCH="i386" | ||||
9217 | ;; | ||||
9218 | ppc) | ||||
9219 | MACOSX_DEFAULT_ARCH="ppc" | ||||
9220 | ;; | ||||
9221 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9222 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9223 | ;; |
9224 | esac | ||||
9225 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9226 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9227 | i386) |
9228 | MACOSX_DEFAULT_ARCH="x86_64" | ||||
9229 | ;; | ||||
9230 | ppc) | ||||
9231 | MACOSX_DEFAULT_ARCH="ppc64" | ||||
9232 | ;; | ||||
9233 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9234 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9235 | ;; |
9236 | esac | ||||
9237 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9238 | fi |
9239 | |||||
9240 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||||
Jack Jansen | b36687a | 2004-07-16 08:43:47 | [diff] [blame] | 9241 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9242 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9243 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
9245 | $as_echo_n "checking for --enable-framework... " >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9246 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9247 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 9248 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9249 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9250 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9251 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9252 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9253 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9255 | $as_echo "yes" >&6; } | ||||
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 | [diff] [blame] | 9256 | if test $enable_shared = "yes" |
9257 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9258 | 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] | 9259 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9260 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9262 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9263 | fi |
9264 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
9266 | $as_echo_n "checking for dyld... " >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9267 | case $ac_sys_system/$ac_sys_release in |
9268 | Darwin/*) | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9269 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9270 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9271 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
9273 | $as_echo "always on for Darwin" >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9274 | ;; |
9275 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9277 | $as_echo "no" >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9278 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9279 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9280 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9281 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9282 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9283 | |
9284 | |||||
9285 | |||||
9286 | |||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9287 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9288 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 9289 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
9290 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | ||||
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | ||||
9292 | $as_echo_n "checking the extension of shared libraries... " >&6; } | ||||
9293 | if test -z "$SHLIB_SUFFIX"; then | ||||
9294 | case $ac_sys_system in | ||||
9295 | hp*|HP*) | ||||
9296 | case `uname -m` in | ||||
9297 | ia64) SHLIB_SUFFIX=.so;; | ||||
9298 | *) SHLIB_SUFFIX=.sl;; | ||||
9299 | esac | ||||
9300 | ;; | ||||
9301 | CYGWIN*) SHLIB_SUFFIX=.dll;; | ||||
9302 | *) SHLIB_SUFFIX=.so;; | ||||
9303 | esac | ||||
9304 | fi | ||||
9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | ||||
9306 | $as_echo "$SHLIB_SUFFIX" >&6; } | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9307 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9308 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 | [diff] [blame] | 9309 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9310 | # (Shared libraries in this instance are shared modules to be loaded into |
9311 | # Python, as opposed to building Python itself as a shared library.) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
9313 | $as_echo_n "checking LDSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9314 | if test -z "$LDSHARED" |
9315 | then | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9316 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9317 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 | [diff] [blame] | 9318 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 | [diff] [blame] | 9319 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9320 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9321 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 | [diff] [blame] | 9322 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9323 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9324 | if test "$GCC" = "yes" ; then |
9325 | LDSHARED='$(CC) -shared' | ||||
9326 | LDCXXSHARED='$(CXX) -shared' | ||||
9327 | else | ||||
9328 | LDSHARED='$(CC) -G' | ||||
9329 | LDCXXSHARED='$(CXX) -G' | ||||
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 | [diff] [blame] | 9330 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 | [diff] [blame] | 9331 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9332 | if test "$GCC" = "yes" ; then |
9333 | LDSHARED='$(CC) -shared' | ||||
9334 | LDCXXSHARED='$(CXX) -shared' | ||||
9335 | else | ||||
9336 | LDSHARED='ld -b' | ||||
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 | [diff] [blame] | 9337 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 | [diff] [blame] | 9338 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9339 | LDSHARED='$(CC) -bundle' |
9340 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9341 | if test "$enable_framework" ; then |
9342 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9343 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9344 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9345 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9346 | else |
9347 | # No framework. Ignore undefined symbols, assuming they come from Python | ||||
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 | [diff] [blame] | 9348 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9349 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9350 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9351 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9352 | LDSHARED='$(CC) -bundle' |
9353 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9354 | if test "$enable_framework" ; then |
9355 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9356 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9357 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9358 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9359 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 | [diff] [blame] | 9360 | # No framework, use the Python app as bundle-loader |
9361 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 | [diff] [blame] | 9362 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9363 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9364 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9365 | Darwin/*) |
9366 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | ||||
9367 | # This allows an extension to be used in any Python | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 9368 | |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9369 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
9370 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
9371 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | ||||
9372 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
9373 | if test ${dep_target_major} -eq 10 && \ | ||||
9374 | test ${dep_target_minor} -le 2 | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9375 | then |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9376 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9377 | LDSHARED='$(CC) -bundle' |
9378 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9379 | if test "$enable_framework" ; then |
9380 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9381 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9382 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9383 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9384 | else |
9385 | # No framework, use the Python app as bundle-loader | ||||
9386 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
9387 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9388 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9389 | fi |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9390 | else |
9391 | # building for OS X 10.3 and later | ||||
9392 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | ||||
9393 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | ||||
9394 | BLDSHARED="$LDSHARED" | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9395 | fi |
9396 | ;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9397 | Linux*|GNU*|QNX*) |
9398 | LDSHARED='$(CC) -shared' | ||||
9399 | LDCXXSHARED='$(CXX) -shared';; | ||||
9400 | BSD/OS*/4*) | ||||
9401 | LDSHARED="gcc -shared" | ||||
9402 | LDCXXSHARED="g++ -shared";; | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9403 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 | [diff] [blame] | 9404 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9405 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9406 | LDSHARED='$(CC) -shared' |
9407 | LDCXXSHARED='$(CXX) -shared' | ||||
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9408 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9409 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9410 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9411 | OpenBSD*) |
9412 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | ||||
9413 | then | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9414 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9415 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9416 | else |
9417 | case `uname -r` in | ||||
9418 | [01].* | 2.[0-7] | 2.[0-7].*) | ||||
9419 | LDSHARED="ld -Bshareable ${LDFLAGS}" | ||||
9420 | ;; | ||||
9421 | *) | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9422 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9423 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9424 | ;; |
9425 | esac | ||||
9426 | fi;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9427 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 | [diff] [blame] | 9428 | LDSHARED='$(CC) -shared' |
9429 | LDCXXSHARED='$(CXX) -shared';; | ||||
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9430 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9431 | if test "$GCC" = "yes" ; then |
9432 | LDSHARED='$(CC) -shared' | ||||
9433 | LDCXXSHARED='$(CXX) -shared' | ||||
9434 | else | ||||
9435 | LDSHARED='$(CC) -G' | ||||
9436 | LDCXXSHARED='$(CXX) -G' | ||||
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9437 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9438 | SCO_SV*) |
9439 | LDSHARED='$(CC) -Wl,-G,-Bexport' | ||||
9440 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | ||||
9441 | CYGWIN*) | ||||
9442 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | ||||
9443 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9444 | *) LDSHARED="ld";; |
9445 | esac | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9446 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
9448 | $as_echo "$LDSHARED" >&6; } | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9449 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9450 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9451 | # 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] | 9452 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
9454 | $as_echo_n "checking CCSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9455 | if test -z "$CCSHARED" |
9456 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9457 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 | [diff] [blame] | 9458 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9459 | then CCSHARED="-fPIC"; |
9460 | elif test `uname -p` = sparc; | ||||
9461 | then CCSHARED="-xcode=pic32"; | ||||
9462 | else CCSHARED="-Kpic"; | ||||
9463 | fi;; | ||||
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 | [diff] [blame] | 9464 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 | [diff] [blame] | 9465 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 | [diff] [blame] | 9466 | else CCSHARED="+z"; |
9467 | fi;; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 9468 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 | [diff] [blame] | 9469 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 | [diff] [blame] | 9470 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 9471 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9472 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9473 | if test "$GCC" = "yes" |
9474 | then CCSHARED="-fPIC" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 9475 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9476 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 9477 | SCO_SV*) |
9478 | if test "$GCC" = "yes" | ||||
9479 | then CCSHARED="-fPIC" | ||||
9480 | else CCSHARED="-Kpic -belf" | ||||
9481 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9482 | IRIX*/6*) case $CC in |
9483 | *gcc*) CCSHARED="-shared";; | ||||
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 | [diff] [blame] | 9484 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9485 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9486 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9487 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
9489 | $as_echo "$CCSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9490 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9491 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
9493 | $as_echo_n "checking LINKFORSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9494 | if test -z "$LINKFORSHARED" |
9495 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9496 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9497 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 9498 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 9499 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
9500 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | ||||
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 | [diff] [blame] | 9501 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 9502 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 | [diff] [blame] | 9503 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9504 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9505 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 | [diff] [blame] | 9506 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Miss Islington (bot) | 782854f | 2019-07-02 07:48:59 | [diff] [blame] | 9507 | |
9508 | # Issue #18075: the default maximum stack size (8MBytes) is too | ||||
9509 | # small for the default recursion limit. Increase the stack size | ||||
9510 | # to ensure that tests don't crash | ||||
9511 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | ||||
9512 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9513 | if test "$enable_framework" |
9514 | then | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9515 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9516 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 | [diff] [blame] | 9517 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9518 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 9519 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 | [diff] [blame] | 9520 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 9521 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 | [diff] [blame] | 9522 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
9523 | then | ||||
9524 | LINKFORSHARED="-Wl,--export-dynamic" | ||||
9525 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9526 | SunOS/5*) case $CC in |
9527 | *gcc*) | ||||
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 | [diff] [blame] | 9528 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 | [diff] [blame] | 9529 | then |
9530 | LINKFORSHARED="-Xlinker --export-dynamic" | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9531 | fi;; |
9532 | esac;; | ||||
Jason Tishler | 3076559 | 2003-09-04 11:04:06 | [diff] [blame] | 9533 | CYGWIN*) |
9534 | if test $enable_shared = "no" | ||||
9535 | then | ||||
9536 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | ||||
9537 | fi;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 | [diff] [blame] | 9538 | QNX*) |
9539 | # -Wl,-E causes the symbols to be added to the dynamic | ||||
9540 | # symbol table so that they can be found when a module | ||||
9541 | # is loaded. -N 2048K causes the stack size to be set | ||||
9542 | # to 2048 kilobytes so that the stack doesn't overflow | ||||
9543 | # when running test_compile.py. | ||||
9544 | LINKFORSHARED='-Wl,-E -N 2048K';; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9545 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9546 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
9548 | $as_echo "$LINKFORSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9549 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9550 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 | [diff] [blame] | 9551 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
9553 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9554 | if test ! "$LIBRARY" = "$LDLIBRARY" |
9555 | then | ||||
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 | [diff] [blame] | 9556 | case $ac_sys_system in |
9557 | CYGWIN*) | ||||
9558 | # Cygwin needs CCSHARED when building extension DLLs | ||||
9559 | # but not when building the interpreter DLL. | ||||
9560 | CFLAGSFORSHARED='';; | ||||
9561 | *) | ||||
9562 | CFLAGSFORSHARED='$(CCSHARED)' | ||||
9563 | esac | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9564 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
9566 | $as_echo "$CFLAGSFORSHARED" >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9567 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9568 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
9569 | # library (with --enable-shared). | ||||
9570 | # 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] | 9571 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
9572 | # if it is not required, since it creates a dependency of the shared library | ||||
9573 | # to LIBS. This, in turn, means that applications linking the shared libpython | ||||
9574 | # don't need to link LIBS explicitly. The default should be only changed | ||||
9575 | # on systems where this approach causes problems. | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9576 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
9578 | $as_echo_n "checking SHLIBS... " >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9579 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9580 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 | [diff] [blame] | 9581 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9582 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
9584 | $as_echo "$SHLIBS" >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9585 | |
9586 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9587 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
9589 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9590 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9591 | $as_echo_n "(cached) " >&6 |
9592 | else | ||||
9593 | ac_check_lib_save_LIBS=$LIBS | ||||
9594 | LIBS="-lsendfile $LIBS" | ||||
9595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9596 | /* end confdefs.h. */ | ||||
9597 | |||||
9598 | /* Override any GCC internal prototype to avoid an error. | ||||
9599 | Use char because int might match the return type of a GCC | ||||
9600 | builtin and then its argument prototype would still apply. */ | ||||
9601 | #ifdef __cplusplus | ||||
9602 | extern "C" | ||||
9603 | #endif | ||||
9604 | char sendfile (); | ||||
9605 | int | ||||
9606 | main () | ||||
9607 | { | ||||
9608 | return sendfile (); | ||||
9609 | ; | ||||
9610 | return 0; | ||||
9611 | } | ||||
9612 | _ACEOF | ||||
9613 | if ac_fn_c_try_link "$LINENO"; then : | ||||
9614 | ac_cv_lib_sendfile_sendfile=yes | ||||
9615 | else | ||||
9616 | ac_cv_lib_sendfile_sendfile=no | ||||
9617 | fi | ||||
9618 | rm -f core conftest.err conftest.$ac_objext \ | ||||
9619 | conftest$ac_exeext conftest.$ac_ext | ||||
9620 | LIBS=$ac_check_lib_save_LIBS | ||||
9621 | fi | ||||
9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | ||||
9623 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9624 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9625 | cat >>confdefs.h <<_ACEOF |
9626 | #define HAVE_LIBSENDFILE 1 | ||||
9627 | _ACEOF | ||||
9628 | |||||
9629 | LIBS="-lsendfile $LIBS" | ||||
9630 | |||||
9631 | fi | ||||
9632 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9634 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9635 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9636 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9638 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9639 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9643 | /* Override any GCC internal prototype to avoid an error. |
9644 | Use char because int might match the return type of a GCC | ||||
9645 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9646 | #ifdef __cplusplus |
9647 | extern "C" | ||||
9648 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9649 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9650 | int |
9651 | main () | ||||
9652 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9653 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9654 | ; |
9655 | return 0; | ||||
9656 | } | ||||
9657 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9658 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9659 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9660 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9661 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9662 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9663 | rm -f core conftest.err conftest.$ac_objext \ |
9664 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9665 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9666 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9668 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9669 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9670 | cat >>confdefs.h <<_ACEOF |
9671 | #define HAVE_LIBDL 1 | ||||
9672 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9673 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9674 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 9675 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9676 | fi |
9677 | # Dynamic linking for SunOS/Solaris and SYSV | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9679 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9680 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9681 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9683 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9684 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9687 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9688 | /* Override any GCC internal prototype to avoid an error. |
9689 | Use char because int might match the return type of a GCC | ||||
9690 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9691 | #ifdef __cplusplus |
9692 | extern "C" | ||||
9693 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9694 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9695 | int |
9696 | main () | ||||
9697 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9698 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9699 | ; |
9700 | return 0; | ||||
9701 | } | ||||
9702 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9703 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9704 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9705 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9706 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9707 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9708 | rm -f core conftest.err conftest.$ac_objext \ |
9709 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9710 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9711 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9713 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9714 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9715 | cat >>confdefs.h <<_ACEOF |
9716 | #define HAVE_LIBDLD 1 | ||||
9717 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9718 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9719 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9720 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9721 | fi |
9722 | # Dynamic linking for HP-UX | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9723 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 | [diff] [blame] | 9724 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9725 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
9727 | $as_echo_n "checking for library containing sem_init... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9728 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9729 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9730 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 | [diff] [blame] | 9731 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9734 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9735 | /* Override any GCC internal prototype to avoid an error. |
9736 | Use char because int might match the return type of a GCC | ||||
9737 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9738 | #ifdef __cplusplus |
9739 | extern "C" | ||||
9740 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9741 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9742 | int |
9743 | main () | ||||
9744 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9745 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9746 | ; |
9747 | return 0; | ||||
9748 | } | ||||
9749 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9750 | for ac_lib in '' pthread rt posix4; do |
9751 | if test -z "$ac_lib"; then | ||||
9752 | ac_res="none required" | ||||
9753 | else | ||||
9754 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9755 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9756 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9757 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9758 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9759 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9760 | rm -f core conftest.err conftest.$ac_objext \ |
9761 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9762 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9763 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9764 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9765 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9766 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9767 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9768 | else |
9769 | ac_cv_search_sem_init=no | ||||
9770 | fi | ||||
9771 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 | [diff] [blame] | 9772 | LIBS=$ac_func_search_save_LIBS |
9773 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
9775 | $as_echo "$ac_cv_search_sem_init" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9776 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9777 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9778 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9779 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9780 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 | [diff] [blame] | 9781 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9782 | # posix4 on Solaris 2.6 |
9783 | # pthread (first!) on Linux | ||||
9784 | fi | ||||
9785 | |||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9786 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
9788 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9789 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9790 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9791 | else |
9792 | ac_check_lib_save_LIBS=$LIBS | ||||
9793 | LIBS="-lintl $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9795 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9796 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9797 | /* Override any GCC internal prototype to avoid an error. |
9798 | Use char because int might match the return type of a GCC | ||||
9799 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9800 | #ifdef __cplusplus |
9801 | extern "C" | ||||
9802 | #endif | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9803 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9804 | int |
9805 | main () | ||||
9806 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9807 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9808 | ; |
9809 | return 0; | ||||
9810 | } | ||||
9811 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9812 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9813 | ac_cv_lib_intl_textdomain=yes |
9814 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9815 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9816 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9817 | rm -f core conftest.err conftest.$ac_objext \ |
9818 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9819 | LIBS=$ac_check_lib_save_LIBS |
9820 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
9822 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9823 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9824 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9825 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9826 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 | [diff] [blame] | 9827 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9828 | fi |
9829 | |||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9830 | |
9831 | # checks for system dependent C++ extensions support | ||||
9832 | case "$ac_sys_system" in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9833 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
9834 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | ||||
9835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9836 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9837 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 | [diff] [blame] | 9838 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9839 | int |
9840 | main () | ||||
9841 | { | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9842 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9843 | ; |
9844 | return 0; | ||||
9845 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9847 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9848 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9849 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9850 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9851 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9852 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9854 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9855 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9856 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9857 | |
9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9859 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9860 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9861 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9862 | rm -f core conftest.err conftest.$ac_objext \ |
9863 | conftest$ac_exeext conftest.$ac_ext;; | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9864 | *) ;; |
9865 | esac | ||||
9866 | |||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9867 | # check for systems that require aligned memory access |
9868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | ||||
9869 | $as_echo_n "checking aligned memory access is required... " >&6; } | ||||
Benjamin Peterson | 2e30eb6 | 2017-04-14 16:59:34 | [diff] [blame] | 9870 | if ${ac_cv_aligned_required+:} false; then : |
9871 | $as_echo_n "(cached) " >&6 | ||||
9872 | else | ||||
9873 | if test "$cross_compiling" = yes; then : | ||||
9874 | ac_cv_aligned_required=yes | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9875 | else |
9876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9877 | /* end confdefs.h. */ | ||||
9878 | |||||
9879 | int main() | ||||
9880 | { | ||||
9881 | char s[16]; | ||||
9882 | int i, *p1, *p2; | ||||
9883 | for (i=0; i < 16; i++) | ||||
9884 | s[i] = i; | ||||
9885 | p1 = (int*)(s+1); | ||||
9886 | p2 = (int*)(s+2); | ||||
9887 | if (*p1 == *p2) | ||||
9888 | return 1; | ||||
9889 | return 0; | ||||
9890 | } | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9891 | _ACEOF |
9892 | if ac_fn_c_try_run "$LINENO"; then : | ||||
Benjamin Peterson | 2e30eb6 | 2017-04-14 16:59:34 | [diff] [blame] | 9893 | ac_cv_aligned_required=no |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9894 | else |
Benjamin Peterson | 2e30eb6 | 2017-04-14 16:59:34 | [diff] [blame] | 9895 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9896 | fi |
9897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
9898 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
9899 | fi | ||||
9900 | |||||
9901 | |||||
Benjamin Peterson | 2e30eb6 | 2017-04-14 16:59:34 | [diff] [blame] | 9902 | fi |
9903 | |||||
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 | ||||
9905 | $as_echo "$ac_cv_aligned_required" >&6; } | ||||
9906 | if test "$ac_cv_aligned_required" = yes ; then | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9907 | |
9908 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | ||||
9909 | |||||
9910 | fi | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9911 | |
9912 | # str, bytes and memoryview hash algorithm | ||||
9913 | |||||
9914 | |||||
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | ||||
9916 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | ||||
9917 | |||||
9918 | # Check whether --with-hash_algorithm was given. | ||||
9919 | if test "${with_hash_algorithm+set}" = set; then : | ||||
9920 | withval=$with_hash_algorithm; | ||||
9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
9922 | $as_echo "$withval" >&6; } | ||||
9923 | case "$withval" in | ||||
9924 | siphash24) | ||||
9925 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | ||||
9926 | |||||
9927 | ;; | ||||
9928 | fnv) | ||||
9929 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | ||||
9930 | |||||
9931 | ;; | ||||
9932 | *) | ||||
9933 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | ||||
9934 | ;; | ||||
9935 | esac | ||||
9936 | |||||
9937 | else | ||||
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | ||||
9939 | $as_echo "default" >&6; } | ||||
9940 | fi | ||||
9941 | |||||
9942 | |||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
9944 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | ||||
9945 | |||||
9946 | # Check whether --with-address_sanitizer was given. | ||||
9947 | if test "${with_address_sanitizer+set}" = set; then : | ||||
9948 | withval=$with_address_sanitizer; | ||||
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
9950 | $as_echo "$withval" >&6; } | ||||
9951 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | ||||
9952 | LDFLAGS="-fsanitize=address $LDFLAGS" | ||||
Gregory P. Smith | 3b5b1c0 | 2018-11-13 00:10:21 | [diff] [blame] | 9953 | # ASan works by controlling memory allocation, our own malloc interferes. |
9954 | with_pymalloc="no" | ||||
9955 | |||||
9956 | else | ||||
9957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9958 | $as_echo "no" >&6; } | ||||
9959 | fi | ||||
9960 | |||||
9961 | |||||
9962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 | ||||
9963 | $as_echo_n "checking for --with-memory-sanitizer... " >&6; } | ||||
9964 | |||||
9965 | # Check whether --with-memory_sanitizer was given. | ||||
9966 | if test "${with_memory_sanitizer+set}" = set; then : | ||||
9967 | withval=$with_memory_sanitizer; | ||||
9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
9969 | $as_echo "$withval" >&6; } | ||||
9970 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" | ||||
9971 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" | ||||
9972 | # MSan works by controlling memory allocation, our own malloc interferes. | ||||
9973 | with_pymalloc="no" | ||||
9974 | |||||
9975 | else | ||||
9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9977 | $as_echo "no" >&6; } | ||||
9978 | fi | ||||
9979 | |||||
9980 | |||||
9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 | ||||
9982 | $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } | ||||
9983 | |||||
9984 | # Check whether --with-undefined_behavior_sanitizer was given. | ||||
9985 | if test "${with_undefined_behavior_sanitizer+set}" = set; then : | ||||
9986 | withval=$with_undefined_behavior_sanitizer; | ||||
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
9988 | $as_echo "$withval" >&6; } | ||||
9989 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" | ||||
9990 | LDFLAGS="-fsanitize=undefined $LDFLAGS" | ||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 9991 | |
9992 | else | ||||
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9994 | $as_echo "no" >&6; } | ||||
9995 | fi | ||||
9996 | |||||
9997 | |||||
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 | [diff] [blame] | 9998 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
10000 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10001 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10002 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10004 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10005 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10008 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10009 | /* Override any GCC internal prototype to avoid an error. |
10010 | Use char because int might match the return type of a GCC | ||||
10011 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10012 | #ifdef __cplusplus |
10013 | extern "C" | ||||
10014 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10015 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10016 | int |
10017 | main () | ||||
10018 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10019 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10020 | ; |
10021 | return 0; | ||||
10022 | } | ||||
10023 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10024 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10025 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10026 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10027 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10028 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10029 | rm -f core conftest.err conftest.$ac_objext \ |
10030 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10031 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10032 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
10034 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10035 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10036 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10037 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 | [diff] [blame] | 10038 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
10040 | $as_echo_n "checking for socket in -lsocket... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10041 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10042 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10044 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10045 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10049 | /* Override any GCC internal prototype to avoid an error. |
10050 | Use char because int might match the return type of a GCC | ||||
10051 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10052 | #ifdef __cplusplus |
10053 | extern "C" | ||||
10054 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10055 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10056 | int |
10057 | main () | ||||
10058 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10059 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10060 | ; |
10061 | return 0; | ||||
10062 | } | ||||
10063 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10064 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10065 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10066 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10067 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10068 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10069 | rm -f core conftest.err conftest.$ac_objext \ |
10070 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10071 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10072 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
10074 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10075 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10076 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10077 | fi |
10078 | # SVR4 sockets | ||||
Skip Montanaro | b9949db | 2004-01-17 04:04:13 | [diff] [blame] | 10079 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
10081 | $as_echo_n "checking for --with-libs... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10082 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10083 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10084 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10085 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10087 | $as_echo "$withval" >&6; } | ||||
Guido van Rossum | a68acba | 1996-07-31 17:36:39 | [diff] [blame] | 10088 | LIBS="$withval $LIBS" |
10089 | |||||
10090 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10092 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10093 | fi |
10094 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 10095 | |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 10096 | |
10097 | |||||
10098 | |||||
10099 | |||||
10100 | |||||
10101 | |||||
10102 | |||||
10103 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||||
10104 | if test -n "$ac_tool_prefix"; then | ||||
10105 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
10106 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10108 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10109 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||||
10110 | $as_echo_n "(cached) " >&6 | ||||
10111 | else | ||||
10112 | case $PKG_CONFIG in | ||||
10113 | [\\/]* | ?:[\\/]*) | ||||
10114 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||||
10115 | ;; | ||||
10116 | *) | ||||
10117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10118 | for as_dir in $PATH | ||||
10119 | do | ||||
10120 | IFS=$as_save_IFS | ||||
10121 | test -z "$as_dir" && as_dir=. | ||||
10122 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10123 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10124 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10125 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10126 | break 2 | ||||
10127 | fi | ||||
10128 | done | ||||
10129 | done | ||||
10130 | IFS=$as_save_IFS | ||||
10131 | |||||
10132 | ;; | ||||
10133 | esac | ||||
10134 | fi | ||||
10135 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||||
10136 | if test -n "$PKG_CONFIG"; then | ||||
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
10138 | $as_echo "$PKG_CONFIG" >&6; } | ||||
10139 | else | ||||
10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10141 | $as_echo "no" >&6; } | ||||
10142 | fi | ||||
10143 | |||||
10144 | |||||
10145 | fi | ||||
10146 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||||
10147 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||||
10148 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
10149 | set dummy pkg-config; ac_word=$2 | ||||
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10151 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10152 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||||
10153 | $as_echo_n "(cached) " >&6 | ||||
10154 | else | ||||
10155 | case $ac_pt_PKG_CONFIG in | ||||
10156 | [\\/]* | ?:[\\/]*) | ||||
10157 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||||
10158 | ;; | ||||
10159 | *) | ||||
10160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10161 | for as_dir in $PATH | ||||
10162 | do | ||||
10163 | IFS=$as_save_IFS | ||||
10164 | test -z "$as_dir" && as_dir=. | ||||
10165 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10167 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10169 | break 2 | ||||
10170 | fi | ||||
10171 | done | ||||
10172 | done | ||||
10173 | IFS=$as_save_IFS | ||||
10174 | |||||
10175 | ;; | ||||
10176 | esac | ||||
10177 | fi | ||||
10178 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||||
10179 | if test -n "$ac_pt_PKG_CONFIG"; then | ||||
10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||||
10181 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||||
10182 | else | ||||
10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10184 | $as_echo "no" >&6; } | ||||
10185 | fi | ||||
10186 | |||||
10187 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||||
10188 | PKG_CONFIG="" | ||||
10189 | else | ||||
10190 | case $cross_compiling:$ac_tool_warned in | ||||
10191 | yes:) | ||||
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
10193 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
10194 | ac_tool_warned=yes ;; | ||||
10195 | esac | ||||
10196 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||||
10197 | fi | ||||
10198 | else | ||||
10199 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||||
10200 | fi | ||||
10201 | |||||
10202 | fi | ||||
10203 | if test -n "$PKG_CONFIG"; then | ||||
10204 | _pkg_min_version=0.9.0 | ||||
10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||||
10206 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||||
10207 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||||
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10209 | $as_echo "yes" >&6; } | ||||
10210 | else | ||||
10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10212 | $as_echo "no" >&6; } | ||||
10213 | PKG_CONFIG="" | ||||
10214 | fi | ||||
10215 | fi | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10216 | |
10217 | # Check for use of the system expat library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
10219 | $as_echo_n "checking for --with-system-expat... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10220 | |
10221 | # Check whether --with-system_expat was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10222 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10223 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 | [diff] [blame] | 10224 | else |
10225 | with_system_expat="no" | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10226 | fi |
10227 | |||||
10228 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
10230 | $as_echo "$with_system_expat" >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10231 | |
10232 | # Check for use of the system libffi library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
10234 | $as_echo_n "checking for --with-system-ffi... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10235 | |
10236 | # Check whether --with-system_ffi was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10237 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10238 | withval=$with_system_ffi; |
10239 | fi | ||||
10240 | |||||
10241 | |||||
Zachary Ware | 935043d | 2016-09-10 00:01:21 | [diff] [blame] | 10242 | case "$with_system_ffi" in |
10243 | "") | ||||
10244 | case $ac_sys_system in | ||||
10245 | Darwin) | ||||
10246 | with_system_ffi="no" | ||||
10247 | ;; | ||||
10248 | *) | ||||
10249 | with_system_ffi="yes" | ||||
10250 | ;; | ||||
10251 | esac | ||||
10252 | ;; | ||||
10253 | yes|no) | ||||
10254 | ;; | ||||
10255 | *) | ||||
10256 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | ||||
10257 | ;; | ||||
10258 | esac | ||||
10259 | |||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10260 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 | [diff] [blame] | 10261 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
10262 | else | ||||
10263 | LIBFFI_INCLUDEDIR="" | ||||
10264 | fi | ||||
10265 | |||||
10266 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
10268 | $as_echo "$with_system_ffi" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 10269 | |
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 10270 | # Check for use of the system libmpdec library |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | ||||
10272 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | ||||
10273 | |||||
10274 | # Check whether --with-system_libmpdec was given. | ||||
10275 | if test "${with_system_libmpdec+set}" = set; then : | ||||
10276 | withval=$with_system_libmpdec; | ||||
10277 | else | ||||
10278 | with_system_libmpdec="no" | ||||
10279 | fi | ||||
10280 | |||||
10281 | |||||
10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | ||||
10283 | $as_echo "$with_system_libmpdec" >&6; } | ||||
10284 | |||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 10285 | # Check for support for loadable sqlite extensions |
10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | ||||
10287 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | ||||
10288 | # Check whether --enable-loadable-sqlite-extensions was given. | ||||
10289 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | ||||
10290 | enableval=$enable_loadable_sqlite_extensions; | ||||
10291 | else | ||||
10292 | enable_loadable_sqlite_extensions="no" | ||||
10293 | fi | ||||
10294 | |||||
10295 | |||||
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | ||||
10297 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | ||||
10298 | |||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 10299 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
10300 | |||||
10301 | |||||
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | ||||
10303 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | ||||
10304 | |||||
10305 | # Check whether --with-tcltk-includes was given. | ||||
10306 | if test "${with_tcltk_includes+set}" = set; then : | ||||
10307 | withval=$with_tcltk_includes; | ||||
10308 | else | ||||
10309 | with_tcltk_includes="default" | ||||
10310 | fi | ||||
10311 | |||||
10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | ||||
10313 | $as_echo "$with_tcltk_includes" >&6; } | ||||
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | ||||
10315 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | ||||
10316 | |||||
10317 | # Check whether --with-tcltk-libs was given. | ||||
10318 | if test "${with_tcltk_libs+set}" = set; then : | ||||
10319 | withval=$with_tcltk_libs; | ||||
10320 | else | ||||
10321 | with_tcltk_libs="default" | ||||
10322 | fi | ||||
10323 | |||||
10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | ||||
10325 | $as_echo "$with_tcltk_libs" >&6; } | ||||
10326 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | ||||
10327 | then | ||||
10328 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | ||||
10329 | then | ||||
10330 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | ||||
10331 | fi | ||||
10332 | TCLTK_INCLUDES="" | ||||
10333 | TCLTK_LIBS="" | ||||
10334 | else | ||||
10335 | TCLTK_INCLUDES="$with_tcltk_includes" | ||||
10336 | TCLTK_LIBS="$with_tcltk_libs" | ||||
10337 | fi | ||||
10338 | |||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10339 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
10341 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10342 | |
10343 | # Check whether --with-dbmliborder was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10344 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10345 | withval=$with_dbmliborder; |
10346 | if test x$with_dbmliborder = xyes | ||||
10347 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 10348 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10349 | else |
10350 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | ||||
10351 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||||
10352 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 10353 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10354 | fi |
10355 | done | ||||
10356 | fi | ||||
10357 | fi | ||||
10358 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
10360 | $as_echo "$with_dbmliborder" >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10361 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 | [diff] [blame] | 10362 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 | [diff] [blame] | 10363 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10364 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 | [diff] [blame] | 10365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10367 | |
10368 | # Templates for things AC_DEFINEd more than once. | ||||
10369 | # For a single AC_DEFINE, no template is needed. | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 | [diff] [blame] | 10370 | |
10371 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
10374 | $as_echo_n "checking for --with-threads... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10375 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10376 | # Check whether --with-threads was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10377 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10378 | withval=$with_threads; |
10379 | fi | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 | [diff] [blame] | 10380 | |
10381 | |||||
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10382 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10383 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10384 | # Check whether --with-thread was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10385 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10386 | withval=$with_thread; with_threads=$with_thread |
10387 | fi | ||||
10388 | |||||
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10389 | |
10390 | if test -z "$with_threads" | ||||
10391 | then with_threads="yes" | ||||
10392 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
10394 | $as_echo "$with_threads" >&6; } | ||||
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10395 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10396 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10397 | if test "$with_threads" = "no" |
10398 | then | ||||
10399 | USE_THREAD_MODULE="#" | ||||
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10400 | elif test "$ac_cv_pthread_is_default" = yes |
10401 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10402 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10403 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10404 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10405 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10406 | |
10407 | posix_threads=yes | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10408 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10409 | elif test "$ac_cv_kpthread" = "yes" |
10410 | then | ||||
10411 | CC="$CC -Kpthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10412 | if test "$ac_cv_cxx_thread" = "yes"; then |
10413 | CXX="$CXX -Kpthread" | ||||
10414 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10415 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 | [diff] [blame] | 10416 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10417 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10418 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 10419 | elif test "$ac_cv_kthread" = "yes" |
10420 | then | ||||
10421 | CC="$CC -Kthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10422 | if test "$ac_cv_cxx_thread" = "yes"; then |
10423 | CXX="$CXX -Kthread" | ||||
10424 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10425 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 10426 | |
10427 | posix_threads=yes | ||||
10428 | THREADOBJ="Python/thread.o" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10429 | elif test "$ac_cv_pthread" = "yes" |
10430 | then | ||||
10431 | CC="$CC -pthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10432 | if test "$ac_cv_cxx_thread" = "yes"; then |
10433 | CXX="$CXX -pthread" | ||||
10434 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10435 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10436 | |
10437 | posix_threads=yes | ||||
10438 | THREADOBJ="Python/thread.o" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10439 | else |
10440 | if test ! -z "$with_threads" -a -d "$with_threads" | ||||
10441 | then LDFLAGS="$LDFLAGS -L$with_threads" | ||||
10442 | fi | ||||
10443 | if test ! -z "$withval" -a -d "$withval" | ||||
10444 | then LDFLAGS="$LDFLAGS -L$withval" | ||||
10445 | fi | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10446 | |
10447 | # According to the POSIX spec, a pthreads implementation must | ||||
Matthias Klose | a2542be | 2004-08-16 11:35:51 | [diff] [blame] | 10448 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
10449 | # (e.g. gnu pth with pthread emulation) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
10451 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | ||||
10452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10453 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 10454 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10455 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 10456 | #ifdef _POSIX_THREADS |
10457 | yes | ||||
10458 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10459 | |
10460 | _ACEOF | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10461 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10462 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10463 | unistd_defines_pthreads=yes |
10464 | else | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10465 | unistd_defines_pthreads=no |
10466 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 10467 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
10470 | $as_echo "$unistd_defines_pthreads" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10471 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10472 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 | [diff] [blame] | 10473 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10474 | # Just looking for pthread_create in libpthread is not enough: |
10475 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | ||||
10476 | # So we really have to include pthread.h, and then link. | ||||
10477 | _libs=$LIBS | ||||
10478 | LIBS="$LIBS -lpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
10480 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
10481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10482 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 10483 | |
10484 | #include <stdio.h> | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10485 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10486 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10487 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10488 | int |
10489 | main () | ||||
10490 | { | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10491 | |
10492 | pthread_create (NULL, NULL, start_routine, NULL) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10493 | ; |
10494 | return 0; | ||||
10495 | } | ||||
10496 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10497 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10498 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10500 | $as_echo "yes" >&6; } | ||||
10501 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | ||||
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10502 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10503 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10504 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10506 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10507 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10508 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10509 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10510 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10511 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10512 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10513 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10514 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10515 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
10517 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10518 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10519 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10521 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10522 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10524 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10525 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10526 | /* Override any GCC internal prototype to avoid an error. |
10527 | Use char because int might match the return type of a GCC | ||||
10528 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10529 | #ifdef __cplusplus |
10530 | extern "C" | ||||
10531 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10532 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10533 | int |
10534 | main () | ||||
10535 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10536 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10537 | ; |
10538 | return 0; | ||||
10539 | } | ||||
10540 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10541 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10542 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10543 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10544 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10545 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10546 | rm -f core conftest.err conftest.$ac_objext \ |
10547 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10548 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10549 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
10551 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10552 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10553 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10554 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10555 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10556 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10557 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10558 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10559 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
10561 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10562 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10563 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10565 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10566 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10568 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10569 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10570 | /* Override any GCC internal prototype to avoid an error. |
10571 | Use char because int might match the return type of a GCC | ||||
10572 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10573 | #ifdef __cplusplus |
10574 | extern "C" | ||||
10575 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10576 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10577 | int |
10578 | main () | ||||
10579 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10580 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10581 | ; |
10582 | return 0; | ||||
10583 | } | ||||
10584 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10585 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10586 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10587 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10588 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10589 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10590 | rm -f core conftest.err conftest.$ac_objext \ |
10591 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10592 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10593 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
10595 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10596 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10597 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10598 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10599 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10600 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10601 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 | [diff] [blame] | 10602 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 | [diff] [blame] | 10603 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
10605 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10606 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10607 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10609 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10610 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10612 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10613 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10614 | /* Override any GCC internal prototype to avoid an error. |
10615 | Use char because int might match the return type of a GCC | ||||
10616 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10617 | #ifdef __cplusplus |
10618 | extern "C" | ||||
10619 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10620 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10621 | int |
10622 | main () | ||||
10623 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10624 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10625 | ; |
10626 | return 0; | ||||
10627 | } | ||||
10628 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10629 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10630 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10631 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10632 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10633 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10634 | rm -f core conftest.err conftest.$ac_objext \ |
10635 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10636 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10637 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
10639 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10640 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10641 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10642 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10643 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10644 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10645 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10646 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10647 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
10649 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10650 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10651 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10653 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10654 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10657 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10658 | /* Override any GCC internal prototype to avoid an error. |
10659 | Use char because int might match the return type of a GCC | ||||
10660 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10661 | #ifdef __cplusplus |
10662 | extern "C" | ||||
10663 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10664 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10665 | int |
10666 | main () | ||||
10667 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10668 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10669 | ; |
10670 | return 0; | ||||
10671 | } | ||||
10672 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10673 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10674 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10675 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10676 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10677 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10678 | rm -f core conftest.err conftest.$ac_objext \ |
10679 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10680 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10681 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
10683 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10684 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10685 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10686 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10687 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10688 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10689 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10690 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 | [diff] [blame] | 10691 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10692 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 | [diff] [blame] | 10693 | fi |
10694 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10695 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 10696 | fi |
10697 | |||||
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 | [diff] [blame] | 10698 | fi |
10699 | |||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10700 | fi |
10701 | |||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10702 | fi |
10703 | |||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 10704 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10705 | rm -f core conftest.err conftest.$ac_objext \ |
10706 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 10707 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
10709 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10710 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10711 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10713 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10714 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10716 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10717 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10718 | /* Override any GCC internal prototype to avoid an error. |
10719 | Use char because int might match the return type of a GCC | ||||
10720 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10721 | #ifdef __cplusplus |
10722 | extern "C" | ||||
10723 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10724 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10725 | int |
10726 | main () | ||||
10727 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10728 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10729 | ; |
10730 | return 0; | ||||
10731 | } | ||||
10732 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10733 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10734 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10735 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10736 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10737 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10738 | rm -f core conftest.err conftest.$ac_objext \ |
10739 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10740 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
10743 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10744 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10745 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10746 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10747 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10748 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10749 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10750 | fi |
10751 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 | [diff] [blame] | 10752 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 | [diff] [blame] | 10753 | if test "$posix_threads" != "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
10755 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10756 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10757 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10759 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10760 | LIBS="-lthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10762 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10763 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10764 | /* Override any GCC internal prototype to avoid an error. |
10765 | Use char because int might match the return type of a GCC | ||||
10766 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10767 | #ifdef __cplusplus |
10768 | extern "C" | ||||
10769 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10770 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10771 | int |
10772 | main () | ||||
10773 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10774 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10775 | ; |
10776 | return 0; | ||||
10777 | } | ||||
10778 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10779 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10780 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10781 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10782 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10783 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10784 | rm -f core conftest.err conftest.$ac_objext \ |
10785 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10786 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10787 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
10789 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10790 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10791 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10792 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 | [diff] [blame] | 10793 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 | [diff] [blame] | 10794 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 | [diff] [blame] | 10795 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10796 | fi |
10797 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 | [diff] [blame] | 10798 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10799 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10800 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10801 | if test "$posix_threads" = "yes"; then |
10802 | if test "$unistd_defines_pthreads" = "no"; then | ||||
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10803 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10804 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10805 | |
10806 | fi | ||||
10807 | |||||
10808 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | ||||
10809 | case $ac_sys_system/$ac_sys_release in | ||||
Charles-François Natali | 996f606 | 2011-07-21 17:45:31 | [diff] [blame] | 10810 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10811 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10812 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10813 | ;; |
10814 | SunOS/5.8) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10815 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10816 | |
10817 | ;; | ||||
Charles-François Natali | 996f606 | 2011-07-21 17:45:31 | [diff] [blame] | 10818 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10819 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 | [diff] [blame] | 10820 | |
10821 | ;; | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10822 | esac |
10823 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
10825 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10826 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10827 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10828 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10829 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10830 | ac_cv_pthread_system_supported=no |
10831 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10833 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 10834 | |
10835 | #include <stdio.h> | ||||
10836 | #include <pthread.h> | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10837 | void *foo(void *parm) { |
10838 | return NULL; | ||||
10839 | } | ||||
10840 | main() { | ||||
10841 | pthread_attr_t attr; | ||||
10842 | pthread_t id; | ||||
10843 | if (pthread_attr_init(&attr)) exit(-1); | ||||
10844 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | ||||
10845 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | ||||
10846 | exit(0); | ||||
10847 | } | ||||
10848 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10849 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10850 | ac_cv_pthread_system_supported=yes |
10851 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10852 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10853 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10854 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10855 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10856 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10858 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10859 | fi |
10860 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
10862 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10863 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
10864 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10865 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10866 | |
10867 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10868 | for ac_func in pthread_sigmask |
10869 | do : | ||||
10870 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10871 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10872 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10873 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10874 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 | [diff] [blame] | 10875 | case $ac_sys_system in |
10876 | CYGWIN*) | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10877 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10878 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 | [diff] [blame] | 10879 | |
10880 | ;; | ||||
10881 | esac | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10882 | fi |
10883 | done | ||||
10884 | |||||
Christian Heimes | f77b4b2 | 2013-08-21 11:26:05 | [diff] [blame] | 10885 | for ac_func in pthread_atfork |
10886 | do : | ||||
10887 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | ||||
10888 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | ||||
10889 | cat >>confdefs.h <<_ACEOF | ||||
10890 | #define HAVE_PTHREAD_ATFORK 1 | ||||
10891 | _ACEOF | ||||
10892 | |||||
10893 | fi | ||||
10894 | done | ||||
10895 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10896 | fi |
10897 | |||||
10898 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10899 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
10902 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10903 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10904 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10905 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10906 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10908 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10909 | ipv6=no |
10910 | ;; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10911 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10912 | $as_echo "yes" >&6; } | ||||
10913 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10914 | |
10915 | ipv6=yes | ||||
10916 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10917 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10921 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10922 | /* AF_INET6 available check */ |
10923 | #include <sys/types.h> | ||||
10924 | #include <sys/socket.h> | ||||
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10925 | int |
10926 | main () | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10927 | { |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10928 | int domain = AF_INET6; |
10929 | ; | ||||
10930 | return 0; | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10931 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10932 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10933 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10934 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10936 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10937 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10938 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10939 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10940 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10942 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10943 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10944 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10945 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10947 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10948 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
10950 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | ||||
10951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10952 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10953 | |
10954 | #include <sys/types.h> | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10955 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10956 | int |
10957 | main () | ||||
10958 | { | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10959 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10960 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10961 | ; |
10962 | return 0; | ||||
10963 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10965 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10966 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10967 | |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10969 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10970 | ipv6=yes |
10971 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10972 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10973 | |
10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10975 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10976 | ipv6=no |
10977 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10978 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10980 | fi |
10981 | |||||
10982 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10983 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10984 | |
10985 | fi | ||||
10986 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10987 | fi |
10988 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10989 | |
10990 | ipv6type=unknown | ||||
10991 | ipv6lib=none | ||||
10992 | ipv6trylibc=no | ||||
10993 | |||||
10994 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
10996 | $as_echo_n "checking ipv6 stack type... " >&6; } | ||||
Guido van Rossum | b855216 | 2001-09-05 14:58:11 | [diff] [blame] | 10997 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
10998 | do | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10999 | case $i in |
11000 | inria) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11002 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11003 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11004 | #include <netinet/in.h> |
11005 | #ifdef IPV6_INRIA_VERSION | ||||
11006 | yes | ||||
11007 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11008 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11010 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11011 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11012 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11013 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11014 | |
11015 | ;; | ||||
11016 | kame) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11018 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11019 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11020 | #include <netinet/in.h> |
11021 | #ifdef __KAME__ | ||||
11022 | yes | ||||
11023 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11024 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11026 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11027 | ipv6type=$i; |
11028 | ipv6lib=inet6 | ||||
11029 | ipv6libdir=/usr/local/v6/lib | ||||
11030 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11031 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11032 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11033 | |
11034 | ;; | ||||
11035 | linux-glibc) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11037 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11038 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11039 | #include <features.h> |
11040 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | ||||
11041 | yes | ||||
11042 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11043 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11045 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11046 | ipv6type=$i; |
11047 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11048 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11049 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11050 | |
11051 | ;; | ||||
11052 | linux-inet6) | ||||
11053 | if test -d /usr/inet6; then | ||||
11054 | ipv6type=$i | ||||
11055 | ipv6lib=inet6 | ||||
11056 | ipv6libdir=/usr/inet6/lib | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 11057 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11058 | fi |
11059 | ;; | ||||
11060 | solaris) | ||||
11061 | if test -f /etc/netconfig; then | ||||
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 | [diff] [blame] | 11062 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11063 | ipv6type=$i |
11064 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11065 | fi |
11066 | fi | ||||
11067 | ;; | ||||
11068 | toshiba) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11070 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11071 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11072 | #include <sys/param.h> |
11073 | #ifdef _TOSHIBA_INET6 | ||||
11074 | yes | ||||
11075 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11076 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11078 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11079 | ipv6type=$i; |
11080 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11081 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11082 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11083 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11084 | |
11085 | ;; | ||||
11086 | v6d) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11088 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11089 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11090 | #include </usr/local/v6/include/sys/v6config.h> |
11091 | #ifdef __V6D__ | ||||
11092 | yes | ||||
11093 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11094 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11096 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11097 | ipv6type=$i; |
11098 | ipv6lib=v6; | ||||
11099 | ipv6libdir=/usr/local/v6/lib; | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 11100 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11101 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11102 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11103 | |
11104 | ;; | ||||
11105 | zeta) | ||||
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 <sys/param.h> |
11110 | #ifdef _ZETA_MINAMI_INET6 | ||||
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 | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11116 | ipv6type=$i; |
11117 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11118 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11119 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11120 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11121 | |
11122 | ;; | ||||
11123 | esac | ||||
11124 | if test "$ipv6type" != "unknown"; then | ||||
11125 | break | ||||
11126 | fi | ||||
11127 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
11129 | $as_echo "$ipv6type" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11130 | fi |
11131 | |||||
11132 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||||
11133 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | ||||
11134 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | ||||
11135 | echo "using lib$ipv6lib" | ||||
11136 | else | ||||
11137 | if test $ipv6trylibc = "yes"; then | ||||
11138 | echo "using libc" | ||||
11139 | else | ||||
11140 | echo 'Fatal: no $ipv6lib library found. cannot continue.' | ||||
11141 | echo "You need to fetch lib$ipv6lib.a from appropriate" | ||||
11142 | echo 'ipv6 kit and compile beforehand.' | ||||
11143 | exit 1 | ||||
11144 | fi | ||||
11145 | fi | ||||
11146 | fi | ||||
11147 | |||||
Larry Hastings | a6cc551 | 2015-04-13 21:48:40 | [diff] [blame] | 11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
11149 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | ||||
11150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11151 | /* end confdefs.h. */ | ||||
11152 | /* CAN_RAW_FD_FRAMES available check */ | ||||
11153 | #include <linux/can/raw.h> | ||||
11154 | int | ||||
11155 | main () | ||||
11156 | { | ||||
11157 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | ||||
11158 | ; | ||||
11159 | return 0; | ||||
11160 | } | ||||
11161 | _ACEOF | ||||
11162 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11163 | |||||
11164 | |||||
11165 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | ||||
11166 | |||||
11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11168 | $as_echo "yes" >&6; } | ||||
11169 | |||||
11170 | else | ||||
11171 | |||||
11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11173 | $as_echo "no" >&6; } | ||||
11174 | |||||
11175 | fi | ||||
11176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11177 | |||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11178 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
11180 | $as_echo_n "checking for --with-doc-strings... " >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11181 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11182 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11183 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11184 | withval=$with_doc_strings; |
11185 | fi | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11186 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11187 | |
11188 | if test -z "$with_doc_strings" | ||||
11189 | then with_doc_strings="yes" | ||||
11190 | fi | ||||
11191 | if test "$with_doc_strings" != "no" | ||||
11192 | then | ||||
11193 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11194 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11195 | |
11196 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
11198 | $as_echo "$with_doc_strings" >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11199 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 | [diff] [blame] | 11200 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
11202 | $as_echo_n "checking for --with-pymalloc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11203 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11204 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11205 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11206 | withval=$with_pymalloc; |
11207 | fi | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11208 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 | [diff] [blame] | 11209 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11210 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 11211 | then |
11212 | with_pymalloc="yes" | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11213 | fi |
11214 | if test "$with_pymalloc" != "no" | ||||
11215 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11217 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11218 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 11219 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11220 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
11222 | $as_echo "$with_pymalloc" >&6; } | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11223 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11224 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
11226 | $as_echo_n "checking for --with-valgrind... " >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11227 | |
11228 | # Check whether --with-valgrind was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11229 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11230 | withval=$with_valgrind; |
11231 | else | ||||
11232 | with_valgrind=no | ||||
11233 | fi | ||||
11234 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
11236 | $as_echo "$with_valgrind" >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11237 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11238 | 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] | 11239 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11240 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11241 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11242 | |
11243 | else | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11244 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11245 | |
11246 | fi | ||||
11247 | |||||
11248 | |||||
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 | [diff] [blame] | 11249 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11250 | fi |
11251 | |||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 11252 | # Check for DTrace support |
11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | ||||
11254 | $as_echo_n "checking for --with-dtrace... " >&6; } | ||||
11255 | |||||
11256 | # Check whether --with-dtrace was given. | ||||
11257 | if test "${with_dtrace+set}" = set; then : | ||||
11258 | withval=$with_dtrace; | ||||
11259 | else | ||||
11260 | with_dtrace=no | ||||
11261 | fi | ||||
11262 | |||||
11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | ||||
11264 | $as_echo "$with_dtrace" >&6; } | ||||
11265 | |||||
11266 | |||||
11267 | |||||
11268 | |||||
11269 | |||||
11270 | DTRACE= | ||||
11271 | DFLAGS= | ||||
11272 | DTRACE_HEADERS= | ||||
11273 | DTRACE_OBJS= | ||||
11274 | |||||
11275 | if test "$with_dtrace" = "yes" | ||||
11276 | then | ||||
11277 | # Extract the first word of "dtrace", so it can be a program name with args. | ||||
11278 | set dummy dtrace; ac_word=$2 | ||||
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
11280 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
11281 | if ${ac_cv_path_DTRACE+:} false; then : | ||||
11282 | $as_echo_n "(cached) " >&6 | ||||
11283 | else | ||||
11284 | case $DTRACE in | ||||
11285 | [\\/]* | ?:[\\/]*) | ||||
11286 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | ||||
11287 | ;; | ||||
11288 | *) | ||||
11289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11290 | for as_dir in $PATH | ||||
11291 | do | ||||
11292 | IFS=$as_save_IFS | ||||
11293 | test -z "$as_dir" && as_dir=. | ||||
11294 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
11295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
11296 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | ||||
11297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
11298 | break 2 | ||||
11299 | fi | ||||
11300 | done | ||||
11301 | done | ||||
11302 | IFS=$as_save_IFS | ||||
11303 | |||||
11304 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | ||||
11305 | ;; | ||||
11306 | esac | ||||
11307 | fi | ||||
11308 | DTRACE=$ac_cv_path_DTRACE | ||||
11309 | if test -n "$DTRACE"; then | ||||
11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | ||||
11311 | $as_echo "$DTRACE" >&6; } | ||||
11312 | else | ||||
11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11314 | $as_echo "no" >&6; } | ||||
11315 | fi | ||||
11316 | |||||
11317 | |||||
11318 | if test "$DTRACE" = "not found"; then | ||||
11319 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | ||||
11320 | fi | ||||
11321 | |||||
11322 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | ||||
11323 | |||||
11324 | DTRACE_HEADERS="Include/pydtrace_probes.h" | ||||
11325 | |||||
11326 | # On OS X, DTrace providers do not need to be explicitly compiled and | ||||
11327 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | ||||
11328 | # generation flag '-G'. We check for presence of this flag, rather than | ||||
11329 | # hardcoding support by OS, in the interest of robustness. | ||||
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | ||||
11331 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | ||||
11332 | if ${ac_cv_dtrace_link+:} false; then : | ||||
11333 | $as_echo_n "(cached) " >&6 | ||||
11334 | else | ||||
11335 | ac_cv_dtrace_link=no | ||||
11336 | echo 'BEGIN' > conftest.d | ||||
11337 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ | ||||
11338 | ac_cv_dtrace_link=yes | ||||
11339 | |||||
11340 | fi | ||||
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | ||||
11342 | $as_echo "$ac_cv_dtrace_link" >&6; } | ||||
11343 | if test "$ac_cv_dtrace_link" = "yes"; then | ||||
11344 | DTRACE_OBJS="Python/pydtrace.o" | ||||
11345 | fi | ||||
11346 | fi | ||||
11347 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 11348 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 11349 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 | [diff] [blame] | 11350 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 11351 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11352 | # the dlopen() function means we might want to use dynload_shlib.o. some |
11353 | # platforms, such as AIX, have dlopen(), but don't want to use it. | ||||
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 11354 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11355 | do : |
11356 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11357 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11358 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11359 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11360 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11361 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11362 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 11363 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11364 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11365 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11366 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
11367 | # loading of modules. | ||||
11368 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
11370 | $as_echo_n "checking DYNLOADFILE... " >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11371 | if test -z "$DYNLOADFILE" |
11372 | then | ||||
11373 | case $ac_sys_system/$ac_sys_release in | ||||
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 | [diff] [blame] | 11374 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
11375 | if test "$ac_cv_func_dlopen" = yes | ||||
11376 | then DYNLOADFILE="dynload_shlib.o" | ||||
11377 | else DYNLOADFILE="dynload_aix.o" | ||||
11378 | fi | ||||
11379 | ;; | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11380 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 11381 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
11382 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11383 | *) |
11384 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | ||||
11385 | # out any dynamic loading | ||||
11386 | if test "$ac_cv_func_dlopen" = yes | ||||
11387 | then DYNLOADFILE="dynload_shlib.o" | ||||
11388 | else DYNLOADFILE="dynload_stub.o" | ||||
11389 | fi | ||||
11390 | ;; | ||||
11391 | esac | ||||
11392 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
11394 | $as_echo "$DYNLOADFILE" >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11395 | if test "$DYNLOADFILE" != "dynload_stub.o" |
11396 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11397 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11398 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11399 | |
11400 | fi | ||||
11401 | |||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11402 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
11403 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11404 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
11406 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11407 | if test -z "$MACHDEP_OBJS" |
11408 | then | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 11409 | MACHDEP_OBJS=$extra_machdep_objs |
11410 | else | ||||
11411 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11412 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 11413 | if test -z "$MACHDEP_OBJS"; then |
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
11415 | $as_echo "none" >&6; } | ||||
11416 | else | ||||
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | ||||
11418 | $as_echo "$MACHDEP_OBJS" >&6; } | ||||
11419 | fi | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11420 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 11421 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 | [diff] [blame] | 11422 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Victor Stinner | daf4555 | 2013-08-27 22:53:59 | [diff] [blame] | 11423 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 18:20:30 | [diff] [blame] | 11424 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 00:16:38 | [diff] [blame] | 11425 | futimens futimes gai_strerror getentropy \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11426 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 | [diff] [blame] | 11427 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Benjamin Peterson | 2184fe5 | 2018-09-13 00:37:46 | [diff] [blame] | 11428 | initgroups kill killpg lchown linkat lstat lutimes mmap \ |
Antoine Pitrou | f0effe6 | 2011-11-26 00:11:02 | [diff] [blame] | 11429 | memrchr mbrtowc mkdirat mkfifo \ |
Charles-François Natali | daafdd5 | 2011-05-29 18:07:40 | [diff] [blame] | 11430 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Ross Lagerwall | 7807c35 | 2011-03-17 18:20:30 | [diff] [blame] | 11431 | posix_fallocate posix_fadvise pread \ |
Victor Stinner | b3e7219 | 2011-05-07 23:46:11 | [diff] [blame] | 11432 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 11433 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 | [diff] [blame] | 11434 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 | [diff] [blame] | 11435 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ |
Charles-François Natali | ea0d5fc | 2011-09-06 17:03:35 | [diff] [blame] | 11436 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
11437 | sched_rr_get_interval \ | ||||
Ross Lagerwall | bc80822 | 2011-06-25 10:13:40 | [diff] [blame] | 11438 | sigaction sigaltstack siginterrupt sigpending sigrelse \ |
11439 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | ||||
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 | [diff] [blame] | 11440 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 18:20:30 | [diff] [blame] | 11441 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
Victor Stinner | cd777ea | 2013-04-08 20:43:44 | [diff] [blame] | 11442 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11443 | do : |
11444 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
11445 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11446 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11447 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11448 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11449 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 11450 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 11451 | fi |
11452 | done | ||||
11453 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11454 | |
Miss Islington (bot) | bdace2e | 2018-09-12 23:43:19 | [diff] [blame] | 11455 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
11456 | # links. Some libc implementations have a stub lchmod implementation that always | ||||
11457 | # returns an error. | ||||
11458 | if test "$MACHDEP" != linux; then | ||||
Benjamin Peterson | 2184fe5 | 2018-09-13 00:37:46 | [diff] [blame] | 11459 | for ac_func in lchmod |
11460 | do : | ||||
Miss Islington (bot) | bdace2e | 2018-09-12 23:43:19 | [diff] [blame] | 11461 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
11462 | if test "x$ac_cv_func_lchmod" = xyes; then : | ||||
Benjamin Peterson | 2184fe5 | 2018-09-13 00:37:46 | [diff] [blame] | 11463 | cat >>confdefs.h <<_ACEOF |
11464 | #define HAVE_LCHMOD 1 | ||||
11465 | _ACEOF | ||||
Miss Islington (bot) | bdace2e | 2018-09-12 23:43:19 | [diff] [blame] | 11466 | |
11467 | fi | ||||
Benjamin Peterson | 2184fe5 | 2018-09-13 00:37:46 | [diff] [blame] | 11468 | done |
Miss Islington (bot) | bdace2e | 2018-09-12 23:43:19 | [diff] [blame] | 11469 | |
11470 | fi | ||||
11471 | |||||
Gregory P. Smith | df300d5 | 2012-01-22 02:20:15 | [diff] [blame] | 11472 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
11473 | #include <dirent.h> | ||||
11474 | " | ||||
11475 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | ||||
11476 | |||||
11477 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | ||||
11478 | |||||
11479 | fi | ||||
11480 | |||||
11481 | |||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11482 | # For some functions, having a definition is not sufficient, since |
11483 | # we want to take their address. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
11485 | $as_echo_n "checking for chroot... " >&6; } | ||||
11486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11487 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11488 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11489 | int |
11490 | main () | ||||
11491 | { | ||||
11492 | void *x=chroot | ||||
11493 | ; | ||||
11494 | return 0; | ||||
11495 | } | ||||
11496 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11497 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11498 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11499 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11500 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11502 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11503 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11505 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11506 | |
11507 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
11510 | $as_echo_n "checking for link... " >&6; } | ||||
11511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11512 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11513 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11514 | int |
11515 | main () | ||||
11516 | { | ||||
11517 | void *x=link | ||||
11518 | ; | ||||
11519 | return 0; | ||||
11520 | } | ||||
11521 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11522 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11523 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11524 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11525 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11527 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11528 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11530 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11531 | |
11532 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
11535 | $as_echo_n "checking for symlink... " >&6; } | ||||
11536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11537 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11538 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11539 | int |
11540 | main () | ||||
11541 | { | ||||
11542 | void *x=symlink | ||||
11543 | ; | ||||
11544 | return 0; | ||||
11545 | } | ||||
11546 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11547 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11548 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11549 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11550 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11552 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11553 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11555 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11556 | |
11557 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
11560 | $as_echo_n "checking for fchdir... " >&6; } | ||||
11561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11562 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11563 | #include <unistd.h> |
11564 | int | ||||
11565 | main () | ||||
11566 | { | ||||
11567 | void *x=fchdir | ||||
11568 | ; | ||||
11569 | return 0; | ||||
11570 | } | ||||
11571 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11572 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11573 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11574 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11575 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11577 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11578 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11580 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11581 | |
11582 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
11585 | $as_echo_n "checking for fsync... " >&6; } | ||||
11586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11587 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11588 | #include <unistd.h> |
11589 | int | ||||
11590 | main () | ||||
11591 | { | ||||
11592 | void *x=fsync | ||||
11593 | ; | ||||
11594 | return 0; | ||||
11595 | } | ||||
11596 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11597 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11598 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11599 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11600 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11602 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11603 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11605 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11606 | |
11607 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
11610 | $as_echo_n "checking for fdatasync... " >&6; } | ||||
11611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11612 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11613 | #include <unistd.h> |
11614 | int | ||||
11615 | main () | ||||
11616 | { | ||||
11617 | void *x=fdatasync | ||||
11618 | ; | ||||
11619 | return 0; | ||||
11620 | } | ||||
11621 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11622 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11623 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11624 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11625 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11627 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11628 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11630 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11631 | |
11632 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
11635 | $as_echo_n "checking for epoll... " >&6; } | ||||
11636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11637 | /* end confdefs.h. */ |
11638 | #include <sys/epoll.h> | ||||
11639 | int | ||||
11640 | main () | ||||
11641 | { | ||||
11642 | void *x=epoll_create | ||||
11643 | ; | ||||
11644 | return 0; | ||||
11645 | } | ||||
11646 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11647 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11648 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11649 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11650 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11652 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11653 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11655 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11656 | |
11657 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 21:36:32 | [diff] [blame] | 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
11660 | $as_echo_n "checking for epoll_create1... " >&6; } | ||||
11661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11662 | /* end confdefs.h. */ | ||||
11663 | #include <sys/epoll.h> | ||||
11664 | int | ||||
11665 | main () | ||||
11666 | { | ||||
11667 | void *x=epoll_create1 | ||||
11668 | ; | ||||
11669 | return 0; | ||||
11670 | } | ||||
11671 | _ACEOF | ||||
11672 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11673 | |||||
11674 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | ||||
11675 | |||||
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11677 | $as_echo "yes" >&6; } | ||||
11678 | else | ||||
11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11680 | $as_echo "no" >&6; } | ||||
11681 | |||||
11682 | fi | ||||
11683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
11685 | $as_echo_n "checking for kqueue... " >&6; } | ||||
11686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11687 | /* end confdefs.h. */ |
11688 | |||||
11689 | #include <sys/types.h> | ||||
11690 | #include <sys/event.h> | ||||
11691 | |||||
11692 | int | ||||
11693 | main () | ||||
11694 | { | ||||
11695 | int x=kqueue() | ||||
11696 | ; | ||||
11697 | return 0; | ||||
11698 | } | ||||
11699 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11700 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11701 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11702 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11703 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11705 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11708 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11709 | |
11710 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 09:21:54 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
11713 | $as_echo_n "checking for prlimit... " >&6; } | ||||
11714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11715 | /* end confdefs.h. */ | ||||
11716 | |||||
11717 | #include <sys/time.h> | ||||
11718 | #include <sys/resource.h> | ||||
11719 | |||||
11720 | int | ||||
11721 | main () | ||||
11722 | { | ||||
11723 | void *x=prlimit | ||||
11724 | ; | ||||
11725 | return 0; | ||||
11726 | } | ||||
11727 | _ACEOF | ||||
11728 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11729 | |||||
11730 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | ||||
11731 | |||||
11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11733 | $as_echo "yes" >&6; } | ||||
11734 | else | ||||
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11736 | $as_echo "no" >&6; } | ||||
11737 | |||||
11738 | fi | ||||
11739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11740 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11741 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
11742 | # functions ctermid_r, setgroups in the library, but no prototype | ||||
11743 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | ||||
11744 | # address to avoid compiler warnings and potential miscompilations | ||||
11745 | # because of the missing prototypes. | ||||
11746 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
11748 | $as_echo_n "checking for ctermid_r... " >&6; } | ||||
11749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11750 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11751 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11752 | #include <stdio.h> |
11753 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11754 | int |
11755 | main () | ||||
11756 | { | ||||
11757 | void* p = ctermid_r | ||||
11758 | ; | ||||
11759 | return 0; | ||||
11760 | } | ||||
11761 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11762 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11763 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11764 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11765 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11767 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11768 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11770 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11771 | |
11772 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11774 | |||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
11776 | $as_echo_n "checking for flock declaration... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11777 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11778 | $as_echo_n "(cached) " >&6 |
11779 | else | ||||
11780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11781 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11782 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11783 | int |
11784 | main () | ||||
11785 | { | ||||
11786 | void* p = flock | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11787 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11788 | ; |
11789 | return 0; | ||||
11790 | } | ||||
11791 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11792 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11793 | ac_cv_flock_decl=yes |
11794 | else | ||||
11795 | ac_cv_flock_decl=no | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11796 | |
11797 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11799 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11800 | fi |
11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | ||||
11802 | $as_echo "$ac_cv_flock_decl" >&6; } | ||||
11803 | if test "x${ac_cv_flock_decl}" = xyes; then | ||||
11804 | for ac_func in flock | ||||
11805 | do : | ||||
11806 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11807 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11808 | cat >>confdefs.h <<_ACEOF |
11809 | #define HAVE_FLOCK 1 | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11810 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11811 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11812 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11814 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11815 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11816 | $as_echo_n "(cached) " >&6 |
11817 | else | ||||
11818 | ac_check_lib_save_LIBS=$LIBS | ||||
11819 | LIBS="-lbsd $LIBS" | ||||
11820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11821 | /* end confdefs.h. */ | ||||
11822 | |||||
11823 | /* Override any GCC internal prototype to avoid an error. | ||||
11824 | Use char because int might match the return type of a GCC | ||||
11825 | builtin and then its argument prototype would still apply. */ | ||||
11826 | #ifdef __cplusplus | ||||
11827 | extern "C" | ||||
11828 | #endif | ||||
11829 | char flock (); | ||||
11830 | int | ||||
11831 | main () | ||||
11832 | { | ||||
11833 | return flock (); | ||||
11834 | ; | ||||
11835 | return 0; | ||||
11836 | } | ||||
11837 | _ACEOF | ||||
11838 | if ac_fn_c_try_link "$LINENO"; then : | ||||
11839 | ac_cv_lib_bsd_flock=yes | ||||
11840 | else | ||||
11841 | ac_cv_lib_bsd_flock=no | ||||
11842 | fi | ||||
11843 | rm -f core conftest.err conftest.$ac_objext \ | ||||
11844 | conftest$ac_exeext conftest.$ac_ext | ||||
11845 | LIBS=$ac_check_lib_save_LIBS | ||||
11846 | fi | ||||
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | ||||
11848 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11849 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11850 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11851 | |
11852 | |||||
11853 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | ||||
11854 | |||||
11855 | |||||
11856 | fi | ||||
11857 | |||||
11858 | |||||
11859 | fi | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11860 | done |
11861 | |||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11862 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
11865 | $as_echo_n "checking for getpagesize... " >&6; } | ||||
11866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11867 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11868 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11869 | #include <unistd.h> |
11870 | |||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11871 | int |
11872 | main () | ||||
11873 | { | ||||
11874 | void* p = getpagesize | ||||
11875 | ; | ||||
11876 | return 0; | ||||
11877 | } | ||||
11878 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11879 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11880 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11881 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11882 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11884 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11885 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11887 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11888 | |
11889 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11891 | |
Victor Stinner | 984890f | 2011-11-24 12:53:38 | [diff] [blame] | 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
11893 | $as_echo_n "checking for broken unsetenv... " >&6; } | ||||
11894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11895 | /* end confdefs.h. */ | ||||
11896 | |||||
11897 | #include <stdlib.h> | ||||
11898 | |||||
11899 | int | ||||
11900 | main () | ||||
11901 | { | ||||
11902 | int res = unsetenv("DUMMY") | ||||
11903 | ; | ||||
11904 | return 0; | ||||
11905 | } | ||||
11906 | _ACEOF | ||||
11907 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11909 | $as_echo "no" >&6; } | ||||
11910 | else | ||||
11911 | |||||
11912 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | ||||
11913 | |||||
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11915 | $as_echo "yes" >&6; } | ||||
11916 | |||||
11917 | fi | ||||
11918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11919 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11920 | for ac_prog in true |
11921 | do | ||||
11922 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
11923 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11925 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11926 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11927 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11928 | else |
11929 | if test -n "$TRUE"; then | ||||
11930 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | ||||
11931 | else | ||||
11932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11933 | for as_dir in $PATH | ||||
11934 | do | ||||
11935 | IFS=$as_save_IFS | ||||
11936 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11937 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 11938 | 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] | 11939 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11940 | $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] | 11941 | break 2 |
11942 | fi | ||||
11943 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11944 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11945 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11946 | |
11947 | fi | ||||
11948 | fi | ||||
11949 | TRUE=$ac_cv_prog_TRUE | ||||
11950 | if test -n "$TRUE"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
11952 | $as_echo "$TRUE" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11953 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11955 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11956 | fi |
11957 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11958 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11959 | test -n "$TRUE" && break |
11960 | done | ||||
11961 | test -n "$TRUE" || TRUE="/bin/true" | ||||
11962 | |||||
11963 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
11965 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11966 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11967 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11968 | else |
11969 | ac_check_lib_save_LIBS=$LIBS | ||||
11970 | LIBS="-lc $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11972 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11974 | /* Override any GCC internal prototype to avoid an error. |
11975 | Use char because int might match the return type of a GCC | ||||
11976 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11977 | #ifdef __cplusplus |
11978 | extern "C" | ||||
11979 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11980 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11981 | int |
11982 | main () | ||||
11983 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11984 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11985 | ; |
11986 | return 0; | ||||
11987 | } | ||||
11988 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11989 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11990 | ac_cv_lib_c_inet_aton=yes |
11991 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11992 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11993 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11994 | rm -f core conftest.err conftest.$ac_objext \ |
11995 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 11996 | LIBS=$ac_check_lib_save_LIBS |
11997 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
11999 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12000 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12001 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12002 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
12004 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12005 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12006 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12007 | else |
12008 | ac_check_lib_save_LIBS=$LIBS | ||||
12009 | LIBS="-lresolv $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12011 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12012 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12013 | /* Override any GCC internal prototype to avoid an error. |
12014 | Use char because int might match the return type of a GCC | ||||
12015 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12016 | #ifdef __cplusplus |
12017 | extern "C" | ||||
12018 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12019 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12020 | int |
12021 | main () | ||||
12022 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12023 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12024 | ; |
12025 | return 0; | ||||
12026 | } | ||||
12027 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12028 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12029 | ac_cv_lib_resolv_inet_aton=yes |
12030 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12031 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12032 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12033 | rm -f core conftest.err conftest.$ac_objext \ |
12034 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12035 | LIBS=$ac_check_lib_save_LIBS |
12036 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
12038 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12039 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12040 | cat >>confdefs.h <<_ACEOF |
12041 | #define HAVE_LIBRESOLV 1 | ||||
12042 | _ACEOF | ||||
12043 | |||||
12044 | LIBS="-lresolv $LIBS" | ||||
12045 | |||||
12046 | fi | ||||
12047 | |||||
12048 | |||||
12049 | fi | ||||
12050 | |||||
12051 | |||||
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12052 | # On Tru64, chflags seems to be present, but calling it will |
12053 | # exit Python | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
12055 | $as_echo_n "checking for chflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12056 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12057 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12058 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12059 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12060 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12061 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12063 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12064 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12065 | #include <sys/stat.h> |
12066 | #include <unistd.h> | ||||
12067 | int main(int argc, char*argv[]) | ||||
12068 | { | ||||
12069 | if(chflags(argv[0], 0) != 0) | ||||
12070 | return 1; | ||||
12071 | return 0; | ||||
12072 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12073 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12074 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12075 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12076 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12077 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12078 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12079 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12081 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 12082 | fi |
12083 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12084 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12085 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
12087 | $as_echo "$ac_cv_have_chflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12088 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12089 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12090 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12091 | ac_cv_have_chflags="yes" |
12092 | else | ||||
12093 | ac_cv_have_chflags="no" | ||||
12094 | fi | ||||
12095 | |||||
12096 | fi | ||||
12097 | if test "$ac_cv_have_chflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12098 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12099 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12100 | |
12101 | fi | ||||
12102 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
12104 | $as_echo_n "checking for lchflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12105 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12106 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12107 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12108 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12109 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12110 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12112 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12113 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12114 | #include <sys/stat.h> |
12115 | #include <unistd.h> | ||||
12116 | int main(int argc, char*argv[]) | ||||
12117 | { | ||||
12118 | if(lchflags(argv[0], 0) != 0) | ||||
12119 | return 1; | ||||
12120 | return 0; | ||||
12121 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12122 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12123 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12124 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12125 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12126 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12127 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12128 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12129 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12130 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12131 | fi |
12132 | |||||
12133 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12134 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
12136 | $as_echo "$ac_cv_have_lchflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12137 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12138 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12139 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12140 | ac_cv_have_lchflags="yes" |
12141 | else | ||||
12142 | ac_cv_have_lchflags="no" | ||||
12143 | fi | ||||
12144 | |||||
12145 | fi | ||||
12146 | if test "$ac_cv_have_lchflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12147 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12148 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12149 | |
12150 | fi | ||||
12151 | |||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12152 | case $ac_sys_system/$ac_sys_release in |
12153 | Darwin/*) | ||||
12154 | _CUR_CFLAGS="${CFLAGS}" | ||||
12155 | _CUR_LDFLAGS="${LDFLAGS}" | ||||
12156 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | ||||
12157 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | ||||
12158 | ;; | ||||
12159 | esac | ||||
12160 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
12162 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12163 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12164 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12165 | else |
12166 | ac_check_lib_save_LIBS=$LIBS | ||||
12167 | LIBS="-lz $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12169 | /* end confdefs.h. */ |
12170 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12171 | /* Override any GCC internal prototype to avoid an error. |
12172 | Use char because int might match the return type of a GCC | ||||
12173 | builtin and then its argument prototype would still apply. */ | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12174 | #ifdef __cplusplus |
12175 | extern "C" | ||||
12176 | #endif | ||||
12177 | char inflateCopy (); | ||||
12178 | int | ||||
12179 | main () | ||||
12180 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12181 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12182 | ; |
12183 | return 0; | ||||
12184 | } | ||||
12185 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12186 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12187 | ac_cv_lib_z_inflateCopy=yes |
12188 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12189 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12190 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12191 | rm -f core conftest.err conftest.$ac_objext \ |
12192 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12193 | LIBS=$ac_check_lib_save_LIBS |
12194 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
12196 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12197 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12198 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12199 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12200 | |
12201 | fi | ||||
12202 | |||||
12203 | |||||
12204 | case $ac_sys_system/$ac_sys_release in | ||||
12205 | Darwin/*) | ||||
12206 | CFLAGS="${_CUR_CFLAGS}" | ||||
12207 | LDFLAGS="${_CUR_LDFLAGS}" | ||||
12208 | ;; | ||||
12209 | esac | ||||
12210 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
12212 | $as_echo_n "checking for hstrerror... " >&6; } | ||||
12213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12214 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12215 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12216 | #include <netdb.h> |
12217 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12218 | int |
12219 | main () | ||||
12220 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12221 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12222 | ; |
12223 | return 0; | ||||
12224 | } | ||||
12225 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12226 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12227 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12228 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12229 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12231 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12232 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12234 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12235 | |
12236 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12237 | rm -f core conftest.err conftest.$ac_objext \ |
12238 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12239 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
12241 | $as_echo_n "checking for inet_aton... " >&6; } | ||||
12242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12243 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12244 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 12245 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12246 | #include <sys/socket.h> |
12247 | #include <netinet/in.h> | ||||
12248 | #include <arpa/inet.h> | ||||
12249 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12250 | int |
12251 | main () | ||||
12252 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12253 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12254 | ; |
12255 | return 0; | ||||
12256 | } | ||||
12257 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12258 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12259 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12260 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12261 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12263 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12264 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12266 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12267 | |
12268 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12269 | rm -f core conftest.err conftest.$ac_objext \ |
12270 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12271 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
12273 | $as_echo_n "checking for inet_pton... " >&6; } | ||||
12274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12275 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12276 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 | [diff] [blame] | 12277 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12278 | #include <sys/socket.h> |
12279 | #include <netinet/in.h> | ||||
12280 | #include <arpa/inet.h> | ||||
12281 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12282 | int |
12283 | main () | ||||
12284 | { | ||||
12285 | void* p = inet_pton | ||||
12286 | ; | ||||
12287 | return 0; | ||||
12288 | } | ||||
12289 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12290 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12291 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12292 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12293 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12295 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12296 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12298 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12299 | |
12300 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12302 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 | [diff] [blame] | 12303 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
12305 | $as_echo_n "checking for setgroups... " >&6; } | ||||
12306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12307 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12308 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 | [diff] [blame] | 12309 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 | [diff] [blame] | 12310 | #ifdef HAVE_GRP_H |
12311 | #include <grp.h> | ||||
12312 | #endif | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12313 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12314 | int |
12315 | main () | ||||
12316 | { | ||||
12317 | void* p = setgroups | ||||
12318 | ; | ||||
12319 | return 0; | ||||
12320 | } | ||||
12321 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12322 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12323 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12324 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12325 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12327 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12328 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12330 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12331 | |
12332 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12334 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12335 | # check for openpty and forkpty |
12336 | |||||
12337 | for ac_func in openpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12338 | do : |
12339 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12340 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12341 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12342 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12343 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12344 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12345 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
12347 | $as_echo_n "checking for openpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12348 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12349 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12351 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12352 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12354 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12355 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12356 | /* Override any GCC internal prototype to avoid an error. |
12357 | Use char because int might match the return type of a GCC | ||||
12358 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12359 | #ifdef __cplusplus |
12360 | extern "C" | ||||
12361 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12362 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12363 | int |
12364 | main () | ||||
12365 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12366 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12367 | ; |
12368 | return 0; | ||||
12369 | } | ||||
12370 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12371 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12372 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12373 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12374 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12375 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12376 | rm -f core conftest.err conftest.$ac_objext \ |
12377 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12378 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12379 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
12381 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12382 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12383 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12384 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12385 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
12387 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12388 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12389 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12390 | else |
12391 | ac_check_lib_save_LIBS=$LIBS | ||||
12392 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12394 | /* end confdefs.h. */ |
12395 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12396 | /* Override any GCC internal prototype to avoid an error. |
12397 | Use char because int might match the return type of a GCC | ||||
12398 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12399 | #ifdef __cplusplus |
12400 | extern "C" | ||||
12401 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12402 | char openpty (); |
12403 | int | ||||
12404 | main () | ||||
12405 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12406 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12407 | ; |
12408 | return 0; | ||||
12409 | } | ||||
12410 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12411 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12412 | ac_cv_lib_bsd_openpty=yes |
12413 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12414 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12415 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12416 | rm -f core conftest.err conftest.$ac_objext \ |
12417 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12418 | LIBS=$ac_check_lib_save_LIBS |
12419 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
12421 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12422 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12423 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12424 | LIBS="$LIBS -lbsd" |
12425 | fi | ||||
12426 | |||||
12427 | |||||
12428 | fi | ||||
12429 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12430 | |
12431 | fi | ||||
12432 | done | ||||
12433 | |||||
12434 | for ac_func in forkpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12435 | do : |
12436 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12437 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12438 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12439 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12440 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12441 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12442 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
12444 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12445 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12446 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12448 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12449 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12452 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12453 | /* Override any GCC internal prototype to avoid an error. |
12454 | Use char because int might match the return type of a GCC | ||||
12455 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12456 | #ifdef __cplusplus |
12457 | extern "C" | ||||
12458 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12459 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12460 | int |
12461 | main () | ||||
12462 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12463 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12464 | ; |
12465 | return 0; | ||||
12466 | } | ||||
12467 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12468 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12469 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12470 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12471 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12472 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12473 | rm -f core conftest.err conftest.$ac_objext \ |
12474 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12475 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12476 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
12478 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12479 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12480 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12481 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12482 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
12484 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12485 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12486 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12487 | else |
12488 | ac_check_lib_save_LIBS=$LIBS | ||||
12489 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12491 | /* end confdefs.h. */ |
12492 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12493 | /* Override any GCC internal prototype to avoid an error. |
12494 | Use char because int might match the return type of a GCC | ||||
12495 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12496 | #ifdef __cplusplus |
12497 | extern "C" | ||||
12498 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12499 | char forkpty (); |
12500 | int | ||||
12501 | main () | ||||
12502 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12503 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12504 | ; |
12505 | return 0; | ||||
12506 | } | ||||
12507 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12508 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12509 | ac_cv_lib_bsd_forkpty=yes |
12510 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12511 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12512 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12513 | rm -f core conftest.err conftest.$ac_objext \ |
12514 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12515 | LIBS=$ac_check_lib_save_LIBS |
12516 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
12518 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12519 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12520 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12521 | LIBS="$LIBS -lbsd" |
12522 | fi | ||||
12523 | |||||
12524 | |||||
12525 | fi | ||||
12526 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12527 | |
12528 | fi | ||||
12529 | done | ||||
12530 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 12531 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 | [diff] [blame] | 12532 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 | [diff] [blame] | 12533 | for ac_func in memmove |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12534 | do : |
12535 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12536 | if test "x$ac_cv_func_memmove" = xyes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 | [diff] [blame] | 12537 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12538 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 | [diff] [blame] | 12539 | _ACEOF |
12540 | |||||
12541 | fi | ||||
12542 | done | ||||
12543 | |||||
12544 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12545 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12546 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12547 | do : |
12548 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
12549 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12550 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12551 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12552 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12553 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12554 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12555 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12556 | done |
12557 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12558 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12559 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12560 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12561 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12562 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12563 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12564 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12565 | *" dup2.$ac_objext "* ) ;; |
12566 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12567 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 12568 | esac |
12569 | |||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12570 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12571 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12572 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12573 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12574 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
12575 | |||||
12576 | else | ||||
12577 | case " $LIBOBJS " in | ||||
12578 | *" strdup.$ac_objext "* ) ;; | ||||
12579 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | ||||
12580 | ;; | ||||
12581 | esac | ||||
12582 | |||||
12583 | fi | ||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12584 | |
12585 | |||||
12586 | for ac_func in getpgrp | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12587 | do : |
12588 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12589 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12590 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12591 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12592 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12594 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12595 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12596 | int |
12597 | main () | ||||
12598 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12599 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12600 | ; |
12601 | return 0; | ||||
12602 | } | ||||
12603 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12604 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12605 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12606 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12607 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12608 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 12610 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12611 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12612 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12613 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12614 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12615 | do : |
12616 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12617 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12618 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12619 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12620 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12622 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12623 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12624 | int |
12625 | main () | ||||
12626 | { | ||||
12627 | setpgrp(0,0); | ||||
12628 | ; | ||||
12629 | return 0; | ||||
12630 | } | ||||
12631 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12632 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12633 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12634 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12635 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 | [diff] [blame] | 12636 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12638 | |
12639 | fi | ||||
12640 | done | ||||
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 | [diff] [blame] | 12641 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12642 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12643 | do : |
12644 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12645 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12646 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12647 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12648 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12650 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12651 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12652 | int |
12653 | main () | ||||
12654 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12655 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12656 | ; |
12657 | return 0; | ||||
12658 | } | ||||
12659 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12660 | if ac_fn_c_try_compile "$LINENO"; then : |
12661 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12662 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12663 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12664 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12666 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12667 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 12669 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12670 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12671 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12672 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12673 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12674 | for ac_func in clock_gettime |
12675 | do : | ||||
12676 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | ||||
12677 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | ||||
12678 | cat >>confdefs.h <<_ACEOF | ||||
12679 | #define HAVE_CLOCK_GETTIME 1 | ||||
12680 | _ACEOF | ||||
12681 | |||||
12682 | else | ||||
12683 | |||||
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | ||||
12685 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||||
12686 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | ||||
12687 | $as_echo_n "(cached) " >&6 | ||||
12688 | else | ||||
12689 | ac_check_lib_save_LIBS=$LIBS | ||||
12690 | LIBS="-lrt $LIBS" | ||||
12691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12692 | /* end confdefs.h. */ | ||||
12693 | |||||
12694 | /* Override any GCC internal prototype to avoid an error. | ||||
12695 | Use char because int might match the return type of a GCC | ||||
12696 | builtin and then its argument prototype would still apply. */ | ||||
12697 | #ifdef __cplusplus | ||||
12698 | extern "C" | ||||
12699 | #endif | ||||
12700 | char clock_gettime (); | ||||
12701 | int | ||||
12702 | main () | ||||
12703 | { | ||||
12704 | return clock_gettime (); | ||||
12705 | ; | ||||
12706 | return 0; | ||||
12707 | } | ||||
12708 | _ACEOF | ||||
12709 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12710 | ac_cv_lib_rt_clock_gettime=yes | ||||
12711 | else | ||||
12712 | ac_cv_lib_rt_clock_gettime=no | ||||
12713 | fi | ||||
12714 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12715 | conftest$ac_exeext conftest.$ac_ext | ||||
12716 | LIBS=$ac_check_lib_save_LIBS | ||||
12717 | fi | ||||
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | ||||
12719 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||||
12720 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | ||||
12721 | |||||
Victor Stinner | 7efb833 | 2014-08-29 13:41:08 | [diff] [blame] | 12722 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12723 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
12724 | |||||
12725 | |||||
12726 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | ||||
12727 | |||||
12728 | |||||
12729 | fi | ||||
12730 | |||||
12731 | |||||
12732 | fi | ||||
12733 | done | ||||
12734 | |||||
12735 | |||||
12736 | for ac_func in clock_getres | ||||
12737 | do : | ||||
12738 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | ||||
12739 | if test "x$ac_cv_func_clock_getres" = xyes; then : | ||||
12740 | cat >>confdefs.h <<_ACEOF | ||||
12741 | #define HAVE_CLOCK_GETRES 1 | ||||
12742 | _ACEOF | ||||
12743 | |||||
12744 | else | ||||
12745 | |||||
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | ||||
12747 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | ||||
12748 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | ||||
12749 | $as_echo_n "(cached) " >&6 | ||||
12750 | else | ||||
12751 | ac_check_lib_save_LIBS=$LIBS | ||||
12752 | LIBS="-lrt $LIBS" | ||||
12753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12754 | /* end confdefs.h. */ | ||||
12755 | |||||
12756 | /* Override any GCC internal prototype to avoid an error. | ||||
12757 | Use char because int might match the return type of a GCC | ||||
12758 | builtin and then its argument prototype would still apply. */ | ||||
12759 | #ifdef __cplusplus | ||||
12760 | extern "C" | ||||
12761 | #endif | ||||
12762 | char clock_getres (); | ||||
12763 | int | ||||
12764 | main () | ||||
12765 | { | ||||
12766 | return clock_getres (); | ||||
12767 | ; | ||||
12768 | return 0; | ||||
12769 | } | ||||
12770 | _ACEOF | ||||
12771 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12772 | ac_cv_lib_rt_clock_getres=yes | ||||
12773 | else | ||||
12774 | ac_cv_lib_rt_clock_getres=no | ||||
12775 | fi | ||||
12776 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12777 | conftest$ac_exeext conftest.$ac_ext | ||||
12778 | LIBS=$ac_check_lib_save_LIBS | ||||
12779 | fi | ||||
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | ||||
12781 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | ||||
12782 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | ||||
12783 | |||||
12784 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | ||||
12785 | |||||
12786 | |||||
12787 | fi | ||||
12788 | |||||
12789 | |||||
12790 | fi | ||||
12791 | done | ||||
12792 | |||||
12793 | |||||
Benjamin Peterson | 37098cd | 2016-09-14 05:55:09 | [diff] [blame] | 12794 | for ac_func in clock_settime |
12795 | do : | ||||
12796 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | ||||
12797 | if test "x$ac_cv_func_clock_settime" = xyes; then : | ||||
12798 | cat >>confdefs.h <<_ACEOF | ||||
12799 | #define HAVE_CLOCK_SETTIME 1 | ||||
12800 | _ACEOF | ||||
12801 | |||||
12802 | else | ||||
12803 | |||||
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | ||||
12805 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | ||||
12806 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | ||||
12807 | $as_echo_n "(cached) " >&6 | ||||
12808 | else | ||||
12809 | ac_check_lib_save_LIBS=$LIBS | ||||
12810 | LIBS="-lrt $LIBS" | ||||
12811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12812 | /* end confdefs.h. */ | ||||
12813 | |||||
12814 | /* Override any GCC internal prototype to avoid an error. | ||||
12815 | Use char because int might match the return type of a GCC | ||||
12816 | builtin and then its argument prototype would still apply. */ | ||||
12817 | #ifdef __cplusplus | ||||
12818 | extern "C" | ||||
12819 | #endif | ||||
12820 | char clock_settime (); | ||||
12821 | int | ||||
12822 | main () | ||||
12823 | { | ||||
12824 | return clock_settime (); | ||||
12825 | ; | ||||
12826 | return 0; | ||||
12827 | } | ||||
12828 | _ACEOF | ||||
12829 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12830 | ac_cv_lib_rt_clock_settime=yes | ||||
12831 | else | ||||
12832 | ac_cv_lib_rt_clock_settime=no | ||||
12833 | fi | ||||
12834 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12835 | conftest$ac_exeext conftest.$ac_ext | ||||
12836 | LIBS=$ac_check_lib_save_LIBS | ||||
12837 | fi | ||||
12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | ||||
12839 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | ||||
12840 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | ||||
12841 | |||||
12842 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | ||||
12843 | |||||
12844 | |||||
12845 | fi | ||||
12846 | |||||
12847 | |||||
12848 | fi | ||||
12849 | done | ||||
12850 | |||||
12851 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
12853 | $as_echo_n "checking for major... " >&6; } | ||||
12854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12855 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12856 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 12857 | #if defined(MAJOR_IN_MKDEV) |
12858 | #include <sys/mkdev.h> | ||||
12859 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
12860 | #include <sys/sysmacros.h> | ||||
12861 | #else | ||||
12862 | #include <sys/types.h> | ||||
12863 | #endif | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12864 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12865 | int |
12866 | main () | ||||
12867 | { | ||||
12868 | |||||
12869 | makedev(major(0),minor(0)); | ||||
12870 | |||||
12871 | ; | ||||
12872 | return 0; | ||||
12873 | } | ||||
12874 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12875 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12876 | |
12877 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12878 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12879 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12881 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12882 | |
12883 | else | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12884 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12886 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 12887 | |
12888 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12889 | rm -f core conftest.err conftest.$ac_objext \ |
12890 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12891 | |
Xavier de Gaye | 40e320b | 2016-12-21 16:29:59 | [diff] [blame] | 12892 | # On Android API level 24 with android-ndk-r13, if_nameindex() is available, |
12893 | # but the if_nameindex structure is not defined. | ||||
Xavier de Gaye | 7087842 | 2016-12-21 11:46:36 | [diff] [blame] | 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5 |
12895 | $as_echo_n "checking for if_nameindex... " >&6; } | ||||
12896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12897 | /* end confdefs.h. */ | ||||
12898 | |||||
Xavier de Gaye | 40e320b | 2016-12-21 16:29:59 | [diff] [blame] | 12899 | #include <stdio.h> |
12900 | #ifdef STDC_HEADERS | ||||
12901 | # include <stdlib.h> | ||||
12902 | # include <stddef.h> | ||||
12903 | #else | ||||
12904 | # ifdef HAVE_STDLIB_H | ||||
12905 | # include <stdlib.h> | ||||
12906 | # endif | ||||
12907 | #endif | ||||
12908 | #ifdef HAVE_SYS_SOCKET_H | ||||
12909 | # include <sys/socket.h> | ||||
12910 | #endif | ||||
Xavier de Gaye | 7087842 | 2016-12-21 11:46:36 | [diff] [blame] | 12911 | #ifdef HAVE_NET_IF_H |
12912 | # include <net/if.h> | ||||
12913 | #endif | ||||
12914 | |||||
12915 | int | ||||
12916 | main () | ||||
12917 | { | ||||
12918 | struct if_nameindex *ni = if_nameindex(); int x = ni[0].if_index; | ||||
12919 | ; | ||||
12920 | return 0; | ||||
12921 | } | ||||
12922 | _ACEOF | ||||
12923 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12924 | |||||
12925 | $as_echo "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h | ||||
12926 | |||||
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12928 | $as_echo "yes" >&6; } | ||||
12929 | else | ||||
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12931 | $as_echo "no" >&6; } | ||||
12932 | |||||
12933 | fi | ||||
12934 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12935 | conftest$ac_exeext conftest.$ac_ext | ||||
12936 | |||||
Xavier de Gaye | bdf0d0f | 2016-12-22 09:38:59 | [diff] [blame] | 12937 | # Issue #28762: lockf() is available on Android API level 24, but the F_LOCK |
12938 | # macro is not defined in android-ndk-r13. | ||||
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5 | ||||
12940 | $as_echo_n "checking for lockf... " >&6; } | ||||
12941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12942 | /* end confdefs.h. */ | ||||
12943 | #include <unistd.h> | ||||
12944 | int | ||||
12945 | main () | ||||
12946 | { | ||||
12947 | lockf(0, F_LOCK, 0); | ||||
12948 | ; | ||||
12949 | return 0; | ||||
12950 | } | ||||
12951 | _ACEOF | ||||
12952 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12953 | |||||
12954 | $as_echo "#define HAVE_LOCKF 1" >>confdefs.h | ||||
12955 | |||||
12956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12957 | $as_echo "yes" >&6; } | ||||
12958 | else | ||||
12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12960 | $as_echo "no" >&6; } | ||||
12961 | |||||
12962 | fi | ||||
12963 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12964 | conftest$ac_exeext conftest.$ac_ext | ||||
12965 | |||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 12966 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12967 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
12969 | $as_echo_n "checking for getaddrinfo... " >&6; } | ||||
12970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12971 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 12972 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 | [diff] [blame] | 12973 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 12974 | #include <sys/socket.h> |
12975 | #include <netdb.h> | ||||
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 | [diff] [blame] | 12976 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 12977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12978 | int |
12979 | main () | ||||
12980 | { | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 12981 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12982 | ; |
12983 | return 0; | ||||
12984 | } | ||||
12985 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12986 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12987 | have_getaddrinfo=yes |
12988 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12989 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12990 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12991 | rm -f core conftest.err conftest.$ac_objext \ |
12992 | conftest$ac_exeext conftest.$ac_ext | ||||
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | ||||
12994 | $as_echo "$have_getaddrinfo" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12995 | if test $have_getaddrinfo = yes |
12996 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
12998 | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12999 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13000 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13001 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13002 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 19:42:23 | [diff] [blame] | 13003 | |
13004 | if test "${enable_ipv6+set}" = set; then | ||||
13005 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | ||||
13006 | else | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13007 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 19:42:23 | [diff] [blame] | 13008 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13009 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13011 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13012 | |
Stefan Krah | 19c2139 | 2012-11-22 22:47:32 | [diff] [blame] | 13013 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13014 | #include <sys/types.h> |
13015 | #include <netdb.h> | ||||
13016 | #include <string.h> | ||||
13017 | #include <sys/socket.h> | ||||
13018 | #include <netinet/in.h> | ||||
13019 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13020 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13021 | { |
13022 | int passive, gaierr, inet4 = 0, inet6 = 0; | ||||
13023 | struct addrinfo hints, *ai, *aitop; | ||||
13024 | char straddr[INET6_ADDRSTRLEN], strport[16]; | ||||
13025 | |||||
13026 | for (passive = 0; passive <= 1; passive++) { | ||||
13027 | memset(&hints, 0, sizeof(hints)); | ||||
13028 | hints.ai_family = AF_UNSPEC; | ||||
13029 | hints.ai_flags = passive ? AI_PASSIVE : 0; | ||||
13030 | hints.ai_socktype = SOCK_STREAM; | ||||
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 | [diff] [blame] | 13031 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13032 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
13033 | (void)gai_strerror(gaierr); | ||||
13034 | goto bad; | ||||
13035 | } | ||||
13036 | for (ai = aitop; ai; ai = ai->ai_next) { | ||||
13037 | if (ai->ai_addr == NULL || | ||||
13038 | ai->ai_addrlen == 0 || | ||||
13039 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | ||||
13040 | straddr, sizeof(straddr), strport, sizeof(strport), | ||||
13041 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | ||||
13042 | goto bad; | ||||
13043 | } | ||||
13044 | switch (ai->ai_family) { | ||||
13045 | case AF_INET: | ||||
13046 | if (strcmp(strport, "54321") != 0) { | ||||
13047 | goto bad; | ||||
13048 | } | ||||
13049 | if (passive) { | ||||
13050 | if (strcmp(straddr, "0.0.0.0") != 0) { | ||||
13051 | goto bad; | ||||
13052 | } | ||||
13053 | } else { | ||||
13054 | if (strcmp(straddr, "127.0.0.1") != 0) { | ||||
13055 | goto bad; | ||||
13056 | } | ||||
13057 | } | ||||
13058 | inet4++; | ||||
13059 | break; | ||||
13060 | case AF_INET6: | ||||
13061 | if (strcmp(strport, "54321") != 0) { | ||||
13062 | goto bad; | ||||
13063 | } | ||||
13064 | if (passive) { | ||||
13065 | if (strcmp(straddr, "::") != 0) { | ||||
13066 | goto bad; | ||||
13067 | } | ||||
13068 | } else { | ||||
13069 | if (strcmp(straddr, "::1") != 0) { | ||||
13070 | goto bad; | ||||
13071 | } | ||||
13072 | } | ||||
13073 | inet6++; | ||||
13074 | break; | ||||
13075 | case AF_UNSPEC: | ||||
13076 | goto bad; | ||||
13077 | break; | ||||
13078 | default: | ||||
13079 | /* another family support? */ | ||||
13080 | break; | ||||
13081 | } | ||||
13082 | } | ||||
Benjamin Peterson | 01c340d | 2016-09-06 22:54:24 | [diff] [blame] | 13083 | freeaddrinfo(aitop); |
13084 | aitop = NULL; | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13085 | } |
13086 | |||||
13087 | if (!(inet4 == 0 || inet4 == 2)) | ||||
13088 | goto bad; | ||||
13089 | if (!(inet6 == 0 || inet6 == 2)) | ||||
13090 | goto bad; | ||||
13091 | |||||
13092 | if (aitop) | ||||
13093 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13094 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13095 | |
13096 | bad: | ||||
13097 | if (aitop) | ||||
13098 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13099 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13100 | } |
13101 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13102 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13103 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13104 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13105 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13106 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13107 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13109 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13110 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13111 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13112 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13113 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13114 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13115 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 | [diff] [blame] | 13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
13117 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | ||||
13118 | |||||
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 13119 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13120 | then |
13121 | if test $ipv6 = yes | ||||
13122 | then | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13123 | echo 'Fatal: You must get working getaddrinfo() function.' |
13124 | echo ' or you can specify "--disable-ipv6"'. | ||||
13125 | exit 1 | ||||
13126 | fi | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13128 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13129 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13130 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13131 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 | [diff] [blame] | 13132 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 13133 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13134 | do : |
13135 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13136 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13137 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13138 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13139 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13140 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13141 | fi |
13142 | done | ||||
13143 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13144 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13145 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13147 | $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] | 13148 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13149 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13150 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13152 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13153 | #include <sys/types.h> |
13154 | #include <sys/time.h> | ||||
13155 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13157 | int |
13158 | main () | ||||
13159 | { | ||||
13160 | if ((struct tm *) 0) | ||||
13161 | return 0; | ||||
13162 | ; | ||||
13163 | return 0; | ||||
13164 | } | ||||
13165 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13166 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13167 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13168 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13169 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13170 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13172 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
13174 | $as_echo "$ac_cv_header_time" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13175 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13176 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13177 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13178 | |
13179 | fi | ||||
13180 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13182 | $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] | 13183 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13184 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13185 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13187 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13188 | #include <sys/types.h> |
13189 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13191 | int |
13192 | main () | ||||
13193 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13194 | struct tm tm; |
13195 | int *p = &tm.tm_sec; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13196 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13197 | ; |
13198 | return 0; | ||||
13199 | } | ||||
13200 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13201 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13202 | ac_cv_struct_tm=time.h |
13203 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13204 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13205 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13207 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
13209 | $as_echo "$ac_cv_struct_tm" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13210 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13211 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13212 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13213 | |
13214 | fi | ||||
13215 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13216 | 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] | 13217 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13218 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13219 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13220 | 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] | 13221 | |
13222 | cat >>confdefs.h <<_ACEOF | ||||
13223 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||||
13224 | _ACEOF | ||||
13225 | |||||
13226 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13227 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 13228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13229 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
13230 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13231 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13232 | |
13233 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13234 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
13235 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13236 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13237 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13238 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13239 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13240 | fi |
13241 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13242 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13243 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13244 | _ACEOF |
13245 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
13247 | $as_echo_n "checking for tzname... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13248 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13249 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13250 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13252 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13253 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13254 | #if !HAVE_DECL_TZNAME |
13255 | extern char *tzname[]; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13256 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13258 | int |
13259 | main () | ||||
13260 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13261 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13262 | ; |
13263 | return 0; | ||||
13264 | } | ||||
13265 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13266 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13267 | ac_cv_var_tzname=yes |
13268 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13269 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13270 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13271 | rm -f core conftest.err conftest.$ac_objext \ |
13272 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13273 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
13275 | $as_echo "$ac_cv_var_tzname" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13276 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13277 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13278 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13279 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13280 | fi |
13281 | fi | ||||
13282 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13283 | 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] | 13284 | 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] | 13285 | |
13286 | cat >>confdefs.h <<_ACEOF | ||||
13287 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | ||||
13288 | _ACEOF | ||||
13289 | |||||
13290 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13291 | fi |
13292 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13293 | 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] | 13294 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13296 | cat >>confdefs.h <<_ACEOF |
13297 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||||
13298 | _ACEOF | ||||
13299 | |||||
13300 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13301 | fi |
13302 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13303 | 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] | 13304 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 | [diff] [blame] | 13305 | |
13306 | cat >>confdefs.h <<_ACEOF | ||||
13307 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | ||||
13308 | _ACEOF | ||||
13309 | |||||
13310 | |||||
13311 | fi | ||||
13312 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13313 | 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] | 13314 | 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] | 13315 | |
13316 | cat >>confdefs.h <<_ACEOF | ||||
13317 | #define HAVE_STRUCT_STAT_ST_GEN 1 | ||||
13318 | _ACEOF | ||||
13319 | |||||
13320 | |||||
13321 | fi | ||||
13322 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13323 | 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] | 13324 | 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] | 13325 | |
13326 | cat >>confdefs.h <<_ACEOF | ||||
13327 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | ||||
13328 | _ACEOF | ||||
13329 | |||||
13330 | |||||
13331 | fi | ||||
13332 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13333 | 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] | 13334 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13336 | cat >>confdefs.h <<_ACEOF |
13337 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | ||||
13338 | _ACEOF | ||||
13339 | |||||
13340 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13341 | fi |
13342 | |||||
Stefan Krah | 267b639 | 2016-04-25 23:09:18 | [diff] [blame] | 13343 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
13344 | #include <sys/types.h> | ||||
13345 | #include <pwd.h> | ||||
13346 | |||||
13347 | " | ||||
13348 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||||
13349 | |||||
13350 | cat >>confdefs.h <<_ACEOF | ||||
13351 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||||
13352 | _ACEOF | ||||
13353 | |||||
13354 | |||||
13355 | fi | ||||
13356 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | ||||
13357 | #include <sys/types.h> | ||||
13358 | #include <pwd.h> | ||||
13359 | |||||
13360 | " | ||||
13361 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | ||||
13362 | |||||
13363 | cat >>confdefs.h <<_ACEOF | ||||
13364 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | ||||
13365 | _ACEOF | ||||
13366 | |||||
13367 | |||||
13368 | fi | ||||
13369 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13370 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
13372 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13373 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13374 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13375 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13376 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13378 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13379 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13380 | int |
13381 | main () | ||||
13382 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13383 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13384 | ; |
13385 | return 0; | ||||
13386 | } | ||||
13387 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13388 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13389 | ac_cv_header_time_altzone=yes |
13390 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13391 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13392 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13394 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13395 | fi |
13396 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
13398 | $as_echo "$ac_cv_header_time_altzone" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13399 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13400 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13401 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13402 | |
13403 | fi | ||||
13404 | |||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13405 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
13407 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | ||||
13408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13409 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13410 | |
13411 | #include <sys/types.h> | ||||
13412 | #include <sys/select.h> | ||||
13413 | #include <sys/time.h> | ||||
13414 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13415 | int |
13416 | main () | ||||
13417 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13418 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13419 | ; |
13420 | return 0; | ||||
13421 | } | ||||
13422 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13423 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13424 | |
13425 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13426 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13427 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13428 | was_it_defined=yes |
13429 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13430 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
13433 | $as_echo "$was_it_defined" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13434 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
13436 | $as_echo_n "checking for addrinfo... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13437 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13438 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13439 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13441 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13442 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13443 | int |
13444 | main () | ||||
13445 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13446 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13447 | ; |
13448 | return 0; | ||||
13449 | } | ||||
13450 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13451 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13452 | ac_cv_struct_addrinfo=yes |
13453 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13454 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13455 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13457 | fi | ||||
13458 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
13460 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13461 | if test $ac_cv_struct_addrinfo = yes; then |
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 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13464 | |
13465 | fi | ||||
13466 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
13468 | $as_echo_n "checking for sockaddr_storage... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13469 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13470 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13471 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13473 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13474 | |
13475 | # include <sys/types.h> | ||||
13476 | # include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13477 | int |
13478 | main () | ||||
13479 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13480 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13481 | ; |
13482 | return 0; | ||||
13483 | } | ||||
13484 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13485 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13486 | ac_cv_struct_sockaddr_storage=yes |
13487 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13488 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13489 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13491 | fi | ||||
13492 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
13494 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13495 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13496 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13497 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13498 | |
13499 | fi | ||||
13500 | |||||
Christian Heimes | dffa394 | 2016-09-05 21:54:41 | [diff] [blame] | 13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
13502 | $as_echo_n "checking for sockaddr_alg... " >&6; } | ||||
13503 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | ||||
13504 | $as_echo_n "(cached) " >&6 | ||||
13505 | else | ||||
13506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13507 | /* end confdefs.h. */ | ||||
13508 | |||||
13509 | # include <sys/types.h> | ||||
13510 | # include <sys/socket.h> | ||||
13511 | # include <linux/if_alg.h> | ||||
13512 | int | ||||
13513 | main () | ||||
13514 | { | ||||
13515 | struct sockaddr_alg s | ||||
13516 | ; | ||||
13517 | return 0; | ||||
13518 | } | ||||
13519 | _ACEOF | ||||
13520 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13521 | ac_cv_struct_sockaddr_alg=yes | ||||
13522 | else | ||||
13523 | ac_cv_struct_sockaddr_alg=no | ||||
13524 | fi | ||||
13525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13526 | fi | ||||
13527 | |||||
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | ||||
13529 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | ||||
13530 | if test $ac_cv_struct_sockaddr_alg = yes; then | ||||
13531 | |||||
13532 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | ||||
13533 | |||||
13534 | fi | ||||
13535 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13536 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13537 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
13539 | $as_echo_n "checking whether char is unsigned... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13540 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13541 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13542 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13544 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13545 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13546 | int |
13547 | main () | ||||
13548 | { | ||||
13549 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13550 | test_array [0] = 0; |
13551 | return test_array [0]; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13552 | |
13553 | ; | ||||
13554 | return 0; | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13555 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13556 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13557 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13558 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13559 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13560 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13561 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13563 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
13565 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13566 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13567 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13568 | |
13569 | fi | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13570 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
13572 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13573 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13574 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13575 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13577 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13579 | int |
13580 | main () | ||||
13581 | { | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13583 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13584 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13585 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13586 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13587 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13588 | char const *const *pcpcc; |
13589 | char **ppc; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13590 | /* NEC SVR4.0.2 mips cc rejects this. */ |
13591 | struct point {int x, y;}; | ||||
13592 | static struct point const zero = {0,0}; | ||||
13593 | /* AIX XL C 1.02.0.0 rejects this. | ||||
13594 | It does not let you subtract one const X* pointer from another in | ||||
13595 | an arm of an if-expression whose if-part is not a constant | ||||
13596 | expression */ | ||||
13597 | const char *g = "string"; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13598 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13599 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13600 | ++pcpcc; |
13601 | ppc = (char**) pcpcc; | ||||
13602 | pcpcc = (char const *const *) ppc; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13603 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
13604 | char tx; | ||||
13605 | char *t = &tx; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13606 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13608 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13609 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13610 | } |
13611 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||||
13612 | int x[] = {25, 17}; | ||||
13613 | const int *foo = &x[0]; | ||||
13614 | ++foo; | ||||
13615 | } | ||||
13616 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||||
13617 | typedef const int *iptr; | ||||
13618 | iptr p = 0; | ||||
13619 | ++p; | ||||
13620 | } | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13621 | { /* 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] | 13622 | "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] | 13623 | struct s { int j; const int *ap[3]; } bx; |
13624 | struct s *b = &bx; b->j = 5; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13625 | } |
13626 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||||
13627 | const int foo = 10; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13628 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13629 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13630 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13631 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13633 | ; |
13634 | return 0; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13635 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13636 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13637 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13638 | ac_cv_c_const=yes |
13639 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13640 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13641 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13643 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
13645 | $as_echo "$ac_cv_c_const" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13646 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13647 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13648 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13649 | |
13650 | fi | ||||
13651 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13652 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13653 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
13655 | $as_echo_n "checking for working volatile... " >&6; } | ||||
13656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13657 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13659 | int |
13660 | main () | ||||
13661 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13662 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13663 | ; |
13664 | return 0; | ||||
13665 | } | ||||
13666 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13667 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13668 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13669 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13671 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13672 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13674 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13677 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13678 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13679 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
13681 | $as_echo_n "checking for working signed char... " >&6; } | ||||
13682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13683 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 | [diff] [blame] | 13684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13685 | int |
13686 | main () | ||||
13687 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13688 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13689 | ; |
13690 | return 0; | ||||
13691 | } | ||||
13692 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13693 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13694 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 | [diff] [blame] | 13695 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13696 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13697 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13698 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13699 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13700 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13703 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13704 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13705 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
13707 | $as_echo_n "checking for prototypes... " >&6; } | ||||
13708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13709 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13710 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13711 | int |
13712 | main () | ||||
13713 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13714 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13715 | ; |
13716 | return 0; | ||||
13717 | } | ||||
13718 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13719 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13720 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13721 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13722 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13723 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13724 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
13727 | $as_echo "$have_prototypes" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13728 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13729 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
13731 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | ||||
13732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13733 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13734 | |
13735 | #include <stdarg.h> | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 | [diff] [blame] | 13736 | int foo(int x, ...) { |
13737 | va_list va; | ||||
13738 | va_start(va, x); | ||||
13739 | va_arg(va, int); | ||||
13740 | va_arg(va, char *); | ||||
13741 | va_arg(va, double); | ||||
13742 | return 0; | ||||
13743 | } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13745 | int |
13746 | main () | ||||
13747 | { | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 | [diff] [blame] | 13748 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13749 | ; |
13750 | return 0; | ||||
13751 | } | ||||
13752 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13753 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13754 | |
13755 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13756 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13757 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13758 | works=yes |
13759 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13760 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13763 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13764 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13765 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
13767 | $as_echo_n "checking for socketpair... " >&6; } | ||||
13768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13769 | /* end confdefs.h. */ |
13770 | |||||
13771 | #include <sys/types.h> | ||||
13772 | #include <sys/socket.h> | ||||
13773 | |||||
13774 | int | ||||
13775 | main () | ||||
13776 | { | ||||
13777 | void *x=socketpair | ||||
13778 | ; | ||||
13779 | return 0; | ||||
13780 | } | ||||
13781 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13782 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13783 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13784 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13785 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13787 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13790 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13791 | |
13792 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13794 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13795 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
13797 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | ||||
13798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13799 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13800 | #include <sys/types.h> |
13801 | #include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13802 | int |
13803 | main () | ||||
13804 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13805 | struct sockaddr x; |
13806 | x.sa_len = 0; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13807 | ; |
13808 | return 0; | ||||
13809 | } | ||||
13810 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13811 | if ac_fn_c_try_compile "$LINENO"; then : |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
13813 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13814 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13815 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13816 | |
13817 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13819 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13820 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13821 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13823 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13824 | # 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] | 13825 | |
13826 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13827 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13828 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13829 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13830 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 | [diff] [blame] | 13831 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
13833 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13834 | OLD_CFLAGS=$CFLAGS |
13835 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13837 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13838 | |
13839 | # include <netdb.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13841 | int |
13842 | main () | ||||
13843 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13844 | |
13845 | char *name; | ||||
13846 | struct hostent *he, *res; | ||||
13847 | char buffer[2048]; | ||||
13848 | int buflen = 2048; | ||||
13849 | int h_errnop; | ||||
13850 | |||||
13851 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13852 | |
13853 | ; | ||||
13854 | return 0; | ||||
13855 | } | ||||
13856 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13857 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13858 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13859 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 | [diff] [blame] | 13860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13861 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13862 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13865 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13866 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13867 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13868 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13870 | $as_echo "no" >&6; } | ||||
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | ||||
13872 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | ||||
13873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13874 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13875 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13876 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13878 | int |
13879 | main () | ||||
13880 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13881 | |
13882 | char *name; | ||||
13883 | struct hostent *he; | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13884 | char buffer[2048]; |
13885 | int buflen = 2048; | ||||
13886 | int h_errnop; | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13887 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13888 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13889 | |
13890 | ; | ||||
13891 | return 0; | ||||
13892 | } | ||||
13893 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13894 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13895 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13896 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 | [diff] [blame] | 13897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13898 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13899 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13902 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13903 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13904 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13905 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13907 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
13909 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | ||||
13910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13911 | /* end confdefs.h. */ | ||||
13912 | |||||
13913 | # include <netdb.h> | ||||
13914 | |||||
13915 | int | ||||
13916 | main () | ||||
13917 | { | ||||
13918 | |||||
13919 | char *name; | ||||
13920 | struct hostent *he; | ||||
13921 | struct hostent_data data; | ||||
13922 | |||||
13923 | (void) gethostbyname_r(name, he, &data); | ||||
13924 | |||||
13925 | ; | ||||
13926 | return 0; | ||||
13927 | } | ||||
13928 | _ACEOF | ||||
13929 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13930 | |||||
13931 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | ||||
13932 | |||||
13933 | |||||
13934 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | ||||
13935 | |||||
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
13937 | $as_echo "yes" >&6; } | ||||
13938 | |||||
13939 | else | ||||
13940 | |||||
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
13942 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13943 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13944 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13946 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13947 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13949 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13950 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13952 | CFLAGS=$OLD_CFLAGS |
13953 | |||||
13954 | else | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13955 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13956 | for ac_func in gethostbyname |
13957 | do : | ||||
13958 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13959 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13960 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13961 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13962 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13963 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13964 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 13965 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13966 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13967 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13968 | fi |
13969 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13970 | |
13971 | |||||
13972 | |||||
13973 | |||||
13974 | |||||
13975 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13976 | # checks for system services |
13977 | # (none yet) | ||||
13978 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13979 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13980 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13981 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13982 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 | [diff] [blame] | 13983 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
13985 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13986 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13987 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13989 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 13990 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13992 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13993 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13994 | /* Override any GCC internal prototype to avoid an error. |
13995 | Use char because int might match the return type of a GCC | ||||
13996 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13997 | #ifdef __cplusplus |
13998 | extern "C" | ||||
13999 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14000 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14001 | int |
14002 | main () | ||||
14003 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14004 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14005 | ; |
14006 | return 0; | ||||
14007 | } | ||||
14008 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14009 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14010 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14011 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14012 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14013 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14014 | rm -f core conftest.err conftest.$ac_objext \ |
14015 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14016 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14017 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
14019 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14020 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14021 | cat >>confdefs.h <<_ACEOF |
14022 | #define HAVE_LIBIEEE 1 | ||||
14023 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14024 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 14025 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14026 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14027 | fi |
14028 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14029 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 | [diff] [blame] | 14030 | fi |
14031 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14032 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14033 | # Check for --with-fpectl |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
14035 | $as_echo_n "checking for --with-fpectl... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14036 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14037 | # Check whether --with-fpectl was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14038 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14039 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14040 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14041 | then |
14042 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14043 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
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 "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14046 | $as_echo "yes" >&6; } | ||||
14047 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14048 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14049 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14050 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14052 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14053 | fi |
14054 | |||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14055 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14056 | # check for --with-libm=... |
14057 | |||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 14058 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 | [diff] [blame] | 14059 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 14060 | *) LIBM=-lm |
14061 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
14063 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14065 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14066 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14067 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14068 | if test "$withval" = no |
14069 | then LIBM= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
14071 | $as_echo "force LIBM empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14072 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14073 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
14075 | $as_echo "set LIBM=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14076 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14077 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14078 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
14080 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14081 | fi |
14082 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14083 | |
14084 | # check for --with-libc=... | ||||
14085 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
14087 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14088 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14089 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14090 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14091 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14092 | if test "$withval" = no |
14093 | then LIBC= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
14095 | $as_echo "force LIBC empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14096 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14097 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
14099 | $as_echo "set LIBC=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14100 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14101 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14102 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
14104 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14105 | fi |
14106 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14107 | |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14108 | # ************************************** |
14109 | # * Check for gcc x64 inline assembler * | ||||
14110 | # ************************************** | ||||
14111 | |||||
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | ||||
14113 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | ||||
14114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14115 | /* end confdefs.h. */ | ||||
14116 | |||||
14117 | int | ||||
14118 | main () | ||||
14119 | { | ||||
14120 | |||||
14121 | __asm__ __volatile__ ("movq %rcx, %rax"); | ||||
14122 | |||||
14123 | ; | ||||
14124 | return 0; | ||||
14125 | } | ||||
14126 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14127 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14128 | have_gcc_asm_for_x64=yes |
14129 | else | ||||
14130 | have_gcc_asm_for_x64=no | ||||
14131 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14132 | rm -f core conftest.err conftest.$ac_objext \ |
14133 | conftest$ac_exeext conftest.$ac_ext | ||||
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
14135 | $as_echo "$have_gcc_asm_for_x64" >&6; } | ||||
14136 | if test "$have_gcc_asm_for_x64" = yes | ||||
14137 | then | ||||
14138 | |||||
14139 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | ||||
14140 | |||||
14141 | fi | ||||
14142 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14143 | # ************************************************** |
14144 | # * Check for various properties of floating point * | ||||
14145 | # ************************************************** | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14146 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
14148 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14149 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14150 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14151 | else |
14152 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14153 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14154 | ac_cv_little_endian_double=no |
14155 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14157 | /* end confdefs.h. */ |
14158 | |||||
14159 | #include <string.h> | ||||
14160 | int main() { | ||||
14161 | double x = 9006104071832581.0; | ||||
14162 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | ||||
14163 | return 0; | ||||
14164 | else | ||||
14165 | return 1; | ||||
14166 | } | ||||
14167 | |||||
14168 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14169 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14170 | ac_cv_little_endian_double=yes |
14171 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14172 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14173 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14175 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14176 | fi |
14177 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14178 | fi |
14179 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
14181 | $as_echo "$ac_cv_little_endian_double" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14182 | if test "$ac_cv_little_endian_double" = yes |
14183 | then | ||||
14184 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14185 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14186 | |
14187 | fi | ||||
14188 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
14190 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14191 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14192 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14193 | else |
14194 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14195 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14196 | ac_cv_big_endian_double=no |
14197 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14199 | /* end confdefs.h. */ |
14200 | |||||
14201 | #include <string.h> | ||||
14202 | int main() { | ||||
14203 | double x = 9006104071832581.0; | ||||
14204 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | ||||
14205 | return 0; | ||||
14206 | else | ||||
14207 | return 1; | ||||
14208 | } | ||||
14209 | |||||
14210 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14211 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14212 | ac_cv_big_endian_double=yes |
14213 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14214 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14215 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14216 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14217 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14218 | fi |
14219 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14220 | fi |
14221 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
14223 | $as_echo "$ac_cv_big_endian_double" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14224 | if test "$ac_cv_big_endian_double" = yes |
14225 | then | ||||
14226 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14227 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14228 | |
14229 | fi | ||||
14230 | |||||
14231 | # Some ARM platforms use a mixed-endian representation for doubles. | ||||
14232 | # While Python doesn't currently have full support for these platforms | ||||
14233 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | ||||
14234 | # conversions work. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
14236 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14237 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14238 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14239 | else |
14240 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14241 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14242 | ac_cv_mixed_endian_double=no |
14243 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14245 | /* end confdefs.h. */ |
14246 | |||||
14247 | #include <string.h> | ||||
14248 | int main() { | ||||
14249 | double x = 9006104071832581.0; | ||||
14250 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | ||||
14251 | return 0; | ||||
14252 | else | ||||
14253 | return 1; | ||||
14254 | } | ||||
14255 | |||||
14256 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14257 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14258 | ac_cv_mixed_endian_double=yes |
14259 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14260 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14261 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14263 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14264 | fi |
14265 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14266 | fi |
14267 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
14269 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14270 | if test "$ac_cv_mixed_endian_double" = yes |
14271 | then | ||||
14272 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14273 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14274 | |
14275 | fi | ||||
14276 | |||||
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 | [diff] [blame] | 14277 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14278 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 | [diff] [blame] | 14279 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14280 | # 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] | 14281 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14282 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14283 | |
14284 | # This inline assembler syntax may also work for suncc and icc, | ||||
14285 | # so we try it on all platforms. | ||||
14286 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
14288 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | ||||
14289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14290 | /* end confdefs.h. */ |
14291 | |||||
14292 | int | ||||
14293 | main () | ||||
14294 | { | ||||
14295 | |||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14296 | unsigned short cw; |
14297 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | ||||
14298 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14299 | |
14300 | ; | ||||
14301 | return 0; | ||||
14302 | } | ||||
14303 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14304 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14305 | have_gcc_asm_for_x87=yes |
14306 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14307 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14308 | fi |
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14309 | rm -f core conftest.err conftest.$ac_objext \ |
14310 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
14312 | $as_echo "$have_gcc_asm_for_x87" >&6; } | ||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14313 | if test "$have_gcc_asm_for_x87" = yes |
14314 | then | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14315 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14316 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14317 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14319 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
14321 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | ||||
14322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14323 | /* end confdefs.h. */ | ||||
14324 | |||||
14325 | int | ||||
14326 | main () | ||||
14327 | { | ||||
14328 | |||||
14329 | unsigned int fpcr; | ||||
14330 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | ||||
14331 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | ||||
14332 | |||||
14333 | ; | ||||
14334 | return 0; | ||||
14335 | } | ||||
14336 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14337 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14338 | have_gcc_asm_for_mc68881=yes |
14339 | else | ||||
14340 | have_gcc_asm_for_mc68881=no | ||||
14341 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14342 | rm -f core conftest.err conftest.$ac_objext \ |
14343 | conftest$ac_exeext conftest.$ac_ext | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
14345 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | ||||
14346 | if test "$have_gcc_asm_for_mc68881" = yes | ||||
14347 | then | ||||
14348 | |||||
14349 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | ||||
14350 | |||||
14351 | fi | ||||
14352 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14353 | # Detect whether system arithmetic is subject to x87-style double |
14354 | # rounding issues. The result of this test has little meaning on non | ||||
14355 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding | ||||
14356 | # mode is round-to-nearest and double rounding issues are present, and | ||||
14357 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
14359 | $as_echo_n "checking for x87-style double rounding... " >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14360 | # $BASECFLAGS may affect the result |
14361 | ac_save_cc="$CC" | ||||
14362 | CC="$CC $BASECFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14363 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14364 | ac_cv_x87_double_rounding=no |
14365 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14367 | /* end confdefs.h. */ |
14368 | |||||
14369 | #include <stdlib.h> | ||||
14370 | #include <math.h> | ||||
14371 | int main() { | ||||
14372 | volatile double x, y, z; | ||||
14373 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | ||||
14374 | x = 0.99999999999999989; /* 1-2**-53 */ | ||||
14375 | y = 1./x; | ||||
14376 | if (y != 1.) | ||||
14377 | exit(0); | ||||
14378 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | ||||
14379 | x = 1e16; | ||||
14380 | y = 2.99999; | ||||
14381 | z = x + y; | ||||
14382 | if (z != 1e16+4.) | ||||
14383 | exit(0); | ||||
14384 | /* both tests show evidence of double rounding */ | ||||
14385 | exit(1); | ||||
14386 | } | ||||
14387 | |||||
14388 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14389 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14390 | ac_cv_x87_double_rounding=no |
14391 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14392 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14393 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14394 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14395 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14396 | fi |
14397 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14398 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
14400 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14401 | if test "$ac_cv_x87_double_rounding" = yes |
14402 | then | ||||
14403 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14404 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14405 | |
14406 | fi | ||||
14407 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14408 | # ************************************ |
14409 | # * Check for mathematical functions * | ||||
14410 | # ************************************ | ||||
14411 | |||||
14412 | LIBS_SAVE=$LIBS | ||||
14413 | LIBS="$LIBS $LIBM" | ||||
14414 | |||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14415 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
14416 | do : | ||||
14417 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14418 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14419 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14420 | cat >>confdefs.h <<_ACEOF |
14421 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14422 | _ACEOF | ||||
14423 | |||||
14424 | fi | ||||
14425 | done | ||||
14426 | |||||
Victor Stinner | 8f9f8d6 | 2011-05-09 10:45:41 | [diff] [blame] | 14427 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14428 | do : |
14429 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14430 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14431 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14432 | cat >>confdefs.h <<_ACEOF |
14433 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14434 | _ACEOF | ||||
14435 | |||||
14436 | fi | ||||
14437 | done | ||||
14438 | |||||
14439 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | ||||
14440 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14441 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14442 | ac_have_decl=1 |
14443 | else | ||||
14444 | ac_have_decl=0 | ||||
14445 | fi | ||||
14446 | |||||
14447 | cat >>confdefs.h <<_ACEOF | ||||
14448 | #define HAVE_DECL_ISINF $ac_have_decl | ||||
14449 | _ACEOF | ||||
14450 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | ||||
14451 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14452 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14453 | ac_have_decl=1 |
14454 | else | ||||
14455 | ac_have_decl=0 | ||||
14456 | fi | ||||
14457 | |||||
14458 | cat >>confdefs.h <<_ACEOF | ||||
14459 | #define HAVE_DECL_ISNAN $ac_have_decl | ||||
14460 | _ACEOF | ||||
14461 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | ||||
14462 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14463 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14464 | ac_have_decl=1 |
14465 | else | ||||
14466 | ac_have_decl=0 | ||||
14467 | fi | ||||
14468 | |||||
14469 | cat >>confdefs.h <<_ACEOF | ||||
14470 | #define HAVE_DECL_ISFINITE $ac_have_decl | ||||
14471 | _ACEOF | ||||
14472 | |||||
14473 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14474 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
14475 | # -0. on some architectures. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
14477 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14478 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14479 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14480 | else |
14481 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14482 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14483 | ac_cv_tanh_preserves_zero_sign=no |
14484 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14486 | /* end confdefs.h. */ |
14487 | |||||
14488 | #include <math.h> | ||||
14489 | #include <stdlib.h> | ||||
14490 | int main() { | ||||
14491 | /* return 0 if either negative zeros don't exist | ||||
14492 | on this platform or if negative zeros exist | ||||
14493 | and tanh(-0.) == -0. */ | ||||
14494 | if (atan2(0., -1.) == atan2(-0., -1.) || | ||||
14495 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | ||||
14496 | else exit(1); | ||||
14497 | } | ||||
14498 | |||||
14499 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14500 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14501 | ac_cv_tanh_preserves_zero_sign=yes |
14502 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14503 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14506 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14507 | fi |
14508 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14509 | fi |
14510 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
14512 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14513 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
14514 | then | ||||
14515 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14516 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14517 | |
14518 | fi | ||||
14519 | |||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14520 | if test "$ac_cv_func_log1p" = yes |
14521 | then | ||||
14522 | # On some versions of AIX, log1p(-0.) returns 0. instead of | ||||
14523 | # -0. See issue #9920. | ||||
14524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | ||||
14525 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14526 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14527 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14528 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14529 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14530 | if test "$cross_compiling" = yes; then : |
14531 | ac_cv_log1p_drops_zero_sign=no | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14532 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14534 | /* end confdefs.h. */ | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14535 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14536 | #include <math.h> |
14537 | #include <stdlib.h> | ||||
14538 | int main() { | ||||
14539 | /* Fail if the signs of log1p(-0.) and -0. can be | ||||
14540 | distinguished. */ | ||||
14541 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | ||||
14542 | return 0; | ||||
14543 | else | ||||
14544 | return 1; | ||||
14545 | } | ||||
14546 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14547 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14548 | if ac_fn_c_try_run "$LINENO"; then : |
14549 | ac_cv_log1p_drops_zero_sign=no | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14550 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14551 | ac_cv_log1p_drops_zero_sign=yes |
14552 | fi | ||||
14553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
14554 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14555 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14556 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14557 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14558 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
14560 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | ||||
14561 | fi | ||||
14562 | if test "$ac_cv_log1p_drops_zero_sign" = yes | ||||
14563 | then | ||||
14564 | |||||
14565 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | ||||
14566 | |||||
14567 | fi | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14568 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 | [diff] [blame] | 14569 | LIBS=$LIBS_SAVE |
14570 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14571 | # For multiprocessing module, check that sem_open |
14572 | # actually works. For FreeBSD versions <= 7.2, | ||||
14573 | # the kernel module that provides POSIX semaphores | ||||
14574 | # isn't loaded by default, so an attempt to call | ||||
14575 | # sem_open results in a 'Signal 12' error. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
14577 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14578 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14579 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14580 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14581 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14582 | ac_cv_posix_semaphores_enabled=yes |
14583 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14585 | /* end confdefs.h. */ |
14586 | |||||
14587 | #include <unistd.h> | ||||
14588 | #include <fcntl.h> | ||||
14589 | #include <stdio.h> | ||||
14590 | #include <semaphore.h> | ||||
14591 | #include <sys/stat.h> | ||||
14592 | |||||
14593 | int main(void) { | ||||
14594 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | ||||
14595 | if (a == SEM_FAILED) { | ||||
14596 | perror("sem_open"); | ||||
14597 | return 1; | ||||
14598 | } | ||||
14599 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14600 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14601 | return 0; |
14602 | } | ||||
14603 | |||||
14604 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14605 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14606 | ac_cv_posix_semaphores_enabled=yes |
14607 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14608 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14609 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14610 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14611 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14612 | fi |
14613 | |||||
14614 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14615 | fi |
14616 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
14618 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14619 | if test $ac_cv_posix_semaphores_enabled = no |
14620 | then | ||||
14621 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14622 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14623 | |
14624 | fi | ||||
14625 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14626 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
14628 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14629 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14630 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14631 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14632 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14633 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14634 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14636 | /* end confdefs.h. */ |
14637 | |||||
14638 | #include <unistd.h> | ||||
14639 | #include <fcntl.h> | ||||
14640 | #include <stdio.h> | ||||
14641 | #include <semaphore.h> | ||||
14642 | #include <sys/stat.h> | ||||
14643 | |||||
14644 | int main(void){ | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14645 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14646 | int count; |
14647 | int res; | ||||
14648 | if(a==SEM_FAILED){ | ||||
14649 | perror("sem_open"); | ||||
14650 | return 1; | ||||
14651 | |||||
14652 | } | ||||
14653 | res = sem_getvalue(a, &count); | ||||
14654 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14655 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14656 | return res==-1 ? 1 : 0; |
14657 | } | ||||
14658 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14659 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14660 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14661 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14662 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14663 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 14664 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14665 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14666 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 14667 | fi |
14668 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 14669 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14670 | fi |
14671 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
14673 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14674 | if test $ac_cv_broken_sem_getvalue = yes |
14675 | then | ||||
14676 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14677 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14678 | |
14679 | fi | ||||
14680 | |||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 06:44:44 | [diff] [blame] | 14681 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
14682 | " | ||||
14683 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | ||||
14684 | ac_have_decl=1 | ||||
14685 | else | ||||
14686 | ac_have_decl=0 | ||||
14687 | fi | ||||
14688 | |||||
14689 | cat >>confdefs.h <<_ACEOF | ||||
14690 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | ||||
14691 | _ACEOF | ||||
14692 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||||
14693 | " | ||||
14694 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||||
14695 | ac_have_decl=1 | ||||
14696 | else | ||||
14697 | ac_have_decl=0 | ||||
14698 | fi | ||||
14699 | |||||
14700 | cat >>confdefs.h <<_ACEOF | ||||
14701 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | ||||
14702 | _ACEOF | ||||
14703 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | ||||
14704 | " | ||||
14705 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | ||||
14706 | ac_have_decl=1 | ||||
14707 | else | ||||
14708 | ac_have_decl=0 | ||||
14709 | fi | ||||
14710 | |||||
14711 | cat >>confdefs.h <<_ACEOF | ||||
14712 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | ||||
14713 | _ACEOF | ||||
14714 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | ||||
14715 | " | ||||
14716 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | ||||
14717 | ac_have_decl=1 | ||||
14718 | else | ||||
14719 | ac_have_decl=0 | ||||
14720 | fi | ||||
14721 | |||||
14722 | cat >>confdefs.h <<_ACEOF | ||||
14723 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | ||||
14724 | _ACEOF | ||||
14725 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | ||||
14726 | " | ||||
14727 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | ||||
14728 | ac_have_decl=1 | ||||
14729 | else | ||||
14730 | ac_have_decl=0 | ||||
14731 | fi | ||||
14732 | |||||
14733 | cat >>confdefs.h <<_ACEOF | ||||
14734 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | ||||
14735 | _ACEOF | ||||
14736 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | ||||
14737 | " | ||||
14738 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | ||||
14739 | ac_have_decl=1 | ||||
14740 | else | ||||
14741 | ac_have_decl=0 | ||||
14742 | fi | ||||
14743 | |||||
14744 | cat >>confdefs.h <<_ACEOF | ||||
14745 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | ||||
14746 | _ACEOF | ||||
14747 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | ||||
14748 | " | ||||
14749 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | ||||
14750 | ac_have_decl=1 | ||||
14751 | else | ||||
14752 | ac_have_decl=0 | ||||
14753 | fi | ||||
14754 | |||||
14755 | cat >>confdefs.h <<_ACEOF | ||||
14756 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | ||||
14757 | _ACEOF | ||||
14758 | |||||
14759 | |||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14760 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
14762 | $as_echo_n "checking digit size for Python's longs... " >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14763 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14764 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14765 | enableval=$enable_big_digits; case $enable_big_digits in |
14766 | yes) | ||||
14767 | enable_big_digits=30 ;; | ||||
14768 | no) | ||||
14769 | enable_big_digits=15 ;; | ||||
14770 | 15|30) | ||||
14771 | ;; | ||||
14772 | *) | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14773 | 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] | 14774 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
14776 | $as_echo "$enable_big_digits" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14777 | |
14778 | cat >>confdefs.h <<_ACEOF | ||||
14779 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | ||||
14780 | _ACEOF | ||||
14781 | |||||
14782 | |||||
14783 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
14785 | $as_echo "no value specified" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14786 | fi |
14787 | |||||
14788 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14789 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14790 | 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] | 14791 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14792 | |
14793 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14794 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14795 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 14796 | wchar_h="yes" |
14797 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14799 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14800 | |
14801 | fi | ||||
14802 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14804 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14805 | # determine wchar_t size |
14806 | if test "$wchar_h" = yes | ||||
14807 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14808 | # 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] | 14809 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
14810 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
14811 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
14813 | $as_echo_n "checking size of wchar_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14814 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14815 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14816 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14817 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
14818 | "; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14820 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14821 | if test "$ac_cv_type_wchar_t" = yes; then |
14822 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
14823 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14824 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14825 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14826 | else |
14827 | ac_cv_sizeof_wchar_t=0 | ||||
14828 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14829 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14831 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
14833 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14834 | |
14835 | |||||
14836 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14837 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14838 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14839 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14840 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14841 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14842 | fi |
14843 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
14845 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14846 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14848 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14849 | |
14850 | #include <tcl.h> | ||||
14851 | #if TCL_UTF_MAX != 6 | ||||
14852 | # error "NOT UCS4_TCL" | ||||
14853 | #endif | ||||
14854 | int | ||||
14855 | main () | ||||
14856 | { | ||||
14857 | |||||
14858 | ; | ||||
14859 | return 0; | ||||
14860 | } | ||||
14861 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14862 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14863 | |
14864 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14865 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14866 | |
14867 | have_ucs4_tcl=yes | ||||
14868 | |||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14869 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
14872 | $as_echo "$have_ucs4_tcl" >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14873 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14874 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14875 | if test "$wchar_h" = yes |
14876 | then | ||||
14877 | # check whether wchar_t is signed or not | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
14879 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14880 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14881 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14882 | else |
14883 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14884 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14885 | ac_cv_wchar_t_signed=yes |
14886 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14888 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14889 | |
14890 | #include <wchar.h> | ||||
14891 | int main() | ||||
14892 | { | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 14893 | /* Success: exit code 0 */ |
14894 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14895 | } |
14896 | |||||
14897 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14898 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14899 | ac_cv_wchar_t_signed=yes |
14900 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14901 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14902 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14903 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14904 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14905 | fi |
14906 | |||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14907 | fi |
14908 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
14910 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14911 | fi |
14912 | |||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 14913 | # 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] | 14914 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 | [diff] [blame] | 14915 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 14916 | then |
Martin v. Löwis | d63a3b8 | 2011-09-28 05:41:54 | [diff] [blame] | 14917 | HAVE_USABLE_WCHAR_T="yes" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14918 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14919 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14920 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 14921 | else |
Martin v. Löwis | d63a3b8 | 2011-09-28 05:41:54 | [diff] [blame] | 14922 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14923 | fi |
Martin v. Löwis | d63a3b8 | 2011-09-28 05:41:54 | [diff] [blame] | 14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 |
14925 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14926 | |
14927 | # check for endianness | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
14929 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14930 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14931 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14932 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14933 | ac_cv_c_bigendian=unknown |
14934 | # See if we're dealing with a universal compiler. | ||||
14935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14936 | /* end confdefs.h. */ | ||||
14937 | #ifndef __APPLE_CC__ | ||||
14938 | not a universal capable compiler | ||||
14939 | #endif | ||||
14940 | typedef int dummy; | ||||
14941 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14942 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14943 | if ac_fn_c_try_compile "$LINENO"; then : |
14944 | |||||
14945 | # Check for potential -arch flags. It is not universal unless | ||||
14946 | # there are at least two -arch flags with different values. | ||||
14947 | ac_arch= | ||||
14948 | ac_prev= | ||||
14949 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||||
14950 | if test -n "$ac_prev"; then | ||||
14951 | case $ac_word in | ||||
14952 | i?86 | x86_64 | ppc | ppc64) | ||||
14953 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||||
14954 | ac_arch=$ac_word | ||||
14955 | else | ||||
14956 | ac_cv_c_bigendian=universal | ||||
14957 | break | ||||
14958 | fi | ||||
14959 | ;; | ||||
14960 | esac | ||||
14961 | ac_prev= | ||||
14962 | elif test "x$ac_word" = "x-arch"; then | ||||
14963 | ac_prev=arch | ||||
14964 | fi | ||||
14965 | done | ||||
14966 | fi | ||||
14967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
14968 | if test $ac_cv_c_bigendian = unknown; then | ||||
14969 | # See if sys/param.h defines the BYTE_ORDER macro. | ||||
14970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14971 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14972 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14973 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14975 | int |
14976 | main () | ||||
14977 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14978 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
14979 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||||
14980 | && LITTLE_ENDIAN) | ||||
14981 | bogus endian macros | ||||
14982 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14983 | |
14984 | ; | ||||
14985 | return 0; | ||||
14986 | } | ||||
14987 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14988 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14989 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14991 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14992 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14993 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14995 | int |
14996 | main () | ||||
14997 | { | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14998 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14999 | not big endian |
15000 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15001 | |
15002 | ; | ||||
15003 | return 0; | ||||
15004 | } | ||||
15005 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15006 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15007 | ac_cv_c_bigendian=yes |
15008 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15009 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15010 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15012 | fi |
15013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15014 | fi | ||||
15015 | if test $ac_cv_c_bigendian = unknown; then | ||||
15016 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||||
15017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15018 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15019 | #include <limits.h> |
15020 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15021 | int |
15022 | main () | ||||
15023 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15024 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15025 | bogus endian macros | ||||
15026 | #endif | ||||
15027 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15028 | ; |
15029 | return 0; | ||||
15030 | } | ||||
15031 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15032 | if ac_fn_c_try_compile "$LINENO"; then : |
15033 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||||
15034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15035 | /* end confdefs.h. */ | ||||
15036 | #include <limits.h> | ||||
15037 | |||||
15038 | int | ||||
15039 | main () | ||||
15040 | { | ||||
15041 | #ifndef _BIG_ENDIAN | ||||
15042 | not big endian | ||||
15043 | #endif | ||||
15044 | |||||
15045 | ; | ||||
15046 | return 0; | ||||
15047 | } | ||||
15048 | _ACEOF | ||||
15049 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15050 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 15051 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15052 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15053 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15055 | fi | ||||
15056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15057 | fi | ||||
15058 | if test $ac_cv_c_bigendian = unknown; then | ||||
15059 | # Compile a test program. | ||||
15060 | if test "$cross_compiling" = yes; then : | ||||
15061 | # Try to guess by grepping values from an object file. | ||||
15062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15063 | /* end confdefs.h. */ | ||||
15064 | short int ascii_mm[] = | ||||
15065 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||||
15066 | short int ascii_ii[] = | ||||
15067 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||||
15068 | int use_ascii (int i) { | ||||
15069 | return ascii_mm[i] + ascii_ii[i]; | ||||
15070 | } | ||||
15071 | short int ebcdic_ii[] = | ||||
15072 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||||
15073 | short int ebcdic_mm[] = | ||||
15074 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||||
15075 | int use_ebcdic (int i) { | ||||
15076 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||||
15077 | } | ||||
15078 | extern int foo; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15079 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15080 | int |
15081 | main () | ||||
15082 | { | ||||
15083 | return use_ascii (foo) == use_ebcdic (foo); | ||||
15084 | ; | ||||
15085 | return 0; | ||||
15086 | } | ||||
15087 | _ACEOF | ||||
15088 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
15089 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||||
15090 | ac_cv_c_bigendian=yes | ||||
15091 | fi | ||||
15092 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||||
15093 | if test "$ac_cv_c_bigendian" = unknown; then | ||||
15094 | ac_cv_c_bigendian=no | ||||
15095 | else | ||||
15096 | # finding both strings is unlikely to happen, but who knows? | ||||
15097 | ac_cv_c_bigendian=unknown | ||||
15098 | fi | ||||
15099 | fi | ||||
15100 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15102 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15104 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15105 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15106 | int |
15107 | main () | ||||
15108 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15109 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15110 | /* Are we little or big endian? From Harbison&Steele. */ |
15111 | union | ||||
15112 | { | ||||
15113 | long int l; | ||||
15114 | char c[sizeof (long int)]; | ||||
15115 | } u; | ||||
15116 | u.l = 1; | ||||
15117 | return u.c[sizeof (long int) - 1] == 1; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15118 | |
15119 | ; | ||||
15120 | return 0; | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15121 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15122 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15123 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15124 | ac_cv_c_bigendian=no |
15125 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15126 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15127 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15128 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15129 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15130 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15131 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15133 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15135 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||||
15136 | case $ac_cv_c_bigendian in #( | ||||
15137 | yes) | ||||
15138 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||||
15139 | ;; #( | ||||
15140 | no) | ||||
15141 | ;; #( | ||||
15142 | universal) | ||||
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 15143 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15144 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 15145 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15146 | ;; #( |
15147 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15148 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15149 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15150 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15152 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15153 | # ABI version string for Python extension modules. This appears between the |
15154 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated | ||||
15155 | # from the following attributes which affect the ABI of this Python build (in | ||||
15156 | # this order): | ||||
15157 | # | ||||
15158 | # * The Python implementation (always 'cpython-' for us) | ||||
15159 | # * The major and minor version numbers | ||||
15160 | # * --with-pydebug (adds a 'd') | ||||
15161 | # * --with-pymalloc (adds a 'm') | ||||
15162 | # * --with-wide-unicode (adds a 'u') | ||||
15163 | # | ||||
15164 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | ||||
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 15165 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
15166 | # libraries would be named 'foo.cpython-32dmu.so'. | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15167 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 15168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
15169 | $as_echo_n "checking ABIFLAGS... " >&6; } | ||||
15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | ||||
15171 | $as_echo "$ABIFLAGS" >&6; } | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
15173 | $as_echo_n "checking SOABI... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 15174 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
15176 | $as_echo "$SOABI" >&6; } | ||||
15177 | |||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 15178 | |
15179 | case $ac_sys_system in | ||||
Ned Deily | 3b81248 | 2015-04-16 00:11:47 | [diff] [blame] | 15180 | Linux*|GNU*|Darwin) |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 15181 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
15182 | *) | ||||
15183 | EXT_SUFFIX=${SHLIB_SUFFIX};; | ||||
15184 | esac | ||||
15185 | |||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 15186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
15187 | $as_echo_n "checking LDVERSION... " >&6; } | ||||
15188 | LDVERSION='$(VERSION)$(ABIFLAGS)' | ||||
15189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | ||||
15190 | $as_echo "$LDVERSION" >&6; } | ||||
15191 | |||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 15192 | |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 15193 | if test x$PLATFORM_TRIPLET = x; then |
15194 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | ||||
15195 | else | ||||
15196 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||||
15197 | fi | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 15198 | |
15199 | |||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15200 | # Check whether right shifting a negative integer extends the sign bit |
15201 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
15203 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15204 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15205 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15207 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15208 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 | [diff] [blame] | 15209 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15210 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15212 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15213 | |
15214 | int main() | ||||
15215 | { | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15216 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15217 | } |
15218 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15219 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15220 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15221 | ac_cv_rshift_extends_sign=yes |
15222 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15223 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15224 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15225 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15226 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15227 | fi |
15228 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15229 | fi |
15230 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
15232 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15233 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15234 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15235 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15236 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15237 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15238 | fi |
15239 | |||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15240 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
15242 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15243 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15244 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15246 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15248 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15249 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15250 | int |
15251 | main () | ||||
15252 | { | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15253 | |
15254 | FILE *f = fopen("/dev/null", "r"); | ||||
15255 | flockfile(f); | ||||
15256 | getc_unlocked(f); | ||||
15257 | funlockfile(f); | ||||
15258 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15259 | ; |
15260 | return 0; | ||||
15261 | } | ||||
15262 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15263 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15264 | ac_cv_have_getc_unlocked=yes |
15265 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15266 | ac_cv_have_getc_unlocked=no |
15267 | fi | ||||
15268 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15269 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15270 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15271 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
15273 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15274 | if test "$ac_cv_have_getc_unlocked" = yes |
15275 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15276 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15277 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15278 | |
15279 | fi | ||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15280 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15281 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 | [diff] [blame] | 15282 | # save the value of LIBS so we don't actually link Python with readline |
15283 | LIBS_no_readline=$LIBS | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15284 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15285 | # On some systems we need to link readline to a termcap compatible |
15286 | # library. NOTE: Keep the precedence of listed libraries synchronised | ||||
15287 | # with setup.py. | ||||
15288 | py_cv_lib_readline=no | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
15290 | $as_echo_n "checking how to link readline libs... " >&6; } | ||||
doko@ubuntu.com | f2967c7 | 2012-06-30 15:32:23 | [diff] [blame] | 15291 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15292 | if test -z "$py_libtermcap"; then |
15293 | READLINE_LIBS="-lreadline" | ||||
15294 | else | ||||
15295 | READLINE_LIBS="-lreadline -l$py_libtermcap" | ||||
15296 | fi | ||||
15297 | LIBS="$READLINE_LIBS $LIBS_no_readline" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15299 | /* end confdefs.h. */ |
15300 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15301 | /* Override any GCC internal prototype to avoid an error. |
15302 | Use char because int might match the return type of a GCC | ||||
15303 | builtin and then its argument prototype would still apply. */ | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15304 | #ifdef __cplusplus |
15305 | extern "C" | ||||
15306 | #endif | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15307 | char readline (); |
15308 | int | ||||
15309 | main () | ||||
15310 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15311 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15312 | ; |
15313 | return 0; | ||||
15314 | } | ||||
15315 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15316 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15317 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15318 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15319 | rm -f core conftest.err conftest.$ac_objext \ |
15320 | conftest$ac_exeext conftest.$ac_ext | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15321 | if test $py_cv_lib_readline = yes; then |
15322 | break | ||||
15323 | fi | ||||
15324 | done | ||||
15325 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | ||||
15326 | #AC_SUBST([READLINE_LIBS]) | ||||
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 | [diff] [blame] | 15327 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
15329 | $as_echo "none" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15330 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
15332 | $as_echo "$READLINE_LIBS" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15333 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15334 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15335 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15336 | fi |
15337 | |||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15338 | # check for readline 2.1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
15340 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15341 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15342 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15343 | else |
15344 | ac_check_lib_save_LIBS=$LIBS | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15345 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15347 | /* end confdefs.h. */ |
15348 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15349 | /* Override any GCC internal prototype to avoid an error. |
15350 | Use char because int might match the return type of a GCC | ||||
15351 | builtin and then its argument prototype would still apply. */ | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15352 | #ifdef __cplusplus |
15353 | extern "C" | ||||
15354 | #endif | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15355 | char rl_callback_handler_install (); |
15356 | int | ||||
15357 | main () | ||||
15358 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15359 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15360 | ; |
15361 | return 0; | ||||
15362 | } | ||||
15363 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15364 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15365 | ac_cv_lib_readline_rl_callback_handler_install=yes |
15366 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15367 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15368 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15369 | rm -f core conftest.err conftest.$ac_objext \ |
15370 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15371 | LIBS=$ac_check_lib_save_LIBS |
15372 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
15374 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15375 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15376 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15377 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15378 | |
15379 | fi | ||||
15380 | |||||
15381 | |||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15382 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15384 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15385 | #include <readline/readline.h> |
15386 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15387 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15388 | have_readline=yes |
15389 | else | ||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15390 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 15391 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15392 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15393 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15394 | if test $have_readline = yes |
15395 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15397 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15398 | #include <readline/readline.h> |
15399 | |||||
15400 | _ACEOF | ||||
15401 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15402 | $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15403 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15404 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15405 | |
15406 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15407 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15408 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15410 | /* end confdefs.h. */ |
15411 | #include <readline/readline.h> | ||||
15412 | |||||
15413 | _ACEOF | ||||
15414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15415 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15416 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15417 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15418 | |
15419 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15420 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15421 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15422 | fi |
15423 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15424 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
15426 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15427 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15428 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15430 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15431 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15433 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15434 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15435 | /* Override any GCC internal prototype to avoid an error. |
15436 | Use char because int might match the return type of a GCC | ||||
15437 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15438 | #ifdef __cplusplus |
15439 | extern "C" | ||||
15440 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15441 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15442 | int |
15443 | main () | ||||
15444 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15445 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15446 | ; |
15447 | return 0; | ||||
15448 | } | ||||
15449 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15450 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15451 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15452 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15453 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15454 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15455 | rm -f core conftest.err conftest.$ac_objext \ |
15456 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15457 | LIBS=$ac_check_lib_save_LIBS |
15458 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
15460 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15461 | 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] | 15462 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15463 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15464 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15465 | fi |
15466 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15467 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15468 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
15470 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15471 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15472 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15473 | else |
15474 | ac_check_lib_save_LIBS=$LIBS | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15475 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15477 | /* end confdefs.h. */ |
15478 | |||||
15479 | /* Override any GCC internal prototype to avoid an error. | ||||
15480 | Use char because int might match the return type of a GCC | ||||
15481 | builtin and then its argument prototype would still apply. */ | ||||
15482 | #ifdef __cplusplus | ||||
15483 | extern "C" | ||||
15484 | #endif | ||||
15485 | char rl_completion_display_matches_hook (); | ||||
15486 | int | ||||
15487 | main () | ||||
15488 | { | ||||
15489 | return rl_completion_display_matches_hook (); | ||||
15490 | ; | ||||
15491 | return 0; | ||||
15492 | } | ||||
15493 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15494 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15495 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
15496 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15497 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15498 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15499 | rm -f core conftest.err conftest.$ac_objext \ |
15500 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15501 | LIBS=$ac_check_lib_save_LIBS |
15502 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
15504 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15505 | 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] | 15506 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15507 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15508 | |
15509 | fi | ||||
15510 | |||||
15511 | |||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 | [diff] [blame] | 15512 | # also in 4.0, but not in editline |
15513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | ||||
15514 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | ||||
15515 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | ||||
15516 | $as_echo_n "(cached) " >&6 | ||||
15517 | else | ||||
15518 | ac_check_lib_save_LIBS=$LIBS | ||||
15519 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15521 | /* end confdefs.h. */ | ||||
15522 | |||||
15523 | /* Override any GCC internal prototype to avoid an error. | ||||
15524 | Use char because int might match the return type of a GCC | ||||
15525 | builtin and then its argument prototype would still apply. */ | ||||
15526 | #ifdef __cplusplus | ||||
15527 | extern "C" | ||||
15528 | #endif | ||||
15529 | char rl_resize_terminal (); | ||||
15530 | int | ||||
15531 | main () | ||||
15532 | { | ||||
15533 | return rl_resize_terminal (); | ||||
15534 | ; | ||||
15535 | return 0; | ||||
15536 | } | ||||
15537 | _ACEOF | ||||
15538 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15539 | ac_cv_lib_readline_rl_resize_terminal=yes | ||||
15540 | else | ||||
15541 | ac_cv_lib_readline_rl_resize_terminal=no | ||||
15542 | fi | ||||
15543 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15544 | conftest$ac_exeext conftest.$ac_ext | ||||
15545 | LIBS=$ac_check_lib_save_LIBS | ||||
15546 | fi | ||||
15547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | ||||
15548 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | ||||
15549 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | ||||
15550 | |||||
15551 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | ||||
15552 | |||||
15553 | fi | ||||
15554 | |||||
15555 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15556 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
15558 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15559 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15560 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15562 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15563 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15565 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15566 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15567 | /* Override any GCC internal prototype to avoid an error. |
15568 | Use char because int might match the return type of a GCC | ||||
15569 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15570 | #ifdef __cplusplus |
15571 | extern "C" | ||||
15572 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15573 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15574 | int |
15575 | main () | ||||
15576 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15577 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15578 | ; |
15579 | return 0; | ||||
15580 | } | ||||
15581 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15582 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15583 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15584 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15585 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15586 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15587 | rm -f core conftest.err conftest.$ac_objext \ |
15588 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15589 | LIBS=$ac_check_lib_save_LIBS |
15590 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
15592 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15593 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15594 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15595 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15596 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15597 | fi |
15598 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 15599 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15600 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15602 | /* end confdefs.h. */ |
15603 | #include <readline/readline.h> | ||||
15604 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15605 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15606 | have_readline=yes |
15607 | else | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15608 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 15609 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15610 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15611 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15612 | if test $have_readline = yes |
15613 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15615 | /* end confdefs.h. */ |
15616 | #include <readline/readline.h> | ||||
15617 | |||||
15618 | _ACEOF | ||||
15619 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15620 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15621 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15622 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15623 | |
15624 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15625 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15626 | |
15627 | fi | ||||
15628 | |||||
Benjamin Peterson | d1e22ba | 2014-11-26 20:35:12 | [diff] [blame] | 15629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
15630 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | ||||
15631 | if ${ac_cv_lib_readline_append_history+:} false; then : | ||||
15632 | $as_echo_n "(cached) " >&6 | ||||
15633 | else | ||||
15634 | ac_check_lib_save_LIBS=$LIBS | ||||
15635 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15637 | /* end confdefs.h. */ | ||||
15638 | |||||
15639 | /* Override any GCC internal prototype to avoid an error. | ||||
15640 | Use char because int might match the return type of a GCC | ||||
15641 | builtin and then its argument prototype would still apply. */ | ||||
15642 | #ifdef __cplusplus | ||||
15643 | extern "C" | ||||
15644 | #endif | ||||
15645 | char append_history (); | ||||
15646 | int | ||||
15647 | main () | ||||
15648 | { | ||||
15649 | return append_history (); | ||||
15650 | ; | ||||
15651 | return 0; | ||||
15652 | } | ||||
15653 | _ACEOF | ||||
15654 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15655 | ac_cv_lib_readline_append_history=yes | ||||
15656 | else | ||||
15657 | ac_cv_lib_readline_append_history=no | ||||
15658 | fi | ||||
15659 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15660 | conftest$ac_exeext conftest.$ac_ext | ||||
15661 | LIBS=$ac_check_lib_save_LIBS | ||||
15662 | fi | ||||
15663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | ||||
15664 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | ||||
15665 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | ||||
15666 | |||||
15667 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | ||||
15668 | |||||
15669 | fi | ||||
15670 | |||||
15671 | |||||
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 | [diff] [blame] | 15672 | # End of readline checks: restore LIBS |
15673 | LIBS=$LIBS_no_readline | ||||
15674 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
15676 | $as_echo_n "checking for broken nice()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15677 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15678 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15680 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15681 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 | [diff] [blame] | 15682 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15683 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15685 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15686 | |
15687 | int main() | ||||
15688 | { | ||||
15689 | int val1 = nice(1); | ||||
15690 | if (val1 != -1 && val1 == nice(2)) | ||||
15691 | exit(0); | ||||
15692 | exit(1); | ||||
15693 | } | ||||
15694 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15695 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15696 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15697 | ac_cv_broken_nice=yes |
15698 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15699 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15700 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15701 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15702 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15703 | fi |
15704 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15705 | fi |
15706 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
15708 | $as_echo "$ac_cv_broken_nice" >&6; } | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15709 | if test "$ac_cv_broken_nice" = yes |
15710 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15711 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15712 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15713 | |
15714 | fi | ||||
15715 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
15717 | $as_echo_n "checking for broken poll()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15718 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15719 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15720 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15721 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15722 | ac_cv_broken_poll=no |
15723 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15725 | /* end confdefs.h. */ |
15726 | |||||
15727 | #include <poll.h> | ||||
15728 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15729 | int main() |
15730 | { | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15731 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15732 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15733 | |
15734 | close (42); | ||||
15735 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15736 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15737 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15738 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15739 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15740 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15741 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15742 | return 1; |
15743 | } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15744 | |
15745 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15746 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15747 | ac_cv_broken_poll=yes |
15748 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15749 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15750 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15751 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15752 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15753 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15754 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15755 | fi |
15756 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
15758 | $as_echo "$ac_cv_broken_poll" >&6; } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15759 | if test "$ac_cv_broken_poll" = yes |
15760 | then | ||||
15761 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15762 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15763 | |
15764 | fi | ||||
15765 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15766 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
15768 | $as_echo_n "checking for working tzset()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15769 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15770 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15771 | else |
15772 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15773 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15774 | ac_cv_working_tzset=no |
15775 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15777 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15778 | |
15779 | #include <stdlib.h> | ||||
15780 | #include <time.h> | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15781 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15782 | |
15783 | #if HAVE_TZNAME | ||||
15784 | extern char *tzname[]; | ||||
15785 | #endif | ||||
15786 | |||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15787 | int main() |
15788 | { | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15789 | /* Note that we need to ensure that not only does tzset(3) |
15790 | do 'something' with localtime, but it works as documented | ||||
15791 | in the library reference and as expected by the test suite. | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15792 | This includes making sure that tzname is set properly if |
15793 | tm->tm_zone does not exist since it is the alternative way | ||||
15794 | of getting timezone info. | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15795 | |
15796 | Red Hat 6.2 doesn't understand the southern hemisphere | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15797 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15798 | */ |
15799 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15800 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15801 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
15802 | |||||
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 | [diff] [blame] | 15803 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15804 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15805 | if (localtime(&groundhogday)->tm_hour != 0) |
15806 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15807 | #if HAVE_TZNAME |
15808 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ | ||||
15809 | if (strcmp(tzname[0], "UTC") || | ||||
15810 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | ||||
15811 | exit(1); | ||||
15812 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15813 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 | [diff] [blame] | 15814 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15815 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15816 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15817 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15818 | #if HAVE_TZNAME |
15819 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | ||||
15820 | exit(1); | ||||
15821 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15822 | |
15823 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | ||||
15824 | tzset(); | ||||
15825 | if (localtime(&groundhogday)->tm_hour != 11) | ||||
15826 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15827 | #if HAVE_TZNAME |
15828 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | ||||
15829 | exit(1); | ||||
15830 | #endif | ||||
15831 | |||||
15832 | #if HAVE_STRUCT_TM_TM_ZONE | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15833 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
15834 | exit(1); | ||||
15835 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | ||||
15836 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15837 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15838 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15839 | exit(0); |
15840 | } | ||||
15841 | |||||
15842 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15843 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15844 | ac_cv_working_tzset=yes |
15845 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15846 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15847 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15848 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15849 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15850 | fi |
15851 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15852 | fi |
15853 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
15855 | $as_echo "$ac_cv_working_tzset" >&6; } | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15856 | if test "$ac_cv_working_tzset" = yes |
15857 | then | ||||
15858 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15859 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15860 | |
15861 | fi | ||||
15862 | |||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15863 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
15865 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15866 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15867 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15868 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15870 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15871 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15872 | int |
15873 | main () | ||||
15874 | { | ||||
15875 | |||||
15876 | struct stat st; | ||||
15877 | st.st_mtim.tv_nsec = 1; | ||||
15878 | |||||
15879 | ; | ||||
15880 | return 0; | ||||
15881 | } | ||||
15882 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15883 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 | [diff] [blame] | 15884 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15885 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15886 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15887 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15889 | fi | ||||
15890 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
15892 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | ||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15893 | if test "$ac_cv_stat_tv_nsec" = yes |
15894 | then | ||||
15895 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15896 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15897 | |
15898 | fi | ||||
15899 | |||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15900 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
15902 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15903 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15904 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15905 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15907 | /* end confdefs.h. */ |
15908 | #include <sys/stat.h> | ||||
15909 | int | ||||
15910 | main () | ||||
15911 | { | ||||
15912 | |||||
15913 | struct stat st; | ||||
15914 | st.st_mtimespec.tv_nsec = 1; | ||||
15915 | |||||
15916 | ; | ||||
15917 | return 0; | ||||
15918 | } | ||||
15919 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15920 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15921 | ac_cv_stat_tv_nsec2=yes |
15922 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15923 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15924 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15926 | fi | ||||
15927 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
15929 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15930 | if test "$ac_cv_stat_tv_nsec2" = yes |
15931 | then | ||||
15932 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15933 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15934 | |
15935 | fi | ||||
15936 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 15937 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 01:06:42 | [diff] [blame] | 15938 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 15:04:14 | [diff] [blame] | 15939 | if test "$cross_compiling" = no; then |
15940 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||||
15941 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 15942 | |
15943 | for ac_header in curses.h ncurses.h | ||||
15944 | do : | ||||
15945 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
15946 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
15947 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
15948 | cat >>confdefs.h <<_ACEOF | ||||
15949 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
15950 | _ACEOF | ||||
15951 | |||||
15952 | fi | ||||
15953 | |||||
15954 | done | ||||
15955 | |||||
15956 | |||||
15957 | # On Solaris, term.h requires curses.h | ||||
15958 | for ac_header in term.h | ||||
15959 | do : | ||||
15960 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | ||||
15961 | #ifdef HAVE_CURSES_H | ||||
15962 | #include <curses.h> | ||||
15963 | #endif | ||||
15964 | |||||
15965 | " | ||||
15966 | if test "x$ac_cv_header_term_h" = xyes; then : | ||||
15967 | cat >>confdefs.h <<_ACEOF | ||||
15968 | #define HAVE_TERM_H 1 | ||||
15969 | _ACEOF | ||||
15970 | |||||
15971 | fi | ||||
15972 | |||||
15973 | done | ||||
15974 | |||||
15975 | |||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 15976 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
15978 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15979 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15980 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 15981 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15983 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 15984 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15985 | int |
15986 | main () | ||||
15987 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 15988 | |
15989 | int rtn; | ||||
15990 | rtn = mvwdelch(0,0,0); | ||||
15991 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15992 | ; |
15993 | return 0; | ||||
15994 | } | ||||
15995 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15996 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 15997 | ac_cv_mvwdelch_is_expression=yes |
15998 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15999 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16000 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16002 | fi | ||||
16003 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
16005 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16006 | |
16007 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||||
16008 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16009 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16010 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16011 | |
16012 | fi | ||||
16013 | |||||
Miss Islington (bot) | ff6ae4d | 2017-11-01 12:35:41 | [diff] [blame] | 16014 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
16015 | # structs since version 5.7. If the macro is defined as zero before including | ||||
16016 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | ||||
16017 | # configuration. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
16019 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16020 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16021 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16022 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 16024 | /* end confdefs.h. */ |
Miss Islington (bot) | ff6ae4d | 2017-11-01 12:35:41 | [diff] [blame] | 16025 | |
16026 | #define NCURSES_OPAQUE 0 | ||||
16027 | #include <curses.h> | ||||
16028 | |||||
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 | WINDOW *w; | ||||
16034 | w->_flags = 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_window_has_flags=yes |
16042 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16043 | ac_cv_window_has_flags=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_window_has_flags" >&5 |
16049 | $as_echo "$ac_cv_window_has_flags" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16050 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16051 | |
16052 | if test "$ac_cv_window_has_flags" = yes | ||||
16053 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16054 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16055 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16056 | |
16057 | fi | ||||
16058 | |||||
Miss Islington (bot) | ff6ae4d | 2017-11-01 12:35:41 | [diff] [blame] | 16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
16060 | $as_echo_n "checking for is_pad... " >&6; } | ||||
16061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16062 | /* end confdefs.h. */ | ||||
16063 | #include <curses.h> | ||||
16064 | int | ||||
16065 | main () | ||||
16066 | { | ||||
16067 | |||||
16068 | #ifndef is_pad | ||||
16069 | void *x=is_pad | ||||
16070 | #endif | ||||
16071 | |||||
16072 | ; | ||||
16073 | return 0; | ||||
16074 | } | ||||
16075 | _ACEOF | ||||
16076 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16077 | |||||
16078 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h | ||||
16079 | |||||
16080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16081 | $as_echo "yes" >&6; } | ||||
16082 | else | ||||
16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16084 | $as_echo "no" >&6; } | ||||
16085 | |||||
16086 | fi | ||||
16087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16088 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
16090 | $as_echo_n "checking for is_term_resized... " >&6; } | ||||
16091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16092 | /* end confdefs.h. */ |
16093 | #include <curses.h> | ||||
16094 | int | ||||
16095 | main () | ||||
16096 | { | ||||
16097 | void *x=is_term_resized | ||||
16098 | ; | ||||
16099 | return 0; | ||||
16100 | } | ||||
16101 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16102 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16103 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16104 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16105 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16107 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16108 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16110 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16111 | |
16112 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16114 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
16116 | $as_echo_n "checking for resize_term... " >&6; } | ||||
16117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16118 | /* end confdefs.h. */ |
16119 | #include <curses.h> | ||||
16120 | int | ||||
16121 | main () | ||||
16122 | { | ||||
16123 | void *x=resize_term | ||||
16124 | ; | ||||
16125 | return 0; | ||||
16126 | } | ||||
16127 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16128 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16129 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16130 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16131 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16133 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16134 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16136 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16137 | |
16138 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16140 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
16142 | $as_echo_n "checking for resizeterm... " >&6; } | ||||
16143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16144 | /* end confdefs.h. */ |
16145 | #include <curses.h> | ||||
16146 | int | ||||
16147 | main () | ||||
16148 | { | ||||
16149 | void *x=resizeterm | ||||
16150 | ; | ||||
16151 | return 0; | ||||
16152 | } | ||||
16153 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16154 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16155 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16156 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16157 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16159 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16160 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16162 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16163 | |
16164 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Miss Islington (bot) | 5db3208 | 2017-10-31 12:33:09 | [diff] [blame] | 16166 | |
16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 | ||||
16168 | $as_echo_n "checking for immedok... " >&6; } | ||||
16169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16170 | /* end confdefs.h. */ | ||||
16171 | #include <curses.h> | ||||
16172 | int | ||||
16173 | main () | ||||
16174 | { | ||||
16175 | |||||
16176 | #ifndef immedok | ||||
16177 | void *x=immedok | ||||
16178 | #endif | ||||
16179 | |||||
16180 | ; | ||||
16181 | return 0; | ||||
16182 | } | ||||
16183 | _ACEOF | ||||
16184 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16185 | |||||
16186 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h | ||||
16187 | |||||
16188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16189 | $as_echo "yes" >&6; } | ||||
16190 | else | ||||
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16192 | $as_echo "no" >&6; } | ||||
16193 | |||||
16194 | fi | ||||
16195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16196 | |||||
16197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 | ||||
16198 | $as_echo_n "checking for syncok... " >&6; } | ||||
16199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16200 | /* end confdefs.h. */ | ||||
16201 | #include <curses.h> | ||||
16202 | int | ||||
16203 | main () | ||||
16204 | { | ||||
16205 | |||||
16206 | #ifndef syncok | ||||
16207 | void *x=syncok | ||||
16208 | #endif | ||||
16209 | |||||
16210 | ; | ||||
16211 | return 0; | ||||
16212 | } | ||||
16213 | _ACEOF | ||||
16214 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16215 | |||||
16216 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h | ||||
16217 | |||||
16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16219 | $as_echo "yes" >&6; } | ||||
16220 | else | ||||
16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16222 | $as_echo "no" >&6; } | ||||
16223 | |||||
16224 | fi | ||||
16225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16226 | |||||
Miss Islington (bot) | 2be9a31 | 2017-11-01 13:11:12 | [diff] [blame] | 16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
16228 | $as_echo_n "checking for wchgat... " >&6; } | ||||
16229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16230 | /* end confdefs.h. */ | ||||
16231 | #include <curses.h> | ||||
16232 | int | ||||
16233 | main () | ||||
16234 | { | ||||
16235 | |||||
16236 | #ifndef wchgat | ||||
16237 | void *x=wchgat | ||||
16238 | #endif | ||||
16239 | |||||
16240 | ; | ||||
16241 | return 0; | ||||
16242 | } | ||||
16243 | _ACEOF | ||||
16244 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16245 | |||||
16246 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h | ||||
16247 | |||||
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16249 | $as_echo "yes" >&6; } | ||||
16250 | else | ||||
16251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16252 | $as_echo "no" >&6; } | ||||
16253 | |||||
16254 | fi | ||||
16255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16256 | |||||
Miss Islington (bot) | 5db3208 | 2017-10-31 12:33:09 | [diff] [blame] | 16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
16258 | $as_echo_n "checking for filter... " >&6; } | ||||
16259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16260 | /* end confdefs.h. */ | ||||
16261 | #include <curses.h> | ||||
16262 | int | ||||
16263 | main () | ||||
16264 | { | ||||
16265 | |||||
16266 | #ifndef filter | ||||
16267 | void *x=filter | ||||
16268 | #endif | ||||
16269 | |||||
16270 | ; | ||||
16271 | return 0; | ||||
16272 | } | ||||
16273 | _ACEOF | ||||
16274 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16275 | |||||
16276 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h | ||||
16277 | |||||
16278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16279 | $as_echo "yes" >&6; } | ||||
16280 | else | ||||
16281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16282 | $as_echo "no" >&6; } | ||||
16283 | |||||
16284 | fi | ||||
16285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16286 | |||||
16287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 | ||||
16288 | $as_echo_n "checking for has_key... " >&6; } | ||||
16289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16290 | /* end confdefs.h. */ | ||||
16291 | #include <curses.h> | ||||
16292 | int | ||||
16293 | main () | ||||
16294 | { | ||||
16295 | |||||
16296 | #ifndef has_key | ||||
16297 | void *x=has_key | ||||
16298 | #endif | ||||
16299 | |||||
16300 | ; | ||||
16301 | return 0; | ||||
16302 | } | ||||
16303 | _ACEOF | ||||
16304 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16305 | |||||
16306 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h | ||||
16307 | |||||
16308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16309 | $as_echo "yes" >&6; } | ||||
16310 | else | ||||
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16312 | $as_echo "no" >&6; } | ||||
16313 | |||||
16314 | fi | ||||
16315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16316 | |||||
16317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 | ||||
16318 | $as_echo_n "checking for typeahead... " >&6; } | ||||
16319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16320 | /* end confdefs.h. */ | ||||
16321 | #include <curses.h> | ||||
16322 | int | ||||
16323 | main () | ||||
16324 | { | ||||
16325 | |||||
16326 | #ifndef typeahead | ||||
16327 | void *x=typeahead | ||||
16328 | #endif | ||||
16329 | |||||
16330 | ; | ||||
16331 | return 0; | ||||
16332 | } | ||||
16333 | _ACEOF | ||||
16334 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16335 | |||||
16336 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h | ||||
16337 | |||||
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16339 | $as_echo "yes" >&6; } | ||||
16340 | else | ||||
16341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16342 | $as_echo "no" >&6; } | ||||
16343 | |||||
16344 | fi | ||||
16345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16346 | |||||
16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 | ||||
16348 | $as_echo_n "checking for use_env... " >&6; } | ||||
16349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16350 | /* end confdefs.h. */ | ||||
16351 | #include <curses.h> | ||||
16352 | int | ||||
16353 | main () | ||||
16354 | { | ||||
16355 | |||||
16356 | #ifndef use_env | ||||
16357 | void *x=use_env | ||||
16358 | #endif | ||||
16359 | |||||
16360 | ; | ||||
16361 | return 0; | ||||
16362 | } | ||||
16363 | _ACEOF | ||||
16364 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16365 | |||||
16366 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h | ||||
16367 | |||||
16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16369 | $as_echo "yes" >&6; } | ||||
16370 | else | ||||
16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16372 | $as_echo "no" >&6; } | ||||
16373 | |||||
16374 | fi | ||||
16375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
doko@ubuntu.com | 9dc823d | 2012-07-07 01:06:42 | [diff] [blame] | 16376 | # last curses configure check |
16377 | CPPFLAGS=$ac_save_cppflags | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16378 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
16380 | $as_echo "$as_me: checking for device files" >&6;} | ||||
16381 | |||||
16382 | if test "x$cross_compiling" = xyes; then | ||||
16383 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | ||||
16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | ||||
16385 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16387 | $as_echo "not set" >&6; } | ||||
16388 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16389 | fi | ||||
16390 | if test "${ac_cv_file__dev_ptc+set}" != set; then | ||||
16391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | ||||
16392 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16394 | $as_echo "not set" >&6; } | ||||
16395 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16396 | fi | ||||
16397 | fi | ||||
16398 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16400 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16401 | if ${ac_cv_file__dev_ptmx+:} false; then : |
16402 | $as_echo_n "(cached) " >&6 | ||||
16403 | else | ||||
16404 | test "$cross_compiling" = yes && | ||||
16405 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16406 | if test -r "/dev/ptmx"; then | ||||
16407 | ac_cv_file__dev_ptmx=yes | ||||
16408 | else | ||||
16409 | ac_cv_file__dev_ptmx=no | ||||
16410 | fi | ||||
16411 | fi | ||||
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | ||||
16413 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | ||||
16414 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16415 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16416 | fi |
16417 | |||||
16418 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | ||||
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16419 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16420 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16421 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16422 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16424 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16425 | if ${ac_cv_file__dev_ptc+:} false; then : |
16426 | $as_echo_n "(cached) " >&6 | ||||
16427 | else | ||||
16428 | test "$cross_compiling" = yes && | ||||
16429 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16430 | if test -r "/dev/ptc"; then | ||||
16431 | ac_cv_file__dev_ptc=yes | ||||
16432 | else | ||||
16433 | ac_cv_file__dev_ptc=no | ||||
16434 | fi | ||||
16435 | fi | ||||
16436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | ||||
16437 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | ||||
16438 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16439 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16440 | fi |
16441 | |||||
16442 | if test "x$ac_cv_file__dev_ptc" = xyes; then | ||||
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16443 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16444 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16445 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16446 | fi |
16447 | |||||
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 | [diff] [blame] | 16448 | if test $ac_sys_system = Darwin |
16449 | then | ||||
16450 | LIBS="$LIBS -framework CoreFoundation" | ||||
16451 | fi | ||||
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 | [diff] [blame] | 16452 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
16454 | $as_echo_n "checking for %zd printf() format support... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16455 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16456 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16457 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16458 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 | [diff] [blame] | 16459 | ac_cv_have_size_t_format="cross -- assuming yes" |
16460 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16461 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16463 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16464 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16465 | #include <stdio.h> |
16466 | #include <stddef.h> | ||||
16467 | #include <string.h> | ||||
16468 | |||||
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 | [diff] [blame] | 16469 | #ifdef HAVE_SYS_TYPES_H |
16470 | #include <sys/types.h> | ||||
16471 | #endif | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16472 | |
16473 | #ifdef HAVE_SSIZE_T | ||||
16474 | typedef ssize_t Py_ssize_t; | ||||
16475 | #elif SIZEOF_VOID_P == SIZEOF_LONG | ||||
16476 | typedef long Py_ssize_t; | ||||
16477 | #else | ||||
16478 | typedef int Py_ssize_t; | ||||
16479 | #endif | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16480 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 | [diff] [blame] | 16481 | int main() |
16482 | { | ||||
16483 | char buffer[256]; | ||||
16484 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16485 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
16486 | return 1; | ||||
16487 | |||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16488 | if (strcmp(buffer, "123")) |
16489 | return 1; | ||||
16490 | |||||
16491 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | ||||
16492 | return 1; | ||||
16493 | |||||
16494 | if (strcmp(buffer, "-123")) | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16495 | return 1; |
16496 | |||||
16497 | return 0; | ||||
16498 | } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16499 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16500 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16501 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16502 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 16503 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16504 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 16505 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16507 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 16508 | fi |
16509 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16510 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
16512 | $as_echo "$ac_cv_have_size_t_format" >&6; } | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 | [diff] [blame] | 16513 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16514 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16515 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16516 | |
16517 | fi | ||||
16518 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16519 | 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] | 16520 | #ifdef HAVE_SYS_TYPES_H |
16521 | #include <sys/types.h> | ||||
16522 | #endif | ||||
16523 | #ifdef HAVE_SYS_SOCKET_H | ||||
16524 | #include <sys/socket.h> | ||||
16525 | #endif | ||||
16526 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16527 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16528 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 | [diff] [blame] | 16529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16530 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 | [diff] [blame] | 16531 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16532 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 | [diff] [blame] | 16533 | |
16534 | fi | ||||
16535 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16536 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
16538 | $as_echo_n "checking for broken mbstowcs... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16539 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16540 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16541 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16542 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16543 | ac_cv_broken_mbstowcs=no |
16544 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16546 | /* end confdefs.h. */ |
16547 | |||||
Stefan Krah | 19c2139 | 2012-11-22 22:47:32 | [diff] [blame] | 16548 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16549 | #include<stdlib.h> |
16550 | int main() { | ||||
16551 | size_t len = -1; | ||||
16552 | const char *str = "text"; | ||||
16553 | len = mbstowcs(NULL, str, 0); | ||||
16554 | return (len != 4); | ||||
16555 | } | ||||
16556 | |||||
16557 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16558 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16559 | ac_cv_broken_mbstowcs=no |
16560 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16561 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16562 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16563 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16564 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16565 | fi |
16566 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16567 | fi |
16568 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
16570 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16571 | if test "$ac_cv_broken_mbstowcs" = yes |
16572 | then | ||||
16573 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16574 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16575 | |
16576 | fi | ||||
16577 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16578 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
16580 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16581 | |
16582 | # Check whether --with-computed-gotos was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16583 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16584 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16585 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16586 | then |
16587 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16588 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16589 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16591 | $as_echo "yes" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16592 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16593 | if test "$withval" = no |
16594 | then | ||||
16595 | |||||
16596 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | ||||
16597 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16599 | $as_echo "no" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16600 | fi |
16601 | |||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16602 | else |
16603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
16604 | $as_echo "no value specified" >&6; } | ||||
16605 | fi | ||||
16606 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16607 | |
Matthias Klose | b17289e | 2012-03-15 18:51:34 | [diff] [blame] | 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
16609 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | ||||
16610 | if ${ac_cv_computed_gotos+:} false; then : | ||||
16611 | $as_echo_n "(cached) " >&6 | ||||
16612 | else | ||||
16613 | if test "$cross_compiling" = yes; then : | ||||
16614 | if test "${with_computed_gotos+set}" = set; then | ||||
16615 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | ||||
16616 | else | ||||
16617 | ac_cv_computed_gotos=no | ||||
16618 | fi | ||||
16619 | else | ||||
16620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16621 | /* end confdefs.h. */ | ||||
16622 | |||||
16623 | int main(int argc, char **argv) | ||||
16624 | { | ||||
16625 | static void *targets[1] = { &&LABEL1 }; | ||||
16626 | goto LABEL2; | ||||
16627 | LABEL1: | ||||
16628 | return 0; | ||||
16629 | LABEL2: | ||||
16630 | goto *targets[0]; | ||||
16631 | return 1; | ||||
16632 | } | ||||
16633 | |||||
16634 | _ACEOF | ||||
16635 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16636 | ac_cv_computed_gotos=yes | ||||
16637 | else | ||||
16638 | ac_cv_computed_gotos=no | ||||
16639 | fi | ||||
16640 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16641 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16642 | fi | ||||
16643 | |||||
16644 | fi | ||||
16645 | |||||
16646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | ||||
16647 | $as_echo "$ac_cv_computed_gotos" >&6; } | ||||
16648 | case "$ac_cv_computed_gotos" in yes*) | ||||
16649 | |||||
16650 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | ||||
16651 | |||||
16652 | esac | ||||
16653 | |||||
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 | [diff] [blame] | 16654 | case $ac_sys_system in |
16655 | AIX*) | ||||
16656 | |||||
16657 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | ||||
16658 | ;; | ||||
16659 | esac | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16660 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16661 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 | [diff] [blame] | 16662 | |
16663 | |||||
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 | [diff] [blame] | 16664 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
16665 | do | ||||
16666 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | ||||
16667 | done | ||||
16668 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16669 | |
Victor Stinner | 29cb50b | 2017-11-30 22:34:21 | [diff] [blame] | 16670 | SRCDIRS="Parser Objects Python Modules Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
16672 | $as_echo_n "checking for build directories... " >&6; } | ||||
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 | [diff] [blame] | 16673 | for dir in $SRCDIRS; do |
16674 | if test ! -d $dir; then | ||||
16675 | mkdir $dir | ||||
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 | [diff] [blame] | 16676 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 | [diff] [blame] | 16677 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
16679 | $as_echo "done" >&6; } | ||||
Fred Drake | 036144d | 2000-10-26 17:09:35 | [diff] [blame] | 16680 | |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 16681 | # Availability of -O2: |
16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | ||||
16683 | $as_echo_n "checking for -O2... " >&6; } | ||||
16684 | saved_cflags="$CFLAGS" | ||||
16685 | CFLAGS="-O2" | ||||
16686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16687 | /* end confdefs.h. */ | ||||
16688 | |||||
16689 | int | ||||
16690 | main () | ||||
16691 | { | ||||
16692 | |||||
16693 | |||||
16694 | ; | ||||
16695 | return 0; | ||||
16696 | } | ||||
16697 | _ACEOF | ||||
16698 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16699 | have_O2=yes | ||||
16700 | else | ||||
16701 | have_O2=no | ||||
16702 | fi | ||||
16703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | ||||
16705 | $as_echo "$have_O2" >&6; } | ||||
16706 | CFLAGS="$saved_cflags" | ||||
16707 | |||||
16708 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | ||||
16709 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | ||||
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | ||||
16711 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | ||||
16712 | saved_cflags="$CFLAGS" | ||||
16713 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | ||||
16714 | if test "$have_O2" = no; then | ||||
16715 | CFLAGS="" | ||||
16716 | fi | ||||
16717 | if test "$cross_compiling" = yes; then : | ||||
16718 | have_glibc_memmove_bug=undefined | ||||
16719 | else | ||||
16720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16721 | /* end confdefs.h. */ | ||||
16722 | |||||
16723 | #include <stdio.h> | ||||
16724 | #include <stdlib.h> | ||||
16725 | #include <string.h> | ||||
16726 | void foo(void *p, void *q) { memmove(p, q, 19); } | ||||
16727 | int main() { | ||||
16728 | char a[32] = "123456789000000000"; | ||||
16729 | foo(&a[9], a); | ||||
16730 | if (strcmp(a, "123456789123456789000000000") != 0) | ||||
16731 | return 1; | ||||
16732 | foo(a, &a[9]); | ||||
16733 | if (strcmp(a, "123456789000000000") != 0) | ||||
16734 | return 1; | ||||
16735 | return 0; | ||||
16736 | } | ||||
16737 | |||||
16738 | _ACEOF | ||||
16739 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16740 | have_glibc_memmove_bug=no | ||||
16741 | else | ||||
16742 | have_glibc_memmove_bug=yes | ||||
16743 | fi | ||||
16744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16745 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16746 | fi | ||||
16747 | |||||
16748 | CFLAGS="$saved_cflags" | ||||
16749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | ||||
16750 | $as_echo "$have_glibc_memmove_bug" >&6; } | ||||
16751 | if test "$have_glibc_memmove_bug" = yes; then | ||||
16752 | |||||
16753 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | ||||
16754 | |||||
16755 | fi | ||||
16756 | |||||
16757 | if test "$have_gcc_asm_for_x87" = yes; then | ||||
16758 | # Some versions of gcc miscompile inline asm: | ||||
16759 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | ||||
16760 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | ||||
16761 | case $CC in | ||||
16762 | *gcc*) | ||||
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | ||||
16764 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | ||||
16765 | saved_cflags="$CFLAGS" | ||||
16766 | CFLAGS="-O2" | ||||
16767 | if test "$cross_compiling" = yes; then : | ||||
16768 | have_ipa_pure_const_bug=undefined | ||||
16769 | else | ||||
16770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16771 | /* end confdefs.h. */ | ||||
16772 | |||||
16773 | __attribute__((noinline)) int | ||||
16774 | foo(int *p) { | ||||
16775 | int r; | ||||
16776 | asm ( "movl \$6, (%1)\n\t" | ||||
16777 | "xorl %0, %0\n\t" | ||||
16778 | : "=r" (r) : "r" (p) : "memory" | ||||
16779 | ); | ||||
16780 | return r; | ||||
16781 | } | ||||
16782 | int main() { | ||||
16783 | int p = 8; | ||||
16784 | if ((foo(&p) ? : p) != 6) | ||||
16785 | return 1; | ||||
16786 | return 0; | ||||
16787 | } | ||||
16788 | |||||
16789 | _ACEOF | ||||
16790 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16791 | have_ipa_pure_const_bug=no | ||||
16792 | else | ||||
16793 | have_ipa_pure_const_bug=yes | ||||
16794 | fi | ||||
16795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16796 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16797 | fi | ||||
16798 | |||||
16799 | CFLAGS="$saved_cflags" | ||||
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | ||||
16801 | $as_echo "$have_ipa_pure_const_bug" >&6; } | ||||
16802 | if test "$have_ipa_pure_const_bug" = yes; then | ||||
16803 | |||||
16804 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | ||||
16805 | |||||
16806 | fi | ||||
16807 | ;; | ||||
16808 | esac | ||||
16809 | fi | ||||
16810 | |||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16811 | # Check for stdatomic.h |
16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | ||||
16813 | $as_echo_n "checking for stdatomic.h... " >&6; } | ||||
16814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16815 | /* end confdefs.h. */ | ||||
16816 | |||||
16817 | |||||
16818 | #include <stdatomic.h> | ||||
Victor Stinner | 923e06f | 2015-01-14 15:01:46 | [diff] [blame] | 16819 | atomic_int value = ATOMIC_VAR_INIT(1); |
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16820 | int main() { |
16821 | int loaded_value = atomic_load(&value); | ||||
16822 | return 0; | ||||
16823 | } | ||||
16824 | |||||
16825 | |||||
16826 | _ACEOF | ||||
16827 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16828 | have_stdatomic_h=yes | ||||
16829 | else | ||||
16830 | have_stdatomic_h=no | ||||
16831 | fi | ||||
16832 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16833 | conftest$ac_exeext conftest.$ac_ext | ||||
16834 | |||||
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | ||||
16836 | $as_echo "$have_stdatomic_h" >&6; } | ||||
16837 | |||||
16838 | if test "$have_stdatomic_h" = yes; then | ||||
16839 | |||||
16840 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | ||||
16841 | |||||
16842 | fi | ||||
16843 | |||||
16844 | # Check for GCC >= 4.7 __atomic builtins | ||||
16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | ||||
16846 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | ||||
16847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16848 | /* end confdefs.h. */ | ||||
16849 | |||||
16850 | |||||
16851 | volatile int val = 1; | ||||
16852 | int main() { | ||||
16853 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | ||||
16854 | return 0; | ||||
16855 | } | ||||
16856 | |||||
16857 | |||||
16858 | _ACEOF | ||||
16859 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16860 | have_builtin_atomic=yes | ||||
16861 | else | ||||
16862 | have_builtin_atomic=no | ||||
16863 | fi | ||||
16864 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16865 | conftest$ac_exeext conftest.$ac_ext | ||||
16866 | |||||
16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | ||||
16868 | $as_echo "$have_builtin_atomic" >&6; } | ||||
16869 | |||||
16870 | if test "$have_builtin_atomic" = yes; then | ||||
16871 | |||||
16872 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | ||||
16873 | |||||
16874 | fi | ||||
16875 | |||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 16876 | # ensurepip option |
16877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | ||||
16878 | $as_echo_n "checking for ensurepip... " >&6; } | ||||
16879 | |||||
16880 | # Check whether --with-ensurepip was given. | ||||
16881 | if test "${with_ensurepip+set}" = set; then : | ||||
16882 | withval=$with_ensurepip; | ||||
16883 | else | ||||
16884 | with_ensurepip=upgrade | ||||
16885 | fi | ||||
16886 | |||||
16887 | case $with_ensurepip in #( | ||||
16888 | yes|upgrade) : | ||||
16889 | ENSUREPIP=upgrade ;; #( | ||||
16890 | install) : | ||||
16891 | ENSUREPIP=install ;; #( | ||||
16892 | no) : | ||||
16893 | ENSUREPIP=no ;; #( | ||||
16894 | *) : | ||||
16895 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | ||||
16896 | esac | ||||
16897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | ||||
16898 | $as_echo "$ENSUREPIP" >&6; } | ||||
16899 | |||||
16900 | |||||
Victor Stinner | 35a97c0 | 2015-03-08 01:59:09 | [diff] [blame] | 16901 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | ||||
16903 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | ||||
16904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16905 | /* end confdefs.h. */ | ||||
16906 | |||||
16907 | |||||
16908 | #include <dirent.h> | ||||
16909 | |||||
16910 | int main() { | ||||
16911 | struct dirent entry; | ||||
16912 | return entry.d_type == DT_UNKNOWN; | ||||
16913 | } | ||||
16914 | |||||
16915 | |||||
16916 | _ACEOF | ||||
16917 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16918 | have_dirent_d_type=yes | ||||
16919 | else | ||||
16920 | have_dirent_d_type=no | ||||
16921 | fi | ||||
16922 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16923 | conftest$ac_exeext conftest.$ac_ext | ||||
16924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | ||||
16925 | $as_echo "$have_dirent_d_type" >&6; } | ||||
16926 | |||||
16927 | if test "$have_dirent_d_type" = yes; then | ||||
16928 | |||||
16929 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | ||||
16930 | |||||
16931 | fi | ||||
16932 | |||||
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16933 | # check if the Linux getrandom() syscall is available |
16934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | ||||
16935 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | ||||
16936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16937 | /* end confdefs.h. */ | ||||
16938 | |||||
16939 | |||||
Victor Stinner | 1b80b24 | 2016-04-12 20:34:58 | [diff] [blame] | 16940 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16941 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 09:21:42 | [diff] [blame] | 16942 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16943 | |
16944 | int main() { | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16945 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 16946 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 09:21:42 | [diff] [blame] | 16947 | const int flags = GRND_NONBLOCK; |
16948 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | ||||
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 16949 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 16950 | return 0; |
16951 | } | ||||
16952 | |||||
16953 | |||||
16954 | _ACEOF | ||||
16955 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16956 | have_getrandom_syscall=yes | ||||
16957 | else | ||||
16958 | have_getrandom_syscall=no | ||||
16959 | fi | ||||
16960 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16961 | conftest$ac_exeext conftest.$ac_ext | ||||
16962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | ||||
16963 | $as_echo "$have_getrandom_syscall" >&6; } | ||||
16964 | |||||
16965 | if test "$have_getrandom_syscall" = yes; then | ||||
16966 | |||||
16967 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | ||||
16968 | |||||
16969 | fi | ||||
16970 | |||||
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 16971 | # check if the getrandom() function is available |
16972 | # the test was written for the Solaris function of <sys/random.h> | ||||
16973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | ||||
16974 | $as_echo_n "checking for the getrandom() function... " >&6; } | ||||
16975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16976 | /* end confdefs.h. */ | ||||
16977 | |||||
16978 | |||||
16979 | #include <sys/random.h> | ||||
16980 | |||||
16981 | int main() { | ||||
16982 | char buffer[1]; | ||||
16983 | const size_t buflen = sizeof(buffer); | ||||
16984 | const int flags = 0; | ||||
16985 | /* ignore the result, Python checks for ENOSYS at runtime */ | ||||
16986 | (void)getrandom(buffer, buflen, flags); | ||||
16987 | return 0; | ||||
16988 | } | ||||
16989 | |||||
16990 | |||||
16991 | _ACEOF | ||||
16992 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16993 | have_getrandom=yes | ||||
16994 | else | ||||
16995 | have_getrandom=no | ||||
16996 | fi | ||||
16997 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16998 | conftest$ac_exeext conftest.$ac_ext | ||||
16999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | ||||
17000 | $as_echo "$have_getrandom" >&6; } | ||||
17001 | |||||
17002 | if test "$have_getrandom" = yes; then | ||||
17003 | |||||
17004 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | ||||
17005 | |||||
17006 | fi | ||||
17007 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17008 | # generate output files |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 17009 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 17010 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 17011 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
17012 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17013 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17014 | # This file is a shell script that caches the results of configure |
17015 | # 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] | 17016 | # scripts and configure runs, see configure's option --config-cache. |
17017 | # It is not useful on other systems. If it contains results you don't | ||||
17018 | # want to keep, you may remove or edit it. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17019 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17020 | # config.status only pays attention to the cache file if you give it |
17021 | # the --recheck option to rerun configure. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17022 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17023 | # `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] | 17024 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
17025 | # following values. | ||||
17026 | |||||
17027 | _ACEOF | ||||
17028 | |||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 17029 | # The following way of writing the cache mishandles newlines in values, |
17030 | # but we know of no workaround that is simple, portable, and efficient. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17031 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17032 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17033 | # 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] | 17034 | ( |
17035 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||||
17036 | eval ac_val=\$$ac_var | ||||
17037 | case $ac_val in #( | ||||
17038 | *${as_nl}*) | ||||
17039 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17040 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17041 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17042 | esac |
17043 | case $ac_var in #( | ||||
17044 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17045 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17046 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17047 | esac ;; |
17048 | esac | ||||
17049 | done | ||||
17050 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17051 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17052 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17053 | *${as_nl}ac_space=\ *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17054 | # `set' does not quote correctly, so add quotes: double-quote |
17055 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17056 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17057 | "s/'/'\\\\''/g; |
17058 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17059 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17060 | *) |
17061 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17062 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17063 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17064 | esac | |
17065 | sort | ||||
17066 | ) | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17067 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17068 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17069 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17070 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17071 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17072 | t end | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17073 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17074 | :end' >>confcache | ||||
17075 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||||
17076 | if test -w "$cache_file"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17077 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17079 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17080 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17081 | cat confcache >"$cache_file" | ||||
17082 | else | ||||
17083 | case $cache_file in #( | ||||
17084 | */* | ?:*) | ||||
17085 | mv -f confcache "$cache_file"$$ && | ||||
17086 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||||
17087 | *) | ||||
17088 | mv -f confcache "$cache_file" ;; | ||||
17089 | esac | ||||
17090 | fi | ||||
17091 | fi | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17092 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17093 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17094 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17095 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17096 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17097 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 17098 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17099 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17100 | # Let make expand exec_prefix. | ||||
17101 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 17102 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17103 | DEFS=-DHAVE_CONFIG_H |
17104 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17105 | ac_libobjs= |
17106 | ac_ltlibobjs= | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17107 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17108 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17109 | # 1. Remove the extension, and $U if already installed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17110 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17111 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17112 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17113 | # will be set to the directory where LIBOBJS objects are built. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17114 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17115 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17116 | done |
17117 | LIBOBJS=$ac_libobjs | ||||
17118 | |||||
17119 | LTLIBOBJS=$ac_ltlibobjs | ||||
17120 | |||||
17121 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17122 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17123 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17124 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17125 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17126 | ac_clean_files_save=$ac_clean_files |
17127 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17128 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17129 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||||
17130 | as_write_fail=0 | ||||
17131 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17132 | #! $SHELL |
17133 | # Generated by $as_me. | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17134 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17135 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17136 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17138 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17139 | ac_cs_recheck=false |
17140 | ac_cs_silent=false | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 17141 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17142 | SHELL=\${CONFIG_SHELL-$SHELL} |
17143 | export SHELL | ||||
17144 | _ASEOF | ||||
17145 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||||
17146 | ## -------------------- ## | ||||
17147 | ## M4sh Initialization. ## | ||||
17148 | ## -------------------- ## | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 17149 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17150 | # Be more Bourne compatible |
17151 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17152 | 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] | 17153 | emulate sh |
17154 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17155 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17156 | # is contrary to our usage. Disable this feature. |
17157 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17158 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 17159 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17160 | case `(set -o) 2>/dev/null` in #( |
17161 | *posix*) : | ||||
17162 | set -o posix ;; #( | ||||
17163 | *) : | ||||
17164 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17165 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 17166 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 17167 | |
17168 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17169 | as_nl=' |
17170 | ' | ||||
17171 | export as_nl | ||||
17172 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||||
17173 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
17174 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17175 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17176 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
17177 | # but without wasting forks for bash or zsh. | ||||
17178 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
17179 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17180 | as_echo='print -r --' | ||||
17181 | as_echo_n='print -rn --' | ||||
17182 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17183 | as_echo='printf %s\n' | ||||
17184 | as_echo_n='printf %s' | ||||
17185 | else | ||||
17186 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
17187 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
17188 | as_echo_n='/usr/ucb/echo -n' | ||||
17189 | else | ||||
17190 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
17191 | as_echo_n_body='eval | ||||
17192 | arg=$1; | ||||
17193 | case $arg in #( | ||||
17194 | *"$as_nl"*) | ||||
17195 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
17196 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
17197 | esac; | ||||
17198 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
17199 | ' | ||||
17200 | export as_echo_n_body | ||||
17201 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
17202 | fi | ||||
17203 | export as_echo_body | ||||
17204 | as_echo='sh -c $as_echo_body as_echo' | ||||
17205 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17206 | |
17207 | # The user is always right. | ||||
17208 | if test "${PATH_SEPARATOR+set}" != set; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17209 | PATH_SEPARATOR=: |
17210 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
17211 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
17212 | PATH_SEPARATOR=';' | ||||
17213 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17215 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17216 | |
17217 | # IFS | ||||
17218 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
17219 | # there to prevent editors from complaining about space-tab. | ||||
17220 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
17221 | # splitting by setting IFS to empty value.) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17222 | IFS=" "" $as_nl" |
17223 | |||||
17224 | # 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] | 17225 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17226 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17227 | *[\\/]* ) as_myself=$0 ;; |
17228 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17229 | for as_dir in $PATH |
17230 | do | ||||
17231 | IFS=$as_save_IFS | ||||
17232 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17233 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
17234 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17235 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17236 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17237 | ;; |
17238 | esac | ||||
17239 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
17240 | # in which case we are not to be found in the path. | ||||
17241 | if test "x$as_myself" = x; then | ||||
17242 | as_myself=$0 | ||||
17243 | fi | ||||
17244 | if test ! -f "$as_myself"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17245 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
17246 | exit 1 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17247 | fi |
17248 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17249 | # Unset variables that we do not need and which cause bugs (e.g. in |
17250 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
17251 | # suppresses any "Segmentation fault" message there. '((' could | ||||
17252 | # trigger a bug in pdksh 5.2.14. | ||||
17253 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
17254 | do eval test x\${$as_var+set} = xset \ | ||||
17255 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17256 | done |
17257 | PS1='$ ' | ||||
17258 | PS2='> ' | ||||
17259 | PS4='+ ' | ||||
17260 | |||||
17261 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17262 | LC_ALL=C |
17263 | export LC_ALL | ||||
17264 | LANGUAGE=C | ||||
17265 | export LANGUAGE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17266 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17267 | # CDPATH. |
17268 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
17269 | |||||
17270 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17271 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17272 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17273 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17274 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17275 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17276 | as_fn_error () |
17277 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17278 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17279 | if test "$4"; then | ||||
17280 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
17281 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17282 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17283 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17284 | as_fn_exit $as_status |
17285 | } # as_fn_error | ||||
17286 | |||||
17287 | |||||
17288 | # as_fn_set_status STATUS | ||||
17289 | # ----------------------- | ||||
17290 | # Set $? to STATUS, without forking. | ||||
17291 | as_fn_set_status () | ||||
17292 | { | ||||
17293 | return $1 | ||||
17294 | } # as_fn_set_status | ||||
17295 | |||||
17296 | # as_fn_exit STATUS | ||||
17297 | # ----------------- | ||||
17298 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
17299 | as_fn_exit () | ||||
17300 | { | ||||
17301 | set +e | ||||
17302 | as_fn_set_status $1 | ||||
17303 | exit $1 | ||||
17304 | } # as_fn_exit | ||||
17305 | |||||
17306 | # as_fn_unset VAR | ||||
17307 | # --------------- | ||||
17308 | # Portably unset VAR. | ||||
17309 | as_fn_unset () | ||||
17310 | { | ||||
17311 | { eval $1=; unset $1;} | ||||
17312 | } | ||||
17313 | as_unset=as_fn_unset | ||||
17314 | # as_fn_append VAR VALUE | ||||
17315 | # ---------------------- | ||||
17316 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
17317 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
17318 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
17319 | # implementations. | ||||
17320 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||||
17321 | eval 'as_fn_append () | ||||
17322 | { | ||||
17323 | eval $1+=\$2 | ||||
17324 | }' | ||||
17325 | else | ||||
17326 | as_fn_append () | ||||
17327 | { | ||||
17328 | eval $1=\$$1\$2 | ||||
17329 | } | ||||
17330 | fi # as_fn_append | ||||
17331 | |||||
17332 | # as_fn_arith ARG... | ||||
17333 | # ------------------ | ||||
17334 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
17335 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
17336 | # must be portable across $(()) and expr. | ||||
17337 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||||
17338 | eval 'as_fn_arith () | ||||
17339 | { | ||||
17340 | as_val=$(( $* )) | ||||
17341 | }' | ||||
17342 | else | ||||
17343 | as_fn_arith () | ||||
17344 | { | ||||
17345 | as_val=`expr "$@" || test $? -eq 1` | ||||
17346 | } | ||||
17347 | fi # as_fn_arith | ||||
17348 | |||||
17349 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17350 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17351 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
17352 | as_expr=expr | ||||
17353 | else | ||||
17354 | as_expr=false | ||||
17355 | fi | ||||
17356 | |||||
17357 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
17358 | as_basename=basename | ||||
17359 | else | ||||
17360 | as_basename=false | ||||
17361 | fi | ||||
17362 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17363 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17364 | as_dirname=dirname | ||||
17365 | else | ||||
17366 | as_dirname=false | ||||
17367 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17369 | as_me=`$as_basename -- "$0" || |
17370 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
17371 | X"$0" : 'X\(//\)$' \| \ | ||||
17372 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17373 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17374 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
17375 | s//\1/ | ||||
17376 | q | ||||
17377 | } | ||||
17378 | /^X\/\(\/\/\)$/{ | ||||
17379 | s//\1/ | ||||
17380 | q | ||||
17381 | } | ||||
17382 | /^X\/\(\/\).*/{ | ||||
17383 | s//\1/ | ||||
17384 | q | ||||
17385 | } | ||||
17386 | s/.*/./; q'` | ||||
17387 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17388 | # Avoid depending upon Character Ranges. |
17389 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
17390 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
17391 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
17392 | as_cr_digits='0123456789' | ||||
17393 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17394 | |
17395 | ECHO_C= ECHO_N= ECHO_T= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17396 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17397 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17398 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17399 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17400 | xy) ECHO_C='\c';; |
17401 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
17402 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17403 | esac;; |
17404 | *) | ||||
17405 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17406 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 17407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17408 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17409 | if test -d conf$$.dir; then |
17410 | rm -f conf$$.dir/conf$$.file | ||||
17411 | else | ||||
17412 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17413 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17414 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17415 | if (echo >conf$$.file) 2>/dev/null; then |
17416 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
17417 | as_ln_s='ln -s' | ||||
17418 | # ... but there are two gotchas: | ||||
17419 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
17420 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17421 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17422 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17423 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17424 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17425 | as_ln_s=ln | ||||
17426 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17427 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17429 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17430 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17431 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17432 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17433 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17434 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17435 | |
17436 | # as_fn_mkdir_p | ||||
17437 | # ------------- | ||||
17438 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
17439 | as_fn_mkdir_p () | ||||
17440 | { | ||||
17441 | |||||
17442 | case $as_dir in #( | ||||
17443 | -*) as_dir=./$as_dir;; | ||||
17444 | esac | ||||
17445 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
17446 | as_dirs= | ||||
17447 | while :; do | ||||
17448 | case $as_dir in #( | ||||
17449 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||||
17450 | *) as_qdir=$as_dir;; | ||||
17451 | esac | ||||
17452 | as_dirs="'$as_qdir' $as_dirs" | ||||
17453 | as_dir=`$as_dirname -- "$as_dir" || | ||||
17454 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
17455 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
17456 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
17457 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
17458 | $as_echo X"$as_dir" | | ||||
17459 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||||
17460 | s//\1/ | ||||
17461 | q | ||||
17462 | } | ||||
17463 | /^X\(\/\/\)[^/].*/{ | ||||
17464 | s//\1/ | ||||
17465 | q | ||||
17466 | } | ||||
17467 | /^X\(\/\/\)$/{ | ||||
17468 | s//\1/ | ||||
17469 | q | ||||
17470 | } | ||||
17471 | /^X\(\/\).*/{ | ||||
17472 | s//\1/ | ||||
17473 | q | ||||
17474 | } | ||||
17475 | s/.*/./; q'` | ||||
17476 | test -d "$as_dir" && break | ||||
17477 | done | ||||
17478 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17479 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17480 | |
17481 | |||||
17482 | } # as_fn_mkdir_p | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17483 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17484 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17485 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17486 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17487 | as_mkdir_p=false |
17488 | fi | ||||
17489 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17490 | |
17491 | # as_fn_executable_p FILE | ||||
17492 | # ----------------------- | ||||
17493 | # Test if FILE is an executable regular file. | ||||
17494 | as_fn_executable_p () | ||||
17495 | { | ||||
17496 | test -f "$1" && test -x "$1" | ||||
17497 | } # as_fn_executable_p | ||||
17498 | as_test_x='test -x' | ||||
17499 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17500 | |
17501 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17502 | 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] | 17503 | |
17504 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17505 | 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] | 17506 | |
17507 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17508 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17509 | ## ----------------------------------- ## |
17510 | ## Main body of $CONFIG_STATUS script. ## | ||||
17511 | ## ----------------------------------- ## | ||||
17512 | _ASEOF | ||||
17513 | 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] | 17514 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17516 | # 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] | 17517 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17518 | # values after options handling. |
17519 | ac_log=" | ||||
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 17520 | This file was extended by python $as_me 3.6, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17521 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17522 | |
17523 | CONFIG_FILES = $CONFIG_FILES | ||||
17524 | CONFIG_HEADERS = $CONFIG_HEADERS | ||||
17525 | CONFIG_LINKS = $CONFIG_LINKS | ||||
17526 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||||
17527 | $ $0 $@ | ||||
17528 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17529 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17530 | " | ||||
17531 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17532 | _ACEOF |
17533 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17534 | case $ac_config_files in *" |
17535 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||||
17536 | esac | ||||
17537 | |||||
17538 | case $ac_config_headers in *" | ||||
17539 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||||
17540 | esac | ||||
17541 | |||||
17542 | |||||
17543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17544 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 11:41:06 | [diff] [blame] | 17545 | config_files="$ac_config_files" |
17546 | config_headers="$ac_config_headers" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17548 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17549 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17550 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17551 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17552 | \`$as_me' instantiates files and other configuration actions |
17553 | from templates according to the current configuration. Unless the files | ||||
17554 | and actions are specified as TAGs, all are instantiated by default. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17555 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17556 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17557 | |
17558 | -h, --help print this help, then exit | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17559 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17560 | --config print configuration, then exit |
17561 | -q, --quiet, --silent | ||||
17562 | do not print progress messages | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17563 | -d, --debug don't remove temporary files |
17564 | --recheck update $as_me by reconfiguring in the same conditions | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17565 | --file=FILE[:TEMPLATE] |
17566 | instantiate the configuration file FILE | ||||
17567 | --header=FILE[:TEMPLATE] | ||||
17568 | instantiate the configuration header FILE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17569 | |
17570 | Configuration files: | ||||
17571 | $config_files | ||||
17572 | |||||
17573 | Configuration headers: | ||||
17574 | $config_headers | ||||
17575 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 17576 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 17577 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17578 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17579 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17580 | 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] | 17581 | ac_cs_version="\\ |
Benjamin Peterson | a8c22a0 | 2015-05-28 04:29:00 | [diff] [blame] | 17582 | python config.status 3.6 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17583 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17584 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17585 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17586 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17587 | This config.status script is free software; the Free Software Foundation |
17588 | gives unlimited permission to copy, distribute and modify it." | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17589 | |
17590 | ac_pwd='$ac_pwd' | ||||
17591 | srcdir='$srcdir' | ||||
17592 | INSTALL='$INSTALL' | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 17593 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17594 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17595 | _ACEOF |
17596 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17597 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17598 | # 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] | 17599 | ac_need_defaults=: |
17600 | while test $# != 0 | ||||
17601 | do | ||||
17602 | case $1 in | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17603 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17604 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17605 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17606 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17607 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17608 | --*=) |
17609 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||||
17610 | ac_optarg= | ||||
17611 | ac_shift=: | ||||
17612 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17613 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17614 | ac_option=$1 |
17615 | ac_optarg=$2 | ||||
17616 | ac_shift=shift | ||||
17617 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17618 | esac |
17619 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17620 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17621 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17622 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17623 | ac_cs_recheck=: ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17624 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17625 | $as_echo "$ac_cs_version"; exit ;; |
17626 | --config | --confi | --conf | --con | --co | --c ) | ||||
17627 | $as_echo "$ac_cs_config"; exit ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17628 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17629 | debug=: ;; |
17630 | --file | --fil | --fi | --f ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17631 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17632 | case $ac_optarg in |
17633 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17634 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17635 | esac |
17636 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17637 | ac_need_defaults=false;; |
17638 | --header | --heade | --head | --hea ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17639 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17640 | case $ac_optarg in |
17641 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
17642 | esac | ||||
17643 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17644 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17645 | --he | --h) |
17646 | # Conflict between --help and --header | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17647 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17648 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17649 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17650 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17651 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17652 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||||
17653 | ac_cs_silent=: ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17654 | |
17655 | # This is an error. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17656 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17657 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17658 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17659 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17660 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17661 | |
17662 | esac | ||||
17663 | shift | ||||
17664 | done | ||||
17665 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17666 | ac_configure_extra_args= |
17667 | |||||
17668 | if $ac_cs_silent; then | ||||
17669 | exec 6>/dev/null | ||||
17670 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||||
17671 | fi | ||||
17672 | |||||
17673 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17675 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17676 | 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] | 17677 | shift |
17678 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||||
17679 | CONFIG_SHELL='$SHELL' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17680 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17681 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17682 | fi |
17683 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17684 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17685 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17686 | exec 5>>config.log |
17687 | { | ||||
17688 | echo | ||||
17689 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||||
17690 | ## Running $as_me. ## | ||||
17691 | _ASBOX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17692 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17693 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17694 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17695 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17696 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17697 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17698 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17700 | |
17701 | # Handling of arguments. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17702 | for ac_config_target in $ac_config_targets |
17703 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17704 | case $ac_config_target in |
17705 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | ||||
17706 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | ||||
17707 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 17708 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
17709 | "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] | 17710 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
17711 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | ||||
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 | [diff] [blame] | 17712 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 17713 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 17714 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17715 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17716 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17717 | esac |
17718 | done | ||||
17719 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17721 | # If the user did not use the arguments to specify the items to instantiate, |
17722 | # then the envvar interface is used. Set only those that are not. | ||||
17723 | # We use the long form for the default assignment because of an extremely | ||||
17724 | # bizarre bug on SunOS 4.1.3. | ||||
17725 | if $ac_need_defaults; then | ||||
17726 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||||
17727 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||||
17728 | fi | ||||
17729 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17730 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17731 | # simply because there is no reason against having it here, and in addition, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17732 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17733 | # Hook for its removal unless debugging. |
17734 | # Note that there is a small window in which the directory will not be cleaned: | ||||
17735 | # 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] | 17736 | $debug || |
17737 | { | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17738 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17739 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17740 | : "${ac_tmp:=$tmp}" |
17741 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17742 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17743 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17744 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17745 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17747 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17748 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17749 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17750 | } || |
17751 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17752 | tmp=./conf$$-$RANDOM |
17753 | (umask 077 && mkdir "$tmp") | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17754 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17755 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17757 | # Set up the scripts for CONFIG_FILES section. |
17758 | # No need to generate them if there are no CONFIG_FILES. | ||||
17759 | # This happens for instance with `./config.status config.h'. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17760 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17762 | |
17763 | ac_cr=`echo X | tr X '\015'` | ||||
17764 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||||
17765 | # But we know of no other shell where ac_cr would be empty at this | ||||
17766 | # point, so we can use a bashism as a fallback. | ||||
17767 | if test "x$ac_cr" = x; then | ||||
17768 | eval ac_cr=\$\'\\r\' | ||||
17769 | fi | ||||
17770 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||||
17771 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17772 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17773 | else |
17774 | ac_cs_awk_cr=$ac_cr | ||||
17775 | fi | ||||
17776 | |||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17777 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17778 | _ACEOF |
17779 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17780 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17781 | { |
17782 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||||
17783 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||||
17784 | echo "_ACEOF" | ||||
17785 | } >conf$$subs.sh || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17786 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
17787 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17788 | ac_delim='%!_!# ' |
17789 | for ac_last_try in false false false false false :; do | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17790 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17791 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17792 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17793 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
17794 | if test $ac_delim_n = $ac_delim_num; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17795 | break |
17796 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17797 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17798 | else |
17799 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17800 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17801 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17802 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17803 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17805 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17806 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17807 | sed -n ' |
17808 | h | ||||
17809 | s/^/S["/; s/!.*/"]=/ | ||||
17810 | p | ||||
17811 | g | ||||
17812 | s/^[^!]*!// | ||||
17813 | :repl | ||||
17814 | t repl | ||||
17815 | s/'"$ac_delim"'$// | ||||
17816 | t delim | ||||
17817 | :nl | ||||
17818 | h | ||||
17819 | s/\(.\{148\}\)..*/\1/ | ||||
17820 | t more1 | ||||
17821 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||||
17822 | p | ||||
17823 | n | ||||
17824 | b repl | ||||
17825 | :more1 | ||||
17826 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
17827 | p | ||||
17828 | g | ||||
17829 | s/.\{148\}// | ||||
17830 | t nl | ||||
17831 | :delim | ||||
17832 | h | ||||
17833 | s/\(.\{148\}\)..*/\1/ | ||||
17834 | t more2 | ||||
17835 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||||
17836 | p | ||||
17837 | b | ||||
17838 | :more2 | ||||
17839 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
17840 | p | ||||
17841 | g | ||||
17842 | s/.\{148\}// | ||||
17843 | t delim | ||||
17844 | ' <conf$$subs.awk | sed ' | ||||
17845 | /^[^""]/{ | ||||
17846 | N | ||||
17847 | s/\n// | ||||
17848 | } | ||||
17849 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
17850 | rm -f conf$$subs.awk | ||||
17851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
17852 | _ACAWK | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17853 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17854 | for (key in S) S_is_set[key] = 1 |
17855 | FS = "" | ||||
17856 | |||||
17857 | } | ||||
17858 | { | ||||
17859 | line = $ 0 | ||||
17860 | nfields = split(line, field, "@") | ||||
17861 | substed = 0 | ||||
17862 | len = length(field[1]) | ||||
17863 | for (i = 2; i < nfields; i++) { | ||||
17864 | key = field[i] | ||||
17865 | keylen = length(key) | ||||
17866 | if (S_is_set[key]) { | ||||
17867 | value = S[key] | ||||
17868 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||||
17869 | len += length(value) + length(field[++i]) | ||||
17870 | substed = 1 | ||||
17871 | } else | ||||
17872 | len += 1 + keylen | ||||
17873 | } | ||||
17874 | |||||
17875 | print line | ||||
17876 | } | ||||
17877 | |||||
17878 | _ACAWK | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17879 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17881 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||||
17882 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||||
17883 | else | ||||
17884 | cat | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17885 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17886 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 17887 | _ACEOF |
17888 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17889 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17890 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17891 | # trailing colons and then remove the whole line if VPATH becomes empty |
17892 | # (actually we leave an empty line to preserve line numbers). | ||||
17893 | if test "x$srcdir" = x.; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17894 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17895 | h | ||||
17896 | s/// | ||||
17897 | s/^/:/ | ||||
17898 | s/[ ]*$/:/ | ||||
17899 | s/:\$(srcdir):/:/g | ||||
17900 | s/:\${srcdir}:/:/g | ||||
17901 | s/:@srcdir@:/:/g | ||||
17902 | s/^:*// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17903 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17904 | x |
17905 | s/\(=[ ]*\).*/\1/ | ||||
17906 | G | ||||
17907 | s/\n// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17908 | s/^[^=]*=[ ]*$// |
17909 | }' | ||||
17910 | fi | ||||
17911 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17913 | fi # test -n "$CONFIG_FILES" |
17914 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17915 | # Set up the scripts for CONFIG_HEADERS section. |
17916 | # No need to generate them if there are no CONFIG_HEADERS. | ||||
17917 | # This happens for instance with `./config.status Makefile'. | ||||
17918 | if test -n "$CONFIG_HEADERS"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17919 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17920 | BEGIN { |
17921 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17922 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17923 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
17924 | # here-document in config.status, that substitutes the proper values into | ||||
17925 | # config.h.in to produce config.h. | ||||
17926 | |||||
17927 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||||
17928 | # handling of long lines. | ||||
17929 | ac_delim='%!_!# ' | ||||
17930 | for ac_last_try in false false :; do | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17931 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
17932 | if test -z "$ac_tt"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17933 | break |
17934 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17935 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17936 | else |
17937 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
17938 | fi | ||||
17939 | done | ||||
17940 | |||||
17941 | # For the awk script, D is an array of macro values keyed by name, | ||||
17942 | # likewise P contains macro parameters if any. Preserve backslash | ||||
17943 | # newline sequences. | ||||
17944 | |||||
17945 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||||
17946 | sed -n ' | ||||
17947 | s/.\{148\}/&'"$ac_delim"'/g | ||||
17948 | t rset | ||||
17949 | :rset | ||||
17950 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||||
17951 | t def | ||||
17952 | d | ||||
17953 | :def | ||||
17954 | s/\\$// | ||||
17955 | t bsnl | ||||
17956 | s/["\\]/\\&/g | ||||
17957 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
17958 | D["\1"]=" \3"/p | ||||
17959 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||||
17960 | d | ||||
17961 | :bsnl | ||||
17962 | s/["\\]/\\&/g | ||||
17963 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
17964 | D["\1"]=" \3\\\\\\n"\\/p | ||||
17965 | t cont | ||||
17966 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||||
17967 | t cont | ||||
17968 | d | ||||
17969 | :cont | ||||
17970 | n | ||||
17971 | s/.\{148\}/&'"$ac_delim"'/g | ||||
17972 | t clear | ||||
17973 | :clear | ||||
17974 | s/\\$// | ||||
17975 | t bsnlc | ||||
17976 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||||
17977 | d | ||||
17978 | :bsnlc | ||||
17979 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||||
17980 | b cont | ||||
17981 | ' <confdefs.h | sed ' | ||||
17982 | s/'"$ac_delim"'/"\\\ | ||||
17983 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
17984 | |||||
17985 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
17986 | for (key in D) D_is_set[key] = 1 | ||||
17987 | FS = "" | ||||
17988 | } | ||||
17989 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||||
17990 | line = \$ 0 | ||||
17991 | split(line, arg, " ") | ||||
17992 | if (arg[1] == "#") { | ||||
17993 | defundef = arg[2] | ||||
17994 | mac1 = arg[3] | ||||
17995 | } else { | ||||
17996 | defundef = substr(arg[1], 2) | ||||
17997 | mac1 = arg[2] | ||||
17998 | } | ||||
17999 | split(mac1, mac2, "(") #) | ||||
18000 | macro = mac2[1] | ||||
18001 | prefix = substr(line, 1, index(line, defundef) - 1) | ||||
18002 | if (D_is_set[macro]) { | ||||
18003 | # Preserve the white space surrounding the "#". | ||||
18004 | print prefix "define", macro P[macro] D[macro] | ||||
18005 | next | ||||
18006 | } else { | ||||
18007 | # Replace #undef with comments. This is necessary, for example, | ||||
18008 | # in the case of _POSIX_SOURCE, which is predefined and required | ||||
18009 | # on some systems where configure will not decide to define it. | ||||
18010 | if (defundef == "undef") { | ||||
18011 | print "/*", prefix defundef, macro, "*/" | ||||
18012 | next | ||||
18013 | } | ||||
18014 | } | ||||
18015 | } | ||||
18016 | { print } | ||||
18017 | _ACAWK | ||||
18018 | _ACEOF | ||||
18019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18020 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18021 | fi # test -n "$CONFIG_HEADERS" |
18022 | |||||
18023 | |||||
18024 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||||
18025 | shift | ||||
18026 | for ac_tag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18027 | do |
18028 | case $ac_tag in | ||||
18029 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||||
18030 | esac | ||||
18031 | case $ac_mode$ac_tag in | ||||
18032 | :[FHL]*:*);; | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18033 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18034 | :[FH]-) ac_tag=-:-;; |
18035 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||||
18036 | esac | ||||
18037 | ac_save_IFS=$IFS | ||||
18038 | IFS=: | ||||
18039 | set x $ac_tag | ||||
18040 | IFS=$ac_save_IFS | ||||
18041 | shift | ||||
18042 | ac_file=$1 | ||||
18043 | shift | ||||
18044 | |||||
18045 | case $ac_mode in | ||||
18046 | :L) ac_source=$1;; | ||||
18047 | :[FH]) | ||||
18048 | ac_file_inputs= | ||||
18049 | for ac_f | ||||
18050 | do | ||||
18051 | case $ac_f in | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18052 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18053 | *) # Look for the file first in the build tree, then in the source tree |
18054 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||||
18055 | # because $ac_f cannot contain `:'. | ||||
18056 | test -f "$ac_f" || | ||||
18057 | case $ac_f in | ||||
18058 | [\\/$]*) false;; | ||||
18059 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||||
18060 | esac || | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18061 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18062 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18063 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18064 | as_fn_append ac_file_inputs " '$ac_f'" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18065 | done |
18066 | |||||
18067 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||||
18068 | # use $as_me), people would be surprised to read: | ||||
18069 | # /* config.h. Generated by config.status. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18070 | configure_input='Generated from '` |
18071 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||||
18072 | `' by configure.' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18073 | if test x"$ac_file" != x-; then |
18074 | configure_input="$ac_file. $configure_input" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18075 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
18076 | $as_echo "$as_me: creating $ac_file" >&6;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18077 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18078 | # Neutralize special characters interpreted by sed in replacement strings. |
18079 | case $configure_input in #( | ||||
18080 | *\&* | *\|* | *\\* ) | ||||
18081 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||||
18082 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||||
18083 | *) ac_sed_conf_input=$configure_input;; | ||||
18084 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18085 | |
18086 | case $ac_tag in | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18087 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18088 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18089 | esac |
18090 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18091 | esac |
18092 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18093 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18094 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 18095 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18096 | X"$ac_file" : 'X\(//\)$' \| \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18097 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18098 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18100 | s//\1/ | ||||
18101 | q | ||||
18102 | } | ||||
18103 | /^X\(\/\/\)[^/].*/{ | ||||
18104 | s//\1/ | ||||
18105 | q | ||||
18106 | } | ||||
18107 | /^X\(\/\/\)$/{ | ||||
18108 | s//\1/ | ||||
18109 | q | ||||
18110 | } | ||||
18111 | /^X\(\/\).*/{ | ||||
18112 | s//\1/ | ||||
18113 | q | ||||
18114 | } | ||||
18115 | s/.*/./; q'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18116 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18117 | ac_builddir=. |
18118 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18119 | case "$ac_dir" in |
18120 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18121 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18122 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18123 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18124 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18125 | case $ac_top_builddir_sub in |
18126 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18127 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
18128 | esac ;; | ||||
18129 | esac | ||||
18130 | ac_abs_top_builddir=$ac_pwd | ||||
18131 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
18132 | # for backward compatibility: | ||||
18133 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18134 | |
18135 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18136 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18137 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18138 | ac_top_srcdir=$ac_top_builddir_sub |
18139 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
18140 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18141 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18142 | ac_top_srcdir=$srcdir |
18143 | ac_abs_top_srcdir=$srcdir ;; | ||||
18144 | *) # Relative name. | ||||
18145 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
18146 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
18147 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18148 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18149 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 18150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18151 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18152 | case $ac_mode in |
18153 | :F) | ||||
18154 | # | ||||
18155 | # CONFIG_FILE | ||||
18156 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18157 | |
18158 | case $INSTALL in | ||||
18159 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18160 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18161 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18162 | ac_MKDIR_P=$MKDIR_P |
18163 | case $MKDIR_P in | ||||
18164 | [\\/$]* | ?:[\\/]* ) ;; | ||||
18165 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||||
18166 | esac | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 18167 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18168 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18169 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18170 | # If the template does not know about datarootdir, expand it. |
18171 | # FIXME: This hack should be removed a few years after 2.60. | ||||
18172 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18173 | ac_sed_dataroot=' |
18174 | /datarootdir/ { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18175 | p |
18176 | q | ||||
18177 | } | ||||
18178 | /@datadir@/p | ||||
18179 | /@docdir@/p | ||||
18180 | /@infodir@/p | ||||
18181 | /@localedir@/p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18182 | /@mandir@/p' |
18183 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18184 | *datarootdir*) ac_datarootdir_seen=yes;; |
18185 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
18187 | $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] | 18188 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18190 | ac_datarootdir_hack=' |
18191 | s&@datadir@&$datadir&g | ||||
18192 | s&@docdir@&$docdir&g | ||||
18193 | s&@infodir@&$infodir&g | ||||
18194 | s&@localedir@&$localedir&g | ||||
18195 | s&@mandir@&$mandir&g | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18196 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18197 | esac |
18198 | _ACEOF | ||||
18199 | |||||
18200 | # Neutralize VPATH when `$srcdir' = `.'. | ||||
18201 | # Shell code in configure.ac might set extrasub. | ||||
18202 | # FIXME: do we really want to maintain this feature? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18204 | ac_sed_extra="$ac_vpsub | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18205 | $extrasub |
18206 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18207 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18208 | :t |
18209 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18210 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18211 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18212 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18213 | s&@srcdir@&$ac_srcdir&;t t |
18214 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||||
18215 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||||
18216 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||||
18217 | s&@builddir@&$ac_builddir&;t t | ||||
18218 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||||
18219 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||||
18220 | s&@INSTALL@&$ac_INSTALL&;t t | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18221 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18222 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18223 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18224 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18225 | >$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] | 18226 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18227 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18228 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18229 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||||
18230 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18231 | { $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] | 18232 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18233 | $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] | 18234 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 18235 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18236 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18237 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18238 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18239 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18240 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18241 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18242 | ;; |
18243 | :H) | ||||
18244 | # | ||||
18245 | # CONFIG_HEADER | ||||
18246 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18247 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18248 | { |
18249 | $as_echo "/* $configure_input */" \ | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18250 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18251 | } >"$ac_tmp/config.h" \ | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18252 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18253 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18255 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18256 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18257 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18258 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18259 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18260 | fi |
18261 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18262 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18263 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18264 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18265 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18266 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 18267 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18268 | |
18269 | esac | ||||
18270 | |||||
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 18271 | |
18272 | case $ac_file$ac_mode in | ||||
18273 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | ||||
18274 | |||||
18275 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18276 | done # for ac_tag |
18277 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 18278 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18279 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18280 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18281 | ac_clean_files=$ac_clean_files_save |
18282 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18283 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18284 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18286 | |
18287 | # configure is writing to config.log, and then calls config.status. | ||||
18288 | # config.status does its own redirection, appending to config.log. | ||||
18289 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||||
18290 | # by configure, so config.status won't be able to write to it; its | ||||
18291 | # output is simply discarded. So we exec the FD to /dev/null, | ||||
18292 | # effectively closing config.log, so it can be properly (re)opened and | ||||
18293 | # appended to by config.status. When coming back to configure, we | ||||
18294 | # need to make the FD available again. | ||||
18295 | if test "$no_create" != yes; then | ||||
18296 | ac_cs_success=: | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18297 | ac_config_status_args= |
18298 | test "$silent" = yes && | ||||
18299 | ac_config_status_args="$ac_config_status_args --quiet" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18300 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18301 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18302 | exec 5>>config.log |
18303 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||||
18304 | # would make configure fail if this is the last instruction. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18305 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18306 | fi |
18307 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||||
18308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||||
18309 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18310 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 18311 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18312 | |
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18313 | echo "creating Modules/Setup" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18314 | if test ! -f Modules/Setup |
18315 | then | ||||
18316 | cp $srcdir/Modules/Setup.dist Modules/Setup | ||||
18317 | fi | ||||
18318 | |||||
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18319 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18320 | if test ! -f Modules/Setup.local |
18321 | then | ||||
18322 | echo "# Edit this file for local setup changes" >Modules/Setup.local | ||||
18323 | fi | ||||
18324 | |||||
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18325 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18326 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
18327 | -s Modules Modules/Setup.config \ | ||||
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 | [diff] [blame] | 18328 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 | [diff] [blame] | 18329 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 18330 | |
18331 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | ||||
18332 | echo "" >&6 | ||||
18333 | echo "" >&6 | ||||
Brett Cannon | d24429a | 2017-06-09 21:34:32 | [diff] [blame] | 18334 | 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] | 18335 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 18336 | echo "" >&6 |
18337 | echo "" >&6 | ||||
18338 | fi | ||||
18339 |