Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.10. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 5 | # Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7 | # |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # |
10 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [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 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | ||||
15 | ## -------------------- ## | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [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 +0000 | [diff] [blame] | 20 | emulate sh |
21 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 26 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 32 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 | |
35 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' |
37 | ' | ||||
38 | export as_nl | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 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 +0000 | [diff] [blame] | 73 | |
74 | # The user is always right. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 81 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 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.) | ||||
89 | IFS=" "" $as_nl" | ||||
90 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 91 | # Find who we are. Look in the path if we contain no directory separator. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
97 | do | ||||
98 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 99 | test -z "$as_dir" && as_dir=. |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 101 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 113 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi |
115 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [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 || : | ||||
123 | done | ||||
124 | PS1='$ ' | ||||
125 | PS2='> ' | ||||
126 | PS4='+ ' | ||||
127 | |||||
128 | # NLS nuisances. | ||||
129 | LC_ALL=C | ||||
130 | export LC_ALL | ||||
131 | LANGUAGE=C | ||||
132 | export LANGUAGE | ||||
133 | |||||
134 | # CDPATH. | ||||
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 136 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [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'. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
158 | as_fn_exit 255 | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 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 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 170 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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.; } | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 191 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 192 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 193 | exitcode=1; echo positional parameters were not saved. |
194 | fi | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 202 | if (eval "$as_required") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 203 | as_have_required=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 204 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 205 | as_have_required=no |
206 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 208 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 209 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 215 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 221 | as_shell=$as_dir/$as_base |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 226 | break 2 |
227 | fi | ||||
228 | fi | ||||
229 | done;; | ||||
230 | esac | ||||
231 | as_found=false | ||||
232 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 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 : | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 236 | fi; } |
237 | IFS=$as_save_IFS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 238 | |
239 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 240 | if test "x$CONFIG_SHELL" != x; then : |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [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'. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 259 | exit 255 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi |
261 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 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." | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 268 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 #( | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 || | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 337 | $as_echo X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 07:30:30 +0200 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 | |
360 | |||||
361 | } # as_fn_mkdir_p | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [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 +0000 | [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. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 377 | eval 'as_fn_append () |
378 | { | ||||
379 | eval $1+=\$2 | ||||
380 | }' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 381 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 394 | eval 'as_fn_arith () |
395 | { | ||||
396 | as_val=$(( $* )) | ||||
397 | }' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 398 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () |
412 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [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 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status |
420 | } # as_fn_error | ||||
421 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
443 | X"$0" : 'X\(//\)$' \| \ | ||||
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 445 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 466 | |
467 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 473 | sed -n ' |
474 | p | ||||
475 | /[$]LINENO/= | ||||
476 | ' <$as_myself | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
479 | t lineno | ||||
480 | b | ||||
481 | :lineno | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 485 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [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 +0000 | [diff] [blame] | 490 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [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 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
500 | exit | ||||
501 | } | ||||
502 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 511 | esac;; |
512 | *) | ||||
513 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 542 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 | as_mkdir_p=false |
548 | fi | ||||
549 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [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 +0000 | [diff] [blame] | 552 | |
553 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [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 +0000 | [diff] [blame] | 555 | |
556 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [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 +0000 | [diff] [blame] | 558 | |
559 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 562 | |
563 | # Name of the host. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [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 +0000 | [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 +0000 | [diff] [blame] | 568 | # |
569 | # Initializations. | ||||
570 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no |
576 | subdirs= | ||||
577 | MFLAGS= | ||||
578 | MAKEFLAGS= | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' |
582 | PACKAGE_TARNAME='python' | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 583 | PACKAGE_VERSION='3.10' |
584 | PACKAGE_STRING='python 3.10' | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | |
588 | ac_unique_file="Include/object.h" | ||||
589 | # Factoring default headers for most tests. | ||||
590 | ac_includes_default="\ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 591 | #include <stdio.h> |
592 | #ifdef HAVE_SYS_TYPES_H | ||||
593 | # include <sys/types.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | #endif |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
596 | # include <sys/stat.h> | ||||
597 | #endif | ||||
598 | #ifdef STDC_HEADERS | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 600 | # include <stddef.h> |
601 | #else | ||||
602 | # ifdef HAVE_STDLIB_H | ||||
603 | # include <stdlib.h> | ||||
604 | # endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 605 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
608 | # include <memory.h> | ||||
609 | # endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <string.h> |
611 | #endif | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
613 | # include <strings.h> | ||||
614 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 622 | # include <unistd.h> |
623 | #endif" | ||||
624 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 626 | TEST_MODULES |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 627 | LIBRARY_DEPS |
628 | STATIC_LIBPYTHON | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 629 | OPENSSL_RPATH |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 630 | OPENSSL_LDFLAGS |
631 | OPENSSL_LIBS | ||||
632 | OPENSSL_INCLUDES | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 633 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 634 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 635 | THREADHEADERS |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 636 | WHEEL_PKG_DIR |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 637 | LIBPL |
638 | PY_ENABLE_SHARED | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 639 | PLATLIBDIR |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 640 | BINLIBDEST |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 641 | LIBPYTHON |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 642 | EXT_SUFFIX |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 643 | ALT_SOABI |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 644 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 645 | LIBC |
646 | LIBM | ||||
647 | HAVE_GETHOSTBYNAME | ||||
648 | HAVE_GETHOSTBYNAME_R | ||||
649 | HAVE_GETHOSTBYNAME_R_3_ARG | ||||
650 | HAVE_GETHOSTBYNAME_R_5_ARG | ||||
651 | HAVE_GETHOSTBYNAME_R_6_ARG | ||||
652 | LIBOBJS | ||||
653 | TRUE | ||||
654 | MACHDEP_OBJS | ||||
655 | DYNLOADFILE | ||||
656 | DLINCLDIR | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 657 | DTRACE_OBJS |
658 | DTRACE_HEADERS | ||||
659 | DFLAGS | ||||
660 | DTRACE | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 661 | TCLTK_LIBS |
662 | TCLTK_INCLUDES | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 663 | LIBFFI_INCLUDEDIR |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 664 | PKG_CONFIG_LIBDIR |
665 | PKG_CONFIG_PATH | ||||
666 | PKG_CONFIG | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 667 | TZPATH |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | SHLIBS |
669 | CFLAGSFORSHARED | ||||
670 | LINKFORSHARED | ||||
671 | CCSHARED | ||||
672 | BLDSHARED | ||||
673 | LDCXXSHARED | ||||
674 | LDSHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 675 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 676 | LIBTOOL_CRUFT |
677 | OTHER_LIBTOOL_OPT | ||||
678 | UNIVERSAL_ARCH_FLAGS | ||||
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 679 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 680 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 681 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 682 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 683 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 684 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 685 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 686 | LLVM_PROF_ERR |
687 | LLVM_PROF_FILE | ||||
688 | LLVM_PROF_MERGER | ||||
689 | PGO_PROF_USE_FLAG | ||||
690 | PGO_PROF_GEN_FLAG | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 691 | LLVM_AR_FOUND |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 692 | LLVM_AR |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 693 | PROFILE_TASK |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 694 | DEF_MAKE_RULE |
695 | DEF_MAKE_ALL_RULE | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 696 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 698 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | INSTALL_DATA |
700 | INSTALL_SCRIPT | ||||
701 | INSTALL_PROGRAM | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 702 | ac_ct_READELF |
703 | READELF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 704 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 705 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 706 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 707 | GNULD |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 708 | EXPORTSFROM |
709 | EXPORTSYMS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 710 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 711 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 712 | RUNSHARED |
713 | INSTSONAME | ||||
714 | LDLIBRARYDIR | ||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 715 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 716 | BLDLIBRARY |
717 | DLLLIBRARY | ||||
718 | LDLIBRARY | ||||
719 | LIBRARY | ||||
720 | BUILDEXEEXT | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 721 | EGREP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 722 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 723 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 724 | PLATFORM_TRIPLET |
725 | MULTIARCH | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 726 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 727 | MAINCC |
728 | CXX | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 729 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 730 | GREP |
731 | CPP | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | OBJEXT |
733 | EXEEXT | ||||
734 | ac_ct_CC | ||||
735 | CPPFLAGS | ||||
736 | LDFLAGS | ||||
737 | CFLAGS | ||||
738 | CC | ||||
739 | EXPORT_MACOSX_DEPLOYMENT_TARGET | ||||
740 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 741 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 742 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 743 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 744 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 745 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 746 | FRAMEWORKALTINSTALLLAST |
747 | FRAMEWORKALTINSTALLFIRST | ||||
748 | FRAMEWORKINSTALLLAST | ||||
749 | FRAMEWORKINSTALLFIRST | ||||
750 | PYTHONFRAMEWORKINSTALLDIR | ||||
751 | PYTHONFRAMEWORKPREFIX | ||||
752 | PYTHONFRAMEWORKDIR | ||||
753 | PYTHONFRAMEWORKIDENTIFIER | ||||
754 | PYTHONFRAMEWORK | ||||
755 | LIPO_32BIT_FLAGS | ||||
756 | ARCH_RUN_32BIT | ||||
757 | UNIVERSALSDK | ||||
758 | CONFIG_ARGS | ||||
759 | SOVERSION | ||||
760 | VERSION | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 761 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 762 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 763 | host_os |
764 | host_vendor | ||||
765 | host_cpu | ||||
766 | host | ||||
767 | build_os | ||||
768 | build_vendor | ||||
769 | build_cpu | ||||
770 | build | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 771 | HAS_GIT |
772 | GITBRANCH | ||||
773 | GITTAG | ||||
774 | GITVERSION | ||||
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 775 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 776 | target_alias |
777 | host_alias | ||||
778 | build_alias | ||||
779 | LIBS | ||||
780 | ECHO_T | ||||
781 | ECHO_N | ||||
782 | ECHO_C | ||||
783 | DEFS | ||||
784 | mandir | ||||
785 | localedir | ||||
786 | libdir | ||||
787 | psdir | ||||
788 | pdfdir | ||||
789 | dvidir | ||||
790 | htmldir | ||||
791 | infodir | ||||
792 | docdir | ||||
793 | oldincludedir | ||||
794 | includedir | ||||
795 | localstatedir | ||||
796 | sharedstatedir | ||||
797 | sysconfdir | ||||
798 | datadir | ||||
799 | datarootdir | ||||
800 | libexecdir | ||||
801 | sbindir | ||||
802 | bindir | ||||
803 | program_transform_name | ||||
804 | prefix | ||||
805 | exec_prefix | ||||
806 | PACKAGE_URL | ||||
807 | PACKAGE_BUGREPORT | ||||
808 | PACKAGE_STRING | ||||
809 | PACKAGE_VERSION | ||||
810 | PACKAGE_TARNAME | ||||
811 | PACKAGE_NAME | ||||
812 | PATH_SEPARATOR | ||||
813 | SHELL' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 814 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 815 | ac_user_opts=' |
816 | enable_option_checking | ||||
817 | enable_universalsdk | ||||
818 | with_universal_archs | ||||
819 | with_framework_name | ||||
820 | enable_framework | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 821 | with_cxx_main |
822 | with_suffix | ||||
823 | enable_shared | ||||
824 | enable_profiling | ||||
825 | with_pydebug | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 826 | with_trace_refs |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 827 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 828 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 829 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 830 | with_hash_algorithm |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 831 | with_tzpath |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 832 | with_address_sanitizer |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 833 | with_memory_sanitizer |
834 | with_undefined_behavior_sanitizer | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 835 | with_libs |
836 | with_system_expat | ||||
837 | with_system_ffi | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 838 | with_system_libmpdec |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 839 | with_decimal_contextvar |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 840 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 841 | with_tcltk_includes |
842 | with_tcltk_libs | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 843 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 844 | enable_ipv6 |
845 | with_doc_strings | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 846 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 847 | with_c_locale_coercion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 848 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 849 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 850 | with_libm |
851 | with_libc | ||||
852 | enable_big_digits | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 853 | with_platlibdir |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 854 | with_wheel_pkg_dir |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 855 | with_readline |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 856 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 857 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 858 | with_openssl |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 859 | with_openssl_rpath |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 860 | with_ssl_default_suites |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 861 | with_builtin_hashlib_hashes |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 862 | with_experimental_isolated_subinterpreters |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 863 | with_static_libpython |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 864 | enable_test_modules |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 865 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 866 | ac_precious_vars='build_alias |
867 | host_alias | ||||
868 | target_alias | ||||
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 869 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 870 | CC |
871 | CFLAGS | ||||
872 | LDFLAGS | ||||
873 | LIBS | ||||
874 | CPPFLAGS | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 875 | CPP |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 876 | PROFILE_TASK |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 877 | PKG_CONFIG |
878 | PKG_CONFIG_PATH | ||||
879 | PKG_CONFIG_LIBDIR' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 880 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 881 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 883 | ac_init_help= |
884 | ac_init_version=false | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 885 | ac_unrecognized_opts= |
886 | ac_unrecognized_sep= | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 887 | # The variables have the same names as the options, with |
888 | # dashes changed to underlines. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 889 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 890 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 892 | no_recursion= |
893 | prefix=NONE | ||||
894 | program_prefix=NONE | ||||
895 | program_suffix=NONE | ||||
896 | program_transform_name=s,x,x, | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 898 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 900 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 901 | x_includes=NONE |
902 | x_libraries=NONE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 903 | |
904 | # Installation directory options. | ||||
905 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||||
906 | # and all the variables that are supposed to be based on exec_prefix | ||||
907 | # by default will actually change. | ||||
908 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 909 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 910 | bindir='${exec_prefix}/bin' |
911 | sbindir='${exec_prefix}/sbin' | ||||
912 | libexecdir='${exec_prefix}/libexec' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 913 | datarootdir='${prefix}/share' |
914 | datadir='${datarootdir}' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 915 | sysconfdir='${prefix}/etc' |
916 | sharedstatedir='${prefix}/com' | ||||
917 | localstatedir='${prefix}/var' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 918 | includedir='${prefix}/include' |
919 | oldincludedir='/usr/include' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 920 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
921 | infodir='${datarootdir}/info' | ||||
922 | htmldir='${docdir}' | ||||
923 | dvidir='${docdir}' | ||||
924 | pdfdir='${docdir}' | ||||
925 | psdir='${docdir}' | ||||
926 | libdir='${exec_prefix}/lib' | ||||
927 | localedir='${datarootdir}/locale' | ||||
928 | mandir='${datarootdir}/man' | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 929 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 930 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 931 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 932 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 933 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 934 | # If the previous option needs an argument, assign it. |
935 | if test -n "$ac_prev"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 936 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 937 | ac_prev= |
938 | continue | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 939 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 941 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 942 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
943 | *=) ac_optarg= ;; | ||||
944 | *) ac_optarg=yes ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 945 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 946 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 947 | # Accept the important Cygnus configure options, so we can diagnose typos. |
948 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 949 | case $ac_dashdash$ac_option in |
950 | --) | ||||
951 | ac_dashdash=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
954 | ac_prev=bindir ;; | ||||
955 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 957 | |
958 | -build | --build | --buil | --bui | --bu) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 959 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 960 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 961 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
964 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||||
965 | ac_prev=cache_file ;; | ||||
966 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||||
967 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | cache_file=$ac_optarg ;; |
969 | |||||
970 | --config-cache | -C) | ||||
971 | cache_file=config.cache ;; | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 972 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 973 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 974 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 975 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 977 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 978 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
979 | | --dataroo | --dataro | --datar) | ||||
980 | ac_prev=datarootdir ;; | ||||
981 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||||
982 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||||
983 | datarootdir=$ac_optarg ;; | ||||
984 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 985 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 986 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 987 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 988 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 989 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 990 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 992 | case $ac_user_opts in |
993 | *" | ||||
994 | "enable_$ac_useropt" | ||||
995 | "*) ;; | ||||
996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||||
997 | ac_unrecognized_sep=', ';; | ||||
998 | esac | ||||
999 | eval enable_$ac_useropt=no ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1000 | |
1001 | -docdir | --docdir | --docdi | --doc | --do) | ||||
1002 | ac_prev=docdir ;; | ||||
1003 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||||
1004 | docdir=$ac_optarg ;; | ||||
1005 | |||||
1006 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||||
1007 | ac_prev=dvidir ;; | ||||
1008 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||||
1009 | dvidir=$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1010 | |
1011 | -enable-* | --enable-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1013 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1016 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1018 | case $ac_user_opts in |
1019 | *" | ||||
1020 | "enable_$ac_useropt" | ||||
1021 | "*) ;; | ||||
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||||
1023 | ac_unrecognized_sep=', ';; | ||||
1024 | esac | ||||
1025 | eval enable_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1026 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1028 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||||
1029 | | --exec | --exe | --ex) | ||||
1030 | ac_prev=exec_prefix ;; | ||||
1031 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||||
1032 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||||
1033 | | --exec=* | --exe=* | --ex=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1034 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1035 | |
1036 | -gas | --gas | --ga | --g) | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1037 | # Obsolete; use --with-gas. |
1038 | with_gas=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 | -help | --help | --hel | --he | -h) |
1041 | ac_init_help=long ;; | ||||
1042 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||||
1043 | ac_init_help=recursive ;; | ||||
1044 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||||
1045 | ac_init_help=short ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1046 | |
1047 | -host | --host | --hos | --ho) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1050 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1051 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1052 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1053 | ac_prev=htmldir ;; | ||||
1054 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||||
1055 | | --ht=*) | ||||
1056 | htmldir=$ac_optarg ;; | ||||
1057 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1058 | -includedir | --includedir | --includedi | --included | --include \ |
1059 | | --includ | --inclu | --incl | --inc) | ||||
1060 | ac_prev=includedir ;; | ||||
1061 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||||
1062 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1064 | |
1065 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||||
1066 | ac_prev=infodir ;; | ||||
1067 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1069 | |
1070 | -libdir | --libdir | --libdi | --libd) | ||||
1071 | ac_prev=libdir ;; | ||||
1072 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 | |
1075 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||||
1076 | | --libexe | --libex | --libe) | ||||
1077 | ac_prev=libexecdir ;; | ||||
1078 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||||
1079 | | --libexe=* | --libex=* | --libe=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1080 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1081 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1082 | -localedir | --localedir | --localedi | --localed | --locale) |
1083 | ac_prev=localedir ;; | ||||
1084 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||||
1085 | localedir=$ac_optarg ;; | ||||
1086 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1087 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1088 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1089 | ac_prev=localstatedir ;; |
1090 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1091 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1093 | |
1094 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||||
1095 | ac_prev=mandir ;; | ||||
1096 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1097 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1100 | # Obsolete; use --without-fp. |
1101 | with_fp=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 | |
1103 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | no_create=yes ;; |
1106 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1107 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1108 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||||
1109 | no_recursion=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1111 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1112 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||||
1113 | | --oldin | --oldi | --old | --ol | --o) | ||||
1114 | ac_prev=oldincludedir ;; | ||||
1115 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||||
1116 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||||
1117 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1118 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1119 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1120 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1121 | ac_prev=prefix ;; | ||||
1122 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | |
1125 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||||
1126 | | --program-pre | --program-pr | --program-p) | ||||
1127 | ac_prev=program_prefix ;; | ||||
1128 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||||
1129 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | |
1132 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||||
1133 | | --program-suf | --program-su | --program-s) | ||||
1134 | ac_prev=program_suffix ;; | ||||
1135 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||||
1136 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1137 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1138 | |
1139 | -program-transform-name | --program-transform-name \ | ||||
1140 | | --program-transform-nam | --program-transform-na \ | ||||
1141 | | --program-transform-n | --program-transform- \ | ||||
1142 | | --program-transform | --program-transfor \ | ||||
1143 | | --program-transfo | --program-transf \ | ||||
1144 | | --program-trans | --program-tran \ | ||||
1145 | | --progr-tra | --program-tr | --program-t) | ||||
1146 | ac_prev=program_transform_name ;; | ||||
1147 | -program-transform-name=* | --program-transform-name=* \ | ||||
1148 | | --program-transform-nam=* | --program-transform-na=* \ | ||||
1149 | | --program-transform-n=* | --program-transform-=* \ | ||||
1150 | | --program-transform=* | --program-transfor=* \ | ||||
1151 | | --program-transfo=* | --program-transf=* \ | ||||
1152 | | --program-trans=* | --program-tran=* \ | ||||
1153 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1154 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1155 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1156 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1157 | ac_prev=pdfdir ;; | ||||
1158 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||||
1159 | pdfdir=$ac_optarg ;; | ||||
1160 | |||||
1161 | -psdir | --psdir | --psdi | --psd | --ps) | ||||
1162 | ac_prev=psdir ;; | ||||
1163 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||||
1164 | psdir=$ac_optarg ;; | ||||
1165 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1166 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1167 | | -silent | --silent | --silen | --sile | --sil) | ||||
1168 | silent=yes ;; | ||||
1169 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1170 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1171 | ac_prev=sbindir ;; | ||||
1172 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||||
1173 | | --sbi=* | --sb=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1175 | |
1176 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||||
1177 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||||
1178 | | --sharedst | --shareds | --shared | --share | --shar \ | ||||
1179 | | --sha | --sh) | ||||
1180 | ac_prev=sharedstatedir ;; | ||||
1181 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||||
1182 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||||
1183 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||||
1184 | | --sha=* | --sh=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1185 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1186 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1187 | -site | --site | --sit) |
1188 | ac_prev=site ;; | ||||
1189 | -site=* | --site=* | --sit=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1190 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1191 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1192 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1193 | ac_prev=srcdir ;; | ||||
1194 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1197 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1198 | | --syscon | --sysco | --sysc | --sys | --sy) | ||||
1199 | ac_prev=sysconfdir ;; | ||||
1200 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||||
1201 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1202 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1203 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1204 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1205 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1206 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1207 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1208 | |
1209 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||||
1210 | verbose=yes ;; | ||||
1211 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1212 | -version | --version | --versio | --versi | --vers | -V) |
1213 | ac_init_version=: ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | |
1215 | -with-* | --with-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1216 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1217 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1219 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1220 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1222 | case $ac_user_opts in |
1223 | *" | ||||
1224 | "with_$ac_useropt" | ||||
1225 | "*) ;; | ||||
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||||
1227 | ac_unrecognized_sep=', ';; | ||||
1228 | esac | ||||
1229 | eval with_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1230 | |
1231 | -without-* | --without-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1232 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1233 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1235 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1236 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1238 | case $ac_user_opts in |
1239 | *" | ||||
1240 | "with_$ac_useropt" | ||||
1241 | "*) ;; | ||||
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||||
1243 | ac_unrecognized_sep=', ';; | ||||
1244 | esac | ||||
1245 | eval with_$ac_useropt=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1246 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | --x) |
1248 | # Obsolete; use --with-x. | ||||
1249 | with_x=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1250 | |
1251 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||||
1252 | | --x-incl | --x-inc | --x-in | --x-i) | ||||
1253 | ac_prev=x_includes ;; | ||||
1254 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||||
1255 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1257 | |
1258 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||||
1259 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||||
1260 | ac_prev=x_libraries ;; | ||||
1261 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||||
1262 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1263 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1265 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1266 | Try \`$0 --help' for more information" | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1267 | ;; |
1268 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1269 | *=*) |
1270 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||||
1271 | # Reject names that are not valid shell variable names. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1272 | case $ac_envvar in #( |
1273 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1274 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1275 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1276 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | export $ac_envvar ;; |
1278 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1279 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | # FIXME: should be removed in autoconf 3.0. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1281 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1283 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1284 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1285 | ;; |
1286 | |||||
1287 | esac | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1288 | done |
1289 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1290 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1291 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1292 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1293 | fi |
1294 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1295 | if test -n "$ac_unrecognized_opts"; then |
1296 | case $enable_option_checking in | ||||
1297 | no) ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1298 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1299 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1300 | esac |
1301 | fi | ||||
1302 | |||||
1303 | # Check all directory arguments for consistency. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1304 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1305 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||||
1306 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1307 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1309 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1310 | # Remove trailing slashes. |
1311 | case $ac_val in | ||||
1312 | */ ) | ||||
1313 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||||
1314 | eval $ac_var=\$ac_val;; | ||||
1315 | esac | ||||
1316 | # Be sure to have absolute directory names. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1318 | [\\/$]* | ?:[\\/]* ) continue;; |
1319 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1320 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1321 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1322 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1324 | # There might be people who depend on the old broken behavior: `$host' |
1325 | # used to hold the argument of --host etc. | ||||
1326 | # FIXME: To remove some day. | ||||
1327 | build=$build_alias | ||||
1328 | host=$host_alias | ||||
1329 | target=$target_alias | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1331 | # FIXME: To remove some day. |
1332 | if test "x$host_alias" != x; then | ||||
1333 | if test "x$build_alias" = x; then | ||||
1334 | cross_compiling=maybe | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1335 | elif test "x$build_alias" != "x$host_alias"; then |
1336 | cross_compiling=yes | ||||
1337 | fi | ||||
1338 | fi | ||||
1339 | |||||
1340 | ac_tool_prefix= | ||||
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||||
1342 | |||||
1343 | test "$silent" = yes && exec 6>/dev/null | ||||
1344 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1345 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1347 | ac_ls_di=`ls -di .` && | ||||
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1349 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1350 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1351 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1352 | |
1353 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1354 | # Find the source files, if location was not specified. |
1355 | if test -z "$srcdir"; then | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1356 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1357 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1358 | ac_confdir=`$as_dirname -- "$as_myself" || |
1359 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
1360 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||||
1361 | X"$as_myself" : 'X\(//\)$' \| \ | ||||
1362 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1363 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1365 | s//\1/ | ||||
1366 | q | ||||
1367 | } | ||||
1368 | /^X\(\/\/\)[^/].*/{ | ||||
1369 | s//\1/ | ||||
1370 | q | ||||
1371 | } | ||||
1372 | /^X\(\/\/\)$/{ | ||||
1373 | s//\1/ | ||||
1374 | q | ||||
1375 | } | ||||
1376 | /^X\(\/\).*/{ | ||||
1377 | s//\1/ | ||||
1378 | q | ||||
1379 | } | ||||
1380 | s/.*/./; q'` | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1381 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1382 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1383 | srcdir=.. |
1384 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1385 | else |
1386 | ac_srcdir_defaulted=no | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1387 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1390 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1391 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1392 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1393 | ac_abs_confdir=`( | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1394 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1395 | pwd)` |
1396 | # When building in place, set srcdir=. | ||||
1397 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||||
1398 | srcdir=. | ||||
1399 | fi | ||||
1400 | # Remove unnecessary trailing slashes from srcdir. | ||||
1401 | # Double slashes in file names in object file debugging info | ||||
1402 | # mess up M-x gdb in Emacs. | ||||
1403 | case $srcdir in | ||||
1404 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||||
1405 | esac | ||||
1406 | for ac_var in $ac_precious_vars; do | ||||
1407 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||||
1408 | eval ac_env_${ac_var}_value=\$${ac_var} | ||||
1409 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||||
1410 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||||
1411 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | # |
1414 | # Report the --help message. | ||||
1415 | # | ||||
1416 | if test "$ac_init_help" = "long"; then | ||||
1417 | # Omit some internal or obsolete options to make the list less imposing. | ||||
1418 | # This message is too long to be a string in the A/UX 3.1 sh. | ||||
1419 | cat <<_ACEOF | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1420 | \`configure' configures python 3.10 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | |
1422 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||||
1423 | |||||
1424 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||||
1425 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||||
1426 | |||||
1427 | Defaults for the options are specified in brackets. | ||||
1428 | |||||
1429 | Configuration: | ||||
1430 | -h, --help display this help and exit | ||||
1431 | --help=short display options specific to this package | ||||
1432 | --help=recursive display the short help of all the included packages | ||||
1433 | -V, --version display version information and exit | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1434 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | --cache-file=FILE cache test results in FILE [disabled] |
1436 | -C, --config-cache alias for \`--cache-file=config.cache' | ||||
1437 | -n, --no-create do not create output files | ||||
1438 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||||
1439 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | Installation directories: |
1441 | --prefix=PREFIX install architecture-independent files in PREFIX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1442 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1444 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | |
1446 | By default, \`make install' will install all the files in | ||||
1447 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||||
1448 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||||
1449 | for instance \`--prefix=\$HOME'. | ||||
1450 | |||||
1451 | For better control, use the options below. | ||||
1452 | |||||
1453 | Fine tuning of the installation directories: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1454 | --bindir=DIR user executables [EPREFIX/bin] |
1455 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||||
1456 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||||
1457 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||||
1458 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||||
1459 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||||
1460 | --libdir=DIR object code libraries [EPREFIX/lib] | ||||
1461 | --includedir=DIR C header files [PREFIX/include] | ||||
1462 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||||
1463 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||||
1464 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||||
1465 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||||
1466 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||||
1467 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||||
1468 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] | ||||
1469 | --htmldir=DIR html documentation [DOCDIR] | ||||
1470 | --dvidir=DIR dvi documentation [DOCDIR] | ||||
1471 | --pdfdir=DIR pdf documentation [DOCDIR] | ||||
1472 | --psdir=DIR ps documentation [DOCDIR] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | _ACEOF |
1474 | |||||
1475 | cat <<\_ACEOF | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1476 | |
1477 | System types: | ||||
1478 | --build=BUILD configure for building on BUILD [guessed] | ||||
1479 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | _ACEOF |
1481 | fi | ||||
1482 | |||||
1483 | if test -n "$ac_init_help"; then | ||||
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1484 | case $ac_init_help in |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1485 | short | recursive ) echo "Configuration of python 3.10:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1486 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | cat <<\_ACEOF |
1488 | |||||
1489 | Optional Features: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1490 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1492 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||||
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1493 | --enable-universalsdk[=SDKDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1494 | create a universal binary build. SDKDIR specifies |
1495 | which macOS SDK should be used to perform the build, | ||||
1496 | see Mac/README.rst. (default is no) | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1497 | --enable-framework[=INSTALLDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1498 | create a Python.framework rather than a traditional |
1499 | Unix install. optional INSTALLDIR specifies the | ||||
1500 | installation path. see Mac/README.rst (default is | ||||
1501 | no) | ||||
1502 | --enable-shared enable building a shared Python library (default is | ||||
1503 | no) | ||||
1504 | --enable-profiling enable C-level code profiling with gprof (default is | ||||
1505 | no) | ||||
1506 | --enable-optimizations enable expensive, stable optimizations (PGO, etc.) | ||||
1507 | (default is no) | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1508 | --enable-loadable-sqlite-extensions |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1509 | support loadable extensions in _sqlite module, see |
1510 | Doc/library/sqlite3.rst (default is no) | ||||
1511 | --enable-ipv6 enable ipv6 (with ipv4) support, see | ||||
1512 | Doc/library/socket.rst (default is yes if supported) | ||||
1513 | --enable-big-digits[=15|30] | ||||
1514 | use big digits (30 or 15 bits) for Python longs | ||||
1515 | (default is system-dependent)] | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 1516 | --disable-test-modules don't build nor install test modules |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 | |
1518 | Optional Packages: | ||||
1519 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
1520 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1521 | --with-universal-archs=ARCH |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1522 | specify the kind of universal binary that should be |
1523 | created. this option is only valid when | ||||
1524 | --enable-universalsdk is set; options are: | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 1525 | ("universal2", "32-bit", "64-bit", "3-way", "intel", |
1526 | "intel-32", "intel-64", or "all") see Mac/README.rst | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1527 | --with-framework-name=FRAMEWORK |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1528 | specify the name for the python framework on macOS |
1529 | only valid when --enable-framework is set. see | ||||
1530 | Mac/README.rst (default is 'Python') | ||||
1531 | --with-cxx-main[=COMPILER] | ||||
1532 | compile main() and link Python executable with C++ | ||||
1533 | compiler specified in COMPILER (default is $CXX) | ||||
1534 | --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe') | ||||
1535 | --with-pydebug build with Py_DEBUG defined (default is no) | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 1536 | --with-trace-refs enable tracing references for debugging purpose |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1537 | (default is no) |
1538 | --with-assertions build with C assertions enabled (default is no) | ||||
1539 | --with-lto enable Link-Time-Optimization in any build (default | ||||
1540 | is no) | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1541 | --with-hash-algorithm=[fnv|siphash24] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1542 | select hash algorithm for use in Python/pyhash.c |
1543 | (default is SipHash24) | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 1544 | --with-tzpath=<list of absolute paths separated by pathsep> |
1545 | Select the default time zone search path for zoneinfo.TZPATH | ||||
1546 | |||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1547 | --with-address-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1548 | enable AddressSanitizer memory error detector, |
1549 | 'asan' (default is no) | ||||
1550 | --with-memory-sanitizer enable MemorySanitizer allocation error detector, | ||||
1551 | 'msan' (default is no) | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 1552 | --with-undefined-behavior-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1553 | enable UndefinedBehaviorSanitizer undefined |
1554 | behaviour detector, 'ubsan' (default is no) | ||||
1555 | --with-libs='lib1 ...' link against additional libs (default is no) | ||||
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1556 | --with-system-expat build pyexpat module using an installed expat |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1557 | library, see Doc/library/pyexpat.rst (default is no) |
1558 | --with-system-ffi build _ctypes module using an installed ffi library, | ||||
1559 | see Doc/library/ctypes.rst (default is | ||||
1560 | system-dependent) | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1561 | --with-system-libmpdec build _decimal module using an installed libmpdec |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1562 | library, see Doc/library/decimal.rst (default is no) |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 1563 | --with-decimal-contextvar |
1564 | build _decimal module using a coroutine-local rather | ||||
1565 | than a thread-local context (default is yes) | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1566 | --with-tcltk-includes='-I...' |
1567 | override search for Tcl and Tk include files | ||||
1568 | --with-tcltk-libs='-L...' | ||||
1569 | override search for Tcl and Tk libs | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1570 | --with-dbmliborder=db1:db2:... |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1571 | override order to check db backends for dbm; a valid |
1572 | value is a colon separated string with the backend | ||||
1573 | names `ndbm', `gdbm' and `bdb'. | ||||
1574 | --with-doc-strings enable documentation strings (default is yes) | ||||
1575 | --with-pymalloc enable specialized mallocs (default is yes) | ||||
1576 | --with-c-locale-coercion | ||||
1577 | enable C locale coercion to a UTF-8 based locale | ||||
1578 | (default is yes) | ||||
1579 | --with-valgrind enable Valgrind support (default is no) | ||||
1580 | --with-dtrace enable DTrace support (default is no) | ||||
1581 | --with-libm=STRING override libm math library to STRING (default is | ||||
1582 | system-dependent) | ||||
1583 | --with-libc=STRING override libc C library to STRING (default is | ||||
1584 | system-dependent) | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 1585 | --with-platlibdir=DIRNAME |
1586 | Python library directory name (default is "lib") | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 1587 | --with-wheel-pkg-dir=PATH |
1588 | Directory of wheel packages used by ensurepip | ||||
1589 | (default: none) | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 1590 | --with(out)-readline[=editline] |
1591 | use Editline for backend or disable readline module | ||||
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1592 | --with-computed-gotos enable computed gotos in evaluation loop (enabled by |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1593 | default on supported compilers) |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1594 | --with-ensurepip[=install|upgrade|no] |
1595 | "install" or "upgrade" using bundled pip (default is | ||||
1596 | upgrade) | ||||
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame^] | 1597 | --with-openssl=DIR root of the OpenSSL directory |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1598 | --with-openssl-rpath=[DIR|auto|no] |
1599 | Set runtime library directory (rpath) for OpenSSL | ||||
1600 | libraries, no (default): don't set rpath, auto: | ||||
1601 | auto-detect rpath from --with-openssl and | ||||
1602 | pkg-config, DIR: set an explicit rpath | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1603 | --with-ssl-default-suites=[python|openssl|STRING] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1604 | override default cipher suites string, python: use |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1605 | Python's preferred selection (default), openssl: |
1606 | leave OpenSSL's defaults untouched, STRING: use a | ||||
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1607 | custom string, PROTOCOL_SSLv2 ignores the setting, |
1608 | see Doc/library/ssl.rst | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 1609 | --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 |
1610 | builtin hash modules, md5, sha1, sha256, sha512, | ||||
1611 | sha3 (with shake), blake2 | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 1612 | --with-experimental-isolated-subinterpreters |
1613 | better isolate subinterpreters, experimental build | ||||
1614 | mode (default is no) | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 1615 | --without-static-libpython |
1616 | do not build libpythonMAJOR.MINOR.a and do not | ||||
1617 | install python.o (default is yes) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1618 | |
1619 | Some influential environment variables: | ||||
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1620 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1621 | CC C compiler command |
1622 | CFLAGS C compiler flags | ||||
1623 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
1624 | nonstandard directory <lib dir> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1625 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1626 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1627 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | CPP C preprocessor |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 1629 | PROFILE_TASK |
1630 | Python args for PGO generation task | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 1631 | PKG_CONFIG path to pkg-config utility |
1632 | PKG_CONFIG_PATH | ||||
1633 | directories to add to pkg-config's search path | ||||
1634 | PKG_CONFIG_LIBDIR | ||||
1635 | path overriding pkg-config's built-in search path | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 | |
1637 | Use these variables to override the choices made by `configure' or to help | ||||
1638 | it to find libraries and programs with nonstandard names/locations. | ||||
1639 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1640 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1642 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | fi |
1644 | |||||
1645 | if test "$ac_init_help" = "recursive"; then | ||||
1646 | # If there are subdirs, report their specific --help. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1647 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1648 | test -d "$ac_dir" || |
1649 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||||
1650 | continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | ac_builddir=. |
1652 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1653 | case "$ac_dir" in |
1654 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1655 | *) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1656 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1657 | # A ".." for each directory in $ac_dir_suffix. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1658 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1659 | case $ac_top_builddir_sub in |
1660 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1661 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
1662 | esac ;; | ||||
1663 | esac | ||||
1664 | ac_abs_top_builddir=$ac_pwd | ||||
1665 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
1666 | # for backward compatibility: | ||||
1667 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1668 | |
1669 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1670 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1672 | ac_top_srcdir=$ac_top_builddir_sub |
1673 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
1674 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1675 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1676 | ac_top_srcdir=$srcdir |
1677 | ac_abs_top_srcdir=$srcdir ;; | ||||
1678 | *) # Relative name. | ||||
1679 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
1680 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
1681 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1683 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1684 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1685 | cd "$ac_dir" || { ac_status=$?; continue; } |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1686 | # Check for guested configure. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1687 | if test -f "$ac_srcdir/configure.gnu"; then |
1688 | echo && | ||||
1689 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||||
1690 | elif test -f "$ac_srcdir/configure"; then | ||||
1691 | echo && | ||||
1692 | $SHELL "$ac_srcdir/configure" --help=recursive | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1693 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1694 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1695 | fi || ac_status=$? |
1696 | cd "$ac_pwd" || { ac_status=$?; break; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | done |
1698 | fi | ||||
1699 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1700 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | if $ac_init_version; then |
1702 | cat <<\_ACEOF | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1703 | python configure 3.10 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1704 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1705 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1706 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1707 | This configure script is free software; the Free Software Foundation |
1708 | gives unlimited permission to copy, distribute and modify it. | ||||
1709 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1710 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1712 | |
1713 | ## ------------------------ ## | ||||
1714 | ## Autoconf initialization. ## | ||||
1715 | ## ------------------------ ## | ||||
1716 | |||||
1717 | # ac_fn_c_try_compile LINENO | ||||
1718 | # -------------------------- | ||||
1719 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||||
1720 | ac_fn_c_try_compile () | ||||
1721 | { | ||||
1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1723 | rm -f conftest.$ac_objext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1724 | if { { ac_try="$ac_compile" |
1725 | case "(($ac_try" in | ||||
1726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1727 | *) ac_try_echo=$ac_try;; | ||||
1728 | esac | ||||
1729 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1730 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1731 | (eval "$ac_compile") 2>conftest.err |
1732 | ac_status=$? | ||||
1733 | if test -s conftest.err; then | ||||
1734 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1735 | cat conftest.er1 >&5 | ||||
1736 | mv -f conftest.er1 conftest.err | ||||
1737 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1739 | test $ac_status = 0; } && { |
1740 | test -z "$ac_c_werror_flag" || | ||||
1741 | test ! -s conftest.err | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1742 | } && test -s conftest.$ac_objext; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1743 | ac_retval=0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1744 | else |
1745 | $as_echo "$as_me: failed program was:" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1746 | sed 's/^/| /' conftest.$ac_ext >&5 |
1747 | |||||
1748 | ac_retval=1 | ||||
1749 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1750 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1751 | as_fn_set_status $ac_retval |
1752 | |||||
1753 | } # ac_fn_c_try_compile | ||||
1754 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1755 | # ac_fn_c_try_cpp LINENO |
1756 | # ---------------------- | ||||
1757 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||||
1758 | ac_fn_c_try_cpp () | ||||
1759 | { | ||||
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1761 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||||
1762 | case "(($ac_try" in | ||||
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1764 | *) ac_try_echo=$ac_try;; | ||||
1765 | esac | ||||
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1767 | $as_echo "$ac_try_echo"; } >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1769 | ac_status=$? | ||||
1770 | if test -s conftest.err; then | ||||
1771 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1772 | cat conftest.er1 >&5 | ||||
1773 | mv -f conftest.er1 conftest.err | ||||
1774 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1776 | test $ac_status = 0; } > conftest.i && { |
1777 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||||
1778 | test ! -s conftest.err | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1779 | }; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1780 | ac_retval=0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1781 | else |
1782 | $as_echo "$as_me: failed program was:" >&5 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1783 | sed 's/^/| /' conftest.$ac_ext >&5 |
1784 | |||||
1785 | ac_retval=1 | ||||
1786 | fi | ||||
1787 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1788 | as_fn_set_status $ac_retval | ||||
1789 | |||||
1790 | } # ac_fn_c_try_cpp | ||||
1791 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1792 | # ac_fn_c_try_link LINENO |
1793 | # ----------------------- | ||||
1794 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||||
1795 | ac_fn_c_try_link () | ||||
1796 | { | ||||
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1798 | rm -f conftest.$ac_objext conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1799 | if { { ac_try="$ac_link" |
1800 | case "(($ac_try" in | ||||
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1802 | *) ac_try_echo=$ac_try;; | ||||
1803 | esac | ||||
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1805 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1806 | (eval "$ac_link") 2>conftest.err |
1807 | ac_status=$? | ||||
1808 | if test -s conftest.err; then | ||||
1809 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1810 | cat conftest.er1 >&5 | ||||
1811 | mv -f conftest.er1 conftest.err | ||||
1812 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1814 | test $ac_status = 0; } && { |
1815 | test -z "$ac_c_werror_flag" || | ||||
1816 | test ! -s conftest.err | ||||
1817 | } && test -s conftest$ac_exeext && { | ||||
1818 | test "$cross_compiling" = yes || | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1819 | test -x conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1820 | }; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1821 | ac_retval=0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1822 | else |
1823 | $as_echo "$as_me: failed program was:" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1824 | sed 's/^/| /' conftest.$ac_ext >&5 |
1825 | |||||
1826 | ac_retval=1 | ||||
1827 | fi | ||||
1828 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||||
1829 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||||
1830 | # interfere with the next link command; also delete a directory that is | ||||
1831 | # left behind by Apple's compiler. We do this before executing the actions. | ||||
1832 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1833 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1834 | as_fn_set_status $ac_retval |
1835 | |||||
1836 | } # ac_fn_c_try_link | ||||
1837 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1838 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1839 | # ------------------------------------------------------- |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1840 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1841 | # the include files in INCLUDES and setting the cache variable VAR | ||||
1842 | # accordingly. | ||||
1843 | ac_fn_c_check_header_mongrel () | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1844 | { |
1845 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1846 | if eval \${$3+:} false; then : |
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1848 | $as_echo_n "checking for $2... " >&6; } | ||||
1849 | if eval \${$3+:} false; then : | ||||
1850 | $as_echo_n "(cached) " >&6 | ||||
1851 | fi | ||||
1852 | eval ac_res=\$$3 | ||||
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1854 | $as_echo "$ac_res" >&6; } | ||||
1855 | else | ||||
1856 | # Is the header compilable? | ||||
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||||
1858 | $as_echo_n "checking $2 usability... " >&6; } | ||||
1859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1860 | /* end confdefs.h. */ |
1861 | $4 | ||||
1862 | #include <$2> | ||||
1863 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1864 | if ac_fn_c_try_compile "$LINENO"; then : |
1865 | ac_header_compiler=yes | ||||
1866 | else | ||||
1867 | ac_header_compiler=no | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1868 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||||
1871 | $as_echo "$ac_header_compiler" >&6; } | ||||
1872 | |||||
1873 | # Is the header present? | ||||
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||||
1875 | $as_echo_n "checking $2 presence... " >&6; } | ||||
1876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1877 | /* end confdefs.h. */ | ||||
1878 | #include <$2> | ||||
1879 | _ACEOF | ||||
1880 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
1881 | ac_header_preproc=yes | ||||
1882 | else | ||||
1883 | ac_header_preproc=no | ||||
1884 | fi | ||||
1885 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||||
1887 | $as_echo "$ac_header_preproc" >&6; } | ||||
1888 | |||||
1889 | # So? What about this header? | ||||
1890 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||||
1891 | yes:no: ) | ||||
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||||
1893 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||||
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1895 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1896 | ;; | ||||
1897 | no:yes:* ) | ||||
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||||
1899 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||||
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||||
1901 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||||
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||||
1903 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||||
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||||
1905 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||||
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1907 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1908 | ( $as_echo "## --------------------------------------- ## | ||||
1909 | ## Report this to https://bugs.python.org/ ## | ||||
1910 | ## --------------------------------------- ##" | ||||
1911 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||||
1912 | ;; | ||||
1913 | esac | ||||
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1915 | $as_echo_n "checking for $2... " >&6; } | ||||
1916 | if eval \${$3+:} false; then : | ||||
1917 | $as_echo_n "(cached) " >&6 | ||||
1918 | else | ||||
1919 | eval "$3=\$ac_header_compiler" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1920 | fi |
1921 | eval ac_res=\$$3 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1923 | $as_echo "$ac_res" >&6; } | ||||
1924 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1925 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1926 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1927 | } # ac_fn_c_check_header_mongrel |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1928 | |
1929 | # ac_fn_c_try_run LINENO | ||||
1930 | # ---------------------- | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1931 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1932 | # that executables *can* be run. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | ac_fn_c_try_run () |
1934 | { | ||||
1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1936 | if { { ac_try="$ac_link" | ||||
1937 | case "(($ac_try" in | ||||
1938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1939 | *) ac_try_echo=$ac_try;; | ||||
1940 | esac | ||||
1941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1942 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1943 | (eval "$ac_link") 2>&5 |
1944 | ac_status=$? | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1946 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1947 | { { case "(($ac_try" in | ||||
1948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1949 | *) ac_try_echo=$ac_try;; | ||||
1950 | esac | ||||
1951 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1952 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1953 | (eval "$ac_try") 2>&5 |
1954 | ac_status=$? | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1956 | test $ac_status = 0; }; }; then : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1957 | ac_retval=0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1958 | else |
1959 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||||
1960 | $as_echo "$as_me: failed program was:" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1961 | sed 's/^/| /' conftest.$ac_ext >&5 |
1962 | |||||
1963 | ac_retval=$ac_status | ||||
1964 | fi | ||||
1965 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1966 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1967 | as_fn_set_status $ac_retval |
1968 | |||||
1969 | } # ac_fn_c_try_run | ||||
1970 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1971 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1972 | # ------------------------------------------------------- | ||||
1973 | # Tests whether HEADER exists and can be compiled using the include files in | ||||
1974 | # INCLUDES, setting the cache variable VAR accordingly. | ||||
1975 | ac_fn_c_check_header_compile () | ||||
1976 | { | ||||
1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1979 | $as_echo_n "checking for $2... " >&6; } | ||||
1980 | if eval \${$3+:} false; then : | ||||
1981 | $as_echo_n "(cached) " >&6 | ||||
1982 | else | ||||
1983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1984 | /* end confdefs.h. */ | ||||
1985 | $4 | ||||
1986 | #include <$2> | ||||
1987 | _ACEOF | ||||
1988 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1989 | eval "$3=yes" | ||||
1990 | else | ||||
1991 | eval "$3=no" | ||||
1992 | fi | ||||
1993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1994 | fi | ||||
1995 | eval ac_res=\$$3 | ||||
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1997 | $as_echo "$ac_res" >&6; } | ||||
1998 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1999 | |||||
2000 | } # ac_fn_c_check_header_compile | ||||
2001 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2002 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2003 | # ------------------------------------------- | ||||
2004 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||||
2005 | # variable VAR accordingly. | ||||
2006 | ac_fn_c_check_type () | ||||
2007 | { | ||||
2008 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2010 | $as_echo_n "checking for $2... " >&6; } | ||||
2011 | if eval \${$3+:} false; then : | ||||
2012 | $as_echo_n "(cached) " >&6 | ||||
2013 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2014 | eval "$3=no" |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2016 | /* end confdefs.h. */ | ||||
2017 | $4 | ||||
2018 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2019 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2020 | { |
2021 | if (sizeof ($2)) | ||||
2022 | return 0; | ||||
2023 | ; | ||||
2024 | return 0; | ||||
2025 | } | ||||
2026 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2027 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2029 | /* end confdefs.h. */ | ||||
2030 | $4 | ||||
2031 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2032 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2033 | { |
2034 | if (sizeof (($2))) | ||||
2035 | return 0; | ||||
2036 | ; | ||||
2037 | return 0; | ||||
2038 | } | ||||
2039 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2040 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2041 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2042 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2043 | eval "$3=yes" |
2044 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2046 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2048 | fi |
2049 | eval ac_res=\$$3 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2051 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2052 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2053 | |
2054 | } # ac_fn_c_check_type | ||||
2055 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2056 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2057 | # -------------------------------------------- | ||||
2058 | # Tries to find the compile-time value of EXPR in a program that includes | ||||
2059 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||||
2060 | # computed | ||||
2061 | ac_fn_c_compute_int () | ||||
2062 | { | ||||
2063 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2064 | if test "$cross_compiling" = yes; then | ||||
2065 | # Depending upon the size, compute the lo and hi bounds. | ||||
2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2067 | /* end confdefs.h. */ | ||||
2068 | $4 | ||||
2069 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2070 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2071 | { |
2072 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2073 | test_array [0] = 0; |
2074 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2075 | |
2076 | ; | ||||
2077 | return 0; | ||||
2078 | } | ||||
2079 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2080 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2081 | ac_lo=0 ac_mid=0 |
2082 | while :; do | ||||
2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2084 | /* end confdefs.h. */ | ||||
2085 | $4 | ||||
2086 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2087 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2088 | { |
2089 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2090 | test_array [0] = 0; |
2091 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2092 | |
2093 | ; | ||||
2094 | return 0; | ||||
2095 | } | ||||
2096 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2097 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2098 | ac_hi=$ac_mid; break |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2099 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2100 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2101 | if test $ac_lo -le $ac_mid; then | ||||
2102 | ac_lo= ac_hi= | ||||
2103 | break | ||||
2104 | fi | ||||
2105 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||||
2106 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2108 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2109 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2111 | /* end confdefs.h. */ | ||||
2112 | $4 | ||||
2113 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2114 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2115 | { |
2116 | static int test_array [1 - 2 * !(($2) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2117 | test_array [0] = 0; |
2118 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2119 | |
2120 | ; | ||||
2121 | return 0; | ||||
2122 | } | ||||
2123 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2124 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2125 | ac_hi=-1 ac_mid=-1 |
2126 | while :; do | ||||
2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2128 | /* end confdefs.h. */ | ||||
2129 | $4 | ||||
2130 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2131 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2132 | { |
2133 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2134 | test_array [0] = 0; |
2135 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2136 | |
2137 | ; | ||||
2138 | return 0; | ||||
2139 | } | ||||
2140 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2141 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2142 | ac_lo=$ac_mid; break |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2143 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2144 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2145 | if test $ac_mid -le $ac_hi; then | ||||
2146 | ac_lo= ac_hi= | ||||
2147 | break | ||||
2148 | fi | ||||
2149 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||||
2150 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2152 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2153 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2154 | ac_lo= ac_hi= |
2155 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2157 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2159 | # Binary search between lo and hi bounds. |
2160 | while test "x$ac_lo" != "x$ac_hi"; do | ||||
2161 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||||
2162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2163 | /* end confdefs.h. */ | ||||
2164 | $4 | ||||
2165 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2166 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2167 | { |
2168 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2169 | test_array [0] = 0; |
2170 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2171 | |
2172 | ; | ||||
2173 | return 0; | ||||
2174 | } | ||||
2175 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2176 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2177 | ac_hi=$ac_mid |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2178 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2179 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2180 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2182 | done |
2183 | case $ac_lo in #(( | ||||
2184 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||||
2185 | '') ac_retval=1 ;; | ||||
2186 | esac | ||||
2187 | else | ||||
2188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2189 | /* end confdefs.h. */ | ||||
2190 | $4 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2191 | static long int longval () { return $2; } |
2192 | static unsigned long int ulongval () { return $2; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2193 | #include <stdio.h> |
2194 | #include <stdlib.h> | ||||
2195 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2196 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2197 | { |
2198 | |||||
2199 | FILE *f = fopen ("conftest.val", "w"); | ||||
2200 | if (! f) | ||||
2201 | return 1; | ||||
2202 | if (($2) < 0) | ||||
2203 | { | ||||
2204 | long int i = longval (); | ||||
2205 | if (i != ($2)) | ||||
2206 | return 1; | ||||
2207 | fprintf (f, "%ld", i); | ||||
2208 | } | ||||
2209 | else | ||||
2210 | { | ||||
2211 | unsigned long int i = ulongval (); | ||||
2212 | if (i != ($2)) | ||||
2213 | return 1; | ||||
2214 | fprintf (f, "%lu", i); | ||||
2215 | } | ||||
2216 | /* Do not output a trailing newline, as this causes \r\n confusion | ||||
2217 | on some platforms. */ | ||||
2218 | return ferror (f) || fclose (f) != 0; | ||||
2219 | |||||
2220 | ; | ||||
2221 | return 0; | ||||
2222 | } | ||||
2223 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2224 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2225 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2226 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2227 | ac_retval=1 |
2228 | fi | ||||
2229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
2230 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
2231 | rm -f conftest.val | ||||
2232 | |||||
2233 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2234 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2235 | as_fn_set_status $ac_retval |
2236 | |||||
2237 | } # ac_fn_c_compute_int | ||||
2238 | |||||
2239 | # ac_fn_c_check_func LINENO FUNC VAR | ||||
2240 | # ---------------------------------- | ||||
2241 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||||
2242 | ac_fn_c_check_func () | ||||
2243 | { | ||||
2244 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2246 | $as_echo_n "checking for $2... " >&6; } | ||||
2247 | if eval \${$3+:} false; then : | ||||
2248 | $as_echo_n "(cached) " >&6 | ||||
2249 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2251 | /* end confdefs.h. */ | ||||
2252 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||||
2253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||||
2254 | #define $2 innocuous_$2 | ||||
2255 | |||||
2256 | /* System header to define __stub macros and hopefully few prototypes, | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2257 | which can conflict with char $2 (); below. |
2258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
2259 | <limits.h> exists even on freestanding compilers. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2260 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2261 | #ifdef __STDC__ |
2262 | # include <limits.h> | ||||
2263 | #else | ||||
2264 | # include <assert.h> | ||||
2265 | #endif | ||||
2266 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2267 | #undef $2 |
2268 | |||||
2269 | /* Override any GCC internal prototype to avoid an error. | ||||
2270 | Use char because int might match the return type of a GCC | ||||
2271 | builtin and then its argument prototype would still apply. */ | ||||
2272 | #ifdef __cplusplus | ||||
2273 | extern "C" | ||||
2274 | #endif | ||||
2275 | char $2 (); | ||||
2276 | /* The GNU C library defines this for functions which it implements | ||||
2277 | to always fail with ENOSYS. Some functions are actually named | ||||
2278 | something starting with __ and the normal name is an alias. */ | ||||
2279 | #if defined __stub_$2 || defined __stub___$2 | ||||
2280 | choke me | ||||
2281 | #endif | ||||
2282 | |||||
2283 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2284 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2285 | { |
2286 | return $2 (); | ||||
2287 | ; | ||||
2288 | return 0; | ||||
2289 | } | ||||
2290 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2291 | if ac_fn_c_try_link "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2292 | eval "$3=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2293 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2294 | eval "$3=no" |
2295 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2296 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2297 | conftest$ac_exeext conftest.$ac_ext |
2298 | fi | ||||
2299 | eval ac_res=\$$3 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2301 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2302 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2303 | |
2304 | } # ac_fn_c_check_func | ||||
2305 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2306 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2307 | # --------------------------------------------- | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2308 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2309 | # accordingly. |
2310 | ac_fn_c_check_decl () | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2311 | { |
2312 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2313 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||||
2314 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
2316 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||||
2317 | if eval \${$3+:} false; then : | ||||
2318 | $as_echo_n "(cached) " >&6 | ||||
2319 | else | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2321 | /* end confdefs.h. */ | ||||
2322 | $4 | ||||
2323 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2324 | main () |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2325 | { |
2326 | #ifndef $as_decl_name | ||||
2327 | #ifdef __cplusplus | ||||
2328 | (void) $as_decl_use; | ||||
2329 | #else | ||||
2330 | (void) $as_decl_name; | ||||
2331 | #endif | ||||
2332 | #endif | ||||
2333 | |||||
2334 | ; | ||||
2335 | return 0; | ||||
2336 | } | ||||
2337 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2338 | if ac_fn_c_try_compile "$LINENO"; then : |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2339 | eval "$3=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2340 | else |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2341 | eval "$3=no" |
2342 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2344 | fi |
2345 | eval ac_res=\$$3 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2347 | $as_echo "$ac_res" >&6; } | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2348 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2349 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2350 | } # ac_fn_c_check_decl |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2351 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2352 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2353 | # ---------------------------------------------------- | ||||
2354 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||||
2355 | # INCLUDES, setting cache variable VAR accordingly. | ||||
2356 | ac_fn_c_check_member () | ||||
2357 | { | ||||
2358 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2360 | $as_echo_n "checking for $2.$3... " >&6; } | ||||
2361 | if eval \${$4+:} false; then : | ||||
2362 | $as_echo_n "(cached) " >&6 | ||||
2363 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2365 | /* end confdefs.h. */ | ||||
2366 | $5 | ||||
2367 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2368 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2369 | { |
2370 | static $2 ac_aggr; | ||||
2371 | if (ac_aggr.$3) | ||||
2372 | return 0; | ||||
2373 | ; | ||||
2374 | return 0; | ||||
2375 | } | ||||
2376 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2377 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2378 | eval "$4=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2379 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2381 | /* end confdefs.h. */ | ||||
2382 | $5 | ||||
2383 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2384 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2385 | { |
2386 | static $2 ac_aggr; | ||||
2387 | if (sizeof ac_aggr.$3) | ||||
2388 | return 0; | ||||
2389 | ; | ||||
2390 | return 0; | ||||
2391 | } | ||||
2392 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2393 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2394 | eval "$4=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2395 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2396 | eval "$4=no" |
2397 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2399 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2401 | fi |
2402 | eval ac_res=\$$4 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2404 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2405 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2406 | |
2407 | } # ac_fn_c_check_member | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2408 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | This file contains any messages produced by compilers while |
2410 | running configure, to aid debugging if configure makes a mistake. | ||||
2411 | |||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 2412 | It was created by python $as_me 3.10, which was |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2413 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2415 | $ $0 $@ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | |
2417 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2418 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | { |
2420 | cat <<_ASUNAME | ||||
2421 | ## --------- ## | ||||
2422 | ## Platform. ## | ||||
2423 | ## --------- ## | ||||
2424 | |||||
2425 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
2426 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||||
2427 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||||
2428 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||||
2429 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||||
2430 | |||||
2431 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||||
2432 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||||
2433 | |||||
2434 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||||
2435 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||||
2436 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2437 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2439 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||||
2440 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||||
2441 | |||||
2442 | _ASUNAME | ||||
2443 | |||||
2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2445 | for as_dir in $PATH | ||||
2446 | do | ||||
2447 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2448 | test -z "$as_dir" && as_dir=. |
2449 | $as_echo "PATH: $as_dir" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2450 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2451 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | |
2453 | } >&5 | ||||
2454 | |||||
2455 | cat >&5 <<_ACEOF | ||||
2456 | |||||
2457 | |||||
2458 | ## ----------- ## | ||||
2459 | ## Core tests. ## | ||||
2460 | ## ----------- ## | ||||
2461 | |||||
2462 | _ACEOF | ||||
2463 | |||||
2464 | |||||
2465 | # Keep a trace of the command line. | ||||
2466 | # Strip out --no-create and --no-recursion so they do not pile up. | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2467 | # 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 +0000 | [diff] [blame] | 2468 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2469 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2471 | ac_configure_args0= |
2472 | ac_configure_args1= | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2473 | ac_must_keep_next=false |
2474 | for ac_pass in 1 2 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2475 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2476 | for ac_arg |
2477 | do | ||||
2478 | case $ac_arg in | ||||
2479 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||||
2480 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||||
2481 | | -silent | --silent | --silen | --sile | --sil) | ||||
2482 | continue ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2483 | *\'*) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2484 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2485 | esac |
2486 | case $ac_pass in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2487 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2488 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2489 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2491 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2492 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2493 | case $ac_arg in |
2494 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||||
2495 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||||
2496 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||||
2497 | | -with-* | --with-* | -without-* | --without-* | --x) | ||||
2498 | case "$ac_configure_args0 " in | ||||
2499 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||||
2500 | esac | ||||
2501 | ;; | ||||
2502 | -* ) ac_must_keep_next=true ;; | ||||
2503 | esac | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2505 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | ;; |
2507 | esac | ||||
2508 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2510 | { ac_configure_args0=; unset ac_configure_args0;} |
2511 | { ac_configure_args1=; unset ac_configure_args1;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2512 | |
2513 | # When interrupted or exit'd, cleanup temporary files, and complete | ||||
2514 | # config.log. We remove comments because anyway the quotes in there | ||||
2515 | # would cause problems or look ugly. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2516 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2517 | # 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 +0000 | [diff] [blame] | 2518 | trap 'exit_status=$? |
2519 | # Save into config.log some information that might help in debugging. | ||||
2520 | { | ||||
2521 | echo | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2522 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2523 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2525 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | echo |
2527 | # The following way of writing the cache mishandles newlines in values, | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2528 | ( |
2529 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||||
2530 | eval ac_val=\$$ac_var | ||||
2531 | case $ac_val in #( | ||||
2532 | *${as_nl}*) | ||||
2533 | case $ac_var in #( | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2534 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2535 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2536 | esac |
2537 | case $ac_var in #( | ||||
2538 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2539 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2540 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2541 | esac ;; |
2542 | esac | ||||
2543 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2545 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2546 | *${as_nl}ac_space=\ *) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2548 | "s/'\''/'\''\\\\'\'''\''/g; |
2549 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||||
2550 | ;; #( | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2551 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2552 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2553 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2554 | esac | |
2555 | sort | ||||
2556 | ) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2558 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2559 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2560 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2561 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2562 | echo |
2563 | for ac_var in $ac_subst_vars | ||||
2564 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2565 | eval ac_val=\$$ac_var |
2566 | case $ac_val in | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2567 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2568 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2569 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 | done | sort |
2571 | echo | ||||
2572 | |||||
2573 | if test -n "$ac_subst_files"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2574 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2575 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2576 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2577 | echo |
2578 | for ac_var in $ac_subst_files | ||||
2579 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2580 | eval ac_val=\$$ac_var |
2581 | case $ac_val in | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2582 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2583 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2584 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2585 | done | sort |
2586 | echo | ||||
2587 | fi | ||||
2588 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | if test -s confdefs.h; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2590 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2592 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2594 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | echo |
2596 | fi | ||||
2597 | test "$ac_signal" != 0 && | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2598 | $as_echo "$as_me: caught signal $ac_signal" |
2599 | $as_echo "$as_me: exit $exit_status" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2601 | rm -f core *.core core.conftest.* && |
2602 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2604 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2606 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | done |
2608 | ac_signal=0 | ||||
2609 | |||||
2610 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2611 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2613 | $as_echo "/* confdefs.h */" > confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2615 | # Predefined preprocessor variables. |
2616 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2617 | cat >>confdefs.h <<_ACEOF |
2618 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||||
2619 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2621 | cat >>confdefs.h <<_ACEOF |
2622 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||||
2623 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2625 | cat >>confdefs.h <<_ACEOF |
2626 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||||
2627 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2629 | cat >>confdefs.h <<_ACEOF |
2630 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||||
2631 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2632 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2633 | cat >>confdefs.h <<_ACEOF |
2634 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||||
2635 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2637 | cat >>confdefs.h <<_ACEOF |
2638 | #define PACKAGE_URL "$PACKAGE_URL" | ||||
2639 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2641 | |
2642 | # Let the site file select an alternate cache file if it wants to. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2643 | # Prefer an explicitly selected file to automatically selected ones. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2644 | ac_site_file1=NONE |
2645 | ac_site_file2=NONE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2646 | if test -n "$CONFIG_SITE"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2647 | # We do not want a PATH search for config.site. |
2648 | case $CONFIG_SITE in #(( | ||||
2649 | -*) ac_site_file1=./$CONFIG_SITE;; | ||||
2650 | */*) ac_site_file1=$CONFIG_SITE;; | ||||
2651 | *) ac_site_file1=./$CONFIG_SITE;; | ||||
2652 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2653 | elif test "x$prefix" != xNONE; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2654 | ac_site_file1=$prefix/share/config.site |
2655 | ac_site_file2=$prefix/etc/config.site | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2656 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2657 | ac_site_file1=$ac_default_prefix/share/config.site |
2658 | ac_site_file2=$ac_default_prefix/etc/config.site | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2659 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2660 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2661 | do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2662 | test "x$ac_site_file" = xNONE && continue |
2663 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||||
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||||
2665 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2667 | . "$ac_site_file" \ |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2668 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2670 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2671 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2672 | fi |
2673 | done | ||||
2674 | |||||
2675 | if test -r "$cache_file"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2676 | # Some versions of bash will fail to source /dev/null (special files |
2677 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||||
2678 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2680 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2682 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2683 | *) . "./$cache_file";; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 | esac |
2685 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2686 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2688 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 | >$cache_file |
2690 | fi | ||||
2691 | |||||
2692 | # Check that the precious variables saved in the cache have kept the same | ||||
2693 | # value. | ||||
2694 | ac_cache_corrupted=false | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2695 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2696 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2697 | eval ac_new_set=\$ac_env_${ac_var}_set | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2698 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2699 | eval ac_new_val=\$ac_env_${ac_var}_value | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2700 | case $ac_old_set,$ac_new_set in |
2701 | set,) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2703 | $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 +0000 | [diff] [blame] | 2704 | ac_cache_corrupted=: ;; |
2705 | ,set) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2707 | $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 +0000 | [diff] [blame] | 2708 | ac_cache_corrupted=: ;; |
2709 | ,);; | ||||
2710 | *) | ||||
2711 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2712 | # differences in whitespace do not lead to failure. |
2713 | ac_old_val_w=`echo x $ac_old_val` | ||||
2714 | ac_new_val_w=`echo x $ac_new_val` | ||||
2715 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2717 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2718 | ac_cache_corrupted=: |
2719 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2721 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2722 | eval $ac_var=\$ac_old_val |
2723 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2725 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||||
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||||
2727 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2728 | fi;; |
2729 | esac | ||||
2730 | # Pass precious variables to config.status. | ||||
2731 | if test "$ac_new_set" = set; then | ||||
2732 | case $ac_new_val in | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2733 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | *) ac_arg=$ac_var=$ac_new_val ;; |
2735 | esac | ||||
2736 | case " $ac_configure_args " in | ||||
2737 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2738 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2739 | esac |
2740 | fi | ||||
2741 | done | ||||
2742 | if $ac_cache_corrupted; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2744 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||||
2746 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||||
2747 | 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 +0000 | [diff] [blame] | 2748 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2749 | ## -------------------- ## |
2750 | ## Main body of script. ## | ||||
2751 | ## -------------------- ## | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2752 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2753 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2754 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
2757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2758 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2760 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2761 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 2762 | |
2763 | |||||
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2764 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2765 | # If we're building out-of-tree, we need to make sure the following |
2766 | # resources get picked up before their $srcdir counterparts. | ||||
2767 | # Objects/ -> typeslots.inc | ||||
Victor Stinner | 94faa07 | 2021-03-23 20:47:40 +0100 | [diff] [blame] | 2768 | # Include/ -> Python.h |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2769 | # Python/ -> importlib.h |
2770 | # (A side effect of this is that these resources will automatically be | ||||
2771 | # regenerated when building out-of-tree, regardless of whether or not | ||||
2772 | # the $srcdir counterpart is up-to-date. This is an acceptable trade | ||||
2773 | # off.) | ||||
2774 | BASECPPFLAGS="-IObjects -IInclude -IPython" | ||||
2775 | else | ||||
2776 | BASECPPFLAGS="" | ||||
2777 | fi | ||||
2778 | |||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2779 | |
2780 | |||||
2781 | |||||
2782 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2783 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2784 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2785 | # Extract the first word of "git", so it can be a program name with args. |
2786 | set dummy git; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2788 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
2789 | if ${ac_cv_prog_HAS_GIT+:} false; then : | ||||
2790 | $as_echo_n "(cached) " >&6 | ||||
2791 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2792 | if test -n "$HAS_GIT"; then |
2793 | ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2794 | else |
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2796 | for as_dir in $PATH | ||||
2797 | do | ||||
2798 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2799 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2800 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2802 | ac_cv_prog_HAS_GIT="found" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2804 | break 2 |
2805 | fi | ||||
2806 | done | ||||
2807 | done | ||||
2808 | IFS=$as_save_IFS | ||||
2809 | |||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2810 | test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2811 | fi |
2812 | fi | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2813 | HAS_GIT=$ac_cv_prog_HAS_GIT |
2814 | if test -n "$HAS_GIT"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 |
2816 | $as_echo "$HAS_GIT" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2817 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2819 | $as_echo "no" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2820 | fi |
2821 | |||||
2822 | |||||
2823 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2824 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2825 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2826 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2827 | then |
Xiang Zhang | 4c85557 | 2018-08-20 22:36:19 +0800 | [diff] [blame] | 2828 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
2829 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" | ||||
2830 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2831 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2832 | GITVERSION="" |
2833 | GITTAG="" | ||||
2834 | GITBRANCH="" | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2835 | fi |
2836 | |||||
2837 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2838 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | |
2840 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2841 | ac_aux_dir= |
2842 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||||
2843 | if test -f "$ac_dir/install-sh"; then | ||||
2844 | ac_aux_dir=$ac_dir | ||||
2845 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||||
2846 | break | ||||
2847 | elif test -f "$ac_dir/install.sh"; then | ||||
2848 | ac_aux_dir=$ac_dir | ||||
2849 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||||
2850 | break | ||||
2851 | elif test -f "$ac_dir/shtool"; then | ||||
2852 | ac_aux_dir=$ac_dir | ||||
2853 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||||
2854 | break | ||||
2855 | fi | ||||
2856 | done | ||||
2857 | if test -z "$ac_aux_dir"; then | ||||
2858 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||||
2859 | fi | ||||
2860 | |||||
2861 | # These three variables are undocumented and unsupported, | ||||
2862 | # and are intended to be withdrawn in a future Autoconf release. | ||||
2863 | # They can cause serious problems if a builder's source tree is in a directory | ||||
2864 | # whose full name contains unusual characters. | ||||
2865 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||||
2866 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||||
2867 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2868 | |
2869 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2870 | # Make sure we can run config.sub. |
2871 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||||
2872 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2873 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2875 | $as_echo_n "checking build system type... " >&6; } | ||||
2876 | if ${ac_cv_build+:} false; then : | ||||
2877 | $as_echo_n "(cached) " >&6 | ||||
2878 | else | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2879 | ac_build_alias=$build_alias |
2880 | test "x$ac_build_alias" = x && | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2881 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2882 | test "x$ac_build_alias" = x && |
2883 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2884 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2885 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2886 | |
2887 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2889 | $as_echo "$ac_cv_build" >&6; } | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2890 | case $ac_cv_build in |
2891 | *-*-*) ;; | ||||
2892 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
2893 | esac | ||||
2894 | build=$ac_cv_build | ||||
2895 | ac_save_IFS=$IFS; IFS='-' | ||||
2896 | set x $ac_cv_build | ||||
2897 | shift | ||||
2898 | build_cpu=$1 | ||||
2899 | build_vendor=$2 | ||||
2900 | shift; shift | ||||
2901 | # Remember, the first character of IFS is used to create $*, | ||||
2902 | # except with old shells: | ||||
2903 | build_os=$* | ||||
2904 | IFS=$ac_save_IFS | ||||
2905 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
2906 | |||||
2907 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2909 | $as_echo_n "checking host system type... " >&6; } | ||||
2910 | if ${ac_cv_host+:} false; then : | ||||
2911 | $as_echo_n "(cached) " >&6 | ||||
2912 | else | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2913 | if test "x$host_alias" = x; then |
2914 | ac_cv_host=$ac_cv_build | ||||
2915 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2916 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2917 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2918 | fi |
2919 | |||||
2920 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2922 | $as_echo "$ac_cv_host" >&6; } | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2923 | case $ac_cv_host in |
2924 | *-*-*) ;; | ||||
2925 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
2926 | esac | ||||
2927 | host=$ac_cv_host | ||||
2928 | ac_save_IFS=$IFS; IFS='-' | ||||
2929 | set x $ac_cv_host | ||||
2930 | shift | ||||
2931 | host_cpu=$1 | ||||
2932 | host_vendor=$2 | ||||
2933 | shift; shift | ||||
2934 | # Remember, the first character of IFS is used to create $*, | ||||
2935 | # except with old shells: | ||||
2936 | host_os=$* | ||||
2937 | IFS=$ac_save_IFS | ||||
2938 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
2939 | |||||
2940 | |||||
2941 | |||||
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2942 | |
2943 | |||||
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2944 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
2945 | rm -f pybuilddir.txt | ||||
2946 | |||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2947 | for ac_prog in python$PACKAGE_VERSION python3 python |
2948 | do | ||||
2949 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
2950 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2952 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
2953 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : | ||||
2954 | $as_echo_n "(cached) " >&6 | ||||
2955 | else | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2956 | if test -n "$PYTHON_FOR_REGEN"; then |
2957 | ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2958 | else |
2959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2960 | for as_dir in $PATH | ||||
2961 | do | ||||
2962 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2963 | test -z "$as_dir" && as_dir=. |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2964 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2966 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2968 | break 2 |
2969 | fi | ||||
2970 | done | ||||
2971 | done | ||||
2972 | IFS=$as_save_IFS | ||||
2973 | |||||
2974 | fi | ||||
2975 | fi | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2976 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
2977 | if test -n "$PYTHON_FOR_REGEN"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 |
2979 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2980 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2982 | $as_echo "no" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2983 | fi |
2984 | |||||
2985 | |||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2986 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2987 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2988 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2989 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2990 | |
2991 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2992 | if test "$cross_compiling" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
2994 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2995 | if test -z "$PYTHON_FOR_BUILD"; then |
2996 | for interp in python$PACKAGE_VERSION python3 python; do | ||||
2997 | which $interp >/dev/null 2>&1 || continue | ||||
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2998 | 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 20:42:45 +0200 | [diff] [blame] | 2999 | break |
3000 | fi | ||||
3001 | interp= | ||||
3002 | done | ||||
3003 | if test x$interp = x; then | ||||
3004 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | ||||
3005 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
3007 | $as_echo "$interp" >&6; } | ||||
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 3008 | 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 20:42:45 +0200 | [diff] [blame] | 3009 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3010 | elif test "$cross_compiling" = maybe; then |
3011 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3012 | else |
3013 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | ||||
3014 | fi | ||||
3015 | |||||
3016 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3018 | if test "$prefix" != "/"; then |
3019 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | ||||
3020 | fi | ||||
3021 | |||||
3022 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3023 | |
3024 | |||||
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3025 | # We don't use PACKAGE_ variables, and they cause conflicts |
3026 | # with other autoconf-based packages that include Python.h | ||||
3027 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | ||||
3028 | rm confdefs.h | ||||
3029 | mv confdefs.h.new confdefs.h | ||||
3030 | |||||
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3031 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 3032 | VERSION=3.10 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3033 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3034 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3035 | |
3036 | SOVERSION=1.0 | ||||
3037 | |||||
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3038 | # The later defininition of _XOPEN_SOURCE disables certain features |
3039 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | ||||
3040 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3041 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3042 | |
3043 | |||||
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3044 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3045 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | ||||
3046 | # them. | ||||
3047 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3048 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3049 | |
3050 | |||||
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3051 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3052 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | ||||
3053 | # them. | ||||
3054 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3055 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3056 | |
3057 | |||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3058 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3059 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
3060 | # them. | ||||
3061 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3062 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3063 | |
3064 | |||||
3065 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3066 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3067 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3068 | # Arguments passed to configure. |
3069 | |||||
3070 | CONFIG_ARGS="$ac_configure_args" | ||||
3071 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
3073 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3074 | # Check whether --enable-universalsdk was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3075 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3076 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3077 | case $enableval in |
3078 | yes) | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3079 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3080 | # information |
3081 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3082 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3083 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3084 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
3085 | if test ! -d "${enableval}" | ||||
3086 | then | ||||
3087 | enableval=/ | ||||
3088 | fi | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3089 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3090 | ;; |
3091 | esac | ||||
3092 | case $enableval in | ||||
3093 | no) | ||||
3094 | UNIVERSALSDK= | ||||
3095 | enable_universalsdk= | ||||
3096 | ;; | ||||
3097 | *) | ||||
3098 | UNIVERSALSDK=$enableval | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3099 | if test ! -d "${UNIVERSALSDK}" |
3100 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3101 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3102 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3103 | ;; |
3104 | esac | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3105 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3106 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3107 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3108 | |
3109 | UNIVERSALSDK= | ||||
3110 | enable_universalsdk= | ||||
3111 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3112 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3113 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3114 | if test -n "${UNIVERSALSDK}" |
3115 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
3117 | $as_echo "${UNIVERSALSDK}" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3118 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3120 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3121 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3123 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3124 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3125 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3126 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3127 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
3128 | # otherwise use 'intel' | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3129 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3130 | if test "`uname -s`" = "Darwin" |
3131 | then | ||||
3132 | if test -n "${UNIVERSALSDK}" | ||||
3133 | then | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3134 | if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3135 | then |
3136 | UNIVERSAL_ARCHS="intel" | ||||
3137 | fi | ||||
3138 | fi | ||||
3139 | fi | ||||
3140 | |||||
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3141 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
3143 | $as_echo_n "checking for --with-universal-archs... " >&6; } | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3144 | |
3145 | # Check whether --with-universal-archs was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3146 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3147 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3148 | UNIVERSAL_ARCHS="$withval" |
3149 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3150 | fi |
3151 | |||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3152 | if test -n "${UNIVERSALSDK}" |
3153 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
3155 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3156 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3158 | $as_echo "no" >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3159 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3160 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3161 | |
3162 | # Check whether --with-framework-name was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3163 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3164 | withval=$with_framework_name; |
3165 | PYTHONFRAMEWORK=${withval} | ||||
3166 | PYTHONFRAMEWORKDIR=${withval}.framework | ||||
3167 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | ||||
3168 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3169 | else |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3170 | |
3171 | PYTHONFRAMEWORK=Python | ||||
3172 | PYTHONFRAMEWORKDIR=Python.framework | ||||
3173 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | ||||
3174 | |||||
3175 | fi | ||||
3176 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3177 | # Check whether --enable-framework was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3178 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3179 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3180 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3181 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3182 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3183 | esac |
3184 | case $enableval in | ||||
3185 | no) | ||||
3186 | PYTHONFRAMEWORK= | ||||
3187 | PYTHONFRAMEWORKDIR=no-framework | ||||
3188 | PYTHONFRAMEWORKPREFIX= | ||||
3189 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3190 | FRAMEWORKINSTALLFIRST= |
3191 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3192 | FRAMEWORKALTINSTALLFIRST= |
3193 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3194 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3195 | if test "x${prefix}" = "xNONE"; then |
3196 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3197 | else | ||||
3198 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3199 | fi | ||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3200 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3201 | ;; |
3202 | *) | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3203 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3204 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3205 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3206 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3207 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
3208 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3209 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3210 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3211 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3212 | if test "x${prefix}" = "xNONE" ; then |
3213 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3214 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3215 | else |
3216 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3217 | fi | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3218 | |
3219 | case "${enableval}" in | ||||
3220 | /System*) | ||||
3221 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3222 | if test "${prefix}" = "NONE" ; then | ||||
3223 | # See below | ||||
3224 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | ||||
3225 | fi | ||||
3226 | ;; | ||||
3227 | |||||
3228 | /Library*) | ||||
3229 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3230 | ;; | ||||
3231 | |||||
3232 | */Library/Frameworks) | ||||
3233 | MDIR="`dirname "${enableval}"`" | ||||
3234 | MDIR="`dirname "${MDIR}"`" | ||||
3235 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | ||||
3236 | |||||
3237 | if test "${prefix}" = "NONE"; then | ||||
3238 | # User hasn't specified the | ||||
3239 | # --prefix option, but wants to install | ||||
3240 | # the framework in a non-default location, | ||||
3241 | # ensure that the compatibility links get | ||||
3242 | # installed relative to that prefix as well | ||||
3243 | # instead of in /usr/local. | ||||
3244 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | ||||
3245 | fi | ||||
3246 | ;; | ||||
3247 | |||||
3248 | *) | ||||
3249 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3250 | ;; | ||||
3251 | esac | ||||
3252 | |||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3253 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3254 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3255 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3256 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3257 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3259 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3260 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3261 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
3262 | |||||
3263 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | ||||
3264 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3265 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3266 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3268 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3269 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3270 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3271 | PYTHONFRAMEWORKPREFIX= |
3272 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3273 | FRAMEWORKINSTALLFIRST= |
3274 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3275 | FRAMEWORKALTINSTALLFIRST= |
3276 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3277 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3278 | if test "x${prefix}" = "xNONE" ; then |
3279 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3280 | else | ||||
3281 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3282 | fi | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3283 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3284 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3285 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3286 | fi |
3287 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3288 | |
3289 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3290 | |
3291 | |||||
3292 | |||||
3293 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3294 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3295 | |
3296 | |||||
3297 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3298 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3299 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3300 | |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3301 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3302 | cat >>confdefs.h <<_ACEOF |
3303 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" | ||||
3304 | _ACEOF | ||||
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3305 | |
3306 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3307 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3308 | ## AS_HELP_STRING([--with-dyld], |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 3309 | ## [use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3310 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3311 | # Set name for machine-dependent library files |
3312 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
3314 | $as_echo_n "checking MACHDEP... " >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3315 | if test -z "$MACHDEP" |
3316 | then | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3317 | # avoid using uname for cross builds |
3318 | if test "$cross_compiling" = yes; then | ||||
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3319 | # ac_sys_system and ac_sys_release are used for setting |
3320 | # a lot of different things including 'define_xopen_source' | ||||
3321 | # in the case statement below. | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3322 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3323 | *-*-linux-android*) |
3324 | ac_sys_system=Linux-android | ||||
3325 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3326 | *-*-linux*) |
3327 | ac_sys_system=Linux | ||||
3328 | ;; | ||||
3329 | *-*-cygwin*) | ||||
3330 | ac_sys_system=Cygwin | ||||
3331 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3332 | *-*-vxworks*) |
3333 | ac_sys_system=VxWorks | ||||
3334 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3335 | *) |
3336 | # for now, limit cross builds to known configurations | ||||
3337 | MACHDEP="unknown" | ||||
3338 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3339 | esac | ||||
3340 | ac_sys_release= | ||||
3341 | else | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3342 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3343 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3344 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3345 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3346 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3347 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3348 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3349 | fi |
3350 | ac_md_system=`echo $ac_sys_system | | ||||
3351 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | ||||
3352 | ac_md_release=`echo $ac_sys_release | | ||||
3353 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | ||||
3354 | MACHDEP="$ac_md_system$ac_md_release" | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3355 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3356 | case $MACHDEP in |
Michael Felt | 9d949f7 | 2019-04-12 16:15:32 +0200 | [diff] [blame] | 3357 | aix*) MACHDEP="aix";; |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3358 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3359 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3360 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3361 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3362 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3363 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 |
3365 | $as_echo "\"$MACHDEP\"" >&6; } | ||||
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3366 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3367 | |
3368 | if test "$cross_compiling" = yes; then | ||||
3369 | case "$host" in | ||||
3370 | *-*-linux*) | ||||
3371 | case "$host_cpu" in | ||||
3372 | arm*) | ||||
3373 | _host_cpu=arm | ||||
3374 | ;; | ||||
3375 | *) | ||||
3376 | _host_cpu=$host_cpu | ||||
3377 | esac | ||||
3378 | ;; | ||||
3379 | *-*-cygwin*) | ||||
3380 | _host_cpu= | ||||
3381 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3382 | *-*-vxworks*) |
3383 | _host_cpu=$host_cpu | ||||
3384 | ;; | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3385 | *) |
3386 | # for now, limit cross builds to known configurations | ||||
3387 | MACHDEP="unknown" | ||||
3388 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3389 | esac | ||||
3390 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||||
3391 | fi | ||||
3392 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3393 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
3394 | # disable features if it is defined, without any means to access these | ||||
3395 | # features as extensions. For these systems, we skip the definition of | ||||
3396 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | ||||
3397 | # some feature, make sure there is no alternative way to access this | ||||
3398 | # feature. Also, when using wildcards, make sure you have verified the | ||||
3399 | # need for not defining _XOPEN_SOURCE on all systems matching the | ||||
3400 | # wildcard, and that the wildcard does not include future systems | ||||
3401 | # (which may remove their limitations). | ||||
3402 | case $ac_sys_system/$ac_sys_release in | ||||
3403 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | ||||
3404 | # even though select is a POSIX function. Reported by J. Ribbens. | ||||
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 3405 | # 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 +0000 | [diff] [blame] | 3406 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
3407 | # OpenBSD 4.6, but is fixed in 4.7. | ||||
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3408 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3409 | define_xopen_source=no |
3410 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | ||||
3411 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3412 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3413 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3414 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3415 | |
3416 | ;; | ||||
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3417 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3418 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
3419 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3420 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3421 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3422 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3423 | |
3424 | ;; | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3425 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
3426 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | ||||
3427 | # Marc Recht | ||||
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3428 | 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 +0000 | [diff] [blame] | 3429 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3430 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
3431 | # request to enable features supported by the standard as a request | ||||
3432 | # to disable features not supported by the standard. The best way | ||||
3433 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | ||||
3434 | # entirely and define __EXTENSIONS__ instead. | ||||
3435 | SunOS/*) | ||||
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3436 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3437 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
3438 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3439 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3440 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3441 | define_xopen_source=no;; |
3442 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | ||||
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3443 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3444 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3445 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3446 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
3447 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | ||||
3448 | # identifies itself as Darwin/7.* | ||||
3449 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3450 | # disables platform specific features beyond repair. | ||||
3451 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3452 | # has no effect, don't bother defining them | ||||
3453 | Darwin/[6789].*) | ||||
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3454 | define_xopen_source=no;; |
Ronald Oussoren | 8ea6353 | 2020-06-25 16:55:48 +0200 | [diff] [blame] | 3455 | Darwin/[12][0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3456 | define_xopen_source=no;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3457 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
3458 | # defining NI_NUMERICHOST. | ||||
3459 | QNX/6.3.2) | ||||
3460 | define_xopen_source=no | ||||
3461 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3462 | # On VxWorks, defining _XOPEN_SOURCE causes compile failures |
3463 | # in network headers still using system V types. | ||||
3464 | VxWorks/*) | ||||
3465 | define_xopen_source=no | ||||
3466 | ;; | ||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3467 | |
Ian Norton | a9edf44 | 2020-02-14 03:09:11 +0000 | [diff] [blame] | 3468 | # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides |
3469 | # chroot() and other functions | ||||
3470 | hp*|HP*) | ||||
3471 | define_xopen_source=no | ||||
3472 | ;; | ||||
3473 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3474 | esac |
3475 | |||||
3476 | if test $define_xopen_source = yes | ||||
3477 | then | ||||
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3478 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3479 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3480 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3481 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3482 | |
3483 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | ||||
3484 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | ||||
3485 | # several APIs are not declared. Since this is also needed in some | ||||
3486 | # cases for HP-UX, we define it globally. | ||||
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3487 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3488 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3489 | |
3490 | |||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3491 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3492 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3493 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3494 | fi |
3495 | |||||
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3496 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
3497 | case $ac_sys_system in | ||||
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3498 | hp*|HP*) |
3499 | define_stdc_a1=yes;; | ||||
3500 | *) | ||||
3501 | define_stdc_a1=no;; | ||||
3502 | esac | ||||
3503 | |||||
3504 | if test $define_stdc_a1 = yes | ||||
3505 | then | ||||
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3506 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3507 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3508 | |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3509 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3510 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3511 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
3512 | # it may influence the way we can build extensions, so distutils | ||||
3513 | # needs to check it | ||||
3514 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3515 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3516 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3517 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3518 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3519 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3520 | |
3521 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just | ||||
3522 | # for debug/optimization stuff. BASECFLAGS is for flags that are required | ||||
3523 | # just to get things to compile and link. Users are free to override OPT | ||||
3524 | # when running configure or make. The build should not break if they do. | ||||
3525 | # BASECFLAGS should generally not be messed with, however. | ||||
3526 | |||||
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3527 | # If the user switches compilers, we can't believe the cache |
3528 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | ||||
3529 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3530 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3531 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3532 | fi |
3533 | |||||
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3534 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
3535 | # when the compiler supports them, but we don't always want -O2, and | ||||
3536 | # we set -g later. | ||||
3537 | if test -z "$CFLAGS"; then | ||||
3538 | CFLAGS= | ||||
3539 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3540 | |
3541 | if test "$ac_sys_system" = "Darwin" | ||||
3542 | then | ||||
3543 | # Compiler selection on MacOSX is more complicated than | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3544 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3545 | # information |
3546 | if test -z "${CC}" | ||||
3547 | then | ||||
3548 | found_gcc= | ||||
3549 | found_clang= | ||||
3550 | as_save_IFS=$IFS; IFS=: | ||||
3551 | for as_dir in $PATH | ||||
3552 | do | ||||
3553 | IFS=$as_save_IFS | ||||
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3554 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3555 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3556 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3557 | fi |
3558 | fi | ||||
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3559 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3560 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3561 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3562 | fi |
3563 | fi | ||||
3564 | done | ||||
3565 | IFS=$as_save_IFS | ||||
3566 | |||||
3567 | if test -n "$found_gcc" -a -n "$found_clang" | ||||
3568 | then | ||||
3569 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | ||||
3570 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
3572 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3573 | CC="$found_clang" |
3574 | CXX="$found_clang++" | ||||
3575 | fi | ||||
3576 | |||||
3577 | |||||
3578 | elif test -z "$found_gcc" -a -n "$found_clang" | ||||
3579 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
3581 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3582 | CC="$found_clang" |
3583 | CXX="$found_clang++" | ||||
3584 | |||||
3585 | elif test -z "$found_gcc" -a -z "$found_clang" | ||||
3586 | then | ||||
3587 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | ||||
3588 | if test -n "${found_clang}" | ||||
3589 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
3591 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3592 | CC="${found_clang}" |
3593 | CXX="`/usr/bin/xcrun -find clang++`" | ||||
3594 | |||||
3595 | # else: use default behaviour | ||||
3596 | fi | ||||
3597 | fi | ||||
3598 | fi | ||||
3599 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3600 | ac_ext=c |
3601 | ac_cpp='$CPP $CPPFLAGS' | ||||
3602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
3603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
3604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
3605 | if test -n "$ac_tool_prefix"; then | ||||
3606 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||||
3607 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3609 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3610 | if ${ac_cv_prog_CC+:} false; then : | ||||
3611 | $as_echo_n "(cached) " >&6 | ||||
3612 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3613 | if test -n "$CC"; then |
3614 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3615 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3617 | for as_dir in $PATH | ||||
3618 | do | ||||
3619 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3620 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3624 | $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 +0000 | [diff] [blame] | 3625 | break 2 |
3626 | fi | ||||
3627 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3628 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3629 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3631 | fi |
3632 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3633 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3634 | if test -n "$CC"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3636 | $as_echo "$CC" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3637 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3639 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | fi |
3641 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3643 | fi |
3644 | if test -z "$ac_cv_prog_CC"; then | ||||
3645 | ac_ct_CC=$CC | ||||
3646 | # Extract the first word of "gcc", so it can be a program name with args. | ||||
3647 | set dummy gcc; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3649 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3650 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||||
3651 | $as_echo_n "(cached) " >&6 | ||||
3652 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | if test -n "$ac_ct_CC"; then |
3654 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3655 | else | ||||
3656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3657 | for as_dir in $PATH | ||||
3658 | do | ||||
3659 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3660 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | ac_cv_prog_ac_ct_CC="gcc" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3664 | $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 +0000 | [diff] [blame] | 3665 | break 2 |
3666 | fi | ||||
3667 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3668 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3669 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | |
3671 | fi | ||||
3672 | fi | ||||
3673 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3674 | if test -n "$ac_ct_CC"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3676 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3679 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | fi |
3681 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3682 | if test "x$ac_ct_CC" = x; then |
3683 | CC="" | ||||
3684 | else | ||||
3685 | case $cross_compiling:$ac_tool_warned in | ||||
3686 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3688 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3689 | ac_tool_warned=yes ;; |
3690 | esac | ||||
3691 | CC=$ac_ct_CC | ||||
3692 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | else |
3694 | CC="$ac_cv_prog_CC" | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3695 | fi |
3696 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3697 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3698 | if test -n "$ac_tool_prefix"; then |
3699 | # 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 +0000 | [diff] [blame] | 3700 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3702 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3703 | if ${ac_cv_prog_CC+:} false; then : | ||||
3704 | $as_echo_n "(cached) " >&6 | ||||
3705 | else | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3706 | if test -n "$CC"; then |
3707 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3708 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3710 | for as_dir in $PATH | ||||
3711 | do | ||||
3712 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3713 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3714 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3717 | $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 +0000 | [diff] [blame] | 3718 | break 2 |
3719 | fi | ||||
3720 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3721 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3722 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | |
3724 | fi | ||||
3725 | fi | ||||
3726 | CC=$ac_cv_prog_CC | ||||
3727 | if test -n "$CC"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3729 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3732 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | fi |
3734 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | fi |
3738 | if test -z "$CC"; then | ||||
3739 | # Extract the first word of "cc", so it can be a program name with args. | ||||
3740 | set dummy cc; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3742 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3743 | if ${ac_cv_prog_CC+:} false; then : | ||||
3744 | $as_echo_n "(cached) " >&6 | ||||
3745 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | if test -n "$CC"; then |
3747 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3748 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3749 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3751 | for as_dir in $PATH | ||||
3752 | do | ||||
3753 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3754 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3755 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3757 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | ac_prog_rejected=yes |
3759 | continue | ||||
3760 | fi | ||||
3761 | ac_cv_prog_CC="cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3762 | $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 +0000 | [diff] [blame] | 3763 | break 2 |
3764 | fi | ||||
3765 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3766 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3767 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3768 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3769 | if test $ac_prog_rejected = yes; then |
3770 | # We found a bogon in the path, so make sure we never use it. | ||||
3771 | set dummy $ac_cv_prog_CC | ||||
3772 | shift | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3774 | # We chose a different compiler from the bogus one. |
3775 | # However, it has the same basename, so the bogon will be chosen | ||||
3776 | # first if we set CC to just the basename; use the full file name. | ||||
3777 | shift | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3778 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3779 | fi |
3780 | fi | ||||
3781 | fi | ||||
3782 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3784 | if test -n "$CC"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3786 | $as_echo "$CC" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3787 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3789 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3790 | fi |
3791 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | fi |
3794 | if test -z "$CC"; then | ||||
3795 | if test -n "$ac_tool_prefix"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3796 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | do |
3798 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
3799 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3801 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3802 | if ${ac_cv_prog_CC+:} false; then : | ||||
3803 | $as_echo_n "(cached) " >&6 | ||||
3804 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3805 | if test -n "$CC"; then |
3806 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3807 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3809 | for as_dir in $PATH | ||||
3810 | do | ||||
3811 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3812 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3813 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3815 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3816 | $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 +0000 | [diff] [blame] | 3817 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3818 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3819 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3820 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3821 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3822 | |
3823 | fi | ||||
3824 | fi | ||||
3825 | CC=$ac_cv_prog_CC | ||||
3826 | if test -n "$CC"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3828 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3831 | $as_echo "no" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3832 | fi |
3833 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3835 | test -n "$CC" && break |
3836 | done | ||||
3837 | fi | ||||
3838 | if test -z "$CC"; then | ||||
3839 | ac_ct_CC=$CC | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3840 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | do |
3842 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
3843 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3845 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3846 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||||
3847 | $as_echo_n "(cached) " >&6 | ||||
3848 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | if test -n "$ac_ct_CC"; then |
3850 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3851 | else | ||||
3852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3853 | for as_dir in $PATH | ||||
3854 | do | ||||
3855 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3856 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3857 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3859 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3860 | $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 +0000 | [diff] [blame] | 3861 | break 2 |
3862 | fi | ||||
3863 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3864 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | fi |
3868 | fi | ||||
3869 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3870 | if test -n "$ac_ct_CC"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3872 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3873 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3875 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3877 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 | test -n "$ac_ct_CC" && break |
3880 | done | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3881 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3882 | if test "x$ac_ct_CC" = x; then |
3883 | CC="" | ||||
3884 | else | ||||
3885 | case $cross_compiling:$ac_tool_warned in | ||||
3886 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3888 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3889 | ac_tool_warned=yes ;; |
3890 | esac | ||||
3891 | CC=$ac_ct_CC | ||||
3892 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | fi |
3894 | |||||
3895 | fi | ||||
3896 | |||||
3897 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3898 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3899 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3900 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3901 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3902 | |
3903 | # Provide some information about the compiler. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3904 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3905 | set X $ac_compile |
3906 | ac_compiler=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3907 | for ac_option in --version -v -V -qversion; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3908 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3909 | case "(($ac_try" in |
3910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3911 | *) ac_try_echo=$ac_try;; | ||||
3912 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3913 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3914 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3915 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3916 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3917 | if test -s conftest.err; then |
3918 | sed '10a\ | ||||
3919 | ... rest of stderr output deleted ... | ||||
3920 | 10q' conftest.err >conftest.er1 | ||||
3921 | cat conftest.er1 >&5 | ||||
3922 | fi | ||||
3923 | rm -f conftest.er1 conftest.err | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3925 | test $ac_status = 0; } |
3926 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3929 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3931 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3932 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3933 | { |
3934 | |||||
3935 | ; | ||||
3936 | return 0; | ||||
3937 | } | ||||
3938 | _ACEOF | ||||
3939 | ac_clean_files_save=$ac_clean_files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3940 | 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 +0000 | [diff] [blame] | 3941 | # Try to create an executable without -o first, disregard a.out. |
3942 | # It will help us diagnose broken compilers, and finding out an intuition | ||||
3943 | # of exeext. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3945 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||||
3946 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3947 | |
3948 | # The possible output files: | ||||
3949 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||||
3950 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3951 | ac_rmfiles= |
3952 | for ac_file in $ac_files | ||||
3953 | do | ||||
3954 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3955 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3956 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3957 | esac | ||||
3958 | done | ||||
3959 | rm -f $ac_rmfiles | ||||
3960 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3961 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3962 | case "(($ac_try" in |
3963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3964 | *) ac_try_echo=$ac_try;; | ||||
3965 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3966 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3967 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3968 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3969 | ac_status=$? |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3971 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3972 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3973 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||||
3974 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||||
3975 | # so that the user can short-circuit this test for compilers unknown to | ||||
3976 | # Autoconf. | ||||
3977 | for ac_file in $ac_files '' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3978 | do |
3979 | test -f "$ac_file" || continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3982 | ;; |
3983 | [ab].out ) | ||||
3984 | # We found the default executable, but exeext='' is most | ||||
3985 | # certainly right. | ||||
3986 | break;; | ||||
3987 | *.* ) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 3988 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3989 | then :; else |
3990 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||||
3991 | fi | ||||
3992 | # We set ac_cv_exeext here because the later test for it is not | ||||
3993 | # safe: cross compilers may not add the suffix if given an `-o' | ||||
3994 | # argument, so we may need to know it at that point already. | ||||
3995 | # Even if this section looks crufty: it has the advantage of | ||||
3996 | # actually working. | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3997 | break;; |
3998 | * ) | ||||
3999 | break;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4000 | esac |
4001 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4002 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4003 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4004 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4005 | ac_file='' |
4006 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4007 | if test -z "$ac_file"; then : |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4009 | $as_echo "no" >&6; } | ||||
4010 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4011 | sed 's/^/| /' conftest.$ac_ext >&5 |
4012 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4013 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4014 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4015 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4016 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4017 | else |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
4019 | $as_echo "yes" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4020 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4022 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||||
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||||
4024 | $as_echo "$ac_file" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4025 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4027 | 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 +0000 | [diff] [blame] | 4028 | ac_clean_files=$ac_clean_files_save |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4030 | $as_echo_n "checking for suffix of executables... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4031 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4032 | case "(($ac_try" in |
4033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4034 | *) ac_try_echo=$ac_try;; | ||||
4035 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4037 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4038 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4039 | ac_status=$? |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4041 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4042 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4043 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||||
4044 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||||
4045 | # `rm'. | ||||
4046 | for ac_file in conftest.exe conftest conftest.*; do | ||||
4047 | test -f "$ac_file" || continue | ||||
4048 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4049 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4050 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4051 | break;; | ||||
4052 | * ) break;; | ||||
4053 | esac | ||||
4054 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4055 | else |
4056 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4057 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4058 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4059 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4060 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4061 | rm -f conftest conftest$ac_cv_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4063 | $as_echo "$ac_cv_exeext" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4064 | |
4065 | rm -f conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4066 | EXEEXT=$ac_cv_exeext |
4067 | ac_exeext=$EXEEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4069 | /* end confdefs.h. */ | ||||
4070 | #include <stdio.h> | ||||
4071 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4072 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4073 | { |
4074 | FILE *f = fopen ("conftest.out", "w"); | ||||
4075 | return ferror (f) || fclose (f) != 0; | ||||
4076 | |||||
4077 | ; | ||||
4078 | return 0; | ||||
4079 | } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4080 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4081 | ac_clean_files="$ac_clean_files conftest.out" |
4082 | # Check that the compiler produces executables we can run. If not, either | ||||
4083 | # the compiler is broken, or we cross compile. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4085 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4086 | if test "$cross_compiling" != yes; then |
4087 | { { ac_try="$ac_link" | ||||
4088 | case "(($ac_try" in | ||||
4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4090 | *) ac_try_echo=$ac_try;; | ||||
4091 | esac | ||||
4092 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4093 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4094 | (eval "$ac_link") 2>&5 |
4095 | ac_status=$? | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4097 | test $ac_status = 0; } |
4098 | if { ac_try='./conftest$ac_cv_exeext' | ||||
4099 | { { case "(($ac_try" in | ||||
4100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4101 | *) ac_try_echo=$ac_try;; | ||||
4102 | esac | ||||
4103 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4104 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4105 | (eval "$ac_try") 2>&5 |
4106 | ac_status=$? | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4108 | test $ac_status = 0; }; }; then |
4109 | cross_compiling=no | ||||
4110 | else | ||||
4111 | if test "$cross_compiling" = maybe; then | ||||
4112 | cross_compiling=yes | ||||
4113 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4114 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
4116 | as_fn_error $? "cannot run C compiled programs. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4117 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4118 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4119 | fi |
4120 | fi | ||||
4121 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4123 | $as_echo "$cross_compiling" >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4124 | |
4125 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||||
4126 | ac_clean_files=$ac_clean_files_save | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4128 | $as_echo_n "checking for suffix of object files... " >&6; } | ||||
4129 | if ${ac_cv_objext+:} false; then : | ||||
4130 | $as_echo_n "(cached) " >&6 | ||||
4131 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4133 | /* end confdefs.h. */ |
4134 | |||||
4135 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4136 | main () |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4137 | { |
4138 | |||||
4139 | ; | ||||
4140 | return 0; | ||||
4141 | } | ||||
4142 | _ACEOF | ||||
4143 | rm -f conftest.o conftest.obj | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4144 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4145 | case "(($ac_try" in |
4146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4147 | *) ac_try_echo=$ac_try;; | ||||
4148 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4149 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4150 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4151 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | ac_status=$? |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4154 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4155 | for ac_file in conftest.o conftest.obj conftest.*; do |
4156 | test -f "$ac_file" || continue; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4158 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4160 | break;; | ||||
4161 | esac | ||||
4162 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4163 | else |
4164 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4165 | sed 's/^/| /' conftest.$ac_ext >&5 |
4166 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4167 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4168 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4169 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4170 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4172 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4173 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4175 | $as_echo "$ac_cv_objext" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4176 | OBJEXT=$ac_cv_objext |
4177 | ac_objext=$OBJEXT | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4179 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||||
4180 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||||
4181 | $as_echo_n "(cached) " >&6 | ||||
4182 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4184 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4187 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4188 | { |
4189 | #ifndef __GNUC__ | ||||
4190 | choke me | ||||
4191 | #endif | ||||
4192 | |||||
4193 | ; | ||||
4194 | return 0; | ||||
4195 | } | ||||
4196 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4197 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | ac_compiler_gnu=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4199 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4200 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4201 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4204 | |||||
4205 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4207 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4208 | if test $ac_compiler_gnu = yes; then |
4209 | GCC=yes | ||||
4210 | else | ||||
4211 | GCC= | ||||
4212 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4213 | ac_test_CFLAGS=${CFLAGS+set} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4214 | ac_save_CFLAGS=$CFLAGS |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4216 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||||
4217 | if ${ac_cv_prog_cc_g+:} false; then : | ||||
4218 | $as_echo_n "(cached) " >&6 | ||||
4219 | else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4220 | ac_save_c_werror_flag=$ac_c_werror_flag |
4221 | ac_c_werror_flag=yes | ||||
4222 | ac_cv_prog_cc_g=no | ||||
4223 | CFLAGS="-g" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4225 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4227 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4228 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4229 | { |
4230 | |||||
4231 | ; | ||||
4232 | return 0; | ||||
4233 | } | ||||
4234 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4235 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4236 | ac_cv_prog_cc_g=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4237 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4238 | CFLAGS="" |
4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4240 | /* end confdefs.h. */ |
4241 | |||||
4242 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4243 | main () |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4244 | { |
4245 | |||||
4246 | ; | ||||
4247 | return 0; | ||||
4248 | } | ||||
4249 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4250 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4251 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4252 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4253 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4254 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4256 | /* end confdefs.h. */ |
4257 | |||||
4258 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4259 | main () |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4260 | { |
4261 | |||||
4262 | ; | ||||
4263 | return 0; | ||||
4264 | } | ||||
4265 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4266 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4267 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4268 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4270 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4272 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4274 | ac_c_werror_flag=$ac_save_c_werror_flag |
4275 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4277 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||||
4278 | if test "$ac_test_CFLAGS" = set; then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4280 | elif test $ac_cv_prog_cc_g = yes; then |
4281 | if test "$GCC" = yes; then | ||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4282 | CFLAGS="-g -O2" |
4283 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4284 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4285 | fi |
4286 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4287 | if test "$GCC" = yes; then |
4288 | CFLAGS="-O2" | ||||
4289 | else | ||||
4290 | CFLAGS= | ||||
4291 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4292 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4294 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||||
4295 | if ${ac_cv_prog_cc_c89+:} false; then : | ||||
4296 | $as_echo_n "(cached) " >&6 | ||||
4297 | else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4298 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4299 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4301 | /* end confdefs.h. */ |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4302 | #include <stdarg.h> |
4303 | #include <stdio.h> | ||||
4304 | struct stat; | ||||
4305 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||||
4306 | struct buf { int x; }; | ||||
4307 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||||
4308 | static char *e (p, i) | ||||
4309 | char **p; | ||||
4310 | int i; | ||||
4311 | { | ||||
4312 | return p[i]; | ||||
4313 | } | ||||
4314 | static char *f (char * (*g) (char **, int), char **p, ...) | ||||
4315 | { | ||||
4316 | char *s; | ||||
4317 | va_list v; | ||||
4318 | va_start (v,p); | ||||
4319 | s = g (p, va_arg (v,int)); | ||||
4320 | va_end (v); | ||||
4321 | return s; | ||||
4322 | } | ||||
4323 | |||||
4324 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||||
4325 | function prototypes and stuff, but not '\xHH' hex character constants. | ||||
4326 | These don't provoke an error unfortunately, instead are silently treated | ||||
4327 | as 'x'. The following induces an error, until -std is added to get | ||||
4328 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||||
4329 | array size at least. It's necessary to write '\x00'==0 to get something | ||||
4330 | that's true only with -std. */ | ||||
4331 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||||
4332 | |||||
4333 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||||
4334 | inside strings and character constants. */ | ||||
4335 | #define FOO(x) 'x' | ||||
4336 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||||
4337 | |||||
4338 | int test (int i, double x); | ||||
4339 | struct s1 {int (*f) (int a);}; | ||||
4340 | struct s2 {int (*f) (double a);}; | ||||
4341 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||||
4342 | int argc; | ||||
4343 | char **argv; | ||||
4344 | int | ||||
4345 | main () | ||||
4346 | { | ||||
4347 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||||
4348 | ; | ||||
4349 | return 0; | ||||
4350 | } | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4351 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4352 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4353 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4354 | do |
4355 | CC="$ac_save_CC $ac_arg" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4356 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4357 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4358 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4359 | rm -f core conftest.err conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4360 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4361 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4362 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4363 | CC=$ac_save_CC |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4364 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4365 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4366 | # AC_CACHE_VAL |
4367 | case "x$ac_cv_prog_cc_c89" in | ||||
4368 | x) | ||||
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||||
4370 | $as_echo "none needed" >&6; } ;; | ||||
4371 | xno) | ||||
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||||
4373 | $as_echo "unsupported" >&6; } ;; | ||||
4374 | *) | ||||
4375 | CC="$CC $ac_cv_prog_cc_c89" | ||||
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||||
4377 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||||
4378 | esac | ||||
4379 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||||
4380 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4381 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4383 | ac_ext=c |
4384 | ac_cpp='$CPP $CPPFLAGS' | ||||
4385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4388 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4389 | ac_ext=c |
4390 | ac_cpp='$CPP $CPPFLAGS' | ||||
4391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4395 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4396 | # On Suns, sometimes $CPP names a directory. |
4397 | if test -n "$CPP" && test -d "$CPP"; then | ||||
4398 | CPP= | ||||
4399 | fi | ||||
4400 | if test -z "$CPP"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4401 | if ${ac_cv_prog_CPP+:} false; then : |
4402 | $as_echo_n "(cached) " >&6 | ||||
4403 | else | ||||
4404 | # Double quotes because CPP needs to be expanded | ||||
4405 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4406 | do |
4407 | ac_preproc_ok=false | ||||
4408 | for ac_c_preproc_warn_flag in '' yes | ||||
4409 | do | ||||
4410 | # Use a header file that comes with gcc, so configuring glibc | ||||
4411 | # with a fresh cross-compiler works. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4412 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4413 | # <limits.h> exists even on freestanding compilers. | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4414 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4415 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4417 | /* end confdefs.h. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4418 | #ifdef __STDC__ |
4419 | # include <limits.h> | ||||
4420 | #else | ||||
4421 | # include <assert.h> | ||||
4422 | #endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4423 | Syntax error |
4424 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4425 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4426 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4427 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4428 | # Broken: fails on valid input. |
4429 | continue | ||||
4430 | fi | ||||
4431 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4432 | |||||
4433 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4434 | # can be detected and how. | ||||
4435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4436 | /* end confdefs.h. */ | ||||
4437 | #include <ac_nonexistent.h> | ||||
4438 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4439 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4440 | # Broken: success on invalid input. |
4441 | continue | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4442 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4443 | # Passes both tests. |
4444 | ac_preproc_ok=: | ||||
4445 | break | ||||
4446 | fi | ||||
4447 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4448 | |||||
4449 | done | ||||
4450 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4451 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4452 | if $ac_preproc_ok; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4453 | break |
4454 | fi | ||||
4455 | |||||
4456 | done | ||||
4457 | ac_cv_prog_CPP=$CPP | ||||
4458 | |||||
4459 | fi | ||||
4460 | CPP=$ac_cv_prog_CPP | ||||
4461 | else | ||||
4462 | ac_cv_prog_CPP=$CPP | ||||
4463 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4465 | $as_echo "$CPP" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4466 | ac_preproc_ok=false |
4467 | for ac_c_preproc_warn_flag in '' yes | ||||
4468 | do | ||||
4469 | # Use a header file that comes with gcc, so configuring glibc | ||||
4470 | # with a fresh cross-compiler works. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4471 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4472 | # <limits.h> exists even on freestanding compilers. | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4473 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4474 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4476 | /* end confdefs.h. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4477 | #ifdef __STDC__ |
4478 | # include <limits.h> | ||||
4479 | #else | ||||
4480 | # include <assert.h> | ||||
4481 | #endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4482 | Syntax error |
4483 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4484 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4485 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4486 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4487 | # Broken: fails on valid input. |
4488 | continue | ||||
4489 | fi | ||||
4490 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4491 | |||||
4492 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4493 | # can be detected and how. | ||||
4494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4495 | /* end confdefs.h. */ | ||||
4496 | #include <ac_nonexistent.h> | ||||
4497 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4498 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4499 | # Broken: success on invalid input. |
4500 | continue | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4501 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4502 | # Passes both tests. |
4503 | ac_preproc_ok=: | ||||
4504 | break | ||||
4505 | fi | ||||
4506 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4507 | |||||
4508 | done | ||||
4509 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4510 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4511 | if $ac_preproc_ok; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4512 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4513 | else |
4514 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4515 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4516 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4517 | See \`config.log' for more details" "$LINENO" 5; } | ||||
4518 | fi | ||||
4519 | |||||
4520 | ac_ext=c | ||||
4521 | ac_cpp='$CPP $CPPFLAGS' | ||||
4522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4525 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4527 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||||
4528 | if ${ac_cv_path_GREP+:} false; then : | ||||
4529 | $as_echo_n "(cached) " >&6 | ||||
4530 | else | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4531 | if test -z "$GREP"; then |
4532 | ac_path_GREP_found=false | ||||
4533 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4535 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
4536 | do | ||||
4537 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4538 | test -z "$as_dir" && as_dir=. |
4539 | for ac_prog in grep ggrep; do | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4540 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4541 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4542 | as_fn_executable_p "$ac_path_GREP" || continue |
4543 | # Check for GNU ac_path_GREP and select it if it is found. | ||||
4544 | # Check for GNU $ac_path_GREP | ||||
4545 | case `"$ac_path_GREP" --version 2>&1` in | ||||
4546 | *GNU*) | ||||
4547 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
4548 | *) | ||||
4549 | ac_count=0 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4550 | $as_echo_n 0123456789 >"conftest.in" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4551 | while : |
4552 | do | ||||
4553 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4554 | mv "conftest.tmp" "conftest.in" | ||||
4555 | cp "conftest.in" "conftest.nl" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4556 | $as_echo 'GREP' >> "conftest.nl" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4557 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4558 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4559 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4560 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
4561 | # Best one so far, save it but keep looking for a better one | ||||
4562 | ac_cv_path_GREP="$ac_path_GREP" | ||||
4563 | ac_path_GREP_max=$ac_count | ||||
4564 | fi | ||||
4565 | # 10*(2^10) chars as input seems more than enough | ||||
4566 | test $ac_count -gt 10 && break | ||||
4567 | done | ||||
4568 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4569 | esac | ||||
4570 | |||||
4571 | $ac_path_GREP_found && break 3 | ||||
4572 | done | ||||
4573 | done | ||||
4574 | done | ||||
4575 | IFS=$as_save_IFS | ||||
4576 | if test -z "$ac_cv_path_GREP"; then | ||||
4577 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
4578 | fi | ||||
4579 | else | ||||
4580 | ac_cv_path_GREP=$GREP | ||||
4581 | fi | ||||
4582 | |||||
4583 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4585 | $as_echo "$ac_cv_path_GREP" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4586 | GREP="$ac_cv_path_GREP" |
4587 | |||||
4588 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4590 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||||
4591 | if ${ac_cv_path_SED+:} false; then : | ||||
4592 | $as_echo_n "(cached) " >&6 | ||||
4593 | else | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4594 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4595 | for ac_i in 1 2 3 4 5 6 7; do | ||||
4596 | ac_script="$ac_script$as_nl$ac_script" | ||||
4597 | done | ||||
4598 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||||
4599 | { ac_script=; unset ac_script;} | ||||
4600 | if test -z "$SED"; then | ||||
4601 | ac_path_SED_found=false | ||||
4602 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4604 | for as_dir in $PATH | ||||
4605 | do | ||||
4606 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4607 | test -z "$as_dir" && as_dir=. |
4608 | for ac_prog in sed gsed; do | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4609 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4610 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4611 | as_fn_executable_p "$ac_path_SED" || continue |
4612 | # Check for GNU ac_path_SED and select it if it is found. | ||||
4613 | # Check for GNU $ac_path_SED | ||||
4614 | case `"$ac_path_SED" --version 2>&1` in | ||||
4615 | *GNU*) | ||||
4616 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
4617 | *) | ||||
4618 | ac_count=0 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4619 | $as_echo_n 0123456789 >"conftest.in" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4620 | while : |
4621 | do | ||||
4622 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4623 | mv "conftest.tmp" "conftest.in" | ||||
4624 | cp "conftest.in" "conftest.nl" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4625 | $as_echo '' >> "conftest.nl" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4626 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4627 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4628 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4629 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
4630 | # Best one so far, save it but keep looking for a better one | ||||
4631 | ac_cv_path_SED="$ac_path_SED" | ||||
4632 | ac_path_SED_max=$ac_count | ||||
4633 | fi | ||||
4634 | # 10*(2^10) chars as input seems more than enough | ||||
4635 | test $ac_count -gt 10 && break | ||||
4636 | done | ||||
4637 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4638 | esac | ||||
4639 | |||||
4640 | $ac_path_SED_found && break 3 | ||||
4641 | done | ||||
4642 | done | ||||
4643 | done | ||||
4644 | IFS=$as_save_IFS | ||||
4645 | if test -z "$ac_cv_path_SED"; then | ||||
4646 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||||
4647 | fi | ||||
4648 | else | ||||
4649 | ac_cv_path_SED=$SED | ||||
4650 | fi | ||||
4651 | |||||
4652 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4654 | $as_echo "$ac_cv_path_SED" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4655 | SED="$ac_cv_path_SED" |
4656 | rm -f conftest.sed | ||||
4657 | |||||
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4658 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4659 | |
4660 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
4662 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4663 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4664 | # Check whether --with-cxx_main was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4665 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4666 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4667 | |
4668 | case $withval in | ||||
4669 | no) with_cxx_main=no | ||||
4670 | MAINCC='$(CC)';; | ||||
4671 | yes) with_cxx_main=yes | ||||
4672 | MAINCC='$(CXX)';; | ||||
4673 | *) with_cxx_main=yes | ||||
4674 | MAINCC=$withval | ||||
4675 | if test -z "$CXX" | ||||
4676 | then | ||||
4677 | CXX=$withval | ||||
4678 | fi;; | ||||
4679 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4680 | else |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4681 | |
4682 | with_cxx_main=no | ||||
4683 | MAINCC='$(CC)' | ||||
4684 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4685 | fi |
4686 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
4688 | $as_echo "$with_cxx_main" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4689 | |
4690 | preset_cxx="$CXX" | ||||
4691 | if test -z "$CXX" | ||||
4692 | then | ||||
4693 | case "$CC" in | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4694 | gcc) if test -n "$ac_tool_prefix"; then |
4695 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | ||||
4696 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4698 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4699 | if ${ac_cv_path_CXX+:} false; then : | ||||
4700 | $as_echo_n "(cached) " >&6 | ||||
4701 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4702 | case $CXX in |
4703 | [\\/]* | ?:[\\/]*) | ||||
4704 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4705 | ;; | ||||
4706 | *) | ||||
4707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4708 | for as_dir in notfound | ||||
4709 | do | ||||
4710 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4711 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4714 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4716 | break 2 |
4717 | fi | ||||
4718 | done | ||||
4719 | done | ||||
4720 | IFS=$as_save_IFS | ||||
4721 | |||||
4722 | ;; | ||||
4723 | esac | ||||
4724 | fi | ||||
4725 | CXX=$ac_cv_path_CXX | ||||
4726 | if test -n "$CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4728 | $as_echo "$CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4729 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4731 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4732 | fi |
4733 | |||||
4734 | |||||
4735 | fi | ||||
4736 | if test -z "$ac_cv_path_CXX"; then | ||||
4737 | ac_pt_CXX=$CXX | ||||
4738 | # Extract the first word of "g++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4739 | set dummy g++; ac_word=$2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4741 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4742 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4743 | $as_echo_n "(cached) " >&6 | ||||
4744 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4745 | case $ac_pt_CXX in |
4746 | [\\/]* | ?:[\\/]*) | ||||
4747 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4748 | ;; | ||||
4749 | *) | ||||
4750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4751 | for as_dir in notfound | ||||
4752 | do | ||||
4753 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4754 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4755 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4757 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4759 | break 2 |
4760 | fi | ||||
4761 | done | ||||
4762 | done | ||||
4763 | IFS=$as_save_IFS | ||||
4764 | |||||
4765 | ;; | ||||
4766 | esac | ||||
4767 | fi | ||||
4768 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4769 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
4771 | $as_echo "$ac_pt_CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4772 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4774 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4775 | fi |
4776 | |||||
4777 | if test "x$ac_pt_CXX" = x; then | ||||
4778 | CXX="g++" | ||||
4779 | else | ||||
4780 | case $cross_compiling:$ac_tool_warned in | ||||
4781 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4784 | ac_tool_warned=yes ;; |
4785 | esac | ||||
4786 | CXX=$ac_pt_CXX | ||||
4787 | fi | ||||
4788 | else | ||||
4789 | CXX="$ac_cv_path_CXX" | ||||
4790 | fi | ||||
4791 | ;; | ||||
4792 | cc) if test -n "$ac_tool_prefix"; then | ||||
4793 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | ||||
4794 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4796 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4797 | if ${ac_cv_path_CXX+:} false; then : | ||||
4798 | $as_echo_n "(cached) " >&6 | ||||
4799 | else | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4800 | case $CXX in |
4801 | [\\/]* | ?:[\\/]*) | ||||
4802 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4803 | ;; | ||||
4804 | *) | ||||
4805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4806 | for as_dir in notfound | ||||
4807 | do | ||||
4808 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4809 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4810 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4812 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4813 | $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 +0000 | [diff] [blame] | 4814 | break 2 |
4815 | fi | ||||
4816 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4817 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4818 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4819 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4820 | ;; |
4821 | esac | ||||
4822 | fi | ||||
4823 | CXX=$ac_cv_path_CXX | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4824 | if test -n "$CXX"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4826 | $as_echo "$CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4827 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4829 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4830 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4831 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4832 | |
4833 | fi | ||||
4834 | if test -z "$ac_cv_path_CXX"; then | ||||
4835 | ac_pt_CXX=$CXX | ||||
4836 | # Extract the first word of "c++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4837 | set dummy c++; ac_word=$2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4839 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4840 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4841 | $as_echo_n "(cached) " >&6 | ||||
4842 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4843 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4844 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4845 | 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 +0000 | [diff] [blame] | 4846 | ;; |
4847 | *) | ||||
4848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4849 | for as_dir in notfound | ||||
4850 | do | ||||
4851 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4852 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4853 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4855 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4856 | $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 +0000 | [diff] [blame] | 4857 | break 2 |
4858 | fi | ||||
4859 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4860 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4861 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4862 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4863 | ;; |
4864 | esac | ||||
4865 | fi | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4866 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
4867 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
4869 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4870 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4872 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4873 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4874 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4875 | if test "x$ac_pt_CXX" = x; then |
4876 | CXX="c++" | ||||
4877 | else | ||||
4878 | case $cross_compiling:$ac_tool_warned in | ||||
4879 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4881 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4882 | ac_tool_warned=yes ;; |
4883 | esac | ||||
4884 | CXX=$ac_pt_CXX | ||||
4885 | fi | ||||
4886 | else | ||||
4887 | CXX="$ac_cv_path_CXX" | ||||
4888 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4889 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4890 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
4891 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | ||||
4892 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4894 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4895 | if ${ac_cv_path_CXX+:} false; then : | ||||
4896 | $as_echo_n "(cached) " >&6 | ||||
4897 | else | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4898 | case $CXX in |
4899 | [\\/]* | ?:[\\/]*) | ||||
4900 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4901 | ;; | ||||
4902 | *) | ||||
4903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4904 | for as_dir in notfound | ||||
4905 | do | ||||
4906 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4907 | test -z "$as_dir" && as_dir=. |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4908 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4910 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4912 | break 2 |
4913 | fi | ||||
4914 | done | ||||
4915 | done | ||||
4916 | IFS=$as_save_IFS | ||||
4917 | |||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4918 | ;; |
4919 | esac | ||||
4920 | fi | ||||
4921 | CXX=$ac_cv_path_CXX | ||||
4922 | if test -n "$CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4924 | $as_echo "$CXX" >&6; } | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4925 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4927 | $as_echo "no" >&6; } | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4928 | fi |
4929 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4930 | |
4931 | fi | ||||
4932 | if test -z "$ac_cv_path_CXX"; then | ||||
4933 | ac_pt_CXX=$CXX | ||||
4934 | # Extract the first word of "clang++", so it can be a program name with args. | ||||
4935 | set dummy clang++; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4937 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4938 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4939 | $as_echo_n "(cached) " >&6 | ||||
4940 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4941 | case $ac_pt_CXX in |
4942 | [\\/]* | ?:[\\/]*) | ||||
4943 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4944 | ;; | ||||
4945 | *) | ||||
4946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4947 | for as_dir in notfound | ||||
4948 | do | ||||
4949 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4950 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4953 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4955 | break 2 |
4956 | fi | ||||
4957 | done | ||||
4958 | done | ||||
4959 | IFS=$as_save_IFS | ||||
4960 | |||||
4961 | ;; | ||||
4962 | esac | ||||
4963 | fi | ||||
4964 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4965 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
4967 | $as_echo "$ac_pt_CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4968 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4970 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4971 | fi |
4972 | |||||
4973 | if test "x$ac_pt_CXX" = x; then | ||||
4974 | CXX="clang++" | ||||
4975 | else | ||||
4976 | case $cross_compiling:$ac_tool_warned in | ||||
4977 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4979 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4980 | ac_tool_warned=yes ;; |
4981 | esac | ||||
4982 | CXX=$ac_pt_CXX | ||||
4983 | fi | ||||
4984 | else | ||||
4985 | CXX="$ac_cv_path_CXX" | ||||
4986 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4987 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4988 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
4989 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | ||||
4990 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4992 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4993 | if ${ac_cv_path_CXX+:} false; then : | ||||
4994 | $as_echo_n "(cached) " >&6 | ||||
4995 | else | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4996 | case $CXX in |
4997 | [\\/]* | ?:[\\/]*) | ||||
4998 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4999 | ;; | ||||
5000 | *) | ||||
5001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5002 | for as_dir in notfound | ||||
5003 | do | ||||
5004 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5005 | test -z "$as_dir" && as_dir=. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5006 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5008 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5010 | break 2 |
5011 | fi | ||||
5012 | done | ||||
5013 | done | ||||
5014 | IFS=$as_save_IFS | ||||
5015 | |||||
5016 | ;; | ||||
5017 | esac | ||||
5018 | fi | ||||
5019 | CXX=$ac_cv_path_CXX | ||||
5020 | if test -n "$CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5022 | $as_echo "$CXX" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5023 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5025 | $as_echo "no" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5026 | fi |
5027 | |||||
5028 | |||||
5029 | fi | ||||
5030 | if test -z "$ac_cv_path_CXX"; then | ||||
5031 | ac_pt_CXX=$CXX | ||||
5032 | # Extract the first word of "icpc", so it can be a program name with args. | ||||
5033 | set dummy icpc; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5035 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5036 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
5037 | $as_echo_n "(cached) " >&6 | ||||
5038 | else | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5039 | case $ac_pt_CXX in |
5040 | [\\/]* | ?:[\\/]*) | ||||
5041 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
5042 | ;; | ||||
5043 | *) | ||||
5044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5045 | for as_dir in notfound | ||||
5046 | do | ||||
5047 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5048 | test -z "$as_dir" && as_dir=. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5049 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5051 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5053 | break 2 |
5054 | fi | ||||
5055 | done | ||||
5056 | done | ||||
5057 | IFS=$as_save_IFS | ||||
5058 | |||||
5059 | ;; | ||||
5060 | esac | ||||
5061 | fi | ||||
5062 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
5063 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
5065 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5066 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5068 | $as_echo "no" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5069 | fi |
5070 | |||||
5071 | if test "x$ac_pt_CXX" = x; then | ||||
5072 | CXX="icpc" | ||||
5073 | else | ||||
5074 | case $cross_compiling:$ac_tool_warned in | ||||
5075 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5078 | ac_tool_warned=yes ;; |
5079 | esac | ||||
5080 | CXX=$ac_pt_CXX | ||||
5081 | fi | ||||
5082 | else | ||||
5083 | CXX="$ac_cv_path_CXX" | ||||
5084 | fi | ||||
5085 | ;; | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5086 | esac |
5087 | if test "$CXX" = "notfound" | ||||
5088 | then | ||||
5089 | CXX="" | ||||
5090 | fi | ||||
5091 | fi | ||||
5092 | if test -z "$CXX" | ||||
5093 | then | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5094 | if test -n "$ac_tool_prefix"; then |
5095 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5096 | do | ||||
5097 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5098 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5100 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5101 | if ${ac_cv_prog_CXX+:} false; then : | ||||
5102 | $as_echo_n "(cached) " >&6 | ||||
5103 | else | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5104 | if test -n "$CXX"; then |
5105 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||||
5106 | else | ||||
5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5108 | for as_dir in $PATH | ||||
5109 | do | ||||
5110 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5111 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5112 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5114 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5115 | $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 +0000 | [diff] [blame] | 5116 | break 2 |
5117 | fi | ||||
5118 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5119 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5120 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5121 | |
5122 | fi | ||||
5123 | fi | ||||
5124 | CXX=$ac_cv_prog_CXX | ||||
5125 | if test -n "$CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5127 | $as_echo "$CXX" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5128 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5130 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5131 | fi |
5132 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5133 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5134 | test -n "$CXX" && break |
5135 | done | ||||
5136 | fi | ||||
5137 | if test -z "$CXX"; then | ||||
5138 | ac_ct_CXX=$CXX | ||||
5139 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5140 | do | ||||
5141 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
5142 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5144 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5145 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||||
5146 | $as_echo_n "(cached) " >&6 | ||||
5147 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5148 | if test -n "$ac_ct_CXX"; then |
5149 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||||
5150 | else | ||||
5151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5152 | for as_dir in $PATH | ||||
5153 | do | ||||
5154 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5155 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5156 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5158 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5160 | break 2 |
5161 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5162 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5163 | done |
5164 | IFS=$as_save_IFS | ||||
5165 | |||||
5166 | fi | ||||
5167 | fi | ||||
5168 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||||
5169 | if test -n "$ac_ct_CXX"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5171 | $as_echo "$ac_ct_CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5172 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5174 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5175 | fi |
5176 | |||||
5177 | |||||
5178 | test -n "$ac_ct_CXX" && break | ||||
5179 | done | ||||
5180 | |||||
5181 | if test "x$ac_ct_CXX" = x; then | ||||
5182 | CXX="notfound" | ||||
5183 | else | ||||
5184 | case $cross_compiling:$ac_tool_warned in | ||||
5185 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5187 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5188 | ac_tool_warned=yes ;; |
5189 | esac | ||||
5190 | CXX=$ac_ct_CXX | ||||
5191 | fi | ||||
5192 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5193 | |
5194 | if test "$CXX" = "notfound" | ||||
5195 | then | ||||
5196 | CXX="" | ||||
5197 | fi | ||||
5198 | fi | ||||
5199 | if test "$preset_cxx" != "$CXX" | ||||
5200 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5202 | |
5203 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5204 | If this is not intended, then set CXX on the configure command line. | ||||
5205 | " >&5 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5206 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5207 | |
5208 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5209 | If this is not intended, then set CXX on the configure command line. | ||||
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5210 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5211 | fi |
5212 | |||||
5213 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5214 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
5215 | |||||
5216 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
5218 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5219 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5220 | #undef bfin |
5221 | #undef cris | ||||
5222 | #undef fr30 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5223 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5224 | #undef hppa |
5225 | #undef hpux | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5226 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5227 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5228 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5229 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5230 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5231 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5232 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5233 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5234 | # if defined(__x86_64__) && defined(__LP64__) |
5235 | x86_64-linux-gnu | ||||
5236 | # elif defined(__x86_64__) && defined(__ILP32__) | ||||
5237 | x86_64-linux-gnux32 | ||||
5238 | # elif defined(__i386__) | ||||
5239 | i386-linux-gnu | ||||
5240 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | ||||
5241 | # if defined(__ILP32__) | ||||
5242 | aarch64_ilp32-linux-gnu | ||||
5243 | # else | ||||
5244 | aarch64-linux-gnu | ||||
5245 | # endif | ||||
5246 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | ||||
5247 | # if defined(__ILP32__) | ||||
5248 | aarch64_be_ilp32-linux-gnu | ||||
5249 | # else | ||||
5250 | aarch64_be-linux-gnu | ||||
5251 | # endif | ||||
5252 | # elif defined(__alpha__) | ||||
5253 | alpha-linux-gnu | ||||
5254 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | ||||
5255 | # if defined(__ARMEL__) | ||||
5256 | arm-linux-gnueabihf | ||||
5257 | # else | ||||
5258 | armeb-linux-gnueabihf | ||||
5259 | # endif | ||||
5260 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | ||||
5261 | # if defined(__ARMEL__) | ||||
5262 | arm-linux-gnueabi | ||||
5263 | # else | ||||
5264 | armeb-linux-gnueabi | ||||
5265 | # endif | ||||
5266 | # elif defined(__hppa__) | ||||
5267 | hppa-linux-gnu | ||||
5268 | # elif defined(__ia64__) | ||||
5269 | ia64-linux-gnu | ||||
5270 | # elif defined(__m68k__) && !defined(__mcoldfire__) | ||||
5271 | m68k-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5272 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
5273 | # if _MIPS_SIM == _ABIO32 | ||||
5274 | mipsisa32r6el-linux-gnu | ||||
5275 | # elif _MIPS_SIM == _ABIN32 | ||||
5276 | mipsisa64r6el-linux-gnuabin32 | ||||
5277 | # elif _MIPS_SIM == _ABI64 | ||||
5278 | mipsisa64r6el-linux-gnuabi64 | ||||
5279 | # else | ||||
5280 | # error unknown platform triplet | ||||
5281 | # endif | ||||
5282 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) | ||||
5283 | # if _MIPS_SIM == _ABIO32 | ||||
5284 | mipsisa32r6-linux-gnu | ||||
5285 | # elif _MIPS_SIM == _ABIN32 | ||||
5286 | mipsisa64r6-linux-gnuabin32 | ||||
5287 | # elif _MIPS_SIM == _ABI64 | ||||
5288 | mipsisa64r6-linux-gnuabi64 | ||||
5289 | # else | ||||
5290 | # error unknown platform triplet | ||||
5291 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5292 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
5293 | # if _MIPS_SIM == _ABIO32 | ||||
5294 | mipsel-linux-gnu | ||||
5295 | # elif _MIPS_SIM == _ABIN32 | ||||
5296 | mips64el-linux-gnuabin32 | ||||
5297 | # elif _MIPS_SIM == _ABI64 | ||||
5298 | mips64el-linux-gnuabi64 | ||||
5299 | # else | ||||
5300 | # error unknown platform triplet | ||||
5301 | # endif | ||||
5302 | # elif defined(__mips_hard_float) | ||||
5303 | # if _MIPS_SIM == _ABIO32 | ||||
5304 | mips-linux-gnu | ||||
5305 | # elif _MIPS_SIM == _ABIN32 | ||||
5306 | mips64-linux-gnuabin32 | ||||
5307 | # elif _MIPS_SIM == _ABI64 | ||||
5308 | mips64-linux-gnuabi64 | ||||
5309 | # else | ||||
5310 | # error unknown platform triplet | ||||
5311 | # endif | ||||
5312 | # elif defined(__or1k__) | ||||
5313 | or1k-linux-gnu | ||||
5314 | # elif defined(__powerpc__) && defined(__SPE__) | ||||
5315 | powerpc-linux-gnuspe | ||||
5316 | # elif defined(__powerpc64__) | ||||
5317 | # if defined(__LITTLE_ENDIAN__) | ||||
5318 | powerpc64le-linux-gnu | ||||
5319 | # else | ||||
5320 | powerpc64-linux-gnu | ||||
5321 | # endif | ||||
5322 | # elif defined(__powerpc__) | ||||
5323 | powerpc-linux-gnu | ||||
5324 | # elif defined(__s390x__) | ||||
5325 | s390x-linux-gnu | ||||
5326 | # elif defined(__s390__) | ||||
5327 | s390-linux-gnu | ||||
5328 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | ||||
5329 | sh4-linux-gnu | ||||
5330 | # elif defined(__sparc__) && defined(__arch64__) | ||||
5331 | sparc64-linux-gnu | ||||
5332 | # elif defined(__sparc__) | ||||
5333 | sparc-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5334 | # elif defined(__riscv) |
5335 | # if __riscv_xlen == 32 | ||||
5336 | riscv32-linux-gnu | ||||
5337 | # elif __riscv_xlen == 64 | ||||
5338 | riscv64-linux-gnu | ||||
5339 | # else | ||||
5340 | # error unknown platform triplet | ||||
5341 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5342 | # else |
5343 | # error unknown platform triplet | ||||
5344 | # endif | ||||
5345 | #elif defined(__FreeBSD_kernel__) | ||||
5346 | # if defined(__LP64__) | ||||
5347 | x86_64-kfreebsd-gnu | ||||
5348 | # elif defined(__i386__) | ||||
5349 | i386-kfreebsd-gnu | ||||
5350 | # else | ||||
5351 | # error unknown platform triplet | ||||
5352 | # endif | ||||
5353 | #elif defined(__gnu_hurd__) | ||||
5354 | i386-gnu | ||||
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5355 | #elif defined(__APPLE__) |
5356 | darwin | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 5357 | #elif defined(__VXWORKS__) |
5358 | vxworks | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5359 | #else |
5360 | # error unknown platform triplet | ||||
5361 | #endif | ||||
5362 | |||||
5363 | EOF | ||||
5364 | |||||
Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5365 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5366 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
5368 | $as_echo "$PLATFORM_TRIPLET" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5369 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5371 | $as_echo "none" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5372 | fi |
5373 | rm -f conftest.c conftest.out | ||||
5374 | |||||
5375 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | ||||
5376 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | ||||
5377 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | ||||
5378 | fi | ||||
doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5379 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
5380 | MULTIARCH=$PLATFORM_TRIPLET | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5381 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5382 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5383 | if test x$MULTIARCH != x; then |
5384 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | ||||
5385 | fi | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5386 | |
5387 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
5389 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5390 | save_LDFLAGS="$LDFLAGS" |
5391 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5392 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5394 | /* end confdefs.h. */ | ||||
5395 | |||||
5396 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5397 | main () |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5398 | { |
5399 | |||||
5400 | ; | ||||
5401 | return 0; | ||||
5402 | } | ||||
5403 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5404 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5405 | NO_AS_NEEDED="-Wl,--no-as-needed" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5407 | $as_echo "yes" >&6; } | ||||
5408 | else | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5409 | NO_AS_NEEDED="" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5411 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5412 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5413 | rm -f core conftest.err conftest.$ac_objext \ |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5414 | conftest$ac_exeext conftest.$ac_ext |
5415 | LDFLAGS="$save_LDFLAGS" | ||||
5416 | |||||
5417 | |||||
5418 | |||||
5419 | # checks for UNIX variants that set C preprocessor variables | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5420 | |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||||
5422 | $as_echo_n "checking for egrep... " >&6; } | ||||
5423 | if ${ac_cv_path_EGREP+:} false; then : | ||||
5424 | $as_echo_n "(cached) " >&6 | ||||
5425 | else | ||||
5426 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
5427 | then ac_cv_path_EGREP="$GREP -E" | ||||
5428 | else | ||||
5429 | if test -z "$EGREP"; then | ||||
5430 | ac_path_EGREP_found=false | ||||
5431 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
5432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5433 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5434 | do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5435 | IFS=$as_save_IFS |
5436 | test -z "$as_dir" && as_dir=. | ||||
5437 | for ac_prog in egrep; do | ||||
5438 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5439 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
5440 | as_fn_executable_p "$ac_path_EGREP" || continue | ||||
5441 | # Check for GNU ac_path_EGREP and select it if it is found. | ||||
5442 | # Check for GNU $ac_path_EGREP | ||||
5443 | case `"$ac_path_EGREP" --version 2>&1` in | ||||
5444 | *GNU*) | ||||
5445 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
5446 | *) | ||||
5447 | ac_count=0 | ||||
5448 | $as_echo_n 0123456789 >"conftest.in" | ||||
5449 | while : | ||||
5450 | do | ||||
5451 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
5452 | mv "conftest.tmp" "conftest.in" | ||||
5453 | cp "conftest.in" "conftest.nl" | ||||
5454 | $as_echo 'EGREP' >> "conftest.nl" | ||||
5455 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
5456 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
5457 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
5458 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||||
5459 | # Best one so far, save it but keep looking for a better one | ||||
5460 | ac_cv_path_EGREP="$ac_path_EGREP" | ||||
5461 | ac_path_EGREP_max=$ac_count | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5462 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5463 | # 10*(2^10) chars as input seems more than enough |
5464 | test $ac_count -gt 10 && break | ||||
5465 | done | ||||
5466 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
5467 | esac | ||||
5468 | |||||
5469 | $ac_path_EGREP_found && break 3 | ||||
5470 | done | ||||
5471 | done | ||||
5472 | done | ||||
5473 | IFS=$as_save_IFS | ||||
5474 | if test -z "$ac_cv_path_EGREP"; then | ||||
5475 | 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 +0000 | [diff] [blame] | 5476 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5477 | else |
5478 | ac_cv_path_EGREP=$EGREP | ||||
5479 | fi | ||||
5480 | |||||
5481 | fi | ||||
5482 | fi | ||||
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||||
5484 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||||
5485 | EGREP="$ac_cv_path_EGREP" | ||||
5486 | |||||
5487 | |||||
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||||
5489 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
5490 | if ${ac_cv_header_stdc+:} false; then : | ||||
5491 | $as_echo_n "(cached) " >&6 | ||||
5492 | else | ||||
5493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5494 | /* end confdefs.h. */ | ||||
5495 | #include <stdlib.h> | ||||
5496 | #include <stdarg.h> | ||||
5497 | #include <string.h> | ||||
5498 | #include <float.h> | ||||
5499 | |||||
5500 | int | ||||
5501 | main () | ||||
5502 | { | ||||
5503 | |||||
5504 | ; | ||||
5505 | return 0; | ||||
5506 | } | ||||
5507 | _ACEOF | ||||
5508 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5509 | ac_cv_header_stdc=yes | ||||
5510 | else | ||||
5511 | ac_cv_header_stdc=no | ||||
5512 | fi | ||||
5513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5514 | |||||
5515 | if test $ac_cv_header_stdc = yes; then | ||||
5516 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
5517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5518 | /* end confdefs.h. */ | ||||
5519 | #include <string.h> | ||||
5520 | |||||
5521 | _ACEOF | ||||
5522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5523 | $EGREP "memchr" >/dev/null 2>&1; then : | ||||
5524 | |||||
5525 | else | ||||
5526 | ac_cv_header_stdc=no | ||||
5527 | fi | ||||
5528 | rm -f conftest* | ||||
5529 | |||||
5530 | fi | ||||
5531 | |||||
5532 | if test $ac_cv_header_stdc = yes; then | ||||
5533 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
5534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5535 | /* end confdefs.h. */ | ||||
5536 | #include <stdlib.h> | ||||
5537 | |||||
5538 | _ACEOF | ||||
5539 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5540 | $EGREP "free" >/dev/null 2>&1; then : | ||||
5541 | |||||
5542 | else | ||||
5543 | ac_cv_header_stdc=no | ||||
5544 | fi | ||||
5545 | rm -f conftest* | ||||
5546 | |||||
5547 | fi | ||||
5548 | |||||
5549 | if test $ac_cv_header_stdc = yes; then | ||||
5550 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
5551 | if test "$cross_compiling" = yes; then : | ||||
5552 | : | ||||
5553 | else | ||||
5554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5555 | /* end confdefs.h. */ | ||||
5556 | #include <ctype.h> | ||||
5557 | #include <stdlib.h> | ||||
5558 | #if ((' ' & 0x0FF) == 0x020) | ||||
5559 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
5560 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
5561 | #else | ||||
5562 | # define ISLOWER(c) \ | ||||
5563 | (('a' <= (c) && (c) <= 'i') \ | ||||
5564 | || ('j' <= (c) && (c) <= 'r') \ | ||||
5565 | || ('s' <= (c) && (c) <= 'z')) | ||||
5566 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
5567 | #endif | ||||
5568 | |||||
5569 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
5570 | int | ||||
5571 | main () | ||||
5572 | { | ||||
5573 | int i; | ||||
5574 | for (i = 0; i < 256; i++) | ||||
5575 | if (XOR (islower (i), ISLOWER (i)) | ||||
5576 | || toupper (i) != TOUPPER (i)) | ||||
5577 | return 2; | ||||
5578 | return 0; | ||||
5579 | } | ||||
5580 | _ACEOF | ||||
5581 | if ac_fn_c_try_run "$LINENO"; then : | ||||
5582 | |||||
5583 | else | ||||
5584 | ac_cv_header_stdc=no | ||||
5585 | fi | ||||
5586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
5587 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
5588 | fi | ||||
5589 | |||||
5590 | fi | ||||
5591 | fi | ||||
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||
5593 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
5594 | if test $ac_cv_header_stdc = yes; then | ||||
5595 | |||||
5596 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||
5597 | |||||
5598 | fi | ||||
5599 | |||||
5600 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||
5601 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||
5602 | inttypes.h stdint.h unistd.h | ||||
5603 | do : | ||||
5604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
5605 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||
5606 | " | ||||
5607 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
5608 | cat >>confdefs.h <<_ACEOF | ||||
5609 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
5610 | _ACEOF | ||||
5611 | |||||
5612 | fi | ||||
5613 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5614 | done |
5615 | |||||
5616 | |||||
5617 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5618 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5619 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | ||||
5620 | MINIX=yes | ||||
5621 | else | ||||
5622 | MINIX= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5623 | fi |
5624 | |||||
5625 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5626 | if test "$MINIX" = yes; then |
5627 | |||||
5628 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5629 | |
5630 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5631 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5632 | |
5633 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5634 | $as_echo "#define _MINIX 1" >>confdefs.h |
5635 | |||||
5636 | fi | ||||
5637 | |||||
5638 | |||||
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||||
5640 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||||
5641 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | ||||
5642 | $as_echo_n "(cached) " >&6 | ||||
5643 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5645 | /* end confdefs.h. */ | ||||
5646 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5647 | # define __EXTENSIONS__ 1 |
5648 | $ac_includes_default | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5649 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5650 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5651 | { |
5652 | |||||
5653 | ; | ||||
5654 | return 0; | ||||
5655 | } | ||||
5656 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5657 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5658 | ac_cv_safe_to_define___extensions__=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5659 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5660 | ac_cv_safe_to_define___extensions__=no |
5661 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5663 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5665 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||||
5666 | test $ac_cv_safe_to_define___extensions__ = yes && | ||||
5667 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5668 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5669 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5670 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5671 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5672 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5673 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5674 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5675 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5676 | |
5677 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5678 | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | ||||
5680 | $as_echo_n "checking for the Android API level... " >&6; } | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5681 | cat >> conftest.c <<EOF |
5682 | #ifdef __ANDROID__ | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5683 | android_api = __ANDROID_API__ |
5684 | arm_arch = __ARM_ARCH | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5685 | #else |
5686 | #error not Android | ||||
5687 | #endif | ||||
5688 | EOF | ||||
5689 | |||||
5690 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5691 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
5692 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
5694 | $as_echo "$ANDROID_API_LEVEL" >&6; } | ||||
xdegaye | c06c22e | 2017-11-23 11:44:38 +0100 | [diff] [blame] | 5695 | if test -z "$ANDROID_API_LEVEL"; then |
5696 | echo 'Fatal: you must define __ANDROID_API__' | ||||
5697 | exit 1 | ||||
5698 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5699 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5700 | cat >>confdefs.h <<_ACEOF |
5701 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | ||||
5702 | _ACEOF | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5703 | |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5704 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 |
5706 | $as_echo_n "checking for the Android arm ABI... " >&6; } | ||||
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | ||||
5708 | $as_echo "$_arm_arch" >&6; } | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5709 | if test "$_arm_arch" = 7; then |
5710 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | ||||
5711 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | ||||
5712 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5713 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 |
5715 | $as_echo "not Android" >&6; } | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5716 | fi |
5717 | rm -f conftest.c conftest.out | ||||
5718 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5719 | # Check for unsupported systems |
5720 | case $ac_sys_system/$ac_sys_release in | ||||
5721 | atheos*|Linux*/1*) | ||||
5722 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | ||||
5723 | echo See README for details. | ||||
5724 | exit 1;; | ||||
5725 | esac | ||||
5726 | |||||
5727 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
5729 | $as_echo_n "checking for --with-suffix... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5730 | |
5731 | # Check whether --with-suffix was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5732 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5733 | withval=$with_suffix; |
5734 | case $withval in | ||||
5735 | no) EXEEXT=;; | ||||
5736 | yes) EXEEXT=.exe;; | ||||
5737 | *) EXEEXT=$withval;; | ||||
5738 | esac | ||||
5739 | fi | ||||
5740 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
5742 | $as_echo "$EXEEXT" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5743 | |
5744 | # Test whether we're running on a non-case-sensitive system, in which | ||||
5745 | # case we give a warning if no ext is given | ||||
5746 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
5748 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5749 | if test ! -d CaseSensitiveTestDir; then |
5750 | mkdir CaseSensitiveTestDir | ||||
5751 | fi | ||||
5752 | |||||
5753 | if test -d casesensitivetestdir | ||||
5754 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5756 | $as_echo "yes" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5757 | BUILDEXEEXT=.exe |
5758 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5760 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5761 | BUILDEXEEXT=$EXEEXT |
5762 | fi | ||||
5763 | rmdir CaseSensitiveTestDir | ||||
5764 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 | case $ac_sys_system in |
5766 | hp*|HP*) | ||||
5767 | case $CC in | ||||
5768 | cc|*/cc) CC="$CC -Ae";; | ||||
5769 | esac;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5770 | esac |
5771 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5772 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
5774 | $as_echo_n "checking LIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5775 | if test -z "$LIBRARY" |
5776 | then | ||||
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5777 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5778 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
5780 | $as_echo "$LIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5781 | |
5782 | # LDLIBRARY is the name of the library to link against (as opposed to the | ||||
5783 | # name of the library into which to insert object files). BLDLIBRARY is also | ||||
5784 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | ||||
5785 | # is blank as the main program is not linked directly against LDLIBRARY. | ||||
5786 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | ||||
5787 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | ||||
5788 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | ||||
5789 | # DLLLIBRARY is the shared (i.e., DLL) library. | ||||
5790 | # | ||||
5791 | # RUNSHARED is used to run shared python without installed libraries | ||||
5792 | # | ||||
5793 | # INSTSONAME is the name of the shared library that will be use to install | ||||
5794 | # on the system - some systems like version suffix, others don't | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5795 | # |
5796 | # LDVERSION is the shared library version number, normally the Python version | ||||
5797 | # with the ABI build flags appended. | ||||
5798 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5799 | |
5800 | |||||
5801 | |||||
5802 | |||||
5803 | |||||
5804 | |||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5805 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5806 | LDLIBRARY="$LIBRARY" |
5807 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5808 | INSTSONAME='$(LDLIBRARY)' | ||||
5809 | DLLLIBRARY='' | ||||
5810 | LDLIBRARYDIR='' | ||||
5811 | RUNSHARED='' | ||||
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5812 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5813 | |
5814 | # LINKCC is the command that links the python executable -- default is $(CC). | ||||
5815 | # If CXX is set, and if it is needed to link a main function that was | ||||
5816 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | ||||
5817 | # python might then depend on the C++ runtime | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5818 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
5820 | $as_echo_n "checking LINKCC... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5821 | if test -z "$LINKCC" |
5822 | then | ||||
5823 | LINKCC='$(PURIFY) $(MAINCC)' | ||||
5824 | case $ac_sys_system in | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5825 | QNX*) |
5826 | # qcc must be used because the other compilers do not | ||||
5827 | # support -N. | ||||
5828 | LINKCC=qcc;; | ||||
5829 | esac | ||||
5830 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
5832 | $as_echo "$LINKCC" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5833 | |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5834 | # EXPORTSYMS holds the list of exported symbols for AIX. |
5835 | # EXPORTSFROM holds the module name exporting symbols on AIX. | ||||
5836 | EXPORTSYMS= | ||||
5837 | EXPORTSFROM= | ||||
5838 | |||||
5839 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 |
5841 | $as_echo_n "checking EXPORTSYMS... " >&6; } | ||||
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5842 | case $ac_sys_system in |
5843 | AIX*) | ||||
5844 | EXPORTSYMS="Modules/python.exp" | ||||
Kevin Adler | c79667f | 2020-11-16 09:16:10 -0600 | [diff] [blame] | 5845 | EXPORTSFROM=. # the main executable |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5846 | ;; |
5847 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 |
5849 | $as_echo "$EXPORTSYMS" >&6; } | ||||
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5850 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5851 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
5852 | # make sure we default having it set to "no": this is used by | ||||
5853 | # distutils.unixccompiler to know if it should add --enable-new-dtags | ||||
5854 | # to linker command lines, and failing to detect GNU ld simply results | ||||
5855 | # in the same bahaviour as before. | ||||
5856 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5858 | $as_echo_n "checking for GNU ld... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5859 | ac_prog=ld |
5860 | if test "$GCC" = yes; then | ||||
5861 | ac_prog=`$CC -print-prog-name=ld` | ||||
5862 | fi | ||||
5863 | case `"$ac_prog" -V 2>&1 < /dev/null` in | ||||
5864 | *GNU*) | ||||
5865 | GNULD=yes;; | ||||
5866 | *) | ||||
5867 | GNULD=no;; | ||||
5868 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
5870 | $as_echo "$GNULD" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5871 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
5873 | $as_echo_n "checking for --enable-shared... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5874 | # Check whether --enable-shared was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5875 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5876 | enableval=$enable_shared; |
5877 | fi | ||||
5878 | |||||
5879 | |||||
5880 | if test -z "$enable_shared" | ||||
5881 | then | ||||
5882 | case $ac_sys_system in | ||||
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5883 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5884 | enable_shared="yes";; |
5885 | *) | ||||
5886 | enable_shared="no";; | ||||
5887 | esac | ||||
5888 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
5890 | $as_echo "$enable_shared" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5891 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
5893 | $as_echo_n "checking for --enable-profiling... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5894 | # Check whether --enable-profiling was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5895 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5896 | enableval=$enable_profiling; |
5897 | fi | ||||
5898 | |||||
5899 | if test "x$enable_profiling" = xyes; then | ||||
5900 | ac_save_cc="$CC" | ||||
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5901 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5903 | /* end confdefs.h. */ |
5904 | int main() { return 0; } | ||||
5905 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5906 | if ac_fn_c_try_link "$LINENO"; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5907 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5908 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5909 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5911 | rm -f core conftest.err conftest.$ac_objext \ |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5912 | conftest$ac_exeext conftest.$ac_ext |
5913 | CC="$ac_save_cc" | ||||
5914 | else | ||||
5915 | enable_profiling=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5916 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
5918 | $as_echo "$enable_profiling" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5920 | if test "x$enable_profiling" = xyes; then |
5921 | BASECFLAGS="-pg $BASECFLAGS" | ||||
5922 | LDFLAGS="-pg $LDFLAGS" | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5923 | fi |
5924 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
5926 | $as_echo_n "checking LDLIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5927 | |
5928 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | ||||
5929 | # library that we build, but we do not want to link against it (we | ||||
5930 | # will find it with a -framework option). For this reason there is an | ||||
5931 | # extra variable BLDLIBRARY against which Python and the extension | ||||
5932 | # modules are linked, BLDLIBRARY. This is normally the same as | ||||
5933 | # LDLIBRARY, but empty for MacOSX framework builds. | ||||
5934 | if test "$enable_framework" | ||||
5935 | then | ||||
5936 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5937 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | BLDLIBRARY='' |
5939 | else | ||||
5940 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5941 | fi | ||||
5942 | |||||
5943 | # Other platforms follow | ||||
5944 | if test $enable_shared = "yes"; then | ||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5945 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5946 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 5947 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5948 | |
5949 | case $ac_sys_system in | ||||
5950 | CYGWIN*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5951 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
5952 | DLLLIBRARY='libpython$(LDVERSION).dll' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5953 | ;; |
5954 | SunOS*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5955 | LDLIBRARY='libpython$(LDVERSION).so' |
5956 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5957 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5958 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5959 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5960 | then |
5961 | PY3LIBRARY=libpython3.so | ||||
5962 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5963 | ;; |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 5964 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5965 | LDLIBRARY='libpython$(LDVERSION).so' |
5966 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5967 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5968 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5969 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5970 | then |
5971 | PY3LIBRARY=libpython3.so | ||||
5972 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5973 | ;; |
5974 | hp*|HP*) | ||||
5975 | case `uname -m` in | ||||
5976 | ia64) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5977 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5978 | ;; |
5979 | *) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5980 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5981 | ;; |
5982 | esac | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5983 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5984 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5985 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5986 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5987 | LDLIBRARY='libpython$(LDVERSION).dylib' |
5988 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5989 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5990 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5991 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5992 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5993 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5994 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5995 | |
5996 | esac | ||||
5997 | else # shared is disabled | ||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5998 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5999 | case $ac_sys_system in |
6000 | CYGWIN*) | ||||
6001 | BLDLIBRARY='$(LIBRARY)' | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6002 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6003 | ;; |
6004 | esac | ||||
6005 | fi | ||||
6006 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6007 | if test "$cross_compiling" = yes; then |
6008 | RUNSHARED= | ||||
6009 | fi | ||||
6010 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
6012 | $as_echo "$LDLIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6013 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6014 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6015 | if test -n "$ac_tool_prefix"; then |
6016 | for ac_prog in ar aal | ||||
6017 | do | ||||
6018 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6019 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6021 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6022 | if ${ac_cv_prog_AR+:} false; then : | ||||
6023 | $as_echo_n "(cached) " >&6 | ||||
6024 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 | if test -n "$AR"; then |
6026 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||||
6027 | else | ||||
6028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6029 | for as_dir in $PATH | ||||
6030 | do | ||||
6031 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6032 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6033 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6035 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6036 | $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 +0000 | [diff] [blame] | 6037 | break 2 |
6038 | fi | ||||
6039 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6040 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6041 | IFS=$as_save_IFS |
6042 | |||||
6043 | fi | ||||
6044 | fi | ||||
6045 | AR=$ac_cv_prog_AR | ||||
6046 | if test -n "$AR"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6048 | $as_echo "$AR" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6049 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6051 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6052 | fi |
6053 | |||||
6054 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6055 | test -n "$AR" && break |
6056 | done | ||||
6057 | fi | ||||
6058 | if test -z "$AR"; then | ||||
6059 | ac_ct_AR=$AR | ||||
6060 | for ac_prog in ar aal | ||||
6061 | do | ||||
6062 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6063 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6065 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6066 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||||
6067 | $as_echo_n "(cached) " >&6 | ||||
6068 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6069 | if test -n "$ac_ct_AR"; then |
6070 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||||
6071 | else | ||||
6072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6073 | for as_dir in $PATH | ||||
6074 | do | ||||
6075 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6076 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6077 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6079 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6081 | break 2 |
6082 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6083 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6084 | done |
6085 | IFS=$as_save_IFS | ||||
6086 | |||||
6087 | fi | ||||
6088 | fi | ||||
6089 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||||
6090 | if test -n "$ac_ct_AR"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6092 | $as_echo "$ac_ct_AR" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6093 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6095 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6096 | fi |
6097 | |||||
6098 | |||||
6099 | test -n "$ac_ct_AR" && break | ||||
6100 | done | ||||
6101 | |||||
6102 | if test "x$ac_ct_AR" = x; then | ||||
6103 | AR="ar" | ||||
6104 | else | ||||
6105 | case $cross_compiling:$ac_tool_warned in | ||||
6106 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6108 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6109 | ac_tool_warned=yes ;; |
6110 | esac | ||||
6111 | AR=$ac_ct_AR | ||||
6112 | fi | ||||
6113 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6114 | |
6115 | |||||
6116 | # tweak ARFLAGS only if the user didn't set it on the command line | ||||
6117 | |||||
6118 | if test -z "$ARFLAGS" | ||||
6119 | then | ||||
Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6120 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6121 | fi |
6122 | |||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6123 | if test -n "$ac_tool_prefix"; then |
6124 | for ac_prog in readelf | ||||
6125 | do | ||||
6126 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6127 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6129 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6130 | if ${ac_cv_prog_READELF+:} false; then : | ||||
6131 | $as_echo_n "(cached) " >&6 | ||||
6132 | else | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6133 | if test -n "$READELF"; then |
6134 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||||
6135 | else | ||||
6136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6137 | for as_dir in $PATH | ||||
6138 | do | ||||
6139 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6140 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6143 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6145 | break 2 |
6146 | fi | ||||
6147 | done | ||||
6148 | done | ||||
6149 | IFS=$as_save_IFS | ||||
6150 | |||||
6151 | fi | ||||
6152 | fi | ||||
6153 | READELF=$ac_cv_prog_READELF | ||||
6154 | if test -n "$READELF"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
6156 | $as_echo "$READELF" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6157 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6159 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6160 | fi |
6161 | |||||
6162 | |||||
6163 | test -n "$READELF" && break | ||||
6164 | done | ||||
6165 | fi | ||||
6166 | if test -z "$READELF"; then | ||||
6167 | ac_ct_READELF=$READELF | ||||
6168 | for ac_prog in readelf | ||||
6169 | do | ||||
6170 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6171 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6173 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6174 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | ||||
6175 | $as_echo_n "(cached) " >&6 | ||||
6176 | else | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6177 | if test -n "$ac_ct_READELF"; then |
6178 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||||
6179 | else | ||||
6180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6181 | for as_dir in $PATH | ||||
6182 | do | ||||
6183 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6184 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6187 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6189 | break 2 |
6190 | fi | ||||
6191 | done | ||||
6192 | done | ||||
6193 | IFS=$as_save_IFS | ||||
6194 | |||||
6195 | fi | ||||
6196 | fi | ||||
6197 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||||
6198 | if test -n "$ac_ct_READELF"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
6200 | $as_echo "$ac_ct_READELF" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6201 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6203 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6204 | fi |
6205 | |||||
6206 | |||||
6207 | test -n "$ac_ct_READELF" && break | ||||
6208 | done | ||||
6209 | |||||
6210 | if test "x$ac_ct_READELF" = x; then | ||||
6211 | READELF=":" | ||||
6212 | else | ||||
6213 | case $cross_compiling:$ac_tool_warned in | ||||
6214 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6217 | ac_tool_warned=yes ;; |
6218 | esac | ||||
6219 | READELF=$ac_ct_READELF | ||||
6220 | fi | ||||
6221 | fi | ||||
6222 | |||||
6223 | if test "$cross_compiling" = yes; then | ||||
6224 | case "$READELF" in | ||||
6225 | readelf|:) | ||||
6226 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||||
6227 | ;; | ||||
6228 | esac | ||||
6229 | fi | ||||
6230 | |||||
6231 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6232 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6233 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6234 | hp*|HP*) |
6235 | # install -d does not work on HP-UX | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6236 | if test -z "$INSTALL" |
6237 | then | ||||
6238 | INSTALL="${srcdir}/install-sh -c" | ||||
6239 | fi | ||||
6240 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6241 | # Find a good install program. We prefer a C program (faster), |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6242 | # so one script is as good as another. But avoid the broken or |
6243 | # incompatible versions: | ||||
6244 | # SysV /etc/install, /usr/sbin/install | ||||
6245 | # SunOS /usr/etc/install | ||||
6246 | # IRIX /sbin/install | ||||
6247 | # AIX /bin/install | ||||
6248 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||||
6249 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||||
6250 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||||
6251 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||||
6252 | # OS/2's system install, which has a completely different semantic | ||||
6253 | # ./install, which can be erroneously created by make from ./install.sh. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6254 | # Reject install programs that cannot install multiple files. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
6256 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6257 | if test -z "$INSTALL"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6258 | if ${ac_cv_path_install+:} false; then : |
6259 | $as_echo_n "(cached) " >&6 | ||||
6260 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6262 | for as_dir in $PATH | ||||
6263 | do | ||||
6264 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6265 | test -z "$as_dir" && as_dir=. |
6266 | # Account for people who put trailing slashes in PATH elements. | ||||
6267 | case $as_dir/ in #(( | ||||
6268 | ./ | .// | /[cC]/* | \ | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6269 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6270 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6271 | /usr/ucb/* ) ;; |
6272 | *) | ||||
6273 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||||
6274 | # Don't use installbsd from OSF since it installs stuff as root | ||||
6275 | # by default. | ||||
6276 | for ac_prog in ginstall scoinst install; do | ||||
6277 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6278 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6279 | if test $ac_prog = install && |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6280 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6281 | # AIX install. It has an incompatible calling convention. |
6282 | : | ||||
6283 | elif test $ac_prog = install && | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6284 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6285 | # program-specific install script used by HP pwplus--don't use. |
6286 | : | ||||
6287 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6288 | rm -rf conftest.one conftest.two conftest.dir |
6289 | echo one > conftest.one | ||||
6290 | echo two > conftest.two | ||||
6291 | mkdir conftest.dir | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6292 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6293 | test -s conftest.one && test -s conftest.two && |
6294 | test -s conftest.dir/conftest.one && | ||||
6295 | test -s conftest.dir/conftest.two | ||||
6296 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6297 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6298 | break 3 |
6299 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6300 | fi |
6301 | fi | ||||
6302 | done | ||||
6303 | done | ||||
6304 | ;; | ||||
6305 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6306 | |
6307 | done | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6308 | IFS=$as_save_IFS |
6309 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6310 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6311 | |
6312 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6313 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6314 | INSTALL=$ac_cv_path_install |
6315 | else | ||||
6316 | # As a last resort, use the slow shell script. Don't cache a | ||||
6317 | # value for INSTALL within a source directory, because that will | ||||
6318 | # break other packages using the cache if that directory is | ||||
6319 | # removed, or if the value is a relative name. | ||||
6320 | INSTALL=$ac_install_sh | ||||
6321 | fi | ||||
6322 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6324 | $as_echo "$INSTALL" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6325 | |
6326 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||||
6327 | # It thinks the first close brace ends the variable substitution. | ||||
6328 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||||
6329 | |||||
6330 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||||
6331 | |||||
6332 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||||
6333 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6335 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6336 | if test -z "$MKDIR_P"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6337 | if ${ac_cv_path_mkdir+:} false; then : |
6338 | $as_echo_n "(cached) " >&6 | ||||
6339 | else | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6341 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||||
6342 | do | ||||
6343 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6344 | test -z "$as_dir" && as_dir=. |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6345 | for ac_prog in mkdir gmkdir; do |
6346 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6347 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
6348 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||||
6349 | 'mkdir (GNU coreutils) '* | \ | ||||
6350 | 'mkdir (coreutils) '* | \ | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6351 | 'mkdir (fileutils) '4.1*) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6352 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6353 | break 3;; |
6354 | esac | ||||
6355 | done | ||||
6356 | done | ||||
6357 | done | ||||
6358 | IFS=$as_save_IFS | ||||
6359 | |||||
6360 | fi | ||||
6361 | |||||
6362 | test -d ./--version && rmdir ./--version | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6363 | if test "${ac_cv_path_mkdir+set}" = set; then |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6364 | MKDIR_P="$ac_cv_path_mkdir -p" |
6365 | else | ||||
6366 | # As a last resort, use the slow shell script. Don't cache a | ||||
6367 | # value for MKDIR_P within a source directory, because that will | ||||
6368 | # break other packages using the cache if that directory is | ||||
6369 | # removed, or if the value is a relative name. | ||||
6370 | MKDIR_P="$ac_install_sh -d" | ||||
6371 | fi | ||||
6372 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
6374 | $as_echo "$MKDIR_P" >&6; } | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6375 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6376 | |
6377 | # Not every filesystem supports hard links | ||||
6378 | |||||
6379 | if test -z "$LN" ; then | ||||
6380 | case $ac_sys_system in | ||||
6381 | CYGWIN*) LN="ln -s";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6382 | *) LN=ln;; |
6383 | esac | ||||
6384 | fi | ||||
6385 | |||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6386 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6387 | |
6388 | ABIFLAGS="" | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6389 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6390 | # Check for --with-pydebug |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
6392 | $as_echo_n "checking for --with-pydebug... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6393 | |
6394 | # Check whether --with-pydebug was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6395 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6396 | withval=$with_pydebug; |
6397 | if test "$withval" != no | ||||
6398 | then | ||||
6399 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6400 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6401 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6403 | $as_echo "yes" >&6; }; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6404 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6405 | ABIFLAGS="${ABIFLAGS}d" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6406 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6407 | $as_echo "no" >&6; }; Py_DEBUG='false' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6408 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6409 | else |
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6411 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6412 | fi |
6413 | |||||
6414 | |||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6415 | # Check for --with-trace-refs |
6416 | # --with-trace-refs | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 |
6418 | $as_echo_n "checking for --with-trace-refs... " >&6; } | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6419 | |
6420 | # Check whether --with-trace-refs was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6421 | if test "${with_trace_refs+set}" = set; then : |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6422 | withval=$with_trace_refs; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6423 | else |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6424 | with_trace_refs=no |
6425 | fi | ||||
6426 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 |
6428 | $as_echo "$with_trace_refs" >&6; } | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6429 | |
6430 | if test "$with_trace_refs" = "yes" | ||||
6431 | then | ||||
6432 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6433 | $as_echo "#define Py_TRACE_REFS 1" >>confdefs.h |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6434 | |
6435 | fi | ||||
6436 | |||||
6437 | # Check for --with-assertions. | ||||
6438 | # This allows enabling assertions without Py_DEBUG. | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6439 | assertions='false' |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 |
6441 | $as_echo_n "checking for --with-assertions... " >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6442 | |
6443 | # Check whether --with-assertions was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6444 | if test "${with_assertions+set}" = set; then : |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6445 | withval=$with_assertions; |
6446 | if test "$withval" != no | ||||
6447 | then | ||||
6448 | assertions='true' | ||||
6449 | fi | ||||
6450 | fi | ||||
6451 | |||||
6452 | if test "$assertions" = 'true'; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6454 | $as_echo "yes" >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6455 | elif test "$Py_DEBUG" = 'true'; then |
6456 | assertions='true' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 |
6458 | $as_echo "implied by --with-pydebug" >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6459 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6461 | $as_echo "no" >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6462 | fi |
6463 | |||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6464 | # Enable optimization flags |
6465 | |||||
6466 | |||||
6467 | Py_OPT='false' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
6469 | $as_echo_n "checking for --enable-optimizations... " >&6; } | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6470 | # Check whether --enable-optimizations was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6471 | if test "${enable_optimizations+set}" = set; then : |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6472 | enableval=$enable_optimizations; |
Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6473 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6474 | then |
6475 | Py_OPT='true' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6477 | $as_echo "yes" >&6; }; | ||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6478 | else |
6479 | Py_OPT='false' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6481 | $as_echo "no" >&6; }; | ||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6482 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6483 | else |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6485 | $as_echo "no" >&6; } | ||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6486 | fi |
6487 | |||||
6488 | if test "$Py_OPT" = 'true' ; then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6489 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
6490 | # compile working code using it and both test_distutils and test_gdb are | ||||
Brett Cannon | 1d8f755 | 2016-11-03 16:20:00 -0700 | [diff] [blame] | 6491 | # 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 +0000 | [diff] [blame] | 6492 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6493 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6494 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6495 | DEF_MAKE_RULE="build_all" |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6496 | case $CC in |
6497 | *gcc*) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5 |
6499 | $as_echo_n "checking whether C compiler accepts -fno-semantic-interposition... " >&6; } | ||||
6500 | if ${ax_cv_check_cflags___fno_semantic_interposition+:} false; then : | ||||
6501 | $as_echo_n "(cached) " >&6 | ||||
6502 | else | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6503 | |
6504 | ax_check_save_flags=$CFLAGS | ||||
6505 | CFLAGS="$CFLAGS -fno-semantic-interposition" | ||||
6506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
6507 | /* end confdefs.h. */ | ||||
6508 | |||||
6509 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6510 | main () |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6511 | { |
6512 | |||||
6513 | ; | ||||
6514 | return 0; | ||||
6515 | } | ||||
6516 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6517 | if ac_fn_c_try_compile "$LINENO"; then : |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6518 | ax_cv_check_cflags___fno_semantic_interposition=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6519 | else |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6520 | ax_cv_check_cflags___fno_semantic_interposition=no |
6521 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6523 | CFLAGS=$ax_check_save_flags |
6524 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5 |
6526 | $as_echo "$ax_cv_check_cflags___fno_semantic_interposition" >&6; } | ||||
6527 | if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes; then : | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6528 | |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6529 | CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition" |
6530 | LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition" | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6531 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6532 | else |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6533 | : |
6534 | fi | ||||
6535 | |||||
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6536 | ;; |
6537 | esac | ||||
6538 | |||||
6539 | |||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6540 | else |
6541 | DEF_MAKE_ALL_RULE="build_all" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6542 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6543 | DEF_MAKE_RULE="all" |
6544 | fi | ||||
6545 | |||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6546 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 |
6548 | $as_echo_n "checking PROFILE_TASK... " >&6; } | ||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6549 | if test -z "$PROFILE_TASK" |
6550 | then | ||||
Victor Stinner | 6790005 | 2021-01-27 11:16:15 +0100 | [diff] [blame] | 6551 | PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)' |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6552 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 |
6554 | $as_echo "$PROFILE_TASK" >&6; } | ||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6555 | |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6556 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
6557 | # normal names in the default $PATH (ie: Ubuntu). They exist under the | ||||
6558 | # non-suffixed name in their versioned llvm directory. | ||||
6559 | |||||
6560 | llvm_bin_dir='' | ||||
6561 | llvm_path="${PATH}" | ||||
6562 | if test "${CC}" = "clang" | ||||
6563 | then | ||||
6564 | clang_bin=`which clang` | ||||
6565 | # Some systems install clang elsewhere as a symlink to the real path | ||||
6566 | # which is where the related llvm tools are located. | ||||
6567 | if test -L "${clang_bin}" | ||||
6568 | then | ||||
6569 | clang_dir=`dirname "${clang_bin}"` | ||||
6570 | clang_bin=`readlink "${clang_bin}"` | ||||
6571 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | ||||
6572 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | ||||
6573 | fi | ||||
6574 | fi | ||||
6575 | |||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6576 | # Enable LTO flags |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
6578 | $as_echo_n "checking for --with-lto... " >&6; } | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6579 | |
6580 | # Check whether --with-lto was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6581 | if test "${with_lto+set}" = set; then : |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6582 | withval=$with_lto; |
6583 | if test "$withval" != no | ||||
6584 | then | ||||
6585 | Py_LTO='true' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6587 | $as_echo "yes" >&6; }; | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6588 | else |
6589 | Py_LTO='false' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6591 | $as_echo "no" >&6; }; | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6592 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6593 | else |
6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6595 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6596 | fi |
6597 | |||||
6598 | if test "$Py_LTO" = 'true' ; then | ||||
6599 | case $CC in | ||||
6600 | *clang*) | ||||
Victor Stinner | 06fe77a | 2018-06-19 18:24:58 +0200 | [diff] [blame] | 6601 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6602 | if test -n "$ac_tool_prefix"; then |
6603 | # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. | ||||
6604 | set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6606 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6607 | if ${ac_cv_path_LLVM_AR+:} false; then : | ||||
6608 | $as_echo_n "(cached) " >&6 | ||||
6609 | else | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6610 | case $LLVM_AR in |
6611 | [\\/]* | ?:[\\/]*) | ||||
6612 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. | ||||
6613 | ;; | ||||
6614 | *) | ||||
6615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6616 | for as_dir in ${llvm_path} | ||||
6617 | do | ||||
6618 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6619 | test -z "$as_dir" && as_dir=. |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6620 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6622 | ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6624 | break 2 |
6625 | fi | ||||
6626 | done | ||||
6627 | done | ||||
6628 | IFS=$as_save_IFS | ||||
6629 | |||||
6630 | ;; | ||||
6631 | esac | ||||
6632 | fi | ||||
6633 | LLVM_AR=$ac_cv_path_LLVM_AR | ||||
6634 | if test -n "$LLVM_AR"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 |
6636 | $as_echo "$LLVM_AR" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6637 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6639 | $as_echo "no" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6640 | fi |
6641 | |||||
6642 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6643 | fi |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6644 | if test -z "$ac_cv_path_LLVM_AR"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6645 | ac_pt_LLVM_AR=$LLVM_AR |
6646 | # Extract the first word of "llvm-ar", so it can be a program name with args. | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6647 | set dummy llvm-ar; ac_word=$2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6649 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6650 | if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : | ||||
6651 | $as_echo_n "(cached) " >&6 | ||||
6652 | else | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6653 | case $ac_pt_LLVM_AR in |
6654 | [\\/]* | ?:[\\/]*) | ||||
6655 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. | ||||
6656 | ;; | ||||
6657 | *) | ||||
6658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6659 | for as_dir in ${llvm_path} | ||||
6660 | do | ||||
6661 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6662 | test -z "$as_dir" && as_dir=. |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6663 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6665 | ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6667 | break 2 |
6668 | fi | ||||
6669 | done | ||||
6670 | done | ||||
6671 | IFS=$as_save_IFS | ||||
6672 | |||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6673 | ;; |
6674 | esac | ||||
6675 | fi | ||||
6676 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR | ||||
6677 | if test -n "$ac_pt_LLVM_AR"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 |
6679 | $as_echo "$ac_pt_LLVM_AR" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6680 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6682 | $as_echo "no" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6683 | fi |
6684 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6685 | if test "x$ac_pt_LLVM_AR" = x; then |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6686 | LLVM_AR="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6687 | else |
6688 | case $cross_compiling:$ac_tool_warned in | ||||
6689 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6692 | ac_tool_warned=yes ;; |
6693 | esac | ||||
6694 | LLVM_AR=$ac_pt_LLVM_AR | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6695 | fi |
6696 | else | ||||
6697 | LLVM_AR="$ac_cv_path_LLVM_AR" | ||||
6698 | fi | ||||
6699 | |||||
6700 | |||||
6701 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" | ||||
6702 | then | ||||
6703 | LLVM_AR_FOUND="found" | ||||
6704 | else | ||||
6705 | LLVM_AR_FOUND="not-found" | ||||
6706 | fi | ||||
6707 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" | ||||
6708 | then | ||||
6709 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` | ||||
6710 | if test -n "${found_llvm_ar}" | ||||
6711 | then | ||||
6712 | LLVM_AR='/usr/bin/xcrun llvm-ar' | ||||
6713 | LLVM_AR_FOUND=found | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 |
6715 | $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6716 | fi |
6717 | fi | ||||
6718 | if test $LLVM_AR_FOUND = not-found | ||||
6719 | then | ||||
6720 | LLVM_PROFR_ERR=yes | ||||
6721 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 | ||||
6722 | else | ||||
6723 | LLVM_AR_ERR=no | ||||
6724 | fi | ||||
6725 | AR="${LLVM_AR}" | ||||
6726 | case $ac_sys_system in | ||||
6727 | Darwin*) | ||||
6728 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6729 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6730 | ;; | ||||
6731 | *) | ||||
6732 | LTOFLAGS="-flto" | ||||
6733 | ;; | ||||
6734 | esac | ||||
6735 | ;; | ||||
6736 | *gcc*) | ||||
6737 | case $ac_sys_system in | ||||
6738 | Darwin*) | ||||
6739 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6740 | ;; | ||||
6741 | *) | ||||
6742 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | ||||
6743 | ;; | ||||
6744 | esac | ||||
6745 | ;; | ||||
6746 | esac | ||||
6747 | |||||
6748 | if test "$ac_cv_prog_cc_g" = "yes" | ||||
6749 | then | ||||
6750 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO | ||||
6751 | # to get debug symbols. | ||||
6752 | LTOFLAGS="$LTOFLAGS -g" | ||||
6753 | fi | ||||
6754 | |||||
stratakis | f92c7aa | 2018-12-04 15:54:01 +0100 | [diff] [blame] | 6755 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 6756 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6757 | fi |
6758 | |||||
6759 | # Enable PGO flags. | ||||
6760 | |||||
6761 | |||||
6762 | |||||
6763 | |||||
6764 | |||||
6765 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6766 | if test -n "$ac_tool_prefix"; then |
6767 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. | ||||
6768 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6770 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6771 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | ||||
6772 | $as_echo_n "(cached) " >&6 | ||||
6773 | else | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6774 | case $LLVM_PROFDATA in |
6775 | [\\/]* | ?:[\\/]*) | ||||
6776 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6777 | ;; | ||||
6778 | *) | ||||
6779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6780 | for as_dir in ${llvm_path} | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6781 | do |
6782 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6783 | test -z "$as_dir" && as_dir=. |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6786 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6788 | break 2 |
6789 | fi | ||||
6790 | done | ||||
6791 | done | ||||
6792 | IFS=$as_save_IFS | ||||
6793 | |||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6794 | ;; |
6795 | esac | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6796 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6797 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
6798 | if test -n "$LLVM_PROFDATA"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 |
6800 | $as_echo "$LLVM_PROFDATA" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6801 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6803 | $as_echo "no" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6804 | fi |
6805 | |||||
6806 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6807 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6808 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6809 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
6810 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6811 | set dummy llvm-profdata; ac_word=$2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6813 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6814 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | ||||
6815 | $as_echo_n "(cached) " >&6 | ||||
6816 | else | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6817 | case $ac_pt_LLVM_PROFDATA in |
6818 | [\\/]* | ?:[\\/]*) | ||||
6819 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6820 | ;; | ||||
6821 | *) | ||||
6822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6823 | for as_dir in ${llvm_path} | ||||
6824 | do | ||||
6825 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6826 | test -z "$as_dir" && as_dir=. |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6827 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6829 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6831 | break 2 |
6832 | fi | ||||
6833 | done | ||||
6834 | done | ||||
6835 | IFS=$as_save_IFS | ||||
6836 | |||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6837 | ;; |
6838 | esac | ||||
6839 | fi | ||||
6840 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | ||||
6841 | if test -n "$ac_pt_LLVM_PROFDATA"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 |
6843 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6844 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6846 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6847 | fi |
6848 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6849 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6850 | LLVM_PROFDATA="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6851 | else |
6852 | case $cross_compiling:$ac_tool_warned in | ||||
6853 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6856 | ac_tool_warned=yes ;; |
6857 | esac | ||||
6858 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6859 | fi |
6860 | else | ||||
6861 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | ||||
6862 | fi | ||||
6863 | |||||
6864 | |||||
6865 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | ||||
6866 | then | ||||
6867 | LLVM_PROF_FOUND="found" | ||||
6868 | else | ||||
6869 | LLVM_PROF_FOUND="not-found" | ||||
6870 | fi | ||||
6871 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | ||||
6872 | then | ||||
6873 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | ||||
6874 | if test -n "${found_llvm_profdata}" | ||||
6875 | then | ||||
6876 | # llvm-profdata isn't directly in $PATH in some cases. | ||||
6877 | # https://apple.stackexchange.com/questions/197053/ | ||||
6878 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | ||||
6879 | LLVM_PROF_FOUND=found | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 |
6881 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6882 | fi |
6883 | fi | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6884 | LLVM_PROF_ERR=no |
6885 | case $CC in | ||||
6886 | *clang*) | ||||
6887 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6888 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6889 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6890 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6891 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
6892 | if test $LLVM_PROF_FOUND = not-found | ||||
6893 | then | ||||
6894 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6895 | if test "${REQUIRE_PGO}" = "yes" |
6896 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6897 | 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 16:10:00 -0700 | [diff] [blame] | 6898 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6899 | fi |
6900 | ;; | ||||
6901 | *gcc*) | ||||
6902 | case $ac_sys_system in | ||||
6903 | Darwin*) | ||||
6904 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6905 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6906 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6907 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6908 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6909 | then |
6910 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6911 | if test "${REQUIRE_PGO}" = "yes" |
6912 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6913 | 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 16:10:00 -0700 | [diff] [blame] | 6914 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6915 | fi |
6916 | ;; | ||||
6917 | *) | ||||
6918 | PGO_PROF_GEN_FLAG="-fprofile-generate" | ||||
6919 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||||
6920 | LLVM_PROF_MERGER="true" | ||||
6921 | LLVM_PROF_FILE="" | ||||
6922 | ;; | ||||
6923 | esac | ||||
6924 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6925 | *icc*) |
6926 | PGO_PROF_GEN_FLAG="-prof-gen" | ||||
6927 | PGO_PROF_USE_FLAG="-prof-use" | ||||
6928 | LLVM_PROF_MERGER="true" | ||||
6929 | LLVM_PROF_FILE="" | ||||
6930 | ;; | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6931 | esac |
6932 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6933 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
6934 | # merged with this chunk of code? | ||||
6935 | |||||
6936 | # Optimizer/debugger flags | ||||
6937 | # ------------------------ | ||||
6938 | # (The following bit of code is complicated enough - please keep things | ||||
6939 | # indented properly. Just pretend you're editing Python code. ;-) | ||||
6940 | |||||
6941 | # There are two parallel sets of case statements below, one that checks to | ||||
6942 | # see if OPT was set and one that does BASECFLAGS setting based upon | ||||
6943 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | ||||
6944 | # user set OPT. | ||||
6945 | |||||
Victor Stinner | 23a683a | 2019-04-12 21:27:37 +0200 | [diff] [blame] | 6946 | case $CC in |
6947 | *clang*) | ||||
6948 | cc_is_clang=1 | ||||
6949 | ;; | ||||
6950 | *) | ||||
6951 | if $CC --version 2>&1 | grep -q clang | ||||
6952 | then | ||||
6953 | cc_is_clang=1 | ||||
6954 | else | ||||
6955 | cc_is_clang= | ||||
6956 | fi | ||||
6957 | esac | ||||
6958 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6959 | # tweak OPT based on compiler and platform, only if the user didn't set |
6960 | # it on the command line | ||||
6961 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6962 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6963 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6964 | then |
6965 | case $GCC in | ||||
6966 | yes) | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6967 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
6968 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | ||||
6969 | WRAP="-fwrapv" | ||||
6970 | fi | ||||
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6971 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6972 | if test -n "${cc_is_clang}" |
6973 | then | ||||
6974 | # Clang also needs -fwrapv | ||||
6975 | WRAP="-fwrapv" | ||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6976 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
6977 | # see Makefile.pre.in for more information | ||||
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6978 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6979 | fi |
6980 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6981 | case $ac_cv_prog_cc_g in |
6982 | yes) | ||||
6983 | if test "$Py_DEBUG" = 'true' ; then | ||||
6984 | # Optimization messes up debuggers, so turn it off for | ||||
6985 | # debug builds. | ||||
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6986 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6987 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6988 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6989 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6990 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6991 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6992 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6993 | fi |
6994 | ;; | ||||
6995 | *) | ||||
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6996 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6997 | ;; |
6998 | esac | ||||
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6999 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7000 | case $ac_sys_system in |
7001 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | ||||
7002 | ;; | ||||
7003 | esac | ||||
7004 | ;; | ||||
7005 | |||||
7006 | *) | ||||
7007 | OPT="-O" | ||||
7008 | ;; | ||||
7009 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7010 | fi |
7011 | |||||
7012 | |||||
7013 | |||||
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 7014 | |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 7015 | |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7016 | # The -arch flags for universal builds on macOS |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7017 | UNIVERSAL_ARCH_FLAGS= |
7018 | |||||
7019 | |||||
7020 | # tweak BASECFLAGS based on compiler and platform | ||||
7021 | case $GCC in | ||||
7022 | yes) | ||||
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 7023 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 7024 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
7026 | $as_echo_n "checking for -Wextra... " >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7027 | ac_save_cc="$CC" |
7028 | CC="$CC -Wextra -Werror" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7029 | if ${ac_cv_extra_warnings+:} false; then : |
7030 | $as_echo_n "(cached) " >&6 | ||||
7031 | else | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7033 | /* end confdefs.h. */ | ||||
7034 | |||||
7035 | |||||
7036 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7037 | main () |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7038 | { |
7039 | |||||
7040 | ; | ||||
7041 | return 0; | ||||
7042 | } | ||||
7043 | |||||
7044 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7045 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7046 | |
7047 | ac_cv_extra_warnings=yes | ||||
7048 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7049 | else |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7050 | |
7051 | ac_cv_extra_warnings=no | ||||
7052 | |||||
7053 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7055 | fi |
7056 | |||||
7057 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 |
7059 | $as_echo "$ac_cv_extra_warnings" >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7060 | |
7061 | if test $ac_cv_extra_warnings = yes | ||||
7062 | then | ||||
7063 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | ||||
7064 | fi | ||||
7065 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7066 | # Python doesn't violate C99 aliasing rules, but older versions of |
7067 | # GCC produce warnings for legal Python code. Enable | ||||
7068 | # -fno-strict-aliasing on versions of GCC that support but produce | ||||
7069 | # warnings. See Issue3326 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
7071 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7072 | ac_save_cc="$CC" |
7073 | CC="$CC -fno-strict-aliasing" | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7074 | save_CFLAGS="$CFLAGS" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7075 | if ${ac_cv_no_strict_aliasing+:} false; then : |
7076 | $as_echo_n "(cached) " >&6 | ||||
7077 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7079 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7080 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7081 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7082 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7083 | main () |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7084 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7085 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7086 | ; |
7087 | return 0; | ||||
7088 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7089 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7090 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7091 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7092 | |
7093 | CC="$ac_save_cc -fstrict-aliasing" | ||||
7094 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | ||||
7095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7096 | /* end confdefs.h. */ |
7097 | |||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7098 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7099 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7100 | main () |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7101 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7102 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7103 | ; |
7104 | return 0; | ||||
7105 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7106 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7107 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7108 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7109 | |
7110 | ac_cv_no_strict_aliasing=no | ||||
7111 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7112 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7113 | |
7114 | ac_cv_no_strict_aliasing=yes | ||||
7115 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7116 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7118 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7119 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7120 | |
7121 | ac_cv_no_strict_aliasing=no | ||||
7122 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7123 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7125 | fi |
7126 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7127 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7128 | CC="$ac_save_cc" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
7130 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7131 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7132 | then |
7133 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | ||||
7134 | fi | ||||
7135 | |||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7136 | # ICC doesn't recognize the option, but only emits a warning |
7137 | ## XXX does it emit an unused result warning and can it be disabled? | ||||
7138 | case "$CC" in | ||||
7139 | *icc*) | ||||
7140 | ac_cv_disable_unused_result_warning=no | ||||
7141 | ;; | ||||
7142 | *) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
7144 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7145 | ac_save_cc="$CC" |
7146 | CC="$CC -Wunused-result -Werror" | ||||
7147 | save_CFLAGS="$CFLAGS" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7148 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
7149 | $as_echo_n "(cached) " >&6 | ||||
7150 | else | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7152 | /* end confdefs.h. */ | ||||
7153 | |||||
7154 | |||||
7155 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7156 | main () |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7157 | { |
7158 | |||||
7159 | ; | ||||
7160 | return 0; | ||||
7161 | } | ||||
7162 | |||||
7163 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7164 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7165 | |
7166 | ac_cv_disable_unused_result_warning=yes | ||||
7167 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7168 | else |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7169 | |
7170 | ac_cv_disable_unused_result_warning=no | ||||
7171 | |||||
7172 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7174 | fi |
7175 | |||||
7176 | CFLAGS="$save_CFLAGS" | ||||
7177 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
7179 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7180 | ;; |
7181 | esac | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7182 | |
7183 | if test $ac_cv_disable_unused_result_warning = yes | ||||
7184 | then | ||||
7185 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7186 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
7187 | fi | ||||
7188 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 |
7190 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7191 | ac_save_cc="$CC" |
7192 | CC="$CC -Wunused-parameter -Werror" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7193 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : |
7194 | $as_echo_n "(cached) " >&6 | ||||
7195 | else | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7197 | /* end confdefs.h. */ | ||||
7198 | |||||
7199 | |||||
7200 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7201 | main () |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7202 | { |
7203 | |||||
7204 | ; | ||||
7205 | return 0; | ||||
7206 | } | ||||
7207 | |||||
7208 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7209 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7210 | |
7211 | ac_cv_disable_unused_parameter_warning=yes | ||||
7212 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7213 | else |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7214 | |
7215 | ac_cv_disable_unused_parameter_warning=no | ||||
7216 | |||||
7217 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7219 | fi |
7220 | |||||
7221 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 |
7223 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7224 | |
7225 | if test $ac_cv_disable_unused_parameter_warning = yes | ||||
7226 | then | ||||
7227 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | ||||
7228 | fi | ||||
7229 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 |
7231 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7232 | ac_save_cc="$CC" |
7233 | CC="$CC -Wmissing-field-initializers -Werror" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7234 | if ${ac_cv_disable_missing_field_initializers+:} false; then : |
7235 | $as_echo_n "(cached) " >&6 | ||||
7236 | else | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7238 | /* end confdefs.h. */ | ||||
7239 | |||||
7240 | |||||
7241 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7242 | main () |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7243 | { |
7244 | |||||
7245 | ; | ||||
7246 | return 0; | ||||
7247 | } | ||||
7248 | |||||
7249 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7250 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7251 | |
7252 | ac_cv_disable_missing_field_initializers=yes | ||||
7253 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7254 | else |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7255 | |
7256 | ac_cv_disable_missing_field_initializers=no | ||||
7257 | |||||
7258 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7260 | fi |
7261 | |||||
7262 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 |
7264 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7265 | |
7266 | if test $ac_cv_disable_missing_field_initializers = yes | ||||
7267 | then | ||||
7268 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7269 | fi |
7270 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7272 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7273 | ac_save_cc="$CC" |
7274 | CC="$CC -Wsign-compare" | ||||
7275 | save_CFLAGS="$CFLAGS" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7276 | if ${ac_cv_enable_sign_compare_warning+:} false; then : |
7277 | $as_echo_n "(cached) " >&6 | ||||
7278 | else | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7280 | /* end confdefs.h. */ | ||||
7281 | |||||
7282 | |||||
7283 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7284 | main () |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7285 | { |
7286 | |||||
7287 | ; | ||||
7288 | return 0; | ||||
7289 | } | ||||
7290 | |||||
7291 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7292 | if ac_fn_c_try_compile "$LINENO"; then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7293 | |
7294 | ac_cv_enable_sign_compare_warning=yes | ||||
7295 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7296 | else |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7297 | |
7298 | ac_cv_enable_sign_compare_warning=no | ||||
7299 | |||||
7300 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7302 | fi |
7303 | |||||
7304 | CFLAGS="$save_CFLAGS" | ||||
7305 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
7307 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7308 | |
7309 | if test $ac_cv_enable_sign_compare_warning = yes | ||||
7310 | then | ||||
7311 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | ||||
7312 | fi | ||||
7313 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
7315 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7316 | ac_save_cc="$CC" |
7317 | CC="$CC -Wunreachable-code" | ||||
7318 | save_CFLAGS="$CFLAGS" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7319 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : |
7320 | $as_echo_n "(cached) " >&6 | ||||
7321 | else | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7323 | /* end confdefs.h. */ | ||||
7324 | |||||
7325 | |||||
7326 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7327 | main () |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7328 | { |
7329 | |||||
7330 | ; | ||||
7331 | return 0; | ||||
7332 | } | ||||
7333 | |||||
7334 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7335 | if ac_fn_c_try_compile "$LINENO"; then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7336 | |
7337 | ac_cv_enable_unreachable_code_warning=yes | ||||
7338 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7339 | else |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7340 | |
7341 | ac_cv_enable_unreachable_code_warning=no | ||||
7342 | |||||
7343 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7345 | fi |
7346 | |||||
7347 | CFLAGS="$save_CFLAGS" | ||||
7348 | CC="$ac_save_cc" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7349 | |
7350 | # Don't enable unreachable code warning in debug mode, since it usually | ||||
7351 | # results in non-standard code paths. | ||||
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7352 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
7353 | # correctly on gcc and has been silently removed from the compiler. | ||||
7354 | # It is supported on clang but on OS X systems gcc may be an alias | ||||
7355 | # for clang. Try to determine if the compiler is not really gcc and, | ||||
7356 | # if so, only then enable the warning. | ||||
7357 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | ||||
7358 | test "$Py_DEBUG" != "true" && \ | ||||
7359 | test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7360 | then |
7361 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | ||||
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7362 | else |
7363 | ac_cv_enable_unreachable_code_warning=no | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7364 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7366 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7367 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
7369 | $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } | ||||
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7370 | ac_save_cc="$CC" |
7371 | CC="$CC -Werror -Wstrict-prototypes" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7372 | if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : |
7373 | $as_echo_n "(cached) " >&6 | ||||
7374 | else | ||||
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7376 | /* end confdefs.h. */ | ||||
7377 | |||||
7378 | |||||
7379 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7380 | main () |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7381 | { |
7382 | |||||
7383 | ; | ||||
7384 | return 0; | ||||
7385 | } | ||||
7386 | |||||
7387 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7388 | if ac_fn_c_try_compile "$LINENO"; then : |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7389 | |
7390 | ac_cv_enable_strict_prototypes_warning=yes | ||||
7391 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7392 | else |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7393 | |
7394 | ac_cv_enable_strict_prototypes_warning=no | ||||
7395 | |||||
7396 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7398 | fi |
7399 | |||||
7400 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 |
7402 | $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } | ||||
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7403 | |
7404 | if test $ac_cv_enable_strict_prototypes_warning = yes | ||||
7405 | then | ||||
7406 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" | ||||
7407 | fi | ||||
7408 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
7410 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | ||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7411 | ac_save_cc="$CC" |
7412 | CC="$CC -Werror=implicit-function-declaration" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7413 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : |
7414 | $as_echo_n "(cached) " >&6 | ||||
7415 | else | ||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7417 | /* end confdefs.h. */ | ||||
7418 | |||||
7419 | |||||
7420 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7421 | main () |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7422 | { |
7423 | |||||
7424 | ; | ||||
7425 | return 0; | ||||
7426 | } | ||||
7427 | |||||
7428 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7429 | if ac_fn_c_try_compile "$LINENO"; then : |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7430 | |
7431 | ac_cv_enable_implicit_function_declaration_error=yes | ||||
7432 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7433 | else |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7434 | |
7435 | ac_cv_enable_implicit_function_declaration_error=no | ||||
7436 | |||||
7437 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7439 | fi |
7440 | |||||
7441 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 |
7443 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | ||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7444 | |
7445 | if test $ac_cv_enable_implicit_function_declaration_error = yes | ||||
7446 | then | ||||
7447 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | ||||
7448 | fi | ||||
7449 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 |
7451 | $as_echo_n "checking if we can use visibility in $CC... " >&6; } | ||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7452 | ac_save_cc="$CC" |
7453 | CC="$CC -fvisibility=hidden" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7454 | if ${ac_cv_enable_visibility+:} false; then : |
7455 | $as_echo_n "(cached) " >&6 | ||||
7456 | else | ||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7458 | /* end confdefs.h. */ | ||||
7459 | |||||
7460 | |||||
7461 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7462 | main () |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7463 | { |
7464 | |||||
7465 | ; | ||||
7466 | return 0; | ||||
7467 | } | ||||
7468 | |||||
7469 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7470 | if ac_fn_c_try_compile "$LINENO"; then : |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7471 | |
7472 | ac_cv_enable_visibility=yes | ||||
7473 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7474 | else |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7475 | |
7476 | ac_cv_enable_visibility=no | ||||
7477 | |||||
7478 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7480 | fi |
7481 | |||||
7482 | CC="$ac_save_cc" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 |
7484 | $as_echo "$ac_cv_enable_visibility" >&6; } | ||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7485 | |
7486 | if test $ac_cv_enable_visibility = yes | ||||
7487 | then | ||||
7488 | CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" | ||||
7489 | fi | ||||
7490 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7491 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
7492 | # support. Without this, treatment of subnormals doesn't follow | ||||
7493 | # the standard. | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7494 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7495 | alpha*) |
7496 | BASECFLAGS="$BASECFLAGS -mieee" | ||||
7497 | ;; | ||||
7498 | esac | ||||
7499 | |||||
7500 | case $ac_sys_system in | ||||
7501 | SCO_SV*) | ||||
7502 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | ||||
7503 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7504 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7505 | Darwin*) |
7506 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | ||||
7507 | # used to be here, but non-Apple gcc doesn't accept them. | ||||
7508 | if test "${CC}" = gcc | ||||
7509 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
7511 | $as_echo_n "checking which compiler should be used... " >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7512 | case "${UNIVERSALSDK}" in |
7513 | */MacOSX10.4u.sdk) | ||||
7514 | # Build using 10.4 SDK, force usage of gcc when the | ||||
7515 | # compiler is gcc, otherwise the user will get very | ||||
7516 | # confusing error messages when building on OSX 10.6 | ||||
7517 | CC=gcc-4.0 | ||||
7518 | CPP=cpp-4.0 | ||||
7519 | ;; | ||||
7520 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
7522 | $as_echo "$CC" >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7523 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7524 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7525 | if test "${enable_universalsdk}" |
7526 | then | ||||
7527 | case "$UNIVERSAL_ARCHS" in | ||||
7528 | 32-bit) | ||||
7529 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | ||||
7530 | LIPO_32BIT_FLAGS="" | ||||
7531 | ARCH_RUN_32BIT="" | ||||
7532 | ;; | ||||
7533 | 64-bit) | ||||
7534 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | ||||
7535 | LIPO_32BIT_FLAGS="" | ||||
7536 | ARCH_RUN_32BIT="true" | ||||
7537 | ;; | ||||
7538 | all) | ||||
7539 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | ||||
7540 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7541 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7542 | ;; | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7543 | universal2) |
7544 | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" | ||||
7545 | LIPO_32BIT_FLAGS="" | ||||
7546 | ARCH_RUN_32BIT="true" | ||||
7547 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7548 | intel) |
7549 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | ||||
7550 | LIPO_32BIT_FLAGS="-extract i386" | ||||
7551 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | ||||
7552 | ;; | ||||
7553 | intel-32) | ||||
7554 | UNIVERSAL_ARCH_FLAGS="-arch i386" | ||||
7555 | LIPO_32BIT_FLAGS="" | ||||
7556 | ARCH_RUN_32BIT="" | ||||
7557 | ;; | ||||
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7558 | intel-64) |
7559 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" | ||||
7560 | LIPO_32BIT_FLAGS="" | ||||
7561 | ARCH_RUN_32BIT="true" | ||||
7562 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7563 | 3-way) |
7564 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | ||||
7565 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7566 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7567 | ;; | ||||
7568 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7569 | as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7570 | ;; |
7571 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7572 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7573 | if test "${UNIVERSALSDK}" != "/" |
7574 | then | ||||
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7575 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
7576 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7577 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7578 | else |
7579 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | ||||
7580 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7581 | fi |
7582 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7583 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7584 | # Calculate an appropriate deployment target for this build: |
7585 | # The deployment target value is used explicitly to enable certain | ||||
7586 | # features are enabled (such as builtin libedit support for readline) | ||||
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7587 | # through the use of Apple's Availability Macros and is used as a |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7588 | # component of the string returned by distutils.get_platform(). |
7589 | # | ||||
7590 | # Use the value from: | ||||
7591 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | ||||
7592 | # 2. the operating system version of the build machine if >= 10.6 | ||||
7593 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | ||||
7594 | # below to pick either 10.3, 10.4, or 10.5 as the target. | ||||
7595 | # 4. If we are running on OS X 10.2 or earlier, good luck! | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7596 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
7598 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | ||||
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7599 | cur_target_major=`sw_vers -productVersion | \ |
7600 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
7601 | cur_target_minor=`sw_vers -productVersion | \ | ||||
7602 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
7603 | cur_target="${cur_target_major}.${cur_target_minor}" | ||||
7604 | if test ${cur_target_major} -eq 10 && \ | ||||
7605 | test ${cur_target_minor} -ge 3 && \ | ||||
7606 | test ${cur_target_minor} -le 5 | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7607 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7608 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7609 | cur_target=10.3 |
7610 | if test ${enable_universalsdk} | ||||
7611 | then | ||||
7612 | case "$UNIVERSAL_ARCHS" in | ||||
7613 | all|3-way|intel|64-bit) | ||||
7614 | # These configurations were first supported in 10.5 | ||||
7615 | cur_target='10.5' | ||||
7616 | ;; | ||||
7617 | esac | ||||
7618 | else | ||||
7619 | if test `/usr/bin/arch` = "i386" | ||||
7620 | then | ||||
7621 | # 10.4 was the first release to support Intel archs | ||||
7622 | cur_target="10.4" | ||||
7623 | fi | ||||
7624 | fi | ||||
7625 | fi | ||||
7626 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7627 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7628 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
7629 | # environment with a value that is the same as what we'll use | ||||
7630 | # in the Makefile to ensure that we'll get the same compiler | ||||
7631 | # environment during configure and build time. | ||||
7632 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | ||||
7633 | export MACOSX_DEPLOYMENT_TARGET | ||||
7634 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
7636 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7637 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 |
7639 | $as_echo_n "checking if specified universal architectures work... " >&6; } | ||||
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7641 | /* end confdefs.h. */ | ||||
7642 | #include <stdio.h> | ||||
7643 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7644 | main () |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7645 | { |
7646 | printf("%d", 42); | ||||
7647 | ; | ||||
7648 | return 0; | ||||
7649 | } | ||||
7650 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7651 | if ac_fn_c_try_link "$LINENO"; then : |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
7653 | $as_echo "yes" >&6; } | ||||
7654 | else | ||||
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
7656 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7657 | as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 |
7658 | |||||
7659 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7660 | rm -f core conftest.err conftest.$ac_objext \ |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7661 | conftest$ac_exeext conftest.$ac_ext |
7662 | |||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7663 | # end of Darwin* tests |
7664 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7665 | esac |
7666 | ;; | ||||
7667 | |||||
7668 | *) | ||||
7669 | case $ac_sys_system in | ||||
7670 | OpenUNIX*|UnixWare*) | ||||
7671 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | ||||
7672 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7673 | SCO_SV*) |
7674 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | ||||
7675 | ;; | ||||
7676 | esac | ||||
7677 | ;; | ||||
7678 | esac | ||||
7679 | |||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7680 | case "$CC" in |
7681 | *icc*) | ||||
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 7682 | # ICC needs -fp-model strict or floats behave badly |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7683 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
7684 | ;; | ||||
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 7685 | *xlc*) |
7686 | CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" | ||||
7687 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7688 | esac |
7689 | |||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7690 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7691 | : |
7692 | else | ||||
7693 | OPT="-DNDEBUG $OPT" | ||||
7694 | fi | ||||
7695 | |||||
7696 | if test "$ac_arch_flags" | ||||
7697 | then | ||||
7698 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | ||||
7699 | fi | ||||
7700 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7701 | # On some compilers, pthreads are available without further options |
7702 | # (e.g. MacOS X). On some of these systems, the compiler will not | ||||
7703 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | ||||
7704 | # So we have to see first whether pthreads are available without | ||||
7705 | # options before we can check whether -Kpthread improves anything. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
7707 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | ||||
7708 | if ${ac_cv_pthread_is_default+:} false; then : | ||||
7709 | $as_echo_n "(cached) " >&6 | ||||
7710 | else | ||||
7711 | if test "$cross_compiling" = yes; then : | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7712 | ac_cv_pthread_is_default=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7713 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7715 | /* end confdefs.h. */ |
7716 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7717 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7718 | #include <pthread.h> |
7719 | |||||
7720 | void* routine(void* p){return NULL;} | ||||
7721 | |||||
7722 | int main(){ | ||||
7723 | pthread_t p; | ||||
7724 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7725 | return 1; | ||||
7726 | (void)pthread_detach(p); | ||||
7727 | return 0; | ||||
7728 | } | ||||
7729 | |||||
7730 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7731 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7732 | |
7733 | ac_cv_pthread_is_default=yes | ||||
7734 | ac_cv_kthread=no | ||||
7735 | ac_cv_pthread=no | ||||
7736 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7737 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7738 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7739 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7741 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7742 | fi |
7743 | |||||
7744 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7745 | fi |
7746 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
7748 | $as_echo "$ac_cv_pthread_is_default" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7749 | |
7750 | |||||
7751 | if test $ac_cv_pthread_is_default = yes | ||||
7752 | then | ||||
7753 | ac_cv_kpthread=no | ||||
7754 | else | ||||
7755 | # -Kpthread, if available, provides the right #defines | ||||
7756 | # and linker options to make pthread_create available | ||||
7757 | # Some compilers won't report that they do not support -Kpthread, | ||||
7758 | # so we need to run a program to see whether it really made the | ||||
7759 | # function available. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
7761 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | ||||
7762 | if ${ac_cv_kpthread+:} false; then : | ||||
7763 | $as_echo_n "(cached) " >&6 | ||||
7764 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7765 | ac_save_cc="$CC" |
7766 | CC="$CC -Kpthread" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7767 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7768 | ac_cv_kpthread=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7769 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7771 | /* end confdefs.h. */ |
7772 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7773 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7774 | #include <pthread.h> |
7775 | |||||
7776 | void* routine(void* p){return NULL;} | ||||
7777 | |||||
7778 | int main(){ | ||||
7779 | pthread_t p; | ||||
7780 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7781 | return 1; | ||||
7782 | (void)pthread_detach(p); | ||||
7783 | return 0; | ||||
7784 | } | ||||
7785 | |||||
7786 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7787 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7788 | ac_cv_kpthread=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7789 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7790 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7791 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7793 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7794 | fi |
7795 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7796 | CC="$ac_save_cc" |
7797 | fi | ||||
7798 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
7800 | $as_echo "$ac_cv_kpthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7801 | fi |
7802 | |||||
7803 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | ||||
7804 | then | ||||
7805 | # -Kthread, if available, provides the right #defines | ||||
7806 | # and linker options to make pthread_create available | ||||
7807 | # Some compilers won't report that they do not support -Kthread, | ||||
7808 | # so we need to run a program to see whether it really made the | ||||
7809 | # function available. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
7811 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | ||||
7812 | if ${ac_cv_kthread+:} false; then : | ||||
7813 | $as_echo_n "(cached) " >&6 | ||||
7814 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7815 | ac_save_cc="$CC" |
7816 | CC="$CC -Kthread" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7817 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7818 | ac_cv_kthread=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7819 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7821 | /* end confdefs.h. */ |
7822 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7823 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7824 | #include <pthread.h> |
7825 | |||||
7826 | void* routine(void* p){return NULL;} | ||||
7827 | |||||
7828 | int main(){ | ||||
7829 | pthread_t p; | ||||
7830 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7831 | return 1; | ||||
7832 | (void)pthread_detach(p); | ||||
7833 | return 0; | ||||
7834 | } | ||||
7835 | |||||
7836 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7837 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7838 | ac_cv_kthread=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7839 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7840 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7841 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7843 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7844 | fi |
7845 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7846 | CC="$ac_save_cc" |
7847 | fi | ||||
7848 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
7850 | $as_echo "$ac_cv_kthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7851 | fi |
7852 | |||||
7853 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | ||||
7854 | then | ||||
7855 | # -pthread, if available, provides the right #defines | ||||
7856 | # and linker options to make pthread_create available | ||||
7857 | # Some compilers won't report that they do not support -pthread, | ||||
7858 | # so we need to run a program to see whether it really made the | ||||
7859 | # function available. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
7861 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | ||||
7862 | if ${ac_cv_pthread+:} false; then : | ||||
7863 | $as_echo_n "(cached) " >&6 | ||||
7864 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7865 | ac_save_cc="$CC" |
7866 | CC="$CC -pthread" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7867 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7868 | ac_cv_pthread=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7869 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7871 | /* end confdefs.h. */ |
7872 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7873 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7874 | #include <pthread.h> |
7875 | |||||
7876 | void* routine(void* p){return NULL;} | ||||
7877 | |||||
7878 | int main(){ | ||||
7879 | pthread_t p; | ||||
7880 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7881 | return 1; | ||||
7882 | (void)pthread_detach(p); | ||||
7883 | return 0; | ||||
7884 | } | ||||
7885 | |||||
7886 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7887 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7888 | ac_cv_pthread=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7889 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7890 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7891 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7892 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7893 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7894 | fi |
7895 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7896 | CC="$ac_save_cc" |
7897 | fi | ||||
7898 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
7900 | $as_echo "$ac_cv_pthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7901 | fi |
7902 | |||||
7903 | # If we have set a CC compiler flag for thread support then | ||||
7904 | # check if it works for CXX, too. | ||||
7905 | ac_cv_cxx_thread=no | ||||
7906 | if test ! -z "$CXX" | ||||
7907 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
7909 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7910 | ac_save_cxx="$CXX" |
7911 | |||||
7912 | if test "$ac_cv_kpthread" = "yes" | ||||
7913 | then | ||||
7914 | CXX="$CXX -Kpthread" | ||||
7915 | ac_cv_cxx_thread=yes | ||||
7916 | elif test "$ac_cv_kthread" = "yes" | ||||
7917 | then | ||||
7918 | CXX="$CXX -Kthread" | ||||
7919 | ac_cv_cxx_thread=yes | ||||
7920 | elif test "$ac_cv_pthread" = "yes" | ||||
7921 | then | ||||
7922 | CXX="$CXX -pthread" | ||||
7923 | ac_cv_cxx_thread=yes | ||||
7924 | fi | ||||
7925 | |||||
7926 | if test $ac_cv_cxx_thread = yes | ||||
7927 | then | ||||
7928 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | ||||
7929 | $CXX -c conftest.$ac_ext 2>&5 | ||||
7930 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | ||||
7931 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | ||||
7932 | then | ||||
7933 | ac_cv_cxx_thread=yes | ||||
7934 | else | ||||
7935 | ac_cv_cxx_thread=no | ||||
7936 | fi | ||||
7937 | rm -fr conftest* | ||||
7938 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
7940 | $as_echo "$ac_cv_cxx_thread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7941 | fi |
7942 | CXX="$ac_save_cxx" | ||||
7943 | |||||
7944 | |||||
7945 | # checks for header files | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7947 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
7948 | if ${ac_cv_header_stdc+:} false; then : | ||||
7949 | $as_echo_n "(cached) " >&6 | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7950 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7952 | /* end confdefs.h. */ | ||||
7953 | #include <stdlib.h> | ||||
7954 | #include <stdarg.h> | ||||
7955 | #include <string.h> | ||||
7956 | #include <float.h> | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7957 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7958 | int |
7959 | main () | ||||
7960 | { | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7961 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7962 | ; |
7963 | return 0; | ||||
7964 | } | ||||
7965 | _ACEOF | ||||
7966 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7967 | ac_cv_header_stdc=yes | ||||
7968 | else | ||||
7969 | ac_cv_header_stdc=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7970 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7972 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7973 | if test $ac_cv_header_stdc = yes; then |
7974 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
7975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7976 | /* end confdefs.h. */ | ||||
7977 | #include <string.h> | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7978 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7979 | _ACEOF |
7980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
7981 | $EGREP "memchr" >/dev/null 2>&1; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7983 | else |
7984 | ac_cv_header_stdc=no | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7986 | rm -f conftest* |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7988 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7989 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7990 | if test $ac_cv_header_stdc = yes; then |
7991 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
7992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7993 | /* end confdefs.h. */ | ||||
7994 | #include <stdlib.h> | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7995 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 7996 | _ACEOF |
7997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
7998 | $EGREP "free" >/dev/null 2>&1; then : | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7999 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8000 | else |
8001 | ac_cv_header_stdc=no | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8002 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8003 | rm -f conftest* |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8004 | |
8005 | fi | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8006 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8007 | if test $ac_cv_header_stdc = yes; then |
8008 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
8009 | if test "$cross_compiling" = yes; then : | ||||
8010 | : | ||||
8011 | else | ||||
8012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8013 | /* end confdefs.h. */ | ||||
8014 | #include <ctype.h> | ||||
8015 | #include <stdlib.h> | ||||
8016 | #if ((' ' & 0x0FF) == 0x020) | ||||
8017 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
8018 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
8019 | #else | ||||
8020 | # define ISLOWER(c) \ | ||||
8021 | (('a' <= (c) && (c) <= 'i') \ | ||||
8022 | || ('j' <= (c) && (c) <= 'r') \ | ||||
8023 | || ('s' <= (c) && (c) <= 'z')) | ||||
8024 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
8025 | #endif | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8026 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8027 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8028 | int | ||||
8029 | main () | ||||
8030 | { | ||||
8031 | int i; | ||||
8032 | for (i = 0; i < 256; i++) | ||||
8033 | if (XOR (islower (i), ISLOWER (i)) | ||||
8034 | || toupper (i) != TOUPPER (i)) | ||||
8035 | return 2; | ||||
8036 | return 0; | ||||
8037 | } | ||||
8038 | _ACEOF | ||||
8039 | if ac_fn_c_try_run "$LINENO"; then : | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8040 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8041 | else |
8042 | ac_cv_header_stdc=no | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8043 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8045 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8046 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8047 | |
8048 | fi | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8049 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8051 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
8052 | if test $ac_cv_header_stdc = yes; then | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8053 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8054 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8055 | |
8056 | fi | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8057 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8058 | for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ |
8059 | fcntl.h grp.h \ | ||||
8060 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | ||||
8061 | sched.h shadow.h signal.h stropts.h termios.h \ | ||||
8062 | utime.h \ | ||||
8063 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | ||||
8064 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ | ||||
8065 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | ||||
8066 | sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | ||||
8067 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ | ||||
8068 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | ||||
8069 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | ||||
8070 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ | ||||
8071 | sys/endian.h sys/sysmacros.h linux/memfd.h linux/wait.h sys/memfd.h \ | ||||
8072 | sys/mman.h sys/eventfd.h | ||||
8073 | do : | ||||
8074 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8075 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
8076 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
8077 | cat >>confdefs.h <<_ACEOF | ||||
8078 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8079 | _ACEOF | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8080 | |
8081 | fi | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8082 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8083 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8084 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8085 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8087 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||||
8089 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||||
8090 | if eval \${$as_ac_Header+:} false; then : | ||||
8091 | $as_echo_n "(cached) " >&6 | ||||
8092 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8094 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8095 | #include <sys/types.h> |
8096 | #include <$ac_hdr> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8099 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | { |
8101 | if ((DIR *) 0) | ||||
8102 | return 0; | ||||
8103 | ; | ||||
8104 | return 0; | ||||
8105 | } | ||||
8106 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8107 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8108 | eval "$as_ac_Header=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8109 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8110 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8111 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8113 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8114 | eval ac_res=\$$as_ac_Header |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
8116 | $as_echo "$ac_res" >&6; } | ||||
8117 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | cat >>confdefs.h <<_ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8119 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | _ACEOF |
8121 | |||||
8122 | ac_header_dirent=$ac_hdr; break | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8123 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8125 | done |
8126 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||||
8127 | if test $ac_header_dirent = dirent.h; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8129 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
8130 | if ${ac_cv_search_opendir+:} false; then : | ||||
8131 | $as_echo_n "(cached) " >&6 | ||||
8132 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8133 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8135 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8137 | /* Override any GCC internal prototype to avoid an error. |
8138 | Use char because int might match the return type of a GCC | ||||
8139 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8140 | #ifdef __cplusplus |
8141 | extern "C" | ||||
8142 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8145 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8147 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | ; |
8149 | return 0; | ||||
8150 | } | ||||
8151 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8152 | for ac_lib in '' dir; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8153 | if test -z "$ac_lib"; then |
8154 | ac_res="none required" | ||||
8155 | else | ||||
8156 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8157 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8158 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8159 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8160 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8161 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8162 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8163 | conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8164 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8165 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8166 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8167 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8168 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8169 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8170 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8171 | ac_cv_search_opendir=no |
8172 | fi | ||||
8173 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8174 | LIBS=$ac_func_search_save_LIBS |
8175 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8177 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8178 | ac_res=$ac_cv_search_opendir |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8179 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8180 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8181 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8182 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8184 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8186 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
8187 | if ${ac_cv_search_opendir+:} false; then : | ||||
8188 | $as_echo_n "(cached) " >&6 | ||||
8189 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8192 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8193 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8194 | /* Override any GCC internal prototype to avoid an error. |
8195 | Use char because int might match the return type of a GCC | ||||
8196 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8197 | #ifdef __cplusplus |
8198 | extern "C" | ||||
8199 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8201 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8202 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8203 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8204 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | ; |
8206 | return 0; | ||||
8207 | } | ||||
8208 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8209 | for ac_lib in '' x; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8210 | if test -z "$ac_lib"; then |
8211 | ac_res="none required" | ||||
8212 | else | ||||
8213 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8214 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8215 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8216 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8217 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8218 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8219 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8220 | conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8221 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8222 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8223 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8224 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8225 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8226 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8227 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8228 | ac_cv_search_opendir=no |
8229 | fi | ||||
8230 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | LIBS=$ac_func_search_save_LIBS |
8232 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8234 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8235 | ac_res=$ac_cv_search_opendir |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8236 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8237 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8239 | fi |
8240 | |||||
8241 | fi | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8242 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
8244 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | ||||
8245 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | ||||
8246 | $as_echo_n "(cached) " >&6 | ||||
8247 | else | ||||
8248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8249 | /* end confdefs.h. */ | ||||
8250 | #include <sys/types.h> | ||||
8251 | int | ||||
8252 | main () | ||||
8253 | { | ||||
8254 | return makedev(0, 0); | ||||
8255 | ; | ||||
8256 | return 0; | ||||
8257 | } | ||||
8258 | _ACEOF | ||||
8259 | if ac_fn_c_try_link "$LINENO"; then : | ||||
8260 | ac_cv_header_sys_types_h_makedev=yes | ||||
8261 | else | ||||
8262 | ac_cv_header_sys_types_h_makedev=no | ||||
8263 | fi | ||||
8264 | rm -f core conftest.err conftest.$ac_objext \ | ||||
8265 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8266 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8267 | fi |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | ||||
8269 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8270 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8271 | if test $ac_cv_header_sys_types_h_makedev = no; then |
8272 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | ||||
8273 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | ||||
8274 | |||||
8275 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8276 | |
8277 | fi | ||||
8278 | |||||
8279 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8280 | |
8281 | if test $ac_cv_header_sys_mkdev_h = no; then | ||||
8282 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | ||||
8283 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | ||||
8284 | |||||
8285 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8286 | |
8287 | fi | ||||
8288 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8289 | |
8290 | fi | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8291 | fi |
8292 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8293 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8294 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
8295 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | ||||
8296 | SAVE_CFLAGS=$CFLAGS | ||||
8297 | CFLAGS="-std=c99 $CFLAGS" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8298 | for ac_header in bluetooth/bluetooth.h |
8299 | do : | ||||
8300 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | ||||
8301 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | ||||
8302 | cat >>confdefs.h <<_ACEOF | ||||
8303 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | ||||
8304 | _ACEOF | ||||
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8305 | |
8306 | fi | ||||
8307 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8308 | done |
8309 | |||||
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8310 | CFLAGS=$SAVE_CFLAGS |
8311 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8312 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8313 | for ac_header in net/if.h |
8314 | do : | ||||
8315 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | ||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8316 | #ifdef STDC_HEADERS |
8317 | # include <stdlib.h> | ||||
8318 | # include <stddef.h> | ||||
8319 | #else | ||||
8320 | # ifdef HAVE_STDLIB_H | ||||
8321 | # include <stdlib.h> | ||||
8322 | # endif | ||||
8323 | #endif | ||||
8324 | #ifdef HAVE_SYS_SOCKET_H | ||||
8325 | # include <sys/socket.h> | ||||
8326 | #endif | ||||
8327 | |||||
8328 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8329 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
8330 | cat >>confdefs.h <<_ACEOF | ||||
8331 | #define HAVE_NET_IF_H 1 | ||||
8332 | _ACEOF | ||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8333 | |
8334 | fi | ||||
8335 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8336 | done |
8337 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8338 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8339 | # On Linux, netlink.h requires asm/types.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8340 | for ac_header in linux/netlink.h |
8341 | do : | ||||
8342 | 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 +0000 | [diff] [blame] | 8343 | #ifdef HAVE_ASM_TYPES_H |
8344 | #include <asm/types.h> | ||||
8345 | #endif | ||||
8346 | #ifdef HAVE_SYS_SOCKET_H | ||||
8347 | #include <sys/socket.h> | ||||
8348 | #endif | ||||
8349 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8350 | " |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8351 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
8352 | cat >>confdefs.h <<_ACEOF | ||||
8353 | #define HAVE_LINUX_NETLINK_H 1 | ||||
8354 | _ACEOF | ||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8355 | |
8356 | fi | ||||
8357 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8358 | done |
8359 | |||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8360 | |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8361 | # On Linux, qrtr.h requires asm/types.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8362 | for ac_header in linux/qrtr.h |
8363 | do : | ||||
8364 | ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " | ||||
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8365 | #ifdef HAVE_ASM_TYPES_H |
8366 | #include <asm/types.h> | ||||
8367 | #endif | ||||
8368 | #ifdef HAVE_SYS_SOCKET_H | ||||
8369 | #include <sys/socket.h> | ||||
8370 | #endif | ||||
8371 | |||||
8372 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8373 | if test "x$ac_cv_header_linux_qrtr_h" = xyes; then : |
8374 | cat >>confdefs.h <<_ACEOF | ||||
8375 | #define HAVE_LINUX_QRTR_H 1 | ||||
8376 | _ACEOF | ||||
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8377 | |
8378 | fi | ||||
8379 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8380 | done |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8381 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8382 | |
8383 | for ac_header in linux/vm_sockets.h | ||||
8384 | do : | ||||
8385 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " | ||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8386 | #ifdef HAVE_SYS_SOCKET_H |
8387 | #include <sys/socket.h> | ||||
8388 | #endif | ||||
8389 | |||||
8390 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8391 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : |
8392 | cat >>confdefs.h <<_ACEOF | ||||
8393 | #define HAVE_LINUX_VM_SOCKETS_H 1 | ||||
8394 | _ACEOF | ||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8395 | |
8396 | fi | ||||
8397 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8398 | done |
8399 | |||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8400 | |
karl ding | 360371f | 2020-04-29 15:31:19 -0700 | [diff] [blame] | 8401 | # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8402 | for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h |
8403 | do : | ||||
8404 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8405 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||||
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8406 | #ifdef HAVE_SYS_SOCKET_H |
8407 | #include <sys/socket.h> | ||||
8408 | #endif | ||||
8409 | |||||
8410 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8411 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8412 | cat >>confdefs.h <<_ACEOF | ||||
8413 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8414 | _ACEOF | ||||
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8415 | |
8416 | fi | ||||
8417 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8418 | done |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8419 | |
8420 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8421 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8422 | was_it_defined=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
8424 | $as_echo_n "checking for clock_t in time.h... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8426 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8427 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | |
8429 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8431 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8432 | was_it_defined=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | |
8435 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8436 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8437 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8438 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8439 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8440 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8441 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
8443 | $as_echo "$was_it_defined" >&6; } | ||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8444 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
8446 | $as_echo_n "checking for makedev... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8448 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8449 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8450 | #if defined(MAJOR_IN_MKDEV) |
8451 | #include <sys/mkdev.h> | ||||
8452 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
8453 | #include <sys/sysmacros.h> | ||||
8454 | #else | ||||
8455 | #include <sys/types.h> | ||||
8456 | #endif | ||||
8457 | |||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8458 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8459 | main () |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8460 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8461 | |
8462 | makedev(0, 0) | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8463 | ; |
8464 | return 0; | ||||
8465 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8466 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8467 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8468 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8469 | ac_cv_has_makedev=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8470 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8471 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8472 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8473 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8474 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
8476 | $as_echo "$ac_cv_has_makedev" >&6; } | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8477 | if test "$ac_cv_has_makedev" = "yes"; then |
8478 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8479 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8480 | |
8481 | fi | ||||
8482 | |||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8483 | # byte swapping |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
8485 | $as_echo_n "checking for le64toh... " >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8487 | /* end confdefs.h. */ | ||||
8488 | |||||
8489 | #ifdef HAVE_ENDIAN_H | ||||
8490 | #include <endian.h> | ||||
8491 | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
8492 | #include <sys/endian.h> | ||||
8493 | #endif | ||||
8494 | |||||
8495 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8496 | main () |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8497 | { |
8498 | |||||
8499 | le64toh(1) | ||||
8500 | ; | ||||
8501 | return 0; | ||||
8502 | } | ||||
8503 | |||||
8504 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8505 | if ac_fn_c_try_link "$LINENO"; then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8506 | ac_cv_has_le64toh=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8507 | else |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8508 | ac_cv_has_le64toh=no |
8509 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8510 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8511 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
8513 | $as_echo "$ac_cv_has_le64toh" >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8514 | if test "$ac_cv_has_le64toh" = "yes"; then |
8515 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8516 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8517 | |
8518 | fi | ||||
8519 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8520 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8521 | # Don't use largefile support for GNU/Hurd |
8522 | case $ac_sys_system in GNU*) | ||||
8523 | use_lfs=no | ||||
8524 | esac | ||||
8525 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8526 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8527 | # Two defines needed to enable largefile support on various platforms |
8528 | # These may affect some typedefs | ||||
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8529 | case $ac_sys_system/$ac_sys_release in |
8530 | AIX*) | ||||
8531 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8532 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8533 | |
8534 | ;; | ||||
8535 | esac | ||||
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8536 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8537 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | |
8539 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8540 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8541 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8542 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8543 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8544 | # Add some code to confdefs.h so that the test for off_t works on SCO |
8545 | cat >> confdefs.h <<\EOF | ||||
8546 | #if defined(SCO_DS) | ||||
8547 | #undef _OFF_T | ||||
8548 | #endif | ||||
8549 | EOF | ||||
8550 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8551 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8552 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8553 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8554 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8557 | cat >>confdefs.h <<_ACEOF |
8558 | #define mode_t int | ||||
8559 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | |
8561 | fi | ||||
8562 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8563 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8564 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8565 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8568 | cat >>confdefs.h <<_ACEOF |
8569 | #define off_t long int | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8571 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8572 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8573 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8574 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
8575 | if test "x$ac_cv_type_pid_t" = xyes; then : | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8576 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8577 | else |
8578 | |||||
8579 | cat >>confdefs.h <<_ACEOF | ||||
8580 | #define pid_t int | ||||
8581 | _ACEOF | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8582 | |
8583 | fi | ||||
8584 | |||||
8585 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8586 | cat >>confdefs.h <<_ACEOF |
8587 | #define RETSIGTYPE void | ||||
8588 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8589 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8590 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8591 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8592 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8595 | cat >>confdefs.h <<_ACEOF |
8596 | #define size_t unsigned int | ||||
8597 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | |
8599 | fi | ||||
8600 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8602 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | ||||
8603 | if ${ac_cv_type_uid_t+:} false; then : | ||||
8604 | $as_echo_n "(cached) " >&6 | ||||
8605 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8607 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8608 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | |
8610 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8611 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8612 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8613 | ac_cv_type_uid_t=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8614 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8615 | ac_cv_type_uid_t=no |
8616 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8617 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8618 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8619 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8621 | $as_echo "$ac_cv_type_uid_t" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8622 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8623 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8624 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | |
8626 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8627 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8628 | |
8629 | fi | ||||
8630 | |||||
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8631 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8633 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8634 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8635 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8636 | |
8637 | fi | ||||
8638 | |||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8639 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8640 | if test "x$ac_cv_type___uint128_t" = xyes; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8641 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8642 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8643 | |
8644 | fi | ||||
8645 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8646 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8647 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8648 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8649 | # The cast to long int works around a bug in the HP C Compiler |
8650 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8651 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8652 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
8654 | $as_echo_n "checking size of int... " >&6; } | ||||
8655 | if ${ac_cv_sizeof_int+:} false; then : | ||||
8656 | $as_echo_n "(cached) " >&6 | ||||
8657 | else | ||||
8658 | 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 +0000 | [diff] [blame] | 8659 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8660 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8661 | if test "$ac_cv_type_int" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8662 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8663 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8664 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8665 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8666 | else |
8667 | ac_cv_sizeof_int=0 | ||||
8668 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8671 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
8673 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8674 | |
8675 | |||||
8676 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8677 | cat >>confdefs.h <<_ACEOF |
8678 | #define SIZEOF_INT $ac_cv_sizeof_int | ||||
8679 | _ACEOF | ||||
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8680 | |
8681 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8682 | # The cast to long int works around a bug in the HP C Compiler |
8683 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8684 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8685 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
8687 | $as_echo_n "checking size of long... " >&6; } | ||||
8688 | if ${ac_cv_sizeof_long+:} false; then : | ||||
8689 | $as_echo_n "(cached) " >&6 | ||||
8690 | else | ||||
8691 | 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 +0000 | [diff] [blame] | 8692 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8693 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8694 | if test "$ac_cv_type_long" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8695 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8696 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8697 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8698 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8699 | else |
8700 | ac_cv_sizeof_long=0 | ||||
8701 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
8706 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8707 | |
8708 | |||||
8709 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8710 | cat >>confdefs.h <<_ACEOF |
8711 | #define SIZEOF_LONG $ac_cv_sizeof_long | ||||
8712 | _ACEOF | ||||
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8713 | |
8714 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8715 | # The cast to long int works around a bug in the HP C Compiler |
8716 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8717 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8718 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
8720 | $as_echo_n "checking size of long long... " >&6; } | ||||
8721 | if ${ac_cv_sizeof_long_long+:} false; then : | ||||
8722 | $as_echo_n "(cached) " >&6 | ||||
8723 | else | ||||
8724 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8725 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8726 | else |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8727 | if test "$ac_cv_type_long_long" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8728 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8730 | as_fn_error 77 "cannot compute sizeof (long long) |
8731 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8732 | else | ||||
8733 | ac_cv_sizeof_long_long=0 | ||||
8734 | fi | ||||
8735 | fi | ||||
8736 | |||||
8737 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
8739 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8740 | |
8741 | |||||
8742 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8743 | cat >>confdefs.h <<_ACEOF |
8744 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | ||||
8745 | _ACEOF | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8746 | |
8747 | |||||
8748 | # The cast to long int works around a bug in the HP C Compiler | ||||
8749 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8750 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8751 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
8753 | $as_echo_n "checking size of void *... " >&6; } | ||||
8754 | if ${ac_cv_sizeof_void_p+:} false; then : | ||||
8755 | $as_echo_n "(cached) " >&6 | ||||
8756 | else | ||||
8757 | 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 +0000 | [diff] [blame] | 8758 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8759 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8760 | if test "$ac_cv_type_void_p" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8761 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8762 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8763 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8764 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8765 | else |
8766 | ac_cv_sizeof_void_p=0 | ||||
8767 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
8772 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8773 | |
8774 | |||||
8775 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8776 | cat >>confdefs.h <<_ACEOF |
8777 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | ||||
8778 | _ACEOF | ||||
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8779 | |
8780 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8781 | # The cast to long int works around a bug in the HP C Compiler |
8782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8784 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
8786 | $as_echo_n "checking size of short... " >&6; } | ||||
8787 | if ${ac_cv_sizeof_short+:} false; then : | ||||
8788 | $as_echo_n "(cached) " >&6 | ||||
8789 | else | ||||
8790 | 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 +0000 | [diff] [blame] | 8791 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8792 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8793 | if test "$ac_cv_type_short" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8794 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8796 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8797 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8798 | else |
8799 | ac_cv_sizeof_short=0 | ||||
8800 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
8805 | $as_echo "$ac_cv_sizeof_short" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8806 | |
8807 | |||||
8808 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8809 | cat >>confdefs.h <<_ACEOF |
8810 | #define SIZEOF_SHORT $ac_cv_sizeof_short | ||||
8811 | _ACEOF | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8812 | |
8813 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8814 | # The cast to long int works around a bug in the HP C Compiler |
8815 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8816 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8817 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
8819 | $as_echo_n "checking size of float... " >&6; } | ||||
8820 | if ${ac_cv_sizeof_float+:} false; then : | ||||
8821 | $as_echo_n "(cached) " >&6 | ||||
8822 | else | ||||
8823 | 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 +0000 | [diff] [blame] | 8824 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8825 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 | if test "$ac_cv_type_float" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8829 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8830 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8831 | else |
8832 | ac_cv_sizeof_float=0 | ||||
8833 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8836 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
8838 | $as_echo "$ac_cv_sizeof_float" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8839 | |
8840 | |||||
8841 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8842 | cat >>confdefs.h <<_ACEOF |
8843 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | ||||
8844 | _ACEOF | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8845 | |
8846 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8847 | # The cast to long int works around a bug in the HP C Compiler |
8848 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8849 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8850 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
8852 | $as_echo_n "checking size of double... " >&6; } | ||||
8853 | if ${ac_cv_sizeof_double+:} false; then : | ||||
8854 | $as_echo_n "(cached) " >&6 | ||||
8855 | else | ||||
8856 | 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 +0000 | [diff] [blame] | 8857 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8858 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8859 | if test "$ac_cv_type_double" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8862 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8863 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8864 | else |
8865 | ac_cv_sizeof_double=0 | ||||
8866 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
8871 | $as_echo "$ac_cv_sizeof_double" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8872 | |
8873 | |||||
8874 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8875 | cat >>confdefs.h <<_ACEOF |
8876 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | ||||
8877 | _ACEOF | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8878 | |
8879 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8880 | # The cast to long int works around a bug in the HP C Compiler |
8881 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8882 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8883 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
8885 | $as_echo_n "checking size of fpos_t... " >&6; } | ||||
8886 | if ${ac_cv_sizeof_fpos_t+:} false; then : | ||||
8887 | $as_echo_n "(cached) " >&6 | ||||
8888 | else | ||||
8889 | 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 +0000 | [diff] [blame] | 8890 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8891 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8892 | if test "$ac_cv_type_fpos_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8895 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8896 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8897 | else |
8898 | ac_cv_sizeof_fpos_t=0 | ||||
8899 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
8904 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8905 | |
8906 | |||||
8907 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8908 | cat >>confdefs.h <<_ACEOF |
8909 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | ||||
8910 | _ACEOF | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8911 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8912 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8913 | # The cast to long int works around a bug in the HP C Compiler |
8914 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8915 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8916 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
8918 | $as_echo_n "checking size of size_t... " >&6; } | ||||
8919 | if ${ac_cv_sizeof_size_t+:} false; then : | ||||
8920 | $as_echo_n "(cached) " >&6 | ||||
8921 | else | ||||
8922 | 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 +0000 | [diff] [blame] | 8923 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8924 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8925 | if test "$ac_cv_type_size_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8926 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8927 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8928 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8929 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8930 | else |
8931 | ac_cv_sizeof_size_t=0 | ||||
8932 | fi | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8933 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8934 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8935 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
8937 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8938 | |
8939 | |||||
8940 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8941 | cat >>confdefs.h <<_ACEOF |
8942 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||||
8943 | _ACEOF | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8944 | |
8945 | |||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8946 | # The cast to long int works around a bug in the HP C Compiler |
8947 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8948 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8949 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
8951 | $as_echo_n "checking size of pid_t... " >&6; } | ||||
8952 | if ${ac_cv_sizeof_pid_t+:} false; then : | ||||
8953 | $as_echo_n "(cached) " >&6 | ||||
8954 | else | ||||
8955 | 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 +0000 | [diff] [blame] | 8956 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8957 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8958 | if test "$ac_cv_type_pid_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8960 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8961 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8962 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8963 | else |
8964 | ac_cv_sizeof_pid_t=0 | ||||
8965 | fi | ||||
8966 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8967 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8968 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
8970 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8971 | |
8972 | |||||
8973 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8974 | cat >>confdefs.h <<_ACEOF |
8975 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | ||||
8976 | _ACEOF | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8977 | |
8978 | |||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8979 | # The cast to long int works around a bug in the HP C Compiler |
8980 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8981 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8982 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
8984 | $as_echo_n "checking size of uintptr_t... " >&6; } | ||||
8985 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | ||||
8986 | $as_echo_n "(cached) " >&6 | ||||
8987 | else | ||||
8988 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8989 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8990 | else |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8991 | if test "$ac_cv_type_uintptr_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8994 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
8995 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8996 | else | ||||
8997 | ac_cv_sizeof_uintptr_t=0 | ||||
8998 | fi | ||||
8999 | fi | ||||
9000 | |||||
9001 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
9003 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9004 | |
9005 | |||||
9006 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9007 | cat >>confdefs.h <<_ACEOF |
9008 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | ||||
9009 | _ACEOF | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9010 | |
9011 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9012 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9013 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
9015 | $as_echo_n "checking for long double... " >&6; } | ||||
9016 | if ${ac_cv_type_long_double+:} false; then : | ||||
9017 | $as_echo_n "(cached) " >&6 | ||||
9018 | else | ||||
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9019 | if test "$GCC" = yes; then |
9020 | ac_cv_type_long_double=yes | ||||
9021 | else | ||||
9022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9023 | /* end confdefs.h. */ | ||||
9024 | /* The Stardent Vistra knows sizeof (long double), but does | ||||
9025 | not support it. */ | ||||
9026 | long double foo = 0.0L; | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9027 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9028 | main () |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9029 | { |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9030 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
9031 | sizeof (double) <= sizeof (long double))]; | ||||
9032 | test_array [0] = 0; | ||||
9033 | return test_array [0]; | ||||
9034 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9035 | ; |
9036 | return 0; | ||||
9037 | } | ||||
9038 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9039 | if ac_fn_c_try_compile "$LINENO"; then : |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9040 | ac_cv_type_long_double=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9041 | else |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9042 | ac_cv_type_long_double=no |
9043 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9045 | fi |
9046 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
9048 | $as_echo "$ac_cv_type_long_double" >&6; } | ||||
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9049 | if test $ac_cv_type_long_double = yes; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9050 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9051 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9052 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9053 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9054 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9055 | # The cast to long int works around a bug in the HP C Compiler |
9056 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9057 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9058 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
9060 | $as_echo_n "checking size of long double... " >&6; } | ||||
9061 | if ${ac_cv_sizeof_long_double+:} false; then : | ||||
9062 | $as_echo_n "(cached) " >&6 | ||||
9063 | else | ||||
9064 | 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 +0000 | [diff] [blame] | 9065 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9066 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9067 | if test "$ac_cv_type_long_double" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9068 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9069 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9070 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9071 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9072 | else |
9073 | ac_cv_sizeof_long_double=0 | ||||
9074 | fi | ||||
9075 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9076 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9077 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
9079 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9080 | |
9081 | |||||
9082 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9083 | cat >>confdefs.h <<_ACEOF |
9084 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | ||||
9085 | _ACEOF | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9086 | |
9087 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9088 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9089 | # The cast to long int works around a bug in the HP C Compiler |
9090 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9091 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9092 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
9094 | $as_echo_n "checking size of _Bool... " >&6; } | ||||
9095 | if ${ac_cv_sizeof__Bool+:} false; then : | ||||
9096 | $as_echo_n "(cached) " >&6 | ||||
9097 | else | ||||
9098 | 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 +0000 | [diff] [blame] | 9099 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9100 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9101 | if test "$ac_cv_type__Bool" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9104 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9105 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9106 | else |
9107 | ac_cv_sizeof__Bool=0 | ||||
9108 | fi | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9109 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9110 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9111 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
9113 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9114 | |
9115 | |||||
9116 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9117 | cat >>confdefs.h <<_ACEOF |
9118 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | ||||
9119 | _ACEOF | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9120 | |
9121 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9122 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9123 | # The cast to long int works around a bug in the HP C Compiler |
9124 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9125 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9126 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
9128 | $as_echo_n "checking size of off_t... " >&6; } | ||||
9129 | if ${ac_cv_sizeof_off_t+:} false; then : | ||||
9130 | $as_echo_n "(cached) " >&6 | ||||
9131 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9132 | 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 +0000 | [diff] [blame] | 9133 | #ifdef HAVE_SYS_TYPES_H |
9134 | #include <sys/types.h> | ||||
9135 | #endif | ||||
9136 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9137 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9138 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9139 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9140 | if test "$ac_cv_type_off_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9141 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9143 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9144 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9145 | else |
9146 | ac_cv_sizeof_off_t=0 | ||||
9147 | fi | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9148 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9149 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9150 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
9152 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9154 | |
9155 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9156 | cat >>confdefs.h <<_ACEOF |
9157 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | ||||
9158 | _ACEOF | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9159 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9160 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9161 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
9163 | $as_echo_n "checking whether to enable large file support... " >&6; } | ||||
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 9164 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9165 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9166 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9167 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9168 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9170 | $as_echo "yes" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9171 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9173 | $as_echo "no" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9174 | fi |
9175 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9176 | # The cast to long int works around a bug in the HP C Compiler |
9177 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9178 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9179 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
9181 | $as_echo_n "checking size of time_t... " >&6; } | ||||
9182 | if ${ac_cv_sizeof_time_t+:} false; then : | ||||
9183 | $as_echo_n "(cached) " >&6 | ||||
9184 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9185 | 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 +0000 | [diff] [blame] | 9186 | #ifdef HAVE_SYS_TYPES_H |
9187 | #include <sys/types.h> | ||||
9188 | #endif | ||||
9189 | #ifdef HAVE_TIME_H | ||||
9190 | #include <time.h> | ||||
9191 | #endif | ||||
9192 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9193 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9194 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9195 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9196 | if test "$ac_cv_type_time_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9197 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9199 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9200 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9201 | else |
9202 | ac_cv_sizeof_time_t=0 | ||||
9203 | fi | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9204 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9205 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9206 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
9208 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9210 | |
9211 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9212 | cat >>confdefs.h <<_ACEOF |
9213 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | ||||
9214 | _ACEOF | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9215 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9216 | |
9217 | |||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9218 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9219 | ac_save_cc="$CC" |
9220 | if test "$ac_cv_kpthread" = "yes" | ||||
9221 | then CC="$CC -Kpthread" | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9222 | elif test "$ac_cv_kthread" = "yes" |
9223 | then CC="$CC -Kthread" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9224 | elif test "$ac_cv_pthread" = "yes" |
9225 | then CC="$CC -pthread" | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9226 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9227 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
9229 | $as_echo_n "checking for pthread_t... " >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9230 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9232 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9233 | |
9234 | #include <pthread.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9236 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9237 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9238 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9239 | ; |
9240 | return 0; | ||||
9241 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9244 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9245 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9246 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | ||||
9249 | $as_echo "$have_pthread_t" >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9250 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9251 | # The cast to long int works around a bug in the HP C Compiler |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9252 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
9253 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9254 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
9256 | $as_echo_n "checking size of pthread_t... " >&6; } | ||||
9257 | if ${ac_cv_sizeof_pthread_t+:} false; then : | ||||
9258 | $as_echo_n "(cached) " >&6 | ||||
9259 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9260 | 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 +0000 | [diff] [blame] | 9261 | #ifdef HAVE_PTHREAD_H |
9262 | #include <pthread.h> | ||||
9263 | #endif | ||||
9264 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9265 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9266 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9267 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9268 | if test "$ac_cv_type_pthread_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9269 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9270 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9271 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9272 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9273 | else |
9274 | ac_cv_sizeof_pthread_t=0 | ||||
9275 | fi | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9276 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9277 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9278 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
9280 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9282 | |
9283 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9284 | cat >>confdefs.h <<_ACEOF |
9285 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | ||||
9286 | _ACEOF | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9287 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9288 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9289 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9290 | |
9291 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. | ||||
9292 | # This checking will be unnecessary after removing deprecated TLS API. | ||||
9293 | # The cast to long int works around a bug in the HP C Compiler | ||||
9294 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9295 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9296 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 |
9298 | $as_echo_n "checking size of pthread_key_t... " >&6; } | ||||
9299 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : | ||||
9300 | $as_echo_n "(cached) " >&6 | ||||
9301 | else | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9302 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9303 | "; then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9304 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9305 | else |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9306 | if test "$ac_cv_type_pthread_key_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9309 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) |
9310 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9311 | else | ||||
9312 | ac_cv_sizeof_pthread_key_t=0 | ||||
9313 | fi | ||||
9314 | fi | ||||
9315 | |||||
9316 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 |
9318 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9319 | |
9320 | |||||
9321 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9322 | cat >>confdefs.h <<_ACEOF |
9323 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t | ||||
9324 | _ACEOF | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9325 | |
9326 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 |
9328 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9329 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then |
9330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9331 | /* end confdefs.h. */ | ||||
9332 | #include <pthread.h> | ||||
9333 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9334 | main () |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9335 | { |
9336 | pthread_key_t k; k * 1; | ||||
9337 | ; | ||||
9338 | return 0; | ||||
9339 | } | ||||
9340 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9341 | if ac_fn_c_try_compile "$LINENO"; then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9342 | ac_pthread_key_t_is_arithmetic_type=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9343 | else |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9344 | ac_pthread_key_t_is_arithmetic_type=no |
9345 | |||||
9346 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 | ||||
9349 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9350 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then |
9351 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9352 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9353 | |
9354 | fi | ||||
9355 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9357 | $as_echo "no" >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9358 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9359 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9361 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9362 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9363 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9364 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
9365 | ;; | ||||
9366 | Darwin/*) | ||||
9367 | OTHER_LIBTOOL_OPT="" | ||||
9368 | ;; | ||||
9369 | esac | ||||
9370 | |||||
9371 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9372 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9373 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9374 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9375 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
9376 | if test "${enable_universalsdk}"; then | ||||
9377 | : | ||||
9378 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9379 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9380 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9381 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9382 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9383 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9384 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9385 | if test ${gcc_version} '<' 4.0 |
9386 | then | ||||
9387 | LIBTOOL_CRUFT="-lcc_dynamic" | ||||
9388 | else | ||||
9389 | LIBTOOL_CRUFT="" | ||||
9390 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9391 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9392 | ac_osx_32bit=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9393 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9395 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9396 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9397 | #include <unistd.h> |
9398 | int main(int argc, char*argv[]) | ||||
9399 | { | ||||
9400 | if (sizeof(long) == 4) { | ||||
9401 | return 0; | ||||
9402 | } else { | ||||
9403 | return 1; | ||||
9404 | } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9405 | } |
9406 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9407 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9408 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9409 | ac_osx_32bit=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9410 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9411 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9412 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9413 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9414 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9415 | fi |
9416 | |||||
9417 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9418 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9419 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9420 | i386) |
9421 | MACOSX_DEFAULT_ARCH="i386" | ||||
9422 | ;; | ||||
9423 | ppc) | ||||
9424 | MACOSX_DEFAULT_ARCH="ppc" | ||||
9425 | ;; | ||||
9426 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9427 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9428 | ;; |
9429 | esac | ||||
9430 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9431 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9432 | i386) |
9433 | MACOSX_DEFAULT_ARCH="x86_64" | ||||
9434 | ;; | ||||
9435 | ppc) | ||||
9436 | MACOSX_DEFAULT_ARCH="ppc64" | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9437 | ;; |
9438 | arm64) | ||||
9439 | MACOSX_DEFAULT_ARCH="arm64" | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9440 | ;; |
9441 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9442 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9443 | ;; |
9444 | esac | ||||
9445 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9446 | fi |
9447 | |||||
9448 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||||
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9449 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9450 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9451 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
9453 | $as_echo_n "checking for --enable-framework... " >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9454 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9455 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9456 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9458 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9459 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9460 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9463 | $as_echo "yes" >&6; } | ||||
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9464 | if test $enable_shared = "yes" |
9465 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9466 | 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 +0000 | [diff] [blame] | 9467 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9468 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9470 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9471 | fi |
9472 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
9474 | $as_echo_n "checking for dyld... " >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9475 | case $ac_sys_system/$ac_sys_release in |
9476 | Darwin/*) | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9477 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9478 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
9481 | $as_echo "always on for Darwin" >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9482 | ;; |
9483 | *) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9485 | $as_echo "no" >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9486 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9487 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9488 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9489 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9491 | |
9492 | |||||
9493 | |||||
9494 | |||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9495 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9496 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9497 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
9498 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
9500 | $as_echo_n "checking the extension of shared libraries... " >&6; } | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9501 | if test -z "$SHLIB_SUFFIX"; then |
9502 | case $ac_sys_system in | ||||
9503 | hp*|HP*) | ||||
9504 | case `uname -m` in | ||||
9505 | ia64) SHLIB_SUFFIX=.so;; | ||||
9506 | *) SHLIB_SUFFIX=.sl;; | ||||
9507 | esac | ||||
9508 | ;; | ||||
9509 | CYGWIN*) SHLIB_SUFFIX=.dll;; | ||||
9510 | *) SHLIB_SUFFIX=.so;; | ||||
9511 | esac | ||||
9512 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
9514 | $as_echo "$SHLIB_SUFFIX" >&6; } | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9515 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9516 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 9517 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9518 | # (Shared libraries in this instance are shared modules to be loaded into |
9519 | # Python, as opposed to building Python itself as a shared library.) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
9521 | $as_echo_n "checking LDSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9522 | if test -z "$LDSHARED" |
9523 | then | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9524 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9525 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9526 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9527 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9528 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9530 | if test "$GCC" = "yes" ; then |
9531 | LDSHARED='$(CC) -shared' | ||||
9532 | LDCXXSHARED='$(CXX) -shared' | ||||
9533 | else | ||||
9534 | LDSHARED='$(CC) -G' | ||||
9535 | LDCXXSHARED='$(CXX) -G' | ||||
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9536 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9537 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9538 | if test "$GCC" = "yes" ; then |
9539 | LDSHARED='$(CC) -shared' | ||||
9540 | LDCXXSHARED='$(CXX) -shared' | ||||
9541 | else | ||||
Rob Boehne | 9d25bd1 | 2017-12-06 11:58:17 -0600 | [diff] [blame] | 9542 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-21 21:43:09 -0800 | [diff] [blame] | 9543 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9544 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9545 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9546 | LDSHARED='$(CC) -bundle' |
9547 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9548 | if test "$enable_framework" ; then |
9549 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9550 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9551 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9552 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9553 | else |
9554 | # No framework. Ignore undefined symbols, assuming they come from Python | ||||
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9555 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9556 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9557 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9558 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9559 | LDSHARED='$(CC) -bundle' |
9560 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9561 | if test "$enable_framework" ; then |
9562 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9563 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9564 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9565 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9566 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9567 | # No framework, use the Python app as bundle-loader |
9568 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9569 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9570 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9571 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9572 | Darwin/*) |
9573 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | ||||
9574 | # This allows an extension to be used in any Python | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9575 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9576 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
9577 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
9578 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | ||||
9579 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
9580 | if test ${dep_target_major} -eq 10 && \ | ||||
9581 | test ${dep_target_minor} -le 2 | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9582 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9583 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9584 | LDSHARED='$(CC) -bundle' |
9585 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9586 | if test "$enable_framework" ; then |
9587 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9588 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9589 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9590 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9591 | else |
9592 | # No framework, use the Python app as bundle-loader | ||||
9593 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
9594 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9595 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9596 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9597 | else |
9598 | # building for OS X 10.3 and later | ||||
9599 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | ||||
9600 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | ||||
9601 | BLDSHARED="$LDSHARED" | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9602 | fi |
9603 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9604 | Linux*|GNU*|QNX*|VxWorks*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9605 | LDSHARED='$(CC) -shared' |
9606 | LDCXXSHARED='$(CXX) -shared';; | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9607 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9608 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9609 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9610 | LDSHARED='$(CC) -shared' |
9611 | LDCXXSHARED='$(CXX) -shared' | ||||
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9612 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9613 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9614 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9615 | OpenBSD*) |
9616 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | ||||
9617 | then | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9618 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9619 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9620 | else |
9621 | case `uname -r` in | ||||
9622 | [01].* | 2.[0-7] | 2.[0-7].*) | ||||
9623 | LDSHARED="ld -Bshareable ${LDFLAGS}" | ||||
9624 | ;; | ||||
9625 | *) | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9626 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9627 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9628 | ;; |
9629 | esac | ||||
9630 | fi;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9631 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9632 | LDSHARED='$(CC) -shared' |
9633 | LDCXXSHARED='$(CXX) -shared';; | ||||
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9634 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9635 | if test "$GCC" = "yes" ; then |
9636 | LDSHARED='$(CC) -shared' | ||||
9637 | LDCXXSHARED='$(CXX) -shared' | ||||
9638 | else | ||||
9639 | LDSHARED='$(CC) -G' | ||||
9640 | LDCXXSHARED='$(CXX) -G' | ||||
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9641 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9642 | SCO_SV*) |
9643 | LDSHARED='$(CC) -Wl,-G,-Bexport' | ||||
9644 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | ||||
9645 | CYGWIN*) | ||||
9646 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | ||||
9647 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9648 | *) LDSHARED="ld";; |
9649 | esac | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9650 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
9652 | $as_echo "$LDSHARED" >&6; } | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9653 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9654 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9655 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9656 | # library (module) -- this is only needed for a few systems |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
9658 | $as_echo_n "checking CCSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9659 | if test -z "$CCSHARED" |
9660 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9661 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9662 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9663 | then CCSHARED="-fPIC"; |
9664 | elif test `uname -p` = sparc; | ||||
9665 | then CCSHARED="-xcode=pic32"; | ||||
9666 | else CCSHARED="-Kpic"; | ||||
9667 | fi;; | ||||
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9668 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9669 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9670 | else CCSHARED="+z"; |
9671 | fi;; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9672 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9673 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9674 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9675 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9676 | if test "$GCC" = "yes" |
9677 | then CCSHARED="-fPIC" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9678 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9679 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9680 | SCO_SV*) |
9681 | if test "$GCC" = "yes" | ||||
9682 | then CCSHARED="-fPIC" | ||||
9683 | else CCSHARED="-Kpic -belf" | ||||
9684 | fi;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9685 | VxWorks*) |
9686 | CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9687 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9688 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
9690 | $as_echo "$CCSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9691 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9692 | # the python executable -- this is only needed for a few systems |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
9694 | $as_echo_n "checking LINKFORSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9695 | if test -z "$LINKFORSHARED" |
9696 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9697 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9698 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9699 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9700 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
9701 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9702 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9703 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9704 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9705 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9706 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 9707 | |
9708 | # Issue #18075: the default maximum stack size (8MBytes) is too | ||||
9709 | # small for the default recursion limit. Increase the stack size | ||||
9710 | # to ensure that tests don't crash | ||||
Ronald Oussoren | 1a057ba | 2019-08-01 07:43:07 +0200 | [diff] [blame] | 9711 | # Note: This matches the value of THREAD_STACK_SIZE in |
9712 | # thread_pthread.h | ||||
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 9713 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
9714 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9715 | if test "$enable_framework" |
9716 | then | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9717 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9718 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9719 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9720 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9721 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9722 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9723 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9724 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
9725 | then | ||||
9726 | LINKFORSHARED="-Wl,--export-dynamic" | ||||
9727 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9728 | SunOS/5*) case $CC in |
9729 | *gcc*) | ||||
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9730 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9731 | then |
9732 | LINKFORSHARED="-Xlinker --export-dynamic" | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9733 | fi;; |
9734 | esac;; | ||||
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9735 | CYGWIN*) |
9736 | if test $enable_shared = "no" | ||||
9737 | then | ||||
9738 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | ||||
9739 | fi;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9740 | QNX*) |
9741 | # -Wl,-E causes the symbols to be added to the dynamic | ||||
9742 | # symbol table so that they can be found when a module | ||||
9743 | # is loaded. -N 2048K causes the stack size to be set | ||||
9744 | # to 2048 kilobytes so that the stack doesn't overflow | ||||
9745 | # when running test_compile.py. | ||||
9746 | LINKFORSHARED='-Wl,-E -N 2048K';; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9747 | VxWorks*) |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 9748 | LINKFORSHARED='-Wl,-export-dynamic';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9749 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9750 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
9752 | $as_echo "$LINKFORSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9753 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9754 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9755 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
9757 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9758 | if test ! "$LIBRARY" = "$LDLIBRARY" |
9759 | then | ||||
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9760 | case $ac_sys_system in |
9761 | CYGWIN*) | ||||
9762 | # Cygwin needs CCSHARED when building extension DLLs | ||||
9763 | # but not when building the interpreter DLL. | ||||
9764 | CFLAGSFORSHARED='';; | ||||
9765 | *) | ||||
9766 | CFLAGSFORSHARED='$(CCSHARED)' | ||||
9767 | esac | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9768 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
9770 | $as_echo "$CFLAGSFORSHARED" >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9771 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9772 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
9773 | # library (with --enable-shared). | ||||
9774 | # For platforms on which shared libraries are not allowed to have unresolved | ||||
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9775 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
9776 | # if it is not required, since it creates a dependency of the shared library | ||||
9777 | # to LIBS. This, in turn, means that applications linking the shared libpython | ||||
9778 | # don't need to link LIBS explicitly. The default should be only changed | ||||
9779 | # on systems where this approach causes problems. | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9780 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
9782 | $as_echo_n "checking SHLIBS... " >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9783 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9784 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9785 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9786 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
9788 | $as_echo "$SHLIBS" >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9789 | |
9790 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9791 | # checks for libraries |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
9793 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | ||||
9794 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | ||||
9795 | $as_echo_n "(cached) " >&6 | ||||
9796 | else | ||||
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9797 | ac_check_lib_save_LIBS=$LIBS |
9798 | LIBS="-lsendfile $LIBS" | ||||
9799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9800 | /* end confdefs.h. */ | ||||
9801 | |||||
9802 | /* Override any GCC internal prototype to avoid an error. | ||||
9803 | Use char because int might match the return type of a GCC | ||||
9804 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9805 | #ifdef __cplusplus |
9806 | extern "C" | ||||
9807 | #endif | ||||
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9808 | char sendfile (); |
9809 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9810 | main () |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9811 | { |
9812 | return sendfile (); | ||||
9813 | ; | ||||
9814 | return 0; | ||||
9815 | } | ||||
9816 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9817 | if ac_fn_c_try_link "$LINENO"; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9818 | ac_cv_lib_sendfile_sendfile=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9819 | else |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9820 | ac_cv_lib_sendfile_sendfile=no |
9821 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9822 | rm -f core conftest.err conftest.$ac_objext \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9823 | conftest$ac_exeext conftest.$ac_ext |
9824 | LIBS=$ac_check_lib_save_LIBS | ||||
9825 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
9827 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | ||||
9828 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | ||||
9829 | cat >>confdefs.h <<_ACEOF | ||||
9830 | #define HAVE_LIBSENDFILE 1 | ||||
9831 | _ACEOF | ||||
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9832 | |
9833 | LIBS="-lsendfile $LIBS" | ||||
9834 | |||||
9835 | fi | ||||
9836 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9838 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||||
9839 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||||
9840 | $as_echo_n "(cached) " >&6 | ||||
9841 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9842 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9843 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9847 | /* Override any GCC internal prototype to avoid an error. |
9848 | Use char because int might match the return type of a GCC | ||||
9849 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9850 | #ifdef __cplusplus |
9851 | extern "C" | ||||
9852 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9855 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9857 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | ; |
9859 | return 0; | ||||
9860 | } | ||||
9861 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9862 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 | ac_cv_lib_dl_dlopen=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9864 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9865 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9866 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9867 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9868 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9870 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9872 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||||
9873 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||||
9874 | cat >>confdefs.h <<_ACEOF | ||||
9875 | #define HAVE_LIBDL 1 | ||||
9876 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9877 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9878 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9880 | fi |
9881 | # Dynamic linking for SunOS/Solaris and SYSV | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9883 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||||
9884 | if ${ac_cv_lib_dld_shl_load+:} false; then : | ||||
9885 | $as_echo_n "(cached) " >&6 | ||||
9886 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9888 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9890 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9892 | /* Override any GCC internal prototype to avoid an error. |
9893 | Use char because int might match the return type of a GCC | ||||
9894 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9895 | #ifdef __cplusplus |
9896 | extern "C" | ||||
9897 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9900 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9901 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9902 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9903 | ; |
9904 | return 0; | ||||
9905 | } | ||||
9906 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9907 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | ac_cv_lib_dld_shl_load=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9909 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9910 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9911 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9912 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9913 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9915 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9917 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||||
9918 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | ||||
9919 | cat >>confdefs.h <<_ACEOF | ||||
9920 | #define HAVE_LIBDLD 1 | ||||
9921 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9922 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9923 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9924 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9925 | fi |
9926 | # Dynamic linking for HP-UX | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9927 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9928 | # checks for uuid.h location |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9929 | for ac_header in uuid/uuid.h uuid.h |
9930 | do : | ||||
9931 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
9932 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
9933 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
9934 | cat >>confdefs.h <<_ACEOF | ||||
9935 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
9936 | _ACEOF | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9937 | |
9938 | fi | ||||
9939 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9940 | done |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9941 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9942 | |
9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 | ||||
9944 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } | ||||
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9946 | /* end confdefs.h. */ | ||||
9947 | #include <uuid/uuid.h> | ||||
9948 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9949 | main () |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9950 | { |
9951 | |||||
9952 | #ifndef uuid_generate_time_safe | ||||
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 9953 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9954 | #endif |
9955 | |||||
9956 | ; | ||||
9957 | return 0; | ||||
9958 | } | ||||
9959 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9960 | if ac_fn_c_try_compile "$LINENO"; then : |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9961 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9962 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9963 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9965 | $as_echo "yes" >&6; } | ||||
9966 | else | ||||
9967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9968 | $as_echo "no" >&6; } | ||||
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9969 | |
9970 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9972 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9973 | # AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) |
David Carlier | b4ebaa7 | 2018-01-09 19:38:07 +0000 | [diff] [blame] | 9974 | # FreeBSD and OpenBSD provides support as well |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 |
9976 | $as_echo_n "checking for uuid_create... " >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9978 | /* end confdefs.h. */ | ||||
9979 | #include <uuid.h> | ||||
9980 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9981 | main () |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9982 | { |
9983 | |||||
9984 | #ifndef uuid_create | ||||
9985 | void *x = uuid_create | ||||
9986 | #endif | ||||
9987 | |||||
9988 | ; | ||||
9989 | return 0; | ||||
9990 | } | ||||
9991 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9992 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9993 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9994 | $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9995 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9997 | $as_echo "yes" >&6; } | ||||
9998 | else | ||||
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10000 | $as_echo "no" >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10001 | |
10002 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10004 | |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10005 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
10006 | # stream in big-endian byte-order | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 |
10008 | $as_echo_n "checking for uuid_enc_be... " >&6; } | ||||
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10010 | /* end confdefs.h. */ | ||||
10011 | #include <uuid.h> | ||||
10012 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10013 | main () |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10014 | { |
10015 | |||||
10016 | #ifndef uuid_enc_be | ||||
Ned Deily | ced0adb | 2018-06-09 18:19:57 -0400 | [diff] [blame] | 10017 | void *x = uuid_enc_be |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10018 | #endif |
10019 | |||||
10020 | ; | ||||
10021 | return 0; | ||||
10022 | } | ||||
10023 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10024 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10025 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10026 | $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10027 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10029 | $as_echo "yes" >&6; } | ||||
10030 | else | ||||
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10032 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10033 | |
10034 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10036 | |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 10037 | # 'Real Time' functions on Solaris |
10038 | # posix4 on Solaris 2.6 | ||||
10039 | # pthread (first!) on Linux | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
10041 | $as_echo_n "checking for library containing sem_init... " >&6; } | ||||
10042 | if ${ac_cv_search_sem_init+:} false; then : | ||||
10043 | $as_echo_n "(cached) " >&6 | ||||
10044 | else | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10045 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10052 | #ifdef __cplusplus |
10053 | extern "C" | ||||
10054 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10057 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10058 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10059 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | ; |
10061 | return 0; | ||||
10062 | } | ||||
10063 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10064 | for ac_lib in '' pthread rt posix4; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10065 | if test -z "$ac_lib"; then |
10066 | ac_res="none required" | ||||
10067 | else | ||||
10068 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10069 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10070 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10071 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10072 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10073 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10074 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10075 | conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10076 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10077 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10078 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10079 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10080 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10081 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10082 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10083 | ac_cv_search_sem_init=no |
10084 | fi | ||||
10085 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10086 | LIBS=$ac_func_search_save_LIBS |
10087 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
10089 | $as_echo "$ac_cv_search_sem_init" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10090 | ac_res=$ac_cv_search_sem_init |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10091 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10093 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10094 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 10095 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10096 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10097 | # check if we need libintl for locale functions |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
10099 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | ||||
10100 | if ${ac_cv_lib_intl_textdomain+:} false; then : | ||||
10101 | $as_echo_n "(cached) " >&6 | ||||
10102 | else | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10103 | ac_check_lib_save_LIBS=$LIBS |
10104 | LIBS="-lintl $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10106 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10107 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10108 | /* Override any GCC internal prototype to avoid an error. |
10109 | Use char because int might match the return type of a GCC | ||||
10110 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10111 | #ifdef __cplusplus |
10112 | extern "C" | ||||
10113 | #endif | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10114 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10115 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10116 | main () |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10117 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10118 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10119 | ; |
10120 | return 0; | ||||
10121 | } | ||||
10122 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10123 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10124 | ac_cv_lib_intl_textdomain=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10125 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10126 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10127 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10128 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10129 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10130 | LIBS=$ac_check_lib_save_LIBS |
10131 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
10133 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | ||||
10134 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10135 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10136 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10137 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 10138 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10139 | fi |
10140 | |||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10141 | |
10142 | # checks for system dependent C++ extensions support | ||||
10143 | case "$ac_sys_system" in | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10144 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
10145 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10147 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10148 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 10149 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10150 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10151 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10153 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | ; |
10155 | return 0; | ||||
10156 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10158 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10159 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10160 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10161 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10162 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10165 | $as_echo "yes" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10166 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10167 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10168 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10170 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10171 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10172 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10173 | rm -f core conftest.err conftest.$ac_objext \ |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10174 | conftest$ac_exeext conftest.$ac_ext |
10175 | # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag | ||||
10176 | # of the AIX system used to build/package Python executable. This tag serves | ||||
10177 | # as a baseline for bdist module packages | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 |
10179 | $as_echo_n "checking for the system builddate... " >&6; } | ||||
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10180 | AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') |
10181 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10182 | cat >>confdefs.h <<_ACEOF |
10183 | #define AIX_BUILDDATE $AIX_BUILDDATE | ||||
10184 | _ACEOF | ||||
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10185 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 |
10187 | $as_echo "$AIX_BUILDDATE" >&6; } | ||||
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10188 | ;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10189 | *) ;; |
10190 | esac | ||||
10191 | |||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10192 | # check for systems that require aligned memory access |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
10194 | $as_echo_n "checking aligned memory access is required... " >&6; } | ||||
10195 | if ${ac_cv_aligned_required+:} false; then : | ||||
10196 | $as_echo_n "(cached) " >&6 | ||||
10197 | else | ||||
10198 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10199 | ac_cv_aligned_required=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10200 | else |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10202 | /* end confdefs.h. */ | ||||
10203 | |||||
10204 | int main() | ||||
10205 | { | ||||
10206 | char s[16]; | ||||
10207 | int i, *p1, *p2; | ||||
10208 | for (i=0; i < 16; i++) | ||||
10209 | s[i] = i; | ||||
10210 | p1 = (int*)(s+1); | ||||
10211 | p2 = (int*)(s+2); | ||||
10212 | if (*p1 == *p2) | ||||
10213 | return 1; | ||||
10214 | return 0; | ||||
10215 | } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10216 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10217 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10218 | ac_cv_aligned_required=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10219 | else |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10220 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10221 | fi |
10222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
10223 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
10224 | fi | ||||
10225 | |||||
10226 | |||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10227 | fi |
10228 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 |
10230 | $as_echo "$ac_cv_aligned_required" >&6; } | ||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10231 | if test "$ac_cv_aligned_required" = yes ; then |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10232 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10233 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10234 | |
10235 | fi | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10236 | |
10237 | # str, bytes and memoryview hash algorithm | ||||
10238 | |||||
10239 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
10241 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10242 | |
10243 | # Check whether --with-hash_algorithm was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10244 | if test "${with_hash_algorithm+set}" = set; then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10245 | withval=$with_hash_algorithm; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10247 | $as_echo "$withval" >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10248 | case "$withval" in |
10249 | siphash24) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10250 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10251 | |
10252 | ;; | ||||
10253 | fnv) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10254 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10255 | |
10256 | ;; | ||||
10257 | *) | ||||
10258 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | ||||
10259 | ;; | ||||
10260 | esac | ||||
10261 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10262 | else |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | ||||
10264 | $as_echo "default" >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10265 | fi |
10266 | |||||
10267 | |||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10268 | validate_tzpath() { |
10269 | # Checks that each element of hte path is an absolute path | ||||
10270 | if test -z "$1"; then | ||||
10271 | # Empty string is allowed: it indicates no system TZPATH | ||||
10272 | return 0 | ||||
10273 | fi | ||||
10274 | |||||
10275 | # Bad paths are those that don't start with / | ||||
Paul Ganssle | 0f66498 | 2021-01-12 13:17:52 -0500 | [diff] [blame] | 10276 | if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10277 | as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 |
10278 | return 1; | ||||
10279 | fi | ||||
10280 | } | ||||
10281 | |||||
10282 | TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 |
10284 | $as_echo_n "checking for --with-tzpath... " >&6; } | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10285 | |
10286 | # Check whether --with-tzpath was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10287 | if test "${with_tzpath+set}" = set; then : |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10288 | withval=$with_tzpath; |
10289 | case "$withval" in | ||||
10290 | yes) | ||||
10291 | as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 | ||||
10292 | ;; | ||||
10293 | *) | ||||
10294 | validate_tzpath "$withval" | ||||
10295 | TZPATH="$withval" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 |
10297 | $as_echo "\"$withval\"" >&6; } | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10298 | ;; |
10299 | esac | ||||
10300 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10301 | else |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10302 | validate_tzpath "$TZPATH" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 |
10304 | $as_echo "\"$TZPATH\"" >&6; } | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10305 | fi |
10306 | |||||
10307 | |||||
10308 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
10310 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10311 | |
10312 | # Check whether --with-address_sanitizer was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10313 | if test "${with_address_sanitizer+set}" = set; then : |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10314 | withval=$with_address_sanitizer; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10316 | $as_echo "$withval" >&6; } | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10317 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
10318 | LDFLAGS="-fsanitize=address $LDFLAGS" | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10319 | # ASan works by controlling memory allocation, our own malloc interferes. |
10320 | with_pymalloc="no" | ||||
10321 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10322 | else |
10323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10324 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10325 | fi |
10326 | |||||
10327 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 |
10329 | $as_echo_n "checking for --with-memory-sanitizer... " >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10330 | |
10331 | # Check whether --with-memory_sanitizer was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10332 | if test "${with_memory_sanitizer+set}" = set; then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10333 | withval=$with_memory_sanitizer; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10335 | $as_echo "$withval" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10336 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" |
10337 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" | ||||
10338 | # MSan works by controlling memory allocation, our own malloc interferes. | ||||
10339 | with_pymalloc="no" | ||||
10340 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10341 | else |
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10343 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10344 | fi |
10345 | |||||
10346 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 |
10348 | $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10349 | |
10350 | # Check whether --with-undefined_behavior_sanitizer was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10351 | if test "${with_undefined_behavior_sanitizer+set}" = set; then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10352 | withval=$with_undefined_behavior_sanitizer; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10354 | $as_echo "$withval" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10355 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" |
10356 | LDFLAGS="-fsanitize=undefined $LDFLAGS" | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10357 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10358 | else |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10360 | $as_echo "no" >&6; } | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10361 | fi |
10362 | |||||
10363 | |||||
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10364 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
10366 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | ||||
10367 | if ${ac_cv_lib_nsl_t_open+:} false; then : | ||||
10368 | $as_echo_n "(cached) " >&6 | ||||
10369 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10371 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10375 | /* Override any GCC internal prototype to avoid an error. |
10376 | Use char because int might match the return type of a GCC | ||||
10377 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10378 | #ifdef __cplusplus |
10379 | extern "C" | ||||
10380 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10382 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10383 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10385 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | ; |
10387 | return 0; | ||||
10388 | } | ||||
10389 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10390 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | ac_cv_lib_nsl_t_open=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10392 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10393 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10394 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10395 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10396 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10398 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
10400 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | ||||
10401 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | ||||
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10402 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10403 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10404 | # SVR4 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
10406 | $as_echo_n "checking for socket in -lsocket... " >&6; } | ||||
10407 | if ${ac_cv_lib_socket_socket+:} false; then : | ||||
10408 | $as_echo_n "(cached) " >&6 | ||||
10409 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10411 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10413 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10414 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10415 | /* Override any GCC internal prototype to avoid an error. |
10416 | Use char because int might match the return type of a GCC | ||||
10417 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10418 | #ifdef __cplusplus |
10419 | extern "C" | ||||
10420 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10423 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10425 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | ; |
10427 | return 0; | ||||
10428 | } | ||||
10429 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10430 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10431 | ac_cv_lib_socket_socket=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10432 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10433 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10434 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10435 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10436 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10438 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
10440 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | ||||
10441 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | ||||
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10442 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10443 | fi |
10444 | # SVR4 sockets | ||||
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 10445 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
10447 | $as_echo_n "checking for --with-libs... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10449 | # Check whether --with-libs was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10450 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10451 | withval=$with_libs; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10453 | $as_echo "$withval" >&6; } | ||||
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10454 | LIBS="$withval $LIBS" |
10455 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10456 | else |
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10458 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10459 | fi |
10460 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10461 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10462 | |
10463 | |||||
10464 | |||||
10465 | |||||
10466 | |||||
10467 | |||||
Victor Stinner | b477d19 | 2020-01-22 22:48:16 +0100 | [diff] [blame] | 10468 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10469 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
10470 | if test -n "$ac_tool_prefix"; then | ||||
10471 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
10472 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10474 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10475 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||||
10476 | $as_echo_n "(cached) " >&6 | ||||
10477 | else | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10478 | case $PKG_CONFIG in |
10479 | [\\/]* | ?:[\\/]*) | ||||
10480 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||||
10481 | ;; | ||||
10482 | *) | ||||
10483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10484 | for as_dir in $PATH | ||||
10485 | do | ||||
10486 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10487 | test -z "$as_dir" && as_dir=. |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10488 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
10490 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10492 | break 2 |
10493 | fi | ||||
10494 | done | ||||
10495 | done | ||||
10496 | IFS=$as_save_IFS | ||||
10497 | |||||
10498 | ;; | ||||
10499 | esac | ||||
10500 | fi | ||||
10501 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||||
10502 | if test -n "$PKG_CONFIG"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
10504 | $as_echo "$PKG_CONFIG" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10505 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10507 | $as_echo "no" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10508 | fi |
10509 | |||||
10510 | |||||
10511 | fi | ||||
10512 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||||
10513 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||||
10514 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
10515 | set dummy pkg-config; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10517 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10518 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||||
10519 | $as_echo_n "(cached) " >&6 | ||||
10520 | else | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10521 | case $ac_pt_PKG_CONFIG in |
10522 | [\\/]* | ?:[\\/]*) | ||||
10523 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||||
10524 | ;; | ||||
10525 | *) | ||||
10526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10527 | for as_dir in $PATH | ||||
10528 | do | ||||
10529 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10530 | test -z "$as_dir" && as_dir=. |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10531 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
10533 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10535 | break 2 |
10536 | fi | ||||
10537 | done | ||||
10538 | done | ||||
10539 | IFS=$as_save_IFS | ||||
10540 | |||||
10541 | ;; | ||||
10542 | esac | ||||
10543 | fi | ||||
10544 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||||
10545 | if test -n "$ac_pt_PKG_CONFIG"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
10547 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10548 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10550 | $as_echo "no" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10551 | fi |
10552 | |||||
10553 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||||
10554 | PKG_CONFIG="" | ||||
10555 | else | ||||
10556 | case $cross_compiling:$ac_tool_warned in | ||||
10557 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10559 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10560 | ac_tool_warned=yes ;; |
10561 | esac | ||||
10562 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||||
10563 | fi | ||||
10564 | else | ||||
10565 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||||
10566 | fi | ||||
10567 | |||||
10568 | fi | ||||
10569 | if test -n "$PKG_CONFIG"; then | ||||
10570 | _pkg_min_version=0.9.0 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
10572 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10573 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10575 | $as_echo "yes" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10576 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10578 | $as_echo "no" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10579 | PKG_CONFIG="" |
10580 | fi | ||||
10581 | fi | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10582 | |
10583 | # Check for use of the system expat library | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
10585 | $as_echo_n "checking for --with-system-expat... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10586 | |
10587 | # Check whether --with-system_expat was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10588 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10589 | withval=$with_system_expat; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10590 | else |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10591 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10592 | fi |
10593 | |||||
10594 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
10596 | $as_echo "$with_system_expat" >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10597 | |
10598 | # Check for use of the system libffi library | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
10600 | $as_echo_n "checking for --with-system-ffi... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10601 | |
10602 | # Check whether --with-system_ffi was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10603 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10604 | withval=$with_system_ffi; |
10605 | fi | ||||
10606 | |||||
10607 | |||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10608 | if test "$ac_sys_system" = "Darwin" |
10609 | then | ||||
10610 | case "$with_system_ffi" in | ||||
10611 | "") | ||||
10612 | with_system_ffi="no" | ||||
10613 | ;; | ||||
10614 | yes|no) | ||||
10615 | ;; | ||||
10616 | *) | ||||
10617 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | ||||
10618 | ;; | ||||
10619 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
10621 | $as_echo "$with_system_ffi" >&6; } | ||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10622 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10624 | $as_echo "yes" >&6; } | ||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10625 | if test "$with_system_ffi" != "" |
10626 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 |
10628 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | ||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10629 | fi |
10630 | with_system_ffi="yes" | ||||
10631 | fi | ||||
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10632 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10633 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10634 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
10635 | else | ||||
10636 | LIBFFI_INCLUDEDIR="" | ||||
10637 | fi | ||||
10638 | |||||
10639 | |||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10640 | # Check for use of the system libmpdec library |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
10642 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10643 | |
10644 | # Check whether --with-system_libmpdec was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10645 | if test "${with_system_libmpdec+set}" = set; then : |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10646 | withval=$with_system_libmpdec; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10647 | else |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10648 | with_system_libmpdec="no" |
10649 | fi | ||||
10650 | |||||
10651 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
10653 | $as_echo "$with_system_libmpdec" >&6; } | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10654 | |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10655 | # Check whether _decimal should use a coroutine-local or thread-local context |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 |
10657 | $as_echo_n "checking for --with-decimal-contextvar... " >&6; } | ||||
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10658 | |
10659 | # Check whether --with-decimal_contextvar was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10660 | if test "${with_decimal_contextvar+set}" = set; then : |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10661 | withval=$with_decimal_contextvar; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10662 | else |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10663 | with_decimal_contextvar="yes" |
10664 | fi | ||||
10665 | |||||
10666 | |||||
10667 | if test "$with_decimal_contextvar" != "no" | ||||
10668 | then | ||||
10669 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10670 | $as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10671 | |
10672 | fi | ||||
10673 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 |
10675 | $as_echo "$with_decimal_contextvar" >&6; } | ||||
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10676 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10677 | # Check for support for loadable sqlite extensions |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
10679 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10680 | # Check whether --enable-loadable-sqlite-extensions was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10681 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10682 | enableval=$enable_loadable_sqlite_extensions; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10683 | else |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10684 | enable_loadable_sqlite_extensions="no" |
10685 | fi | ||||
10686 | |||||
10687 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
10689 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10690 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10691 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
10692 | |||||
10693 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
10695 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10696 | |
10697 | # Check whether --with-tcltk-includes was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10698 | if test "${with_tcltk_includes+set}" = set; then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10699 | withval=$with_tcltk_includes; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10700 | else |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10701 | with_tcltk_includes="default" |
10702 | fi | ||||
10703 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
10705 | $as_echo "$with_tcltk_includes" >&6; } | ||||
10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | ||||
10707 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10708 | |
10709 | # Check whether --with-tcltk-libs was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10710 | if test "${with_tcltk_libs+set}" = set; then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10711 | withval=$with_tcltk_libs; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10712 | else |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10713 | with_tcltk_libs="default" |
10714 | fi | ||||
10715 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
10717 | $as_echo "$with_tcltk_libs" >&6; } | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10718 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
10719 | then | ||||
10720 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | ||||
10721 | then | ||||
10722 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | ||||
10723 | fi | ||||
Manolis Stamatogiannakis | d202794 | 2021-03-01 04:29:57 +0100 | [diff] [blame] | 10724 | if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then |
10725 | TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`" | ||||
10726 | TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`" | ||||
10727 | else | ||||
10728 | TCLTK_INCLUDES="" | ||||
10729 | TCLTK_LIBS="" | ||||
10730 | fi | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10731 | else |
10732 | TCLTK_INCLUDES="$with_tcltk_includes" | ||||
10733 | TCLTK_LIBS="$with_tcltk_libs" | ||||
10734 | fi | ||||
10735 | |||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10736 | # Check for --with-dbmliborder |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
10738 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10739 | |
10740 | # Check whether --with-dbmliborder was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10741 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10742 | withval=$with_dbmliborder; |
10743 | if test x$with_dbmliborder = xyes | ||||
10744 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10745 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10746 | else |
10747 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | ||||
10748 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||||
10749 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10750 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10751 | fi |
10752 | done | ||||
10753 | fi | ||||
10754 | fi | ||||
10755 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
10757 | $as_echo "$with_dbmliborder" >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10759 | # Templates for things AC_DEFINEd more than once. |
10760 | # For a single AC_DEFINE, no template is needed. | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10761 | |
10762 | |||||
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10763 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10764 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10765 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10766 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10767 | |
10768 | posix_threads=yes | ||||
Jesús Cea | 52d1b86 | 2019-09-28 03:44:32 +0200 | [diff] [blame] | 10769 | if test "$ac_sys_system" = "SunOS"; then |
10770 | CFLAGS="$CFLAGS -D_REENTRANT" | ||||
10771 | fi | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10772 | elif test "$ac_cv_kpthread" = "yes" |
10773 | then | ||||
10774 | CC="$CC -Kpthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10775 | if test "$ac_cv_cxx_thread" = "yes"; then |
10776 | CXX="$CXX -Kpthread" | ||||
10777 | fi | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10778 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10779 | elif test "$ac_cv_kthread" = "yes" |
10780 | then | ||||
10781 | CC="$CC -Kthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10782 | if test "$ac_cv_cxx_thread" = "yes"; then |
10783 | CXX="$CXX -Kthread" | ||||
10784 | fi | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10785 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10786 | elif test "$ac_cv_pthread" = "yes" |
10787 | then | ||||
10788 | CC="$CC -pthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10789 | if test "$ac_cv_cxx_thread" = "yes"; then |
10790 | CXX="$CXX -pthread" | ||||
10791 | fi | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10792 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10793 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10794 | if test ! -z "$withval" -a -d "$withval" |
10795 | then LDFLAGS="$LDFLAGS -L$withval" | ||||
10796 | fi | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10797 | |
10798 | # According to the POSIX spec, a pthreads implementation must | ||||
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10799 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
10800 | # (e.g. gnu pth with pthread emulation) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
10802 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10804 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10805 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10806 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10807 | #ifdef _POSIX_THREADS |
10808 | yes | ||||
10809 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10810 | |
10811 | _ACEOF | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10813 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10814 | unistd_defines_pthreads=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10815 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10816 | unistd_defines_pthreads=no |
10817 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10818 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10819 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
10821 | $as_echo "$unistd_defines_pthreads" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10822 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10823 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10824 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10825 | # Just looking for pthread_create in libpthread is not enough: |
10826 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | ||||
10827 | # So we really have to include pthread.h, and then link. | ||||
10828 | _libs=$LIBS | ||||
10829 | LIBS="$LIBS -lpthread" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
10831 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10833 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10834 | |
10835 | #include <stdio.h> | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10836 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10837 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10838 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10840 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10841 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10842 | |
10843 | pthread_create (NULL, NULL, start_routine, NULL) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10844 | ; |
10845 | return 0; | ||||
10846 | } | ||||
10847 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10848 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10849 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10851 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10852 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10853 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10855 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10856 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10857 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10858 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10859 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10860 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10861 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10862 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10863 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
10865 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | ||||
10866 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | ||||
10867 | $as_echo_n "(cached) " >&6 | ||||
10868 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10869 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10870 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10874 | /* Override any GCC internal prototype to avoid an error. |
10875 | Use char because int might match the return type of a GCC | ||||
10876 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10877 | #ifdef __cplusplus |
10878 | extern "C" | ||||
10879 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10880 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10882 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10884 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10885 | ; |
10886 | return 0; | ||||
10887 | } | ||||
10888 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10889 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | ac_cv_lib_pthreads_pthread_create=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10891 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10892 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10893 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10894 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10895 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10896 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10897 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
10899 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | ||||
10900 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | ||||
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10901 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10902 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10903 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10904 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10905 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10906 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
10908 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | ||||
10909 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | ||||
10910 | $as_echo_n "(cached) " >&6 | ||||
10911 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10913 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10915 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10916 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10917 | /* Override any GCC internal prototype to avoid an error. |
10918 | Use char because int might match the return type of a GCC | ||||
10919 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10920 | #ifdef __cplusplus |
10921 | extern "C" | ||||
10922 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10923 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10925 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10926 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10927 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10928 | ; |
10929 | return 0; | ||||
10930 | } | ||||
10931 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10932 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | ac_cv_lib_c_r_pthread_create=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10934 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10935 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10936 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10937 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10938 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10939 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10940 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
10942 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | ||||
10943 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | ||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10944 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10945 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10946 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10947 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10948 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10949 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
10951 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | ||||
10952 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | ||||
10953 | $as_echo_n "(cached) " >&6 | ||||
10954 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10956 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10958 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10959 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10960 | /* Override any GCC internal prototype to avoid an error. |
10961 | Use char because int might match the return type of a GCC | ||||
10962 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10963 | #ifdef __cplusplus |
10964 | extern "C" | ||||
10965 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10966 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10967 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10968 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10970 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10971 | ; |
10972 | return 0; | ||||
10973 | } | ||||
10974 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10975 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | ac_cv_lib_pthread___pthread_create_system=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10977 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10978 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10979 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10980 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10981 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10983 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
10985 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | ||||
10986 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | ||||
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10987 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10988 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10989 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10990 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10991 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10992 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
10994 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | ||||
10995 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | ||||
10996 | $as_echo_n "(cached) " >&6 | ||||
10997 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10998 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10999 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11003 | /* Override any GCC internal prototype to avoid an error. |
11004 | Use char because int might match the return type of a GCC | ||||
11005 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11006 | #ifdef __cplusplus |
11007 | extern "C" | ||||
11008 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11011 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11013 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | ; |
11015 | return 0; | ||||
11016 | } | ||||
11017 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11018 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | ac_cv_lib_cma_pthread_create=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11020 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11022 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11023 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11024 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11026 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
11028 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | ||||
11029 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | ||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11030 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11031 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11032 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11033 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11034 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11035 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11036 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
11037 | |||||
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11038 | fi |
11039 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11040 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11041 | fi |
11042 | |||||
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11043 | fi |
11044 | |||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11045 | fi |
11046 | |||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11047 | fi |
11048 | |||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11049 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11050 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11051 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11052 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
11054 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | ||||
11055 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | ||||
11056 | $as_echo_n "(cached) " >&6 | ||||
11057 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11058 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11059 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11061 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11063 | /* Override any GCC internal prototype to avoid an error. |
11064 | Use char because int might match the return type of a GCC | ||||
11065 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11066 | #ifdef __cplusplus |
11067 | extern "C" | ||||
11068 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11071 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11072 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11073 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | ; |
11075 | return 0; | ||||
11076 | } | ||||
11077 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11078 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11079 | ac_cv_lib_mpc_usconfig=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11080 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11081 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11082 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11083 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11084 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11086 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
11088 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | ||||
11089 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11090 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11091 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11092 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11093 | fi |
11094 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11095 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11096 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11097 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11098 | if test "$posix_threads" = "yes"; then |
11099 | if test "$unistd_defines_pthreads" = "no"; then | ||||
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11100 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11101 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11102 | |
11103 | fi | ||||
11104 | |||||
11105 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | ||||
11106 | case $ac_sys_system/$ac_sys_release in | ||||
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 11107 | SunOS/5.6) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11108 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11109 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11110 | ;; |
11111 | SunOS/5.8) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11112 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11113 | |
11114 | ;; | ||||
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 11115 | AIX/*) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11116 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 11117 | |
11118 | ;; | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11119 | esac |
11120 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
11122 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | ||||
11123 | if ${ac_cv_pthread_system_supported+:} false; then : | ||||
11124 | $as_echo_n "(cached) " >&6 | ||||
11125 | else | ||||
11126 | if test "$cross_compiling" = yes; then : | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11127 | ac_cv_pthread_system_supported=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11128 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11130 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 11131 | |
11132 | #include <stdio.h> | ||||
11133 | #include <pthread.h> | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11134 | void *foo(void *parm) { |
11135 | return NULL; | ||||
11136 | } | ||||
11137 | main() { | ||||
11138 | pthread_attr_t attr; | ||||
11139 | pthread_t id; | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 11140 | if (pthread_attr_init(&attr)) return (-1); |
11141 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); | ||||
11142 | if (pthread_create(&id, &attr, foo, NULL)) return (-1); | ||||
11143 | return (0); | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11144 | } |
11145 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11146 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11147 | ac_cv_pthread_system_supported=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11148 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11149 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11150 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11151 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11152 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11153 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11154 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11155 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11156 | fi |
11157 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
11159 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11160 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
11161 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11162 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11163 | |
11164 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11165 | for ac_func in pthread_sigmask |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11166 | do : |
11167 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11168 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
11169 | cat >>confdefs.h <<_ACEOF | ||||
11170 | #define HAVE_PTHREAD_SIGMASK 1 | ||||
11171 | _ACEOF | ||||
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11172 | case $ac_sys_system in |
11173 | CYGWIN*) | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11174 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11175 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11176 | |
11177 | ;; | ||||
11178 | esac | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11179 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11180 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11181 | |
11182 | for ac_func in pthread_getcpuclockid | ||||
11183 | do : | ||||
11184 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" | ||||
11185 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : | ||||
11186 | cat >>confdefs.h <<_ACEOF | ||||
11187 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 | ||||
11188 | _ACEOF | ||||
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 11189 | |
11190 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11191 | done |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 11192 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11193 | fi |
11194 | |||||
11195 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11196 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
11199 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11200 | # Check whether --enable-ipv6 was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11201 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11202 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11203 | no) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11205 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11206 | ipv6=no |
11207 | ;; | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11208 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11209 | $as_echo "yes" >&6; } | ||||
11210 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11211 | |
11212 | ipv6=yes | ||||
11213 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11218 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11219 | /* AF_INET6 available check */ |
11220 | #include <sys/types.h> | ||||
11221 | #include <sys/socket.h> | ||||
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11222 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11223 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11224 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11225 | int domain = AF_INET6; |
11226 | ; | ||||
11227 | return 0; | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11228 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11230 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11231 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11233 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11234 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11235 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11236 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11237 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11239 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11240 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11241 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11242 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11244 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11245 | if test "$ipv6" = "yes"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
11247 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11249 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11250 | |
11251 | #include <sys/types.h> | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11252 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11253 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11254 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11256 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11257 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | ; |
11259 | return 0; | ||||
11260 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11263 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11264 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11266 | $as_echo "yes" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11267 | ipv6=yes |
11268 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11269 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11270 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11272 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11273 | ipv6=no |
11274 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11275 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11277 | fi |
11278 | |||||
11279 | if test "$ipv6" = "yes"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11280 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11281 | |
11282 | fi | ||||
11283 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11284 | fi |
11285 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11286 | |
11287 | ipv6type=unknown | ||||
11288 | ipv6lib=none | ||||
11289 | ipv6trylibc=no | ||||
11290 | |||||
11291 | if test "$ipv6" = "yes"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
11293 | $as_echo_n "checking ipv6 stack type... " >&6; } | ||||
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11294 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
11295 | do | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11296 | case $i in |
11297 | inria) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11299 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11300 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11301 | #include <netinet/in.h> |
11302 | #ifdef IPV6_INRIA_VERSION | ||||
11303 | yes | ||||
11304 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11307 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11308 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11309 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11310 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11311 | |
11312 | ;; | ||||
11313 | kame) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11315 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11316 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11317 | #include <netinet/in.h> |
11318 | #ifdef __KAME__ | ||||
11319 | yes | ||||
11320 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11321 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11323 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11324 | ipv6type=$i; |
11325 | ipv6lib=inet6 | ||||
11326 | ipv6libdir=/usr/local/v6/lib | ||||
11327 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11328 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11329 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11330 | |
11331 | ;; | ||||
11332 | linux-glibc) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11334 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11335 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11336 | #include <features.h> |
11337 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | ||||
11338 | yes | ||||
11339 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11340 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11342 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11343 | ipv6type=$i; |
11344 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11345 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11346 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11347 | |
11348 | ;; | ||||
11349 | linux-inet6) | ||||
11350 | if test -d /usr/inet6; then | ||||
11351 | ipv6type=$i | ||||
11352 | ipv6lib=inet6 | ||||
11353 | ipv6libdir=/usr/inet6/lib | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11354 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11355 | fi |
11356 | ;; | ||||
11357 | solaris) | ||||
11358 | if test -f /etc/netconfig; then | ||||
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 11359 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11360 | ipv6type=$i |
11361 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11362 | fi |
11363 | fi | ||||
11364 | ;; | ||||
11365 | toshiba) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11367 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11368 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11369 | #include <sys/param.h> |
11370 | #ifdef _TOSHIBA_INET6 | ||||
11371 | yes | ||||
11372 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11374 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11375 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11376 | ipv6type=$i; |
11377 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11378 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11379 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11380 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11381 | |
11382 | ;; | ||||
11383 | v6d) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11385 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11386 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11387 | #include </usr/local/v6/include/sys/v6config.h> |
11388 | #ifdef __V6D__ | ||||
11389 | yes | ||||
11390 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11392 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11393 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11394 | ipv6type=$i; |
11395 | ipv6lib=v6; | ||||
11396 | ipv6libdir=/usr/local/v6/lib; | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11397 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11398 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11399 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11400 | |
11401 | ;; | ||||
11402 | zeta) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11404 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11405 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11406 | #include <sys/param.h> |
11407 | #ifdef _ZETA_MINAMI_INET6 | ||||
11408 | yes | ||||
11409 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11410 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11412 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11413 | ipv6type=$i; |
11414 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11415 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11416 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11417 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11418 | |
11419 | ;; | ||||
11420 | esac | ||||
11421 | if test "$ipv6type" != "unknown"; then | ||||
11422 | break | ||||
11423 | fi | ||||
11424 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
11426 | $as_echo "$ipv6type" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11427 | fi |
11428 | |||||
11429 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||||
11430 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | ||||
11431 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | ||||
11432 | echo "using lib$ipv6lib" | ||||
11433 | else | ||||
11434 | if test $ipv6trylibc = "yes"; then | ||||
11435 | echo "using libc" | ||||
11436 | else | ||||
11437 | echo 'Fatal: no $ipv6lib library found. cannot continue.' | ||||
11438 | echo "You need to fetch lib$ipv6lib.a from appropriate" | ||||
11439 | echo 'ipv6 kit and compile beforehand.' | ||||
11440 | exit 1 | ||||
11441 | fi | ||||
11442 | fi | ||||
11443 | fi | ||||
11444 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
11446 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | ||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11448 | /* end confdefs.h. */ | ||||
11449 | /* CAN_RAW_FD_FRAMES available check */ | ||||
11450 | #include <linux/can/raw.h> | ||||
11451 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11452 | main () |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11453 | { |
11454 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | ||||
11455 | ; | ||||
11456 | return 0; | ||||
11457 | } | ||||
11458 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11459 | if ac_fn_c_try_compile "$LINENO"; then : |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11460 | |
11461 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11462 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11463 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11465 | $as_echo "yes" >&6; } | ||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11466 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11467 | else |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11468 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11470 | $as_echo "no" >&6; } | ||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11471 | |
11472 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11474 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 |
11476 | $as_echo_n "checking for CAN_RAW_JOIN_FILTERS... " >&6; } | ||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11478 | /* end confdefs.h. */ | ||||
11479 | |||||
11480 | #include <linux/can/raw.h> | ||||
11481 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11482 | main () |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11483 | { |
11484 | int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; | ||||
11485 | ; | ||||
11486 | return 0; | ||||
11487 | } | ||||
11488 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11489 | if ac_fn_c_try_compile "$LINENO"; then : |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11490 | |
11491 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11492 | $as_echo "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11493 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11495 | $as_echo "yes" >&6; } | ||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11496 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11497 | else |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11498 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11500 | $as_echo "no" >&6; } | ||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11501 | |
11502 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11504 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11505 | # Check for --with-doc-strings |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
11507 | $as_echo_n "checking for --with-doc-strings... " >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11508 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11509 | # Check whether --with-doc-strings was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11510 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11511 | withval=$with_doc_strings; |
11512 | fi | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11513 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11514 | |
11515 | if test -z "$with_doc_strings" | ||||
11516 | then with_doc_strings="yes" | ||||
11517 | fi | ||||
11518 | if test "$with_doc_strings" != "no" | ||||
11519 | then | ||||
11520 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11521 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11522 | |
11523 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
11525 | $as_echo "$with_doc_strings" >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11526 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11527 | # Check for Python-specific malloc support |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
11529 | $as_echo_n "checking for --with-pymalloc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11530 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11531 | # Check whether --with-pymalloc was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11532 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11533 | withval=$with_pymalloc; |
11534 | fi | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11535 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11536 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11537 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11538 | then |
11539 | with_pymalloc="yes" | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11540 | fi |
11541 | if test "$with_pymalloc" != "no" | ||||
11542 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11544 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11545 | |
11546 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
11548 | $as_echo "$with_pymalloc" >&6; } | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11549 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11550 | # Check for --with-c-locale-coercion |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 |
11552 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } | ||||
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11553 | |
11554 | # Check whether --with-c-locale-coercion was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11555 | if test "${with_c_locale_coercion+set}" = set; then : |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11556 | withval=$with_c_locale_coercion; |
11557 | fi | ||||
11558 | |||||
11559 | |||||
11560 | if test -z "$with_c_locale_coercion" | ||||
11561 | then | ||||
11562 | with_c_locale_coercion="yes" | ||||
11563 | fi | ||||
11564 | if test "$with_c_locale_coercion" != "no" | ||||
11565 | then | ||||
11566 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11567 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11568 | |
11569 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 |
11571 | $as_echo "$with_c_locale_coercion" >&6; } | ||||
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11572 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11573 | # Check for Valgrind support |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
11575 | $as_echo_n "checking for --with-valgrind... " >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11576 | |
11577 | # Check whether --with-valgrind was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11578 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11579 | withval=$with_valgrind; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11580 | else |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11581 | with_valgrind=no |
11582 | fi | ||||
11583 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
11585 | $as_echo "$with_valgrind" >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11586 | if test "$with_valgrind" != no; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11587 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
11588 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11589 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11590 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11591 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11592 | else |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11593 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11594 | |
11595 | fi | ||||
11596 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11597 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11598 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11599 | fi |
11600 | |||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11601 | # Check for DTrace support |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 |
11603 | $as_echo_n "checking for --with-dtrace... " >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11604 | |
11605 | # Check whether --with-dtrace was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11606 | if test "${with_dtrace+set}" = set; then : |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11607 | withval=$with_dtrace; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11608 | else |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11609 | with_dtrace=no |
11610 | fi | ||||
11611 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 |
11613 | $as_echo "$with_dtrace" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11614 | |
11615 | |||||
11616 | |||||
11617 | |||||
11618 | |||||
11619 | DTRACE= | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11620 | DTRACE_HEADERS= |
11621 | DTRACE_OBJS= | ||||
11622 | |||||
11623 | if test "$with_dtrace" = "yes" | ||||
11624 | then | ||||
11625 | # Extract the first word of "dtrace", so it can be a program name with args. | ||||
11626 | set dummy dtrace; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11628 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
11629 | if ${ac_cv_path_DTRACE+:} false; then : | ||||
11630 | $as_echo_n "(cached) " >&6 | ||||
11631 | else | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11632 | case $DTRACE in |
11633 | [\\/]* | ?:[\\/]*) | ||||
11634 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | ||||
11635 | ;; | ||||
11636 | *) | ||||
11637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11638 | for as_dir in $PATH | ||||
11639 | do | ||||
11640 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11641 | test -z "$as_dir" && as_dir=. |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
11644 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | ||||
11645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11646 | break 2 |
11647 | fi | ||||
11648 | done | ||||
11649 | done | ||||
11650 | IFS=$as_save_IFS | ||||
11651 | |||||
11652 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | ||||
11653 | ;; | ||||
11654 | esac | ||||
11655 | fi | ||||
11656 | DTRACE=$ac_cv_path_DTRACE | ||||
11657 | if test -n "$DTRACE"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
11659 | $as_echo "$DTRACE" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11660 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11662 | $as_echo "no" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11663 | fi |
11664 | |||||
11665 | |||||
11666 | if test "$DTRACE" = "not found"; then | ||||
11667 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | ||||
11668 | fi | ||||
11669 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11670 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11671 | |
11672 | DTRACE_HEADERS="Include/pydtrace_probes.h" | ||||
11673 | |||||
11674 | # On OS X, DTrace providers do not need to be explicitly compiled and | ||||
11675 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | ||||
11676 | # generation flag '-G'. We check for presence of this flag, rather than | ||||
11677 | # hardcoding support by OS, in the interest of robustness. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 |
11679 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | ||||
11680 | if ${ac_cv_dtrace_link+:} false; then : | ||||
11681 | $as_echo_n "(cached) " >&6 | ||||
11682 | else | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11683 | ac_cv_dtrace_link=no |
Jakub Kulík | 5c8f537 | 2019-01-24 18:29:48 +0100 | [diff] [blame] | 11684 | echo 'BEGIN{}' > conftest.d |
Petr Viktorin | 3c97e1e | 2020-03-11 14:27:42 +0100 | [diff] [blame] | 11685 | "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11686 | ac_cv_dtrace_link=yes |
11687 | |||||
11688 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 |
11690 | $as_echo "$ac_cv_dtrace_link" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11691 | if test "$ac_cv_dtrace_link" = "yes"; then |
11692 | DTRACE_OBJS="Python/pydtrace.o" | ||||
11693 | fi | ||||
11694 | fi | ||||
11695 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11696 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11697 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11698 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11699 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11700 | # the dlopen() function means we might want to use dynload_shlib.o. some |
Kevin Adler | c79667f | 2020-11-16 09:16:10 -0600 | [diff] [blame] | 11701 | # platforms have dlopen(), but don't want to use it. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11702 | for ac_func in dlopen |
11703 | do : | ||||
11704 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||||
11705 | if test "x$ac_cv_func_dlopen" = xyes; then : | ||||
11706 | cat >>confdefs.h <<_ACEOF | ||||
11707 | #define HAVE_DLOPEN 1 | ||||
11708 | _ACEOF | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11709 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11710 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11711 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11712 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11713 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11714 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
11715 | # loading of modules. | ||||
11716 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
11718 | $as_echo_n "checking DYNLOADFILE... " >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11719 | if test -z "$DYNLOADFILE" |
11720 | then | ||||
11721 | case $ac_sys_system/$ac_sys_release in | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11722 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11723 | *) |
11724 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | ||||
11725 | # out any dynamic loading | ||||
11726 | if test "$ac_cv_func_dlopen" = yes | ||||
11727 | then DYNLOADFILE="dynload_shlib.o" | ||||
11728 | else DYNLOADFILE="dynload_stub.o" | ||||
11729 | fi | ||||
11730 | ;; | ||||
11731 | esac | ||||
11732 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
11734 | $as_echo "$DYNLOADFILE" >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11735 | if test "$DYNLOADFILE" != "dynload_stub.o" |
11736 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11738 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11739 | |
11740 | fi | ||||
11741 | |||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11742 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
11743 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11744 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
11746 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11747 | if test -z "$MACHDEP_OBJS" |
11748 | then | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11749 | MACHDEP_OBJS=$extra_machdep_objs |
11750 | else | ||||
11751 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11752 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11753 | if test -z "$MACHDEP_OBJS"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
11755 | $as_echo "none" >&6; } | ||||
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11756 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
11758 | $as_echo "$MACHDEP_OBJS" >&6; } | ||||
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11759 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11760 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11761 | # checks for library functions |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11762 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
11763 | clock confstr close_range copy_file_range ctermid dup3 execv explicit_bzero \ | ||||
11764 | explicit_memset faccessat fchmod fchmodat fchown fchownat \ | ||||
11765 | fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | ||||
11766 | futimens futimes gai_strerror getentropy \ | ||||
11767 | getgrgid_r getgrnam_r \ | ||||
11768 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | ||||
11769 | getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ | ||||
11770 | if_nameindex \ | ||||
11771 | initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ | ||||
11772 | memrchr mbrtowc mkdirat mkfifo \ | ||||
11773 | madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | ||||
11774 | posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \ | ||||
11775 | pthread_condattr_setclock pthread_init pthread_kill pwrite pwritev pwritev2 \ | ||||
11776 | readlink readlinkat readv realpath renameat \ | ||||
11777 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | ||||
11778 | setgid sethostname \ | ||||
11779 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | ||||
11780 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | ||||
11781 | sched_rr_get_interval \ | ||||
11782 | sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ | ||||
11783 | sigtimedwait sigwait sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \ | ||||
11784 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | ||||
11785 | truncate uname unlinkat utimensat utimes vfork waitid waitpid wait3 wait4 \ | ||||
11786 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn | ||||
11787 | do : | ||||
11788 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
11789 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
11790 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
11791 | cat >>confdefs.h <<_ACEOF | ||||
11792 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
11793 | _ACEOF | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11794 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11795 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11796 | done |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11797 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11798 | |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11799 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
11800 | # links. Some libc implementations have a stub lchmod implementation that always | ||||
11801 | # returns an error. | ||||
11802 | if test "$MACHDEP" != linux; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11803 | for ac_func in lchmod |
11804 | do : | ||||
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11805 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11806 | if test "x$ac_cv_func_lchmod" = xyes; then : |
11807 | cat >>confdefs.h <<_ACEOF | ||||
11808 | #define HAVE_LCHMOD 1 | ||||
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 11809 | _ACEOF |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11810 | |
11811 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11812 | done |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11813 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11814 | fi |
11815 | |||||
11816 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11817 | #include <dirent.h> |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11818 | " |
11819 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11820 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11821 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11822 | |
11823 | fi | ||||
11824 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11825 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11826 | # For some functions, having a definition is not sufficient, since |
11827 | # we want to take their address. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
11829 | $as_echo_n "checking for chroot... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11831 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11832 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11833 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11834 | main () |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11835 | { |
11836 | void *x=chroot | ||||
11837 | ; | ||||
11838 | return 0; | ||||
11839 | } | ||||
11840 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11841 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11842 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11843 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11844 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11846 | $as_echo "yes" >&6; } | ||||
11847 | else | ||||
11848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11849 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11850 | |
11851 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | ||||
11854 | $as_echo_n "checking for link... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11856 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11857 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11858 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11859 | main () |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11860 | { |
11861 | void *x=link | ||||
11862 | ; | ||||
11863 | return 0; | ||||
11864 | } | ||||
11865 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11866 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11867 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11868 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11869 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11871 | $as_echo "yes" >&6; } | ||||
11872 | else | ||||
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11874 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11875 | |
11876 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | ||||
11879 | $as_echo_n "checking for symlink... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11881 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11882 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11883 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11884 | main () |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11885 | { |
11886 | void *x=symlink | ||||
11887 | ; | ||||
11888 | return 0; | ||||
11889 | } | ||||
11890 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11891 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11892 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11893 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11894 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11896 | $as_echo "yes" >&6; } | ||||
11897 | else | ||||
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11899 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11900 | |
11901 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | ||||
11904 | $as_echo_n "checking for fchdir... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11906 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11907 | #include <unistd.h> |
11908 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11909 | main () |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11910 | { |
11911 | void *x=fchdir | ||||
11912 | ; | ||||
11913 | return 0; | ||||
11914 | } | ||||
11915 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11916 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11917 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11918 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11919 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11921 | $as_echo "yes" >&6; } | ||||
11922 | else | ||||
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11924 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11925 | |
11926 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | ||||
11929 | $as_echo_n "checking for fsync... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11931 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11932 | #include <unistd.h> |
11933 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11934 | main () |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11935 | { |
11936 | void *x=fsync | ||||
11937 | ; | ||||
11938 | return 0; | ||||
11939 | } | ||||
11940 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11941 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11942 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11943 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11944 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11946 | $as_echo "yes" >&6; } | ||||
11947 | else | ||||
11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11949 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11950 | |
11951 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | ||||
11954 | $as_echo_n "checking for fdatasync... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11956 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11957 | #include <unistd.h> |
11958 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11959 | main () |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11960 | { |
11961 | void *x=fdatasync | ||||
11962 | ; | ||||
11963 | return 0; | ||||
11964 | } | ||||
11965 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11966 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11967 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11968 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11969 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11971 | $as_echo "yes" >&6; } | ||||
11972 | else | ||||
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11974 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11975 | |
11976 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | ||||
11979 | $as_echo_n "checking for epoll... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11981 | /* end confdefs.h. */ |
11982 | #include <sys/epoll.h> | ||||
11983 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11984 | main () |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11985 | { |
11986 | void *x=epoll_create | ||||
11987 | ; | ||||
11988 | return 0; | ||||
11989 | } | ||||
11990 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11991 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11992 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11993 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11994 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11996 | $as_echo "yes" >&6; } | ||||
11997 | else | ||||
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11999 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12000 | |
12001 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | ||||
12004 | $as_echo_n "checking for epoll_create1... " >&6; } | ||||
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12006 | /* end confdefs.h. */ | ||||
12007 | #include <sys/epoll.h> | ||||
12008 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12009 | main () |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12010 | { |
12011 | void *x=epoll_create1 | ||||
12012 | ; | ||||
12013 | return 0; | ||||
12014 | } | ||||
12015 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12016 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12017 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12018 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12019 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12021 | $as_echo "yes" >&6; } | ||||
12022 | else | ||||
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12024 | $as_echo "no" >&6; } | ||||
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12025 | |
12026 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | ||||
12029 | $as_echo_n "checking for kqueue... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12031 | /* end confdefs.h. */ |
12032 | |||||
12033 | #include <sys/types.h> | ||||
12034 | #include <sys/event.h> | ||||
12035 | |||||
12036 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12037 | main () |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12038 | { |
12039 | int x=kqueue() | ||||
12040 | ; | ||||
12041 | return 0; | ||||
12042 | } | ||||
12043 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12044 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12045 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12046 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12047 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12049 | $as_echo "yes" >&6; } | ||||
12050 | else | ||||
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12052 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12053 | |
12054 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | ||||
12057 | $as_echo_n "checking for prlimit... " >&6; } | ||||
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12059 | /* end confdefs.h. */ | ||||
12060 | |||||
12061 | #include <sys/time.h> | ||||
12062 | #include <sys/resource.h> | ||||
12063 | |||||
12064 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12065 | main () |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12066 | { |
12067 | void *x=prlimit | ||||
12068 | ; | ||||
12069 | return 0; | ||||
12070 | } | ||||
12071 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12072 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12073 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12074 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12075 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12077 | $as_echo "yes" >&6; } | ||||
12078 | else | ||||
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12080 | $as_echo "no" >&6; } | ||||
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12081 | |
12082 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 | ||||
12085 | $as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; } | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12087 | /* end confdefs.h. */ | ||||
12088 | #include <mach-o/dyld.h> | ||||
12089 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12090 | main () |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12091 | { |
12092 | void *x=_dyld_shared_cache_contains_path | ||||
12093 | ; | ||||
12094 | return 0; | ||||
12095 | } | ||||
12096 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12097 | if ac_fn_c_try_compile "$LINENO"; then : |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12098 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12099 | $as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12100 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12102 | $as_echo "yes" >&6; } | ||||
12103 | else | ||||
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12105 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12106 | |
12107 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12109 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
12111 | $as_echo_n "checking for memfd_create... " >&6; } | ||||
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12113 | /* end confdefs.h. */ | ||||
12114 | |||||
12115 | #ifdef HAVE_SYS_MMAN_H | ||||
12116 | #include <sys/mman.h> | ||||
12117 | #endif | ||||
12118 | #ifdef HAVE_SYS_MEMFD_H | ||||
12119 | #include <sys/memfd.h> | ||||
12120 | #endif | ||||
12121 | |||||
12122 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12123 | main () |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12124 | { |
12125 | void *x=memfd_create | ||||
12126 | ; | ||||
12127 | return 0; | ||||
12128 | } | ||||
12129 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12130 | if ac_fn_c_try_compile "$LINENO"; then : |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12131 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12132 | $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12133 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12135 | $as_echo "yes" >&6; } | ||||
12136 | else | ||||
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12138 | $as_echo "no" >&6; } | ||||
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12139 | |
12140 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12142 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
12144 | $as_echo_n "checking for eventfd... " >&6; } | ||||
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12146 | /* end confdefs.h. */ | ||||
12147 | |||||
12148 | #ifdef HAVE_SYS_EVENTFD_H | ||||
12149 | #include <sys/eventfd.h> | ||||
12150 | #endif | ||||
12151 | |||||
12152 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12153 | main () |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12154 | { |
12155 | int x = eventfd(0, EFD_CLOEXEC) | ||||
12156 | ; | ||||
12157 | return 0; | ||||
12158 | } | ||||
12159 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12160 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12161 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12162 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12163 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12165 | $as_echo "yes" >&6; } | ||||
12166 | else | ||||
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12168 | $as_echo "no" >&6; } | ||||
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12169 | |
12170 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12172 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12173 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
12174 | # functions ctermid_r, setgroups in the library, but no prototype | ||||
12175 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | ||||
12176 | # address to avoid compiler warnings and potential miscompilations | ||||
12177 | # because of the missing prototypes. | ||||
12178 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
12180 | $as_echo_n "checking for ctermid_r... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12182 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12183 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12184 | #include <stdio.h> |
12185 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12186 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12187 | main () |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12188 | { |
12189 | void* p = ctermid_r | ||||
12190 | ; | ||||
12191 | return 0; | ||||
12192 | } | ||||
12193 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12194 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12195 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12196 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12197 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12199 | $as_echo "yes" >&6; } | ||||
12200 | else | ||||
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12202 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12203 | |
12204 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12206 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
12208 | $as_echo_n "checking for flock declaration... " >&6; } | ||||
12209 | if ${ac_cv_flock_decl+:} false; then : | ||||
12210 | $as_echo_n "(cached) " >&6 | ||||
12211 | else | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12213 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12214 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12215 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12216 | main () |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12217 | { |
12218 | void* p = flock | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12219 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12220 | ; |
12221 | return 0; | ||||
12222 | } | ||||
12223 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12224 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12225 | ac_cv_flock_decl=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12226 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12227 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12228 | |
12229 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12231 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12232 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
12234 | $as_echo "$ac_cv_flock_decl" >&6; } | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12235 | if test "x${ac_cv_flock_decl}" = xyes; then |
12236 | for ac_func in flock | ||||
12237 | do : | ||||
12238 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12239 | if test "x$ac_cv_func_flock" = xyes; then : |
12240 | cat >>confdefs.h <<_ACEOF | ||||
12241 | #define HAVE_FLOCK 1 | ||||
12242 | _ACEOF | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12243 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12244 | else |
12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | ||||
12246 | $as_echo_n "checking for flock in -lbsd... " >&6; } | ||||
12247 | if ${ac_cv_lib_bsd_flock+:} false; then : | ||||
12248 | $as_echo_n "(cached) " >&6 | ||||
12249 | else | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12250 | ac_check_lib_save_LIBS=$LIBS |
12251 | LIBS="-lbsd $LIBS" | ||||
12252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12253 | /* end confdefs.h. */ | ||||
12254 | |||||
12255 | /* Override any GCC internal prototype to avoid an error. | ||||
12256 | Use char because int might match the return type of a GCC | ||||
12257 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12258 | #ifdef __cplusplus |
12259 | extern "C" | ||||
12260 | #endif | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12261 | char flock (); |
12262 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12263 | main () |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12264 | { |
12265 | return flock (); | ||||
12266 | ; | ||||
12267 | return 0; | ||||
12268 | } | ||||
12269 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12270 | if ac_fn_c_try_link "$LINENO"; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12271 | ac_cv_lib_bsd_flock=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12272 | else |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12273 | ac_cv_lib_bsd_flock=no |
12274 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12275 | rm -f core conftest.err conftest.$ac_objext \ |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12276 | conftest$ac_exeext conftest.$ac_ext |
12277 | LIBS=$ac_check_lib_save_LIBS | ||||
12278 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
12280 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | ||||
12281 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | ||||
12282 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12283 | |
12284 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12285 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12286 | |
12287 | |||||
12288 | fi | ||||
12289 | |||||
12290 | |||||
12291 | fi | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12292 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12293 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12294 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12295 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
12297 | $as_echo_n "checking for getpagesize... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12299 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12300 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12301 | #include <unistd.h> |
12302 | |||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12303 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12304 | main () |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12305 | { |
12306 | void* p = getpagesize | ||||
12307 | ; | ||||
12308 | return 0; | ||||
12309 | } | ||||
12310 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12311 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12312 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12313 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12314 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12316 | $as_echo "yes" >&6; } | ||||
12317 | else | ||||
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12319 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12320 | |
12321 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12323 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
12325 | $as_echo_n "checking for broken unsetenv... " >&6; } | ||||
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12327 | /* end confdefs.h. */ | ||||
12328 | |||||
12329 | #include <stdlib.h> | ||||
12330 | |||||
12331 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12332 | main () |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12333 | { |
12334 | int res = unsetenv("DUMMY") | ||||
12335 | ; | ||||
12336 | return 0; | ||||
12337 | } | ||||
12338 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12339 | if ac_fn_c_try_compile "$LINENO"; then : |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12341 | $as_echo "no" >&6; } | ||||
12342 | else | ||||
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12343 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12344 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12345 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12347 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12348 | |
12349 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12351 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12352 | for ac_prog in true |
12353 | do | ||||
12354 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
12355 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12357 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
12358 | if ${ac_cv_prog_TRUE+:} false; then : | ||||
12359 | $as_echo_n "(cached) " >&6 | ||||
12360 | else | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12361 | if test -n "$TRUE"; then |
12362 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | ||||
12363 | else | ||||
12364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
12365 | for as_dir in $PATH | ||||
12366 | do | ||||
12367 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12368 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12369 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12371 | ac_cv_prog_TRUE="$ac_prog" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12372 | $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 +0000 | [diff] [blame] | 12373 | break 2 |
12374 | fi | ||||
12375 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12376 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12377 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12378 | |
12379 | fi | ||||
12380 | fi | ||||
12381 | TRUE=$ac_cv_prog_TRUE | ||||
12382 | if test -n "$TRUE"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
12384 | $as_echo "$TRUE" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12385 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12387 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12388 | fi |
12389 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12390 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12391 | test -n "$TRUE" && break |
12392 | done | ||||
12393 | test -n "$TRUE" || TRUE="/bin/true" | ||||
12394 | |||||
12395 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
12397 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | ||||
12398 | if ${ac_cv_lib_c_inet_aton+:} false; then : | ||||
12399 | $as_echo_n "(cached) " >&6 | ||||
12400 | else | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12401 | ac_check_lib_save_LIBS=$LIBS |
12402 | LIBS="-lc $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12404 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12405 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12406 | /* Override any GCC internal prototype to avoid an error. |
12407 | Use char because int might match the return type of a GCC | ||||
12408 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12409 | #ifdef __cplusplus |
12410 | extern "C" | ||||
12411 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12412 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12413 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12414 | main () |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12415 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12416 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12417 | ; |
12418 | return 0; | ||||
12419 | } | ||||
12420 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12421 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12422 | ac_cv_lib_c_inet_aton=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12423 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12424 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12425 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12426 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12427 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12428 | LIBS=$ac_check_lib_save_LIBS |
12429 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
12431 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | ||||
12432 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12433 | $ac_cv_prog_TRUE |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12434 | else |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | ||||
12436 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | ||||
12437 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | ||||
12438 | $as_echo_n "(cached) " >&6 | ||||
12439 | else | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12440 | ac_check_lib_save_LIBS=$LIBS |
12441 | LIBS="-lresolv $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12443 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12444 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12445 | /* Override any GCC internal prototype to avoid an error. |
12446 | Use char because int might match the return type of a GCC | ||||
12447 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12448 | #ifdef __cplusplus |
12449 | extern "C" | ||||
12450 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12451 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12452 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12453 | main () |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12454 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12455 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12456 | ; |
12457 | return 0; | ||||
12458 | } | ||||
12459 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12460 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12461 | ac_cv_lib_resolv_inet_aton=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12462 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12463 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12464 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12465 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12466 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12467 | LIBS=$ac_check_lib_save_LIBS |
12468 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
12470 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | ||||
12471 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | ||||
12472 | cat >>confdefs.h <<_ACEOF | ||||
12473 | #define HAVE_LIBRESOLV 1 | ||||
12474 | _ACEOF | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12475 | |
12476 | LIBS="-lresolv $LIBS" | ||||
12477 | |||||
12478 | fi | ||||
12479 | |||||
12480 | |||||
12481 | fi | ||||
12482 | |||||
12483 | |||||
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12484 | # On Tru64, chflags seems to be present, but calling it will |
12485 | # exit Python | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
12487 | $as_echo_n "checking for chflags... " >&6; } | ||||
12488 | if ${ac_cv_have_chflags+:} false; then : | ||||
12489 | $as_echo_n "(cached) " >&6 | ||||
12490 | else | ||||
12491 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12492 | ac_cv_have_chflags=cross |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12493 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12495 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12496 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12497 | #include <sys/stat.h> |
12498 | #include <unistd.h> | ||||
12499 | int main(int argc, char*argv[]) | ||||
12500 | { | ||||
12501 | if(chflags(argv[0], 0) != 0) | ||||
12502 | return 1; | ||||
12503 | return 0; | ||||
12504 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12505 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12506 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12507 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12508 | ac_cv_have_chflags=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12509 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12510 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12511 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12513 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12514 | fi |
12515 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12516 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12517 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
12519 | $as_echo "$ac_cv_have_chflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12520 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12521 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12522 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12523 | ac_cv_have_chflags="yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12524 | else |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12525 | ac_cv_have_chflags="no" |
12526 | fi | ||||
12527 | |||||
12528 | fi | ||||
12529 | if test "$ac_cv_have_chflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12530 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12531 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12532 | |
12533 | fi | ||||
12534 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
12536 | $as_echo_n "checking for lchflags... " >&6; } | ||||
12537 | if ${ac_cv_have_lchflags+:} false; then : | ||||
12538 | $as_echo_n "(cached) " >&6 | ||||
12539 | else | ||||
12540 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12541 | ac_cv_have_lchflags=cross |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12542 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12544 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12545 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12546 | #include <sys/stat.h> |
12547 | #include <unistd.h> | ||||
12548 | int main(int argc, char*argv[]) | ||||
12549 | { | ||||
12550 | if(lchflags(argv[0], 0) != 0) | ||||
12551 | return 1; | ||||
12552 | return 0; | ||||
12553 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12554 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12555 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12556 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12557 | ac_cv_have_lchflags=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12558 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12559 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12560 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12562 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12563 | fi |
12564 | |||||
12565 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12566 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
12568 | $as_echo "$ac_cv_have_lchflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12569 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12570 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12571 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12572 | ac_cv_have_lchflags="yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12573 | else |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12574 | ac_cv_have_lchflags="no" |
12575 | fi | ||||
12576 | |||||
12577 | fi | ||||
12578 | if test "$ac_cv_have_lchflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12579 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12580 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12581 | |
12582 | fi | ||||
12583 | |||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12584 | case $ac_sys_system/$ac_sys_release in |
12585 | Darwin/*) | ||||
12586 | _CUR_CFLAGS="${CFLAGS}" | ||||
12587 | _CUR_LDFLAGS="${LDFLAGS}" | ||||
12588 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | ||||
12589 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | ||||
12590 | ;; | ||||
12591 | esac | ||||
12592 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
12594 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | ||||
12595 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | ||||
12596 | $as_echo_n "(cached) " >&6 | ||||
12597 | else | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12598 | ac_check_lib_save_LIBS=$LIBS |
12599 | LIBS="-lz $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12601 | /* end confdefs.h. */ |
12602 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12603 | /* Override any GCC internal prototype to avoid an error. |
12604 | Use char because int might match the return type of a GCC | ||||
12605 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12606 | #ifdef __cplusplus |
12607 | extern "C" | ||||
12608 | #endif | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12609 | char inflateCopy (); |
12610 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12611 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12612 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12613 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12614 | ; |
12615 | return 0; | ||||
12616 | } | ||||
12617 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12618 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12619 | ac_cv_lib_z_inflateCopy=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12620 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12621 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12622 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12623 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12624 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12625 | LIBS=$ac_check_lib_save_LIBS |
12626 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
12628 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | ||||
12629 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12630 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12631 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12632 | |
12633 | fi | ||||
12634 | |||||
12635 | |||||
12636 | case $ac_sys_system/$ac_sys_release in | ||||
12637 | Darwin/*) | ||||
12638 | CFLAGS="${_CUR_CFLAGS}" | ||||
12639 | LDFLAGS="${_CUR_LDFLAGS}" | ||||
12640 | ;; | ||||
12641 | esac | ||||
12642 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
12644 | $as_echo_n "checking for hstrerror... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12646 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12647 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12648 | #include <netdb.h> |
12649 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12650 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12651 | main () |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12652 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12653 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12654 | ; |
12655 | return 0; | ||||
12656 | } | ||||
12657 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12658 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12659 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12660 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12661 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12663 | $as_echo "yes" >&6; } | ||||
12664 | else | ||||
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12666 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12667 | |
12668 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12669 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12670 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12671 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
12673 | $as_echo_n "checking for inet_aton... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12675 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12676 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12677 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12678 | #include <sys/socket.h> |
12679 | #include <netinet/in.h> | ||||
12680 | #include <arpa/inet.h> | ||||
12681 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12682 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12683 | main () |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12684 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12685 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12686 | ; |
12687 | return 0; | ||||
12688 | } | ||||
12689 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12690 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12691 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12692 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12693 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12695 | $as_echo "yes" >&6; } | ||||
12696 | else | ||||
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12698 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12699 | |
12700 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12701 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12702 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12703 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
12705 | $as_echo_n "checking for inet_pton... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12707 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12708 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12709 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12710 | #include <sys/socket.h> |
12711 | #include <netinet/in.h> | ||||
12712 | #include <arpa/inet.h> | ||||
12713 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12714 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12715 | main () |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12716 | { |
12717 | void* p = inet_pton | ||||
12718 | ; | ||||
12719 | return 0; | ||||
12720 | } | ||||
12721 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12722 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12723 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12724 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12725 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12727 | $as_echo "yes" >&6; } | ||||
12728 | else | ||||
12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12730 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12731 | |
12732 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12734 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12735 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
12737 | $as_echo_n "checking for setgroups... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12739 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12740 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12741 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12742 | #ifdef HAVE_GRP_H |
12743 | #include <grp.h> | ||||
12744 | #endif | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12745 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12746 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12747 | main () |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12748 | { |
12749 | void* p = setgroups | ||||
12750 | ; | ||||
12751 | return 0; | ||||
12752 | } | ||||
12753 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12754 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12755 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12756 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12757 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12759 | $as_echo "yes" >&6; } | ||||
12760 | else | ||||
12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12762 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12763 | |
12764 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12766 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12767 | # check for openpty and forkpty |
12768 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12769 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12770 | do : |
12771 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12772 | if test "x$ac_cv_func_openpty" = xyes; then : |
12773 | cat >>confdefs.h <<_ACEOF | ||||
12774 | #define HAVE_OPENPTY 1 | ||||
12775 | _ACEOF | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12776 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12777 | else |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | ||||
12779 | $as_echo_n "checking for openpty in -lutil... " >&6; } | ||||
12780 | if ${ac_cv_lib_util_openpty+:} false; then : | ||||
12781 | $as_echo_n "(cached) " >&6 | ||||
12782 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12783 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12784 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12786 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12788 | /* Override any GCC internal prototype to avoid an error. |
12789 | Use char because int might match the return type of a GCC | ||||
12790 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12791 | #ifdef __cplusplus |
12792 | extern "C" | ||||
12793 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12796 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12797 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12798 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12799 | ; |
12800 | return 0; | ||||
12801 | } | ||||
12802 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12803 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | ac_cv_lib_util_openpty=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12805 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12806 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12807 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12808 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12809 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12811 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
12813 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | ||||
12814 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | ||||
12815 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12816 | LIBS="$LIBS -lutil" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12817 | else |
12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | ||||
12819 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | ||||
12820 | if ${ac_cv_lib_bsd_openpty+:} false; then : | ||||
12821 | $as_echo_n "(cached) " >&6 | ||||
12822 | else | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12823 | ac_check_lib_save_LIBS=$LIBS |
12824 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12826 | /* end confdefs.h. */ |
12827 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12828 | /* Override any GCC internal prototype to avoid an error. |
12829 | Use char because int might match the return type of a GCC | ||||
12830 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12831 | #ifdef __cplusplus |
12832 | extern "C" | ||||
12833 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12834 | char openpty (); |
12835 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12836 | main () |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12837 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12838 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12839 | ; |
12840 | return 0; | ||||
12841 | } | ||||
12842 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12843 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12844 | ac_cv_lib_bsd_openpty=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12845 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12846 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12847 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12848 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12850 | LIBS=$ac_check_lib_save_LIBS |
12851 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
12853 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | ||||
12854 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | ||||
12855 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12856 | LIBS="$LIBS -lbsd" |
12857 | fi | ||||
12858 | |||||
12859 | |||||
12860 | fi | ||||
12861 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12862 | |
12863 | fi | ||||
12864 | done | ||||
12865 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12866 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12867 | do : |
12868 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12869 | if test "x$ac_cv_func_forkpty" = xyes; then : |
12870 | cat >>confdefs.h <<_ACEOF | ||||
12871 | #define HAVE_FORKPTY 1 | ||||
12872 | _ACEOF | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12873 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12874 | else |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | ||||
12876 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | ||||
12877 | if ${ac_cv_lib_util_forkpty+:} false; then : | ||||
12878 | $as_echo_n "(cached) " >&6 | ||||
12879 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12881 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12883 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12885 | /* Override any GCC internal prototype to avoid an error. |
12886 | Use char because int might match the return type of a GCC | ||||
12887 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12888 | #ifdef __cplusplus |
12889 | extern "C" | ||||
12890 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12893 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12895 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | ; |
12897 | return 0; | ||||
12898 | } | ||||
12899 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12900 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | ac_cv_lib_util_forkpty=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12902 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12903 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12904 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12905 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12906 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12908 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
12910 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | ||||
12911 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | ||||
12912 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12913 | LIBS="$LIBS -lutil" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12914 | else |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | ||||
12916 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | ||||
12917 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | ||||
12918 | $as_echo_n "(cached) " >&6 | ||||
12919 | else | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12920 | ac_check_lib_save_LIBS=$LIBS |
12921 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12923 | /* end confdefs.h. */ |
12924 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12925 | /* Override any GCC internal prototype to avoid an error. |
12926 | Use char because int might match the return type of a GCC | ||||
12927 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12928 | #ifdef __cplusplus |
12929 | extern "C" | ||||
12930 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12931 | char forkpty (); |
12932 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12933 | main () |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12934 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12935 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12936 | ; |
12937 | return 0; | ||||
12938 | } | ||||
12939 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12940 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12941 | ac_cv_lib_bsd_forkpty=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12942 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12943 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12944 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12945 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12946 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12947 | LIBS=$ac_check_lib_save_LIBS |
12948 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
12950 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | ||||
12951 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | ||||
12952 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12953 | LIBS="$LIBS -lbsd" |
12954 | fi | ||||
12955 | |||||
12956 | |||||
12957 | fi | ||||
12958 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12959 | |
12960 | fi | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12961 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12962 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12964 | # check for long file support functions |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12965 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
12966 | do : | ||||
12967 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
12968 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
12969 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
12970 | cat >>confdefs.h <<_ACEOF | ||||
12971 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
12972 | _ACEOF | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12973 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12974 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12975 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12976 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12977 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12978 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12979 | if test "x$ac_cv_func_dup2" = xyes; then : |
12980 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | ||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12981 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12982 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12983 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12984 | *" dup2.$ac_objext "* ) ;; |
12985 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12986 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12987 | esac |
12988 | |||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12989 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12990 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12991 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12992 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12993 | do : |
12994 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 12995 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
12996 | cat >>confdefs.h <<_ACEOF | ||||
12997 | #define HAVE_GETPGRP 1 | ||||
12998 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13001 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13002 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13003 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13005 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13006 | ; |
13007 | return 0; | ||||
13008 | } | ||||
13009 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13010 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13012 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13013 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13014 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13016 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13017 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13018 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13019 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13020 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | do : |
13022 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13023 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
13024 | cat >>confdefs.h <<_ACEOF | ||||
13025 | #define HAVE_SETPGRP 1 | ||||
13026 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13028 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13029 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13030 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13031 | main () |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13032 | { |
13033 | setpgrp(0,0); | ||||
13034 | ; | ||||
13035 | return 0; | ||||
13036 | } | ||||
13037 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13038 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13039 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13040 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13041 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13042 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13044 | |
13045 | fi | ||||
13046 | done | ||||
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13047 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13048 | |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13049 | # We search for both crypt and crypt_r as one or the other may be defined |
13050 | # This gets us our -lcrypt in LIBS when required on the target platform. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
13052 | $as_echo_n "checking for library containing crypt... " >&6; } | ||||
13053 | if ${ac_cv_search_crypt+:} false; then : | ||||
13054 | $as_echo_n "(cached) " >&6 | ||||
13055 | else | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13056 | ac_func_search_save_LIBS=$LIBS |
13057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13058 | /* end confdefs.h. */ | ||||
13059 | |||||
13060 | /* Override any GCC internal prototype to avoid an error. | ||||
13061 | Use char because int might match the return type of a GCC | ||||
13062 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13063 | #ifdef __cplusplus |
13064 | extern "C" | ||||
13065 | #endif | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13066 | char crypt (); |
13067 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13068 | main () |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13069 | { |
13070 | return crypt (); | ||||
13071 | ; | ||||
13072 | return 0; | ||||
13073 | } | ||||
13074 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13075 | for ac_lib in '' crypt; do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13076 | if test -z "$ac_lib"; then |
13077 | ac_res="none required" | ||||
13078 | else | ||||
13079 | ac_res=-l$ac_lib | ||||
13080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
13081 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13082 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13083 | ac_cv_search_crypt=$ac_res |
13084 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13085 | rm -f core conftest.err conftest.$ac_objext \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13086 | conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13087 | if ${ac_cv_search_crypt+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13088 | break |
13089 | fi | ||||
13090 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13091 | if ${ac_cv_search_crypt+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13092 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13093 | else |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13094 | ac_cv_search_crypt=no |
13095 | fi | ||||
13096 | rm conftest.$ac_ext | ||||
13097 | LIBS=$ac_func_search_save_LIBS | ||||
13098 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
13100 | $as_echo "$ac_cv_search_crypt" >&6; } | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13101 | ac_res=$ac_cv_search_crypt |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13102 | if test "$ac_res" != no; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13104 | |||||
13105 | fi | ||||
13106 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 |
13108 | $as_echo_n "checking for library containing crypt_r... " >&6; } | ||||
13109 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
13110 | $as_echo_n "(cached) " >&6 | ||||
13111 | else | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13112 | ac_func_search_save_LIBS=$LIBS |
13113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13114 | /* end confdefs.h. */ | ||||
13115 | |||||
13116 | /* Override any GCC internal prototype to avoid an error. | ||||
13117 | Use char because int might match the return type of a GCC | ||||
13118 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13119 | #ifdef __cplusplus |
13120 | extern "C" | ||||
13121 | #endif | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13122 | char crypt_r (); |
13123 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13124 | main () |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13125 | { |
13126 | return crypt_r (); | ||||
13127 | ; | ||||
13128 | return 0; | ||||
13129 | } | ||||
13130 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13131 | for ac_lib in '' crypt; do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13132 | if test -z "$ac_lib"; then |
13133 | ac_res="none required" | ||||
13134 | else | ||||
13135 | ac_res=-l$ac_lib | ||||
13136 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
13137 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13138 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13139 | ac_cv_search_crypt_r=$ac_res |
13140 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13141 | rm -f core conftest.err conftest.$ac_objext \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13142 | conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13143 | if ${ac_cv_search_crypt_r+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13144 | break |
13145 | fi | ||||
13146 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13147 | if ${ac_cv_search_crypt_r+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13148 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13149 | else |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13150 | ac_cv_search_crypt_r=no |
13151 | fi | ||||
13152 | rm conftest.$ac_ext | ||||
13153 | LIBS=$ac_func_search_save_LIBS | ||||
13154 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 |
13156 | $as_echo "$ac_cv_search_crypt_r" >&6; } | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13157 | ac_res=$ac_cv_search_crypt_r |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13158 | if test "$ac_res" != no; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13159 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13160 | |||||
13161 | fi | ||||
13162 | |||||
13163 | |||||
13164 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13165 | if test "x$ac_cv_func_crypt_r" = xyes; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13167 | /* end confdefs.h. */ | ||||
13168 | |||||
13169 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ | ||||
13170 | #include <crypt.h> | ||||
13171 | |||||
13172 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13173 | main () |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13174 | { |
13175 | |||||
13176 | struct crypt_data d; | ||||
13177 | char *r = crypt_r("", "", &d); | ||||
13178 | |||||
13179 | ; | ||||
13180 | return 0; | ||||
13181 | } | ||||
13182 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13183 | if ac_fn_c_try_compile "$LINENO"; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13184 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13185 | $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13186 | |
13187 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13189 | |
13190 | fi | ||||
13191 | |||||
13192 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13193 | for ac_func in clock_gettime |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13194 | do : |
13195 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13196 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
13197 | cat >>confdefs.h <<_ACEOF | ||||
13198 | #define HAVE_CLOCK_GETTIME 1 | ||||
13199 | _ACEOF | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13200 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13201 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13202 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13204 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||||
13205 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | ||||
13206 | $as_echo_n "(cached) " >&6 | ||||
13207 | else | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13208 | ac_check_lib_save_LIBS=$LIBS |
13209 | LIBS="-lrt $LIBS" | ||||
13210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13211 | /* end confdefs.h. */ | ||||
13212 | |||||
13213 | /* Override any GCC internal prototype to avoid an error. | ||||
13214 | Use char because int might match the return type of a GCC | ||||
13215 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13216 | #ifdef __cplusplus |
13217 | extern "C" | ||||
13218 | #endif | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13219 | char clock_gettime (); |
13220 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13221 | main () |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13222 | { |
13223 | return clock_gettime (); | ||||
13224 | ; | ||||
13225 | return 0; | ||||
13226 | } | ||||
13227 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13228 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13229 | ac_cv_lib_rt_clock_gettime=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13230 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13231 | ac_cv_lib_rt_clock_gettime=no |
13232 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13233 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13234 | conftest$ac_exeext conftest.$ac_ext |
13235 | LIBS=$ac_check_lib_save_LIBS | ||||
13236 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13238 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||||
13239 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13240 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 13241 | LIBS="$LIBS -lrt" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13242 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13243 | |
13244 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13245 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13246 | |
13247 | |||||
13248 | fi | ||||
13249 | |||||
13250 | |||||
13251 | fi | ||||
13252 | done | ||||
13253 | |||||
13254 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13255 | for ac_func in clock_getres |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13256 | do : |
13257 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13258 | if test "x$ac_cv_func_clock_getres" = xyes; then : |
13259 | cat >>confdefs.h <<_ACEOF | ||||
13260 | #define HAVE_CLOCK_GETRES 1 | ||||
13261 | _ACEOF | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13262 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13263 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13264 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
13266 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | ||||
13267 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | ||||
13268 | $as_echo_n "(cached) " >&6 | ||||
13269 | else | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13270 | ac_check_lib_save_LIBS=$LIBS |
13271 | LIBS="-lrt $LIBS" | ||||
13272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13273 | /* end confdefs.h. */ | ||||
13274 | |||||
13275 | /* Override any GCC internal prototype to avoid an error. | ||||
13276 | Use char because int might match the return type of a GCC | ||||
13277 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13278 | #ifdef __cplusplus |
13279 | extern "C" | ||||
13280 | #endif | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13281 | char clock_getres (); |
13282 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13283 | main () |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13284 | { |
13285 | return clock_getres (); | ||||
13286 | ; | ||||
13287 | return 0; | ||||
13288 | } | ||||
13289 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13290 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13291 | ac_cv_lib_rt_clock_getres=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13292 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13293 | ac_cv_lib_rt_clock_getres=no |
13294 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13295 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13296 | conftest$ac_exeext conftest.$ac_ext |
13297 | LIBS=$ac_check_lib_save_LIBS | ||||
13298 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
13300 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | ||||
13301 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13302 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13303 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13304 | |
13305 | |||||
13306 | fi | ||||
13307 | |||||
13308 | |||||
13309 | fi | ||||
13310 | done | ||||
13311 | |||||
13312 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13313 | for ac_func in clock_settime |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13314 | do : |
13315 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13316 | if test "x$ac_cv_func_clock_settime" = xyes; then : |
13317 | cat >>confdefs.h <<_ACEOF | ||||
13318 | #define HAVE_CLOCK_SETTIME 1 | ||||
13319 | _ACEOF | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13320 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13321 | else |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13322 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 |
13324 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | ||||
13325 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | ||||
13326 | $as_echo_n "(cached) " >&6 | ||||
13327 | else | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13328 | ac_check_lib_save_LIBS=$LIBS |
13329 | LIBS="-lrt $LIBS" | ||||
13330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13331 | /* end confdefs.h. */ | ||||
13332 | |||||
13333 | /* Override any GCC internal prototype to avoid an error. | ||||
13334 | Use char because int might match the return type of a GCC | ||||
13335 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13336 | #ifdef __cplusplus |
13337 | extern "C" | ||||
13338 | #endif | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13339 | char clock_settime (); |
13340 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13341 | main () |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13342 | { |
13343 | return clock_settime (); | ||||
13344 | ; | ||||
13345 | return 0; | ||||
13346 | } | ||||
13347 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13348 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13349 | ac_cv_lib_rt_clock_settime=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13350 | else |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13351 | ac_cv_lib_rt_clock_settime=no |
13352 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13353 | rm -f core conftest.err conftest.$ac_objext \ |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13354 | conftest$ac_exeext conftest.$ac_ext |
13355 | LIBS=$ac_check_lib_save_LIBS | ||||
13356 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 |
13358 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | ||||
13359 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13360 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13361 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13362 | |
13363 | |||||
13364 | fi | ||||
13365 | |||||
13366 | |||||
13367 | fi | ||||
13368 | done | ||||
13369 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13370 | |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | ||||
13372 | $as_echo_n "checking for major... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13374 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13375 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13376 | #if defined(MAJOR_IN_MKDEV) |
13377 | #include <sys/mkdev.h> | ||||
13378 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
13379 | #include <sys/sysmacros.h> | ||||
13380 | #else | ||||
13381 | #include <sys/types.h> | ||||
13382 | #endif | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13383 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13384 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13385 | main () |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13386 | { |
13387 | |||||
13388 | makedev(major(0),minor(0)); | ||||
13389 | |||||
13390 | ; | ||||
13391 | return 0; | ||||
13392 | } | ||||
13393 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13394 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13395 | |
13396 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13397 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13398 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13400 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13401 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13402 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13403 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13405 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13406 | |
13407 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13408 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13409 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13410 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13411 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13412 | # for [no]getaddrinfo in netdb.h. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
13414 | $as_echo_n "checking for getaddrinfo... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13416 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13417 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13418 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13419 | #include <sys/socket.h> |
13420 | #include <netdb.h> | ||||
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13421 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13424 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13426 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13427 | ; |
13428 | return 0; | ||||
13429 | } | ||||
13430 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13431 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13432 | have_getaddrinfo=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13433 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13434 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13435 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13436 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
13439 | $as_echo "$have_getaddrinfo" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13440 | if test $have_getaddrinfo = yes |
13441 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
13443 | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
13444 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | ||||
13445 | $as_echo_n "(cached) " >&6 | ||||
13446 | else | ||||
13447 | if test "$cross_compiling" = yes; then : | ||||
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 13448 | |
13449 | if test "${enable_ipv6+set}" = set; then | ||||
13450 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | ||||
13451 | else | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13452 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 13453 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13454 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13456 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13457 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 13458 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13459 | #include <sys/types.h> |
13460 | #include <netdb.h> | ||||
13461 | #include <string.h> | ||||
13462 | #include <sys/socket.h> | ||||
13463 | #include <netinet/in.h> | ||||
13464 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13465 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13466 | { |
13467 | int passive, gaierr, inet4 = 0, inet6 = 0; | ||||
13468 | struct addrinfo hints, *ai, *aitop; | ||||
13469 | char straddr[INET6_ADDRSTRLEN], strport[16]; | ||||
13470 | |||||
13471 | for (passive = 0; passive <= 1; passive++) { | ||||
13472 | memset(&hints, 0, sizeof(hints)); | ||||
13473 | hints.ai_family = AF_UNSPEC; | ||||
13474 | hints.ai_flags = passive ? AI_PASSIVE : 0; | ||||
13475 | hints.ai_socktype = SOCK_STREAM; | ||||
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 13476 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13477 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
13478 | (void)gai_strerror(gaierr); | ||||
13479 | goto bad; | ||||
13480 | } | ||||
13481 | for (ai = aitop; ai; ai = ai->ai_next) { | ||||
13482 | if (ai->ai_addr == NULL || | ||||
13483 | ai->ai_addrlen == 0 || | ||||
13484 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | ||||
13485 | straddr, sizeof(straddr), strport, sizeof(strport), | ||||
13486 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | ||||
13487 | goto bad; | ||||
13488 | } | ||||
13489 | switch (ai->ai_family) { | ||||
13490 | case AF_INET: | ||||
13491 | if (strcmp(strport, "54321") != 0) { | ||||
13492 | goto bad; | ||||
13493 | } | ||||
13494 | if (passive) { | ||||
13495 | if (strcmp(straddr, "0.0.0.0") != 0) { | ||||
13496 | goto bad; | ||||
13497 | } | ||||
13498 | } else { | ||||
13499 | if (strcmp(straddr, "127.0.0.1") != 0) { | ||||
13500 | goto bad; | ||||
13501 | } | ||||
13502 | } | ||||
13503 | inet4++; | ||||
13504 | break; | ||||
13505 | case AF_INET6: | ||||
13506 | if (strcmp(strport, "54321") != 0) { | ||||
13507 | goto bad; | ||||
13508 | } | ||||
13509 | if (passive) { | ||||
13510 | if (strcmp(straddr, "::") != 0) { | ||||
13511 | goto bad; | ||||
13512 | } | ||||
13513 | } else { | ||||
13514 | if (strcmp(straddr, "::1") != 0) { | ||||
13515 | goto bad; | ||||
13516 | } | ||||
13517 | } | ||||
13518 | inet6++; | ||||
13519 | break; | ||||
13520 | case AF_UNSPEC: | ||||
13521 | goto bad; | ||||
13522 | break; | ||||
13523 | default: | ||||
13524 | /* another family support? */ | ||||
13525 | break; | ||||
13526 | } | ||||
13527 | } | ||||
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 13528 | freeaddrinfo(aitop); |
13529 | aitop = NULL; | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13530 | } |
13531 | |||||
13532 | if (!(inet4 == 0 || inet4 == 2)) | ||||
13533 | goto bad; | ||||
13534 | if (!(inet6 == 0 || inet6 == 2)) | ||||
13535 | goto bad; | ||||
13536 | |||||
13537 | if (aitop) | ||||
13538 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13539 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13540 | |
13541 | bad: | ||||
13542 | if (aitop) | ||||
13543 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13544 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13545 | } |
13546 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13548 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13549 | ac_cv_buggy_getaddrinfo=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13550 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13552 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13554 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13555 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13556 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13557 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13558 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13559 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13560 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
13562 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | ||||
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 13563 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 13564 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13565 | then |
13566 | if test $ipv6 = yes | ||||
13567 | then | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13568 | echo 'Fatal: You must get working getaddrinfo() function.' |
13569 | echo ' or you can specify "--disable-ipv6"'. | ||||
13570 | exit 1 | ||||
13571 | fi | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13573 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13574 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13575 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13576 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 13577 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13578 | for ac_func in getnameinfo |
13579 | do : | ||||
13580 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | ||||
13581 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | ||||
13582 | cat >>confdefs.h <<_ACEOF | ||||
13583 | #define HAVE_GETNAMEINFO 1 | ||||
13584 | _ACEOF | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13585 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13586 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13587 | done |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13588 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13589 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13590 | # checks for structures |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13592 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||||
13593 | if ${ac_cv_header_time+:} false; then : | ||||
13594 | $as_echo_n "(cached) " >&6 | ||||
13595 | else | ||||
13596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13597 | /* end confdefs.h. */ | ||||
13598 | #include <sys/types.h> | ||||
13599 | #include <sys/time.h> | ||||
13600 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13602 | int |
13603 | main () | ||||
13604 | { | ||||
13605 | if ((struct tm *) 0) | ||||
13606 | return 0; | ||||
13607 | ; | ||||
13608 | return 0; | ||||
13609 | } | ||||
13610 | _ACEOF | ||||
13611 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13612 | ac_cv_header_time=yes | ||||
13613 | else | ||||
13614 | ac_cv_header_time=no | ||||
13615 | fi | ||||
13616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13617 | fi | ||||
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | ||||
13619 | $as_echo "$ac_cv_header_time" >&6; } | ||||
13620 | if test $ac_cv_header_time = yes; then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13622 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13623 | |
13624 | fi | ||||
13625 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13627 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | ||||
13628 | if ${ac_cv_struct_tm+:} false; then : | ||||
13629 | $as_echo_n "(cached) " >&6 | ||||
13630 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13632 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13633 | #include <sys/types.h> |
13634 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13637 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13638 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13639 | struct tm tm; |
13640 | int *p = &tm.tm_sec; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13641 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13642 | ; |
13643 | return 0; | ||||
13644 | } | ||||
13645 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13646 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13647 | ac_cv_struct_tm=time.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13648 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13649 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13650 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13652 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
13654 | $as_echo "$ac_cv_struct_tm" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13655 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13656 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13657 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13658 | |
13659 | fi | ||||
13660 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13661 | 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 +0000 | [diff] [blame] | 13662 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13664 | " |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13665 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13666 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13667 | cat >>confdefs.h <<_ACEOF |
13668 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||||
13669 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13670 | |
13671 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13672 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
13675 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13676 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13677 | |
13678 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13679 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
13680 | " | ||||
13681 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13682 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13683 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13684 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13685 | fi |
13686 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13687 | cat >>confdefs.h <<_ACEOF |
13688 | #define HAVE_DECL_TZNAME $ac_have_decl | ||||
13689 | _ACEOF | ||||
13690 | |||||
13691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | ||||
13692 | $as_echo_n "checking for tzname... " >&6; } | ||||
13693 | if ${ac_cv_var_tzname+:} false; then : | ||||
13694 | $as_echo_n "(cached) " >&6 | ||||
13695 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13697 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13698 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13699 | #if !HAVE_DECL_TZNAME |
13700 | extern char *tzname[]; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13701 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13704 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13705 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13706 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | ; |
13708 | return 0; | ||||
13709 | } | ||||
13710 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13711 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13712 | ac_cv_var_tzname=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13713 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13714 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13715 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13716 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13717 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13718 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
13720 | $as_echo "$ac_cv_var_tzname" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13721 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13723 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13724 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13725 | fi |
13726 | fi | ||||
13727 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13728 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13729 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13731 | cat >>confdefs.h <<_ACEOF |
13732 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | ||||
13733 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13734 | |
13735 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13736 | fi |
13737 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13738 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13739 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13740 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13741 | cat >>confdefs.h <<_ACEOF |
13742 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||||
13743 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13744 | |
13745 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13746 | fi |
13747 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13748 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13749 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 13750 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13751 | cat >>confdefs.h <<_ACEOF |
13752 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | ||||
13753 | _ACEOF | ||||
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 13754 | |
13755 | |||||
13756 | fi | ||||
13757 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13758 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13759 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13760 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13761 | cat >>confdefs.h <<_ACEOF |
13762 | #define HAVE_STRUCT_STAT_ST_GEN 1 | ||||
13763 | _ACEOF | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13764 | |
13765 | |||||
13766 | fi | ||||
13767 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13768 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13769 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13770 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13771 | cat >>confdefs.h <<_ACEOF |
13772 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | ||||
13773 | _ACEOF | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13774 | |
13775 | |||||
13776 | fi | ||||
13777 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13778 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13779 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13780 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13781 | cat >>confdefs.h <<_ACEOF |
13782 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | ||||
13783 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13784 | |
13785 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13786 | fi |
13787 | |||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13788 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
13789 | #include <sys/types.h> | ||||
13790 | #include <pwd.h> | ||||
13791 | |||||
13792 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13793 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13794 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13795 | cat >>confdefs.h <<_ACEOF |
13796 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||||
13797 | _ACEOF | ||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13798 | |
13799 | |||||
13800 | fi | ||||
13801 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | ||||
13802 | #include <sys/types.h> | ||||
13803 | #include <pwd.h> | ||||
13804 | |||||
13805 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13806 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13807 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13808 | cat >>confdefs.h <<_ACEOF |
13809 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | ||||
13810 | _ACEOF | ||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13811 | |
13812 | |||||
13813 | fi | ||||
13814 | |||||
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13815 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
13816 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | ||||
13817 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13818 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13819 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13820 | cat >>confdefs.h <<_ACEOF |
13821 | #define HAVE_SIGINFO_T_SI_BAND 1 | ||||
13822 | _ACEOF | ||||
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13823 | |
13824 | |||||
13825 | fi | ||||
13826 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13827 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
13829 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | ||||
13830 | if ${ac_cv_header_time_altzone+:} false; then : | ||||
13831 | $as_echo_n "(cached) " >&6 | ||||
13832 | else | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13833 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13835 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13836 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13838 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13839 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13840 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13841 | ; |
13842 | return 0; | ||||
13843 | } | ||||
13844 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13845 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13846 | ac_cv_header_time_altzone=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13847 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13848 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13849 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13851 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13852 | fi |
13853 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
13855 | $as_echo "$ac_cv_header_time_altzone" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13856 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13858 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13859 | |
13860 | fi | ||||
13861 | |||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13862 | was_it_defined=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
13864 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13866 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13867 | |
13868 | #include <sys/types.h> | ||||
13869 | #include <sys/select.h> | ||||
13870 | #include <sys/time.h> | ||||
13871 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13872 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13873 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13875 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13876 | ; |
13877 | return 0; | ||||
13878 | } | ||||
13879 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13880 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13881 | |
13882 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13883 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13884 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13885 | was_it_defined=yes |
13886 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13887 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | ||||
13890 | $as_echo "$was_it_defined" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13891 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
13893 | $as_echo_n "checking for addrinfo... " >&6; } | ||||
13894 | if ${ac_cv_struct_addrinfo+:} false; then : | ||||
13895 | $as_echo_n "(cached) " >&6 | ||||
13896 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13898 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13899 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13901 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13902 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13903 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13904 | ; |
13905 | return 0; | ||||
13906 | } | ||||
13907 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13908 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13909 | ac_cv_struct_addrinfo=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13910 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13911 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13912 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13914 | fi |
13915 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
13917 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13918 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13919 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13920 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13921 | |
13922 | fi | ||||
13923 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
13925 | $as_echo_n "checking for sockaddr_storage... " >&6; } | ||||
13926 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | ||||
13927 | $as_echo_n "(cached) " >&6 | ||||
13928 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13930 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13931 | |
13932 | # include <sys/types.h> | ||||
13933 | # include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13934 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13935 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13936 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13937 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13938 | ; |
13939 | return 0; | ||||
13940 | } | ||||
13941 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13942 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13943 | ac_cv_struct_sockaddr_storage=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13944 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13945 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13946 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13948 | fi |
13949 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
13951 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13952 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13953 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13954 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13955 | |
13956 | fi | ||||
13957 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
13959 | $as_echo_n "checking for sockaddr_alg... " >&6; } | ||||
13960 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | ||||
13961 | $as_echo_n "(cached) " >&6 | ||||
13962 | else | ||||
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13964 | /* end confdefs.h. */ | ||||
13965 | |||||
13966 | # include <sys/types.h> | ||||
13967 | # include <sys/socket.h> | ||||
13968 | # include <linux/if_alg.h> | ||||
13969 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13970 | main () |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13971 | { |
13972 | struct sockaddr_alg s | ||||
13973 | ; | ||||
13974 | return 0; | ||||
13975 | } | ||||
13976 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13977 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13978 | ac_cv_struct_sockaddr_alg=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13979 | else |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13980 | ac_cv_struct_sockaddr_alg=no |
13981 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13983 | fi |
13984 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 |
13986 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | ||||
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13987 | if test $ac_cv_struct_sockaddr_alg = yes; then |
13988 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13989 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13990 | |
13991 | fi | ||||
13992 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13993 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13994 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
13996 | $as_echo_n "checking whether char is unsigned... " >&6; } | ||||
13997 | if ${ac_cv_c_char_unsigned+:} false; then : | ||||
13998 | $as_echo_n "(cached) " >&6 | ||||
13999 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14002 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14004 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | { |
14006 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14007 | test_array [0] = 0; |
14008 | return test_array [0]; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14009 | |
14010 | ; | ||||
14011 | return 0; | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14012 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14014 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14015 | ac_cv_c_char_unsigned=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14016 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14017 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14018 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14020 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
14022 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | ||||
14023 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | ||||
14024 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14025 | |
14026 | fi | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14027 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14029 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||||
14030 | if ${ac_cv_c_const+:} false; then : | ||||
14031 | $as_echo_n "(cached) " >&6 | ||||
14032 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14034 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14037 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14038 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14041 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14043 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14044 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14045 | char const *const *pcpcc; |
14046 | char **ppc; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14047 | /* NEC SVR4.0.2 mips cc rejects this. */ |
14048 | struct point {int x, y;}; | ||||
14049 | static struct point const zero = {0,0}; | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14050 | /* AIX XL C 1.02.0.0 rejects this. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14051 | It does not let you subtract one const X* pointer from another in |
14052 | an arm of an if-expression whose if-part is not a constant | ||||
14053 | expression */ | ||||
14054 | const char *g = "string"; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14055 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14056 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14057 | ++pcpcc; |
14058 | ppc = (char**) pcpcc; | ||||
14059 | pcpcc = (char const *const *) ppc; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14060 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14061 | char tx; | ||||
14062 | char *t = &tx; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14065 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14066 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14067 | } |
14068 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||||
14069 | int x[] = {25, 17}; | ||||
14070 | const int *foo = &x[0]; | ||||
14071 | ++foo; | ||||
14072 | } | ||||
14073 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||||
14074 | typedef const int *iptr; | ||||
14075 | iptr p = 0; | ||||
14076 | ++p; | ||||
14077 | } | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14078 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14079 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14080 | struct s { int j; const int *ap[3]; } bx; |
14081 | struct s *b = &bx; b->j = 5; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | } |
14083 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||||
14084 | const int foo = 10; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14085 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14086 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14087 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14088 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | ; |
14091 | return 0; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14092 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14094 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14095 | ac_cv_c_const=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14097 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14098 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14100 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14102 | $as_echo "$ac_cv_c_const" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14103 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14104 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14105 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14106 | |
14107 | fi | ||||
14108 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14109 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14110 | works=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
14112 | $as_echo_n "checking for working signed char... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14114 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14116 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14117 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14118 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14119 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | ; |
14121 | return 0; | ||||
14122 | } | ||||
14123 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14124 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14125 | works=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14126 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14127 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14128 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14129 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14130 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14131 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | ||||
14134 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14135 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14136 | have_prototypes=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
14138 | $as_echo_n "checking for prototypes... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14140 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14141 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14142 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14143 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14145 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | ; |
14147 | return 0; | ||||
14148 | } | ||||
14149 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14150 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14152 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14154 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14155 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | ||||
14158 | $as_echo "$have_prototypes" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14159 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14160 | works=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
14162 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14164 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14165 | |
14166 | #include <stdarg.h> | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14167 | int foo(int x, ...) { |
14168 | va_list va; | ||||
14169 | va_start(va, x); | ||||
14170 | va_arg(va, int); | ||||
14171 | va_arg(va, char *); | ||||
14172 | va_arg(va, double); | ||||
14173 | return 0; | ||||
14174 | } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14176 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14177 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14179 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14180 | ; |
14181 | return 0; | ||||
14182 | } | ||||
14183 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14184 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | |
14186 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14187 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14189 | works=yes |
14190 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14191 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | ||||
14194 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14195 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14196 | # check for socketpair |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
14198 | $as_echo_n "checking for socketpair... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14200 | /* end confdefs.h. */ |
14201 | |||||
14202 | #include <sys/types.h> | ||||
14203 | #include <sys/socket.h> | ||||
14204 | |||||
14205 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14206 | main () |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14207 | { |
14208 | void *x=socketpair | ||||
14209 | ; | ||||
14210 | return 0; | ||||
14211 | } | ||||
14212 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14213 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14214 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14215 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14216 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14218 | $as_echo "yes" >&6; } | ||||
14219 | else | ||||
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14221 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14222 | |
14223 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14225 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14226 | # check if sockaddr has sa_len member |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
14228 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14230 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14231 | #include <sys/types.h> |
14232 | #include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14233 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14234 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14235 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14236 | struct sockaddr x; |
14237 | x.sa_len = 0; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14238 | ; |
14239 | return 0; | ||||
14240 | } | ||||
14241 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14242 | if ac_fn_c_try_compile "$LINENO"; then : |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14244 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14245 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14246 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14247 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14248 | else |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14250 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14251 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14252 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14254 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14255 | # 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 +0000 | [diff] [blame] | 14256 | |
14257 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14258 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14259 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14260 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14261 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14262 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
14264 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14265 | OLD_CFLAGS=$CFLAGS |
14266 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14268 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14269 | |
14270 | # include <netdb.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14272 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14273 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14274 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14275 | |
14276 | char *name; | ||||
14277 | struct hostent *he, *res; | ||||
14278 | char buffer[2048]; | ||||
14279 | int buflen = 2048; | ||||
14280 | int h_errnop; | ||||
14281 | |||||
14282 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14283 | |
14284 | ; | ||||
14285 | return 0; | ||||
14286 | } | ||||
14287 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14288 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14290 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14293 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14294 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14296 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14298 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14299 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14301 | $as_echo "no" >&6; } | ||||
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | ||||
14303 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14305 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14306 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14307 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14309 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14310 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14312 | |
14313 | char *name; | ||||
14314 | struct hostent *he; | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14315 | char buffer[2048]; |
14316 | int buflen = 2048; | ||||
14317 | int h_errnop; | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14318 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14319 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14320 | |
14321 | ; | ||||
14322 | return 0; | ||||
14323 | } | ||||
14324 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14325 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14327 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14330 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14331 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14333 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14335 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14336 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14338 | $as_echo "no" >&6; } | ||||
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | ||||
14340 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14342 | /* end confdefs.h. */ | ||||
14343 | |||||
14344 | # include <netdb.h> | ||||
14345 | |||||
14346 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14347 | main () |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14348 | { |
14349 | |||||
14350 | char *name; | ||||
14351 | struct hostent *he; | ||||
14352 | struct hostent_data data; | ||||
14353 | |||||
14354 | (void) gethostbyname_r(name, he, &data); | ||||
14355 | |||||
14356 | ; | ||||
14357 | return 0; | ||||
14358 | } | ||||
14359 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14360 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14361 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14362 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14363 | |
14364 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14365 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14366 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14368 | $as_echo "yes" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14369 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14370 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14371 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14373 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14375 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14377 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14378 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14381 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14383 | CFLAGS=$OLD_CFLAGS |
14384 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14385 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14386 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14387 | for ac_func in gethostbyname |
14388 | do : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14389 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14390 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
14391 | cat >>confdefs.h <<_ACEOF | ||||
14392 | #define HAVE_GETHOSTBYNAME 1 | ||||
14393 | _ACEOF | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14394 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14395 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14396 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14397 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14398 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14399 | fi |
14400 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14401 | |
14402 | |||||
14403 | |||||
14404 | |||||
14405 | |||||
14406 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14407 | # checks for system services |
14408 | # (none yet) | ||||
14409 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14410 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14411 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14412 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14413 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14414 | else |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | ||||
14416 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | ||||
14417 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | ||||
14418 | $as_echo_n "(cached) " >&6 | ||||
14419 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14421 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14423 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14425 | /* Override any GCC internal prototype to avoid an error. |
14426 | Use char because int might match the return type of a GCC | ||||
14427 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14428 | #ifdef __cplusplus |
14429 | extern "C" | ||||
14430 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14433 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14435 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | ; |
14437 | return 0; | ||||
14438 | } | ||||
14439 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14440 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | ac_cv_lib_ieee___fpu_control=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14442 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14443 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14444 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14445 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14446 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14448 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
14450 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | ||||
14451 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | ||||
14452 | cat >>confdefs.h <<_ACEOF | ||||
14453 | #define HAVE_LIBIEEE 1 | ||||
14454 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14455 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14456 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14457 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14458 | fi |
14459 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14460 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14461 | fi |
14462 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14463 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14464 | # check for --with-libm=... |
14465 | |||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14466 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14467 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14468 | *) LIBM=-lm |
14469 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
14471 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14473 | # Check whether --with-libm was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14474 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14475 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14476 | if test "$withval" = no |
14477 | then LIBM= | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
14479 | $as_echo "force LIBM empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14480 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14481 | then LIBM=$withval |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
14483 | $as_echo "set LIBM=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14484 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14485 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14486 | else |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | ||||
14488 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14489 | fi |
14490 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14491 | |
14492 | # check for --with-libc=... | ||||
14493 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
14495 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14497 | # Check whether --with-libc was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14498 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14499 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14500 | if test "$withval" = no |
14501 | then LIBC= | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
14503 | $as_echo "force LIBC empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14504 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14505 | then LIBC=$withval |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
14507 | $as_echo "set LIBC=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14508 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14509 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14510 | else |
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | ||||
14512 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14513 | fi |
14514 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14515 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14516 | # ************************************** |
14517 | # * Check for gcc x64 inline assembler * | ||||
14518 | # ************************************** | ||||
14519 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
14521 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14523 | /* end confdefs.h. */ | ||||
14524 | |||||
14525 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14526 | main () |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14527 | { |
14528 | |||||
14529 | __asm__ __volatile__ ("movq %rcx, %rax"); | ||||
14530 | |||||
14531 | ; | ||||
14532 | return 0; | ||||
14533 | } | ||||
14534 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14535 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14536 | have_gcc_asm_for_x64=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14537 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14538 | have_gcc_asm_for_x64=no |
14539 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14540 | rm -f core conftest.err conftest.$ac_objext \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14541 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
14543 | $as_echo "$have_gcc_asm_for_x64" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14544 | if test "$have_gcc_asm_for_x64" = yes |
14545 | then | ||||
14546 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14547 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14548 | |
14549 | fi | ||||
14550 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14551 | # ************************************************** |
14552 | # * Check for various properties of floating point * | ||||
14553 | # ************************************************** | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14554 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 |
14556 | $as_echo_n "checking whether float word ordering is bigendian... " >&6; } | ||||
14557 | if ${ax_cv_c_float_words_bigendian+:} false; then : | ||||
14558 | $as_echo_n "(cached) " >&6 | ||||
14559 | else | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14560 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14561 | |
14562 | ax_cv_c_float_words_bigendian=unknown | ||||
14563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14564 | /* end confdefs.h. */ |
14565 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14566 | |
14567 | double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; | ||||
14568 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14569 | |
14570 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14571 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14572 | |
14573 | |||||
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame^] | 14574 | if grep noonsees conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14575 | ax_cv_c_float_words_bigendian=yes |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14576 | fi |
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame^] | 14577 | if grep seesnoon conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14578 | if test "$ax_cv_c_float_words_bigendian" = unknown; then |
14579 | ax_cv_c_float_words_bigendian=no | ||||
14580 | else | ||||
14581 | ax_cv_c_float_words_bigendian=unknown | ||||
14582 | fi | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14583 | fi |
14584 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14585 | |
14586 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14588 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 |
14590 | $as_echo "$ax_cv_c_float_words_bigendian" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14591 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14592 | case $ax_cv_c_float_words_bigendian in |
14593 | yes) | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14594 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14595 | $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14596 | ;; |
14597 | no) | ||||
14598 | ;; | ||||
14599 | *) | ||||
14600 | as_fn_error $? " | ||||
14601 | |||||
14602 | Unknown float word ordering. You need to manually preset | ||||
14603 | ax_cv_c_float_words_bigendian=no (or yes) according to your system. | ||||
14604 | |||||
14605 | " "$LINENO" 5 ;; | ||||
14606 | esac | ||||
14607 | |||||
14608 | |||||
14609 | if test "$ax_cv_c_float_words_bigendian" = "yes" | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14610 | then |
14611 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14612 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14613 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14614 | elif test "$ax_cv_c_float_words_bigendian" = "no" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14615 | then |
14616 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14617 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14618 | |
14619 | else | ||||
14620 | # Some ARM platforms use a mixed-endian representation for doubles. | ||||
14621 | # While Python doesn't currently have full support for these platforms | ||||
14622 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | ||||
14623 | # conversions work. | ||||
14624 | # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big | ||||
14625 | # or little, then it must be this? | ||||
14626 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14627 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14628 | |
14629 | fi | ||||
14630 | |||||
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14631 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14632 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14633 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14634 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14635 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14636 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14637 | |
14638 | # This inline assembler syntax may also work for suncc and icc, | ||||
14639 | # so we try it on all platforms. | ||||
14640 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
14642 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14644 | /* end confdefs.h. */ |
14645 | |||||
14646 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14647 | main () |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14648 | { |
14649 | |||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14650 | unsigned short cw; |
14651 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | ||||
14652 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14653 | |
14654 | ; | ||||
14655 | return 0; | ||||
14656 | } | ||||
14657 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14658 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14659 | have_gcc_asm_for_x87=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14660 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14661 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14662 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14663 | rm -f core conftest.err conftest.$ac_objext \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14664 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
14666 | $as_echo "$have_gcc_asm_for_x87" >&6; } | ||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14667 | if test "$have_gcc_asm_for_x87" = yes |
14668 | then | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14669 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14670 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14671 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14673 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
14675 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14677 | /* end confdefs.h. */ | ||||
14678 | |||||
14679 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14680 | main () |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14681 | { |
14682 | |||||
14683 | unsigned int fpcr; | ||||
14684 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | ||||
14685 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | ||||
14686 | |||||
14687 | ; | ||||
14688 | return 0; | ||||
14689 | } | ||||
14690 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14691 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14692 | have_gcc_asm_for_mc68881=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14693 | else |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14694 | have_gcc_asm_for_mc68881=no |
14695 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14696 | rm -f core conftest.err conftest.$ac_objext \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14697 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
14699 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14700 | if test "$have_gcc_asm_for_mc68881" = yes |
14701 | then | ||||
14702 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14703 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14704 | |
14705 | fi | ||||
14706 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14707 | # Detect whether system arithmetic is subject to x87-style double |
14708 | # rounding issues. The result of this test has little meaning on non | ||||
14709 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding | ||||
14710 | # mode is round-to-nearest and double rounding issues are present, and | ||||
14711 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
14713 | $as_echo_n "checking for x87-style double rounding... " >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14714 | # $BASECFLAGS may affect the result |
14715 | ac_save_cc="$CC" | ||||
14716 | CC="$CC $BASECFLAGS" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14717 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14718 | ac_cv_x87_double_rounding=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14719 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14721 | /* end confdefs.h. */ |
14722 | |||||
14723 | #include <stdlib.h> | ||||
14724 | #include <math.h> | ||||
14725 | int main() { | ||||
14726 | volatile double x, y, z; | ||||
14727 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | ||||
14728 | x = 0.99999999999999989; /* 1-2**-53 */ | ||||
14729 | y = 1./x; | ||||
14730 | if (y != 1.) | ||||
14731 | exit(0); | ||||
14732 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | ||||
14733 | x = 1e16; | ||||
14734 | y = 2.99999; | ||||
14735 | z = x + y; | ||||
14736 | if (z != 1e16+4.) | ||||
14737 | exit(0); | ||||
14738 | /* both tests show evidence of double rounding */ | ||||
14739 | exit(1); | ||||
14740 | } | ||||
14741 | |||||
14742 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14743 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14744 | ac_cv_x87_double_rounding=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14745 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14746 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14747 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14749 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14750 | fi |
14751 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14752 | CC="$ac_save_cc" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
14754 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14755 | if test "$ac_cv_x87_double_rounding" = yes |
14756 | then | ||||
14757 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14758 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14759 | |
14760 | fi | ||||
14761 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14762 | # ************************************ |
14763 | # * Check for mathematical functions * | ||||
14764 | # ************************************ | ||||
14765 | |||||
14766 | LIBS_SAVE=$LIBS | ||||
14767 | LIBS="$LIBS $LIBM" | ||||
14768 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14769 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
14770 | do : | ||||
14771 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14772 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
14773 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
14774 | cat >>confdefs.h <<_ACEOF | ||||
14775 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14776 | _ACEOF | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14777 | |
14778 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14779 | done |
14780 | |||||
14781 | for ac_func in hypot lgamma log1p log2 round tgamma | ||||
14782 | do : | ||||
14783 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14784 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
14785 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
14786 | cat >>confdefs.h <<_ACEOF | ||||
14787 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14788 | _ACEOF | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14789 | |
14790 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14791 | done |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14792 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14793 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
14794 | " | ||||
14795 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14796 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14797 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14798 | ac_have_decl=0 |
14799 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14800 | |
14801 | cat >>confdefs.h <<_ACEOF | ||||
14802 | #define HAVE_DECL_ISINF $ac_have_decl | ||||
14803 | _ACEOF | ||||
14804 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | ||||
14805 | " | ||||
14806 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14807 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14808 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14809 | ac_have_decl=0 |
14810 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14811 | |
14812 | cat >>confdefs.h <<_ACEOF | ||||
14813 | #define HAVE_DECL_ISNAN $ac_have_decl | ||||
14814 | _ACEOF | ||||
14815 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | ||||
14816 | " | ||||
14817 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14818 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14819 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14820 | ac_have_decl=0 |
14821 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14822 | |
14823 | cat >>confdefs.h <<_ACEOF | ||||
14824 | #define HAVE_DECL_ISFINITE $ac_have_decl | ||||
14825 | _ACEOF | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14826 | |
14827 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14828 | # For multiprocessing module, check that sem_open |
14829 | # actually works. For FreeBSD versions <= 7.2, | ||||
14830 | # the kernel module that provides POSIX semaphores | ||||
14831 | # isn't loaded by default, so an attempt to call | ||||
14832 | # sem_open results in a 'Signal 12' error. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
14834 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | ||||
14835 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | ||||
14836 | $as_echo_n "(cached) " >&6 | ||||
14837 | else | ||||
14838 | if test "$cross_compiling" = yes; then : | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14839 | ac_cv_posix_semaphores_enabled=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14840 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14842 | /* end confdefs.h. */ |
14843 | |||||
14844 | #include <unistd.h> | ||||
14845 | #include <fcntl.h> | ||||
14846 | #include <stdio.h> | ||||
14847 | #include <semaphore.h> | ||||
14848 | #include <sys/stat.h> | ||||
14849 | |||||
14850 | int main(void) { | ||||
14851 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | ||||
14852 | if (a == SEM_FAILED) { | ||||
14853 | perror("sem_open"); | ||||
14854 | return 1; | ||||
14855 | } | ||||
14856 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14857 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14858 | return 0; |
14859 | } | ||||
14860 | |||||
14861 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14862 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14863 | ac_cv_posix_semaphores_enabled=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14864 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14865 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14866 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14867 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14868 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14869 | fi |
14870 | |||||
14871 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14872 | fi |
14873 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
14875 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14876 | if test $ac_cv_posix_semaphores_enabled = no |
14877 | then | ||||
14878 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14879 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14880 | |
14881 | fi | ||||
14882 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14883 | # Multiprocessing check for broken sem_getvalue |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
14885 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | ||||
14886 | if ${ac_cv_broken_sem_getvalue+:} false; then : | ||||
14887 | $as_echo_n "(cached) " >&6 | ||||
14888 | else | ||||
14889 | if test "$cross_compiling" = yes; then : | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14890 | ac_cv_broken_sem_getvalue=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14891 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14893 | /* end confdefs.h. */ |
14894 | |||||
14895 | #include <unistd.h> | ||||
14896 | #include <fcntl.h> | ||||
14897 | #include <stdio.h> | ||||
14898 | #include <semaphore.h> | ||||
14899 | #include <sys/stat.h> | ||||
14900 | |||||
14901 | int main(void){ | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14902 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14903 | int count; |
14904 | int res; | ||||
14905 | if(a==SEM_FAILED){ | ||||
14906 | perror("sem_open"); | ||||
14907 | return 1; | ||||
14908 | |||||
14909 | } | ||||
14910 | res = sem_getvalue(a, &count); | ||||
14911 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14912 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14913 | return res==-1 ? 1 : 0; |
14914 | } | ||||
14915 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14916 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14917 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14918 | ac_cv_broken_sem_getvalue=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14919 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14920 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14921 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14922 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14923 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14924 | fi |
14925 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14926 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14927 | fi |
14928 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
14930 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14931 | if test $ac_cv_broken_sem_getvalue = yes |
14932 | then | ||||
14933 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14934 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14935 | |
14936 | fi | ||||
14937 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14938 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
14939 | " | ||||
14940 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14941 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14942 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14943 | ac_have_decl=0 |
14944 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14945 | |
14946 | cat >>confdefs.h <<_ACEOF | ||||
14947 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | ||||
14948 | _ACEOF | ||||
14949 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||||
14950 | " | ||||
14951 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14952 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14953 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14954 | ac_have_decl=0 |
14955 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14956 | |
14957 | cat >>confdefs.h <<_ACEOF | ||||
14958 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | ||||
14959 | _ACEOF | ||||
14960 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | ||||
14961 | " | ||||
14962 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14963 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14964 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14965 | ac_have_decl=0 |
14966 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14967 | |
14968 | cat >>confdefs.h <<_ACEOF | ||||
14969 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | ||||
14970 | _ACEOF | ||||
14971 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | ||||
14972 | " | ||||
14973 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14974 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14975 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14976 | ac_have_decl=0 |
14977 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14978 | |
14979 | cat >>confdefs.h <<_ACEOF | ||||
14980 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | ||||
14981 | _ACEOF | ||||
14982 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | ||||
14983 | " | ||||
14984 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14985 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14986 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14987 | ac_have_decl=0 |
14988 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14989 | |
14990 | cat >>confdefs.h <<_ACEOF | ||||
14991 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | ||||
14992 | _ACEOF | ||||
14993 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | ||||
14994 | " | ||||
14995 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14996 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 14997 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14998 | ac_have_decl=0 |
14999 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15000 | |
15001 | cat >>confdefs.h <<_ACEOF | ||||
15002 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | ||||
15003 | _ACEOF | ||||
15004 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | ||||
15005 | " | ||||
15006 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15007 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15008 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15009 | ac_have_decl=0 |
15010 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15011 | |
15012 | cat >>confdefs.h <<_ACEOF | ||||
15013 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | ||||
15014 | _ACEOF | ||||
15015 | ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> | ||||
15016 | " | ||||
15017 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : | ||||
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 15018 | ac_have_decl=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15019 | else |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 15020 | ac_have_decl=0 |
15021 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15022 | |
15023 | cat >>confdefs.h <<_ACEOF | ||||
15024 | #define HAVE_DECL_RTLD_MEMBER $ac_have_decl | ||||
15025 | _ACEOF | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15026 | |
15027 | |||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15028 | # determine what size digit to use for Python's longs |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
15030 | $as_echo_n "checking digit size for Python's longs... " >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15031 | # Check whether --enable-big-digits was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15032 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15033 | enableval=$enable_big_digits; case $enable_big_digits in |
15034 | yes) | ||||
15035 | enable_big_digits=30 ;; | ||||
15036 | no) | ||||
15037 | enable_big_digits=15 ;; | ||||
15038 | 15|30) | ||||
15039 | ;; | ||||
15040 | *) | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15041 | 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 +0000 | [diff] [blame] | 15042 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
15044 | $as_echo "$enable_big_digits" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15045 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15046 | cat >>confdefs.h <<_ACEOF |
15047 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | ||||
15048 | _ACEOF | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15049 | |
15050 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15051 | else |
15052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
15053 | $as_echo "no value specified" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15054 | fi |
15055 | |||||
15056 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15057 | # check for wchar.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15058 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
15059 | if test "x$ac_cv_header_wchar_h" = xyes; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | |
15061 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15062 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15064 | wchar_h="yes" |
15065 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15066 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15068 | |
15069 | fi | ||||
15070 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15071 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15072 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15073 | # determine wchar_t size |
15074 | if test "$wchar_h" = yes | ||||
15075 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15076 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15077 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
15078 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
15079 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
15081 | $as_echo_n "checking size of wchar_t... " >&6; } | ||||
15082 | if ${ac_cv_sizeof_wchar_t+:} false; then : | ||||
15083 | $as_echo_n "(cached) " >&6 | ||||
15084 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15085 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15086 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15087 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15088 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15089 | if test "$ac_cv_type_wchar_t" = yes; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15090 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
15091 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15092 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15093 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15094 | else |
15095 | ac_cv_sizeof_wchar_t=0 | ||||
15096 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
15101 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15102 | |
15103 | |||||
15104 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15105 | cat >>confdefs.h <<_ACEOF |
15106 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | ||||
15107 | _ACEOF | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15108 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15109 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15110 | fi |
15111 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
15113 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15114 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15116 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15117 | |
15118 | #include <tcl.h> | ||||
15119 | #if TCL_UTF_MAX != 6 | ||||
15120 | # error "NOT UCS4_TCL" | ||||
15121 | #endif | ||||
15122 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15123 | main () |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15124 | { |
15125 | |||||
15126 | ; | ||||
15127 | return 0; | ||||
15128 | } | ||||
15129 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15130 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15131 | |
15132 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15133 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15134 | |
15135 | have_ucs4_tcl=yes | ||||
15136 | |||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15137 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | ||||
15140 | $as_echo "$have_ucs4_tcl" >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15141 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15143 | if test "$wchar_h" = yes |
15144 | then | ||||
15145 | # check whether wchar_t is signed or not | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
15147 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | ||||
15148 | if ${ac_cv_wchar_t_signed+:} false; then : | ||||
15149 | $as_echo_n "(cached) " >&6 | ||||
15150 | else | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15151 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15152 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15153 | ac_cv_wchar_t_signed=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15154 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15156 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15157 | |
15158 | #include <wchar.h> | ||||
15159 | int main() | ||||
15160 | { | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15161 | /* Success: exit code 0 */ |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15162 | return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15163 | } |
15164 | |||||
15165 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15166 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15167 | ac_cv_wchar_t_signed=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15168 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15169 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15170 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15172 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15173 | fi |
15174 | |||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15175 | fi |
15176 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
15178 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15179 | fi |
15180 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
15182 | $as_echo_n "checking whether wchar_t is usable... " >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15183 | # wchar_t is only usable if it maps to an unsigned type |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 15184 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 15185 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15186 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15187 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15188 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15191 | $as_echo "yes" >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15192 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15194 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15195 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15196 | |
15197 | # check for endianness | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15199 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||||
15200 | if ${ac_cv_c_bigendian+:} false; then : | ||||
15201 | $as_echo_n "(cached) " >&6 | ||||
15202 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15203 | ac_cv_c_bigendian=unknown |
15204 | # See if we're dealing with a universal compiler. | ||||
15205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15206 | /* end confdefs.h. */ | ||||
15207 | #ifndef __APPLE_CC__ | ||||
15208 | not a universal capable compiler | ||||
15209 | #endif | ||||
15210 | typedef int dummy; | ||||
15211 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15212 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15213 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15214 | |
15215 | # Check for potential -arch flags. It is not universal unless | ||||
15216 | # there are at least two -arch flags with different values. | ||||
15217 | ac_arch= | ||||
15218 | ac_prev= | ||||
15219 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||||
15220 | if test -n "$ac_prev"; then | ||||
15221 | case $ac_word in | ||||
15222 | i?86 | x86_64 | ppc | ppc64) | ||||
15223 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||||
15224 | ac_arch=$ac_word | ||||
15225 | else | ||||
15226 | ac_cv_c_bigendian=universal | ||||
15227 | break | ||||
15228 | fi | ||||
15229 | ;; | ||||
15230 | esac | ||||
15231 | ac_prev= | ||||
15232 | elif test "x$ac_word" = "x-arch"; then | ||||
15233 | ac_prev=arch | ||||
15234 | fi | ||||
15235 | done | ||||
15236 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15238 | if test $ac_cv_c_bigendian = unknown; then |
15239 | # See if sys/param.h defines the BYTE_ORDER macro. | ||||
15240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15241 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15242 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15243 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15245 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15246 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15248 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
15249 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||||
15250 | && LITTLE_ENDIAN) | ||||
15251 | bogus endian macros | ||||
15252 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | |
15254 | ; | ||||
15255 | return 0; | ||||
15256 | } | ||||
15257 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15258 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15259 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15261 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15262 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15263 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15266 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15268 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15269 | not big endian |
15270 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | |
15272 | ; | ||||
15273 | return 0; | ||||
15274 | } | ||||
15275 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15276 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15277 | ac_cv_c_bigendian=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15278 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15279 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15280 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15282 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15284 | fi |
15285 | if test $ac_cv_c_bigendian = unknown; then | ||||
15286 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||||
15287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15288 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15289 | #include <limits.h> |
15290 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15292 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15293 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15294 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15295 | bogus endian macros | ||||
15296 | #endif | ||||
15297 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | ; |
15299 | return 0; | ||||
15300 | } | ||||
15301 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15302 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15303 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
15304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15305 | /* end confdefs.h. */ | ||||
15306 | #include <limits.h> | ||||
15307 | |||||
15308 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15309 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15310 | { |
15311 | #ifndef _BIG_ENDIAN | ||||
15312 | not big endian | ||||
15313 | #endif | ||||
15314 | |||||
15315 | ; | ||||
15316 | return 0; | ||||
15317 | } | ||||
15318 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15319 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | ac_cv_c_bigendian=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15321 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15322 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15323 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15325 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15327 | fi |
15328 | if test $ac_cv_c_bigendian = unknown; then | ||||
15329 | # Compile a test program. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15330 | if test "$cross_compiling" = yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15331 | # Try to guess by grepping values from an object file. |
15332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15333 | /* end confdefs.h. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15334 | short int ascii_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15335 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15336 | short int ascii_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15337 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
15338 | int use_ascii (int i) { | ||||
15339 | return ascii_mm[i] + ascii_ii[i]; | ||||
15340 | } | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15341 | short int ebcdic_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15342 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15343 | short int ebcdic_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15344 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
15345 | int use_ebcdic (int i) { | ||||
15346 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||||
15347 | } | ||||
15348 | extern int foo; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15349 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15350 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15351 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15352 | { |
15353 | return use_ascii (foo) == use_ebcdic (foo); | ||||
15354 | ; | ||||
15355 | return 0; | ||||
15356 | } | ||||
15357 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15358 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15359 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
15360 | ac_cv_c_bigendian=yes | ||||
15361 | fi | ||||
15362 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||||
15363 | if test "$ac_cv_c_bigendian" = unknown; then | ||||
15364 | ac_cv_c_bigendian=no | ||||
15365 | else | ||||
15366 | # finding both strings is unlikely to happen, but who knows? | ||||
15367 | ac_cv_c_bigendian=unknown | ||||
15368 | fi | ||||
15369 | fi | ||||
15370 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15372 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15374 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15375 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15377 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15379 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15380 | /* Are we little or big endian? From Harbison&Steele. */ |
15381 | union | ||||
15382 | { | ||||
15383 | long int l; | ||||
15384 | char c[sizeof (long int)]; | ||||
15385 | } u; | ||||
15386 | u.l = 1; | ||||
15387 | return u.c[sizeof (long int) - 1] == 1; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15388 | |
15389 | ; | ||||
15390 | return 0; | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15391 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15393 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15394 | ac_cv_c_bigendian=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15395 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15396 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15397 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15399 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15400 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15401 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15405 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15406 | case $ac_cv_c_bigendian in #( |
15407 | yes) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15408 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15409 | ;; #( |
15410 | no) | ||||
15411 | ;; #( | ||||
15412 | universal) | ||||
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 15413 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15414 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 15415 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15416 | ;; #( |
15417 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15418 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15419 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15420 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15421 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15422 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15423 | # ABI version string for Python extension modules. This appears between the |
15424 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated | ||||
15425 | # from the following attributes which affect the ABI of this Python build (in | ||||
15426 | # this order): | ||||
15427 | # | ||||
15428 | # * The Python implementation (always 'cpython-' for us) | ||||
15429 | # * The major and minor version numbers | ||||
15430 | # * --with-pydebug (adds a 'd') | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15431 | # |
15432 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | ||||
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 15433 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
15434 | # libraries would be named 'foo.cpython-32dmu.so'. | ||||
Victor Stinner | 6c44fde | 2019-04-24 16:10:09 +0200 | [diff] [blame] | 15435 | # |
15436 | # In Python 3.2 and older, --with-wide-unicode added a 'u' flag. | ||||
15437 | # In Python 3.7 and older, --with-pymalloc added a 'm' flag. | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15438 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
15440 | $as_echo_n "checking ABIFLAGS... " >&6; } | ||||
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | ||||
15442 | $as_echo "$ABIFLAGS" >&6; } | ||||
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | ||||
15444 | $as_echo_n "checking SOABI... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 15445 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
15447 | $as_echo "$SOABI" >&6; } | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15448 | |
Victor Stinner | 6d13e5b | 2019-04-26 18:56:19 +0200 | [diff] [blame] | 15449 | # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
15450 | if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then | ||||
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 15451 | # Similar to SOABI but remove "d" flag from ABIFLAGS |
15452 | |||||
15453 | ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | ||||
15454 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15455 | cat >>confdefs.h <<_ACEOF |
15456 | #define ALT_SOABI "${ALT_SOABI}" | ||||
15457 | _ACEOF | ||||
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 15458 | |
15459 | fi | ||||
15460 | |||||
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 15461 | |
Matti Picus | a44ce6c | 2020-12-20 04:56:57 +0200 | [diff] [blame] | 15462 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 15463 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
15465 | $as_echo_n "checking LDVERSION... " >&6; } | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15466 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
15468 | $as_echo "$LDVERSION" >&6; } | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15469 | |
E. M. Bray | c994c8f | 2019-05-24 17:33:47 +0200 | [diff] [blame] | 15470 | # On Android and Cygwin the shared libraries must be linked with libpython. |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15471 | |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 15472 | if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15473 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 15474 | else |
15475 | LIBPYTHON='' | ||||
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15476 | fi |
15477 | |||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15478 | |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 15479 | |
15480 | BINLIBDEST='$(LIBDIR)/python$(VERSION)' | ||||
15481 | |||||
15482 | |||||
15483 | # Check for --with-platlibdir | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15484 | # /usr/$LIDIRNAME/python$VERSION |
15485 | |||||
15486 | PLATLIBDIR="lib" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 |
15488 | $as_echo_n "checking for --with-platlibdir... " >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15489 | |
15490 | # Check whether --with-platlibdir was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15491 | if test "${with_platlibdir+set}" = set; then : |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15492 | withval=$with_platlibdir; |
15493 | # ignore 3 options: | ||||
15494 | # --with-platlibdir | ||||
15495 | # --with-platlibdir= | ||||
15496 | # --without-platlibdir | ||||
15497 | if test -n "$withval" -a "$withval" != yes -a "$withval" != no | ||||
15498 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15500 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15501 | PLATLIBDIR="$withval" |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 15502 | BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15503 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15505 | $as_echo "no" >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15506 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15507 | else |
15508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
15509 | $as_echo "no" >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15510 | fi |
15511 | |||||
15512 | |||||
15513 | |||||
15514 | |||||
15515 | if test x$PLATFORM_TRIPLET = x; then | ||||
15516 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" | ||||
15517 | else | ||||
15518 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||||
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15519 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15520 | |
15521 | |||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15522 | # Check for --with-wheel-pkg-dir=PATH |
15523 | |||||
15524 | WHEEL_PKG_DIR="" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5 |
15526 | $as_echo_n "checking for --with-wheel-pkg-dir... " >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15527 | |
15528 | # Check whether --with-wheel-pkg-dir was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15529 | if test "${with_wheel_pkg_dir+set}" = set; then : |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15530 | withval=$with_wheel_pkg_dir; |
15531 | if test -n "$withval"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15533 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15534 | WHEEL_PKG_DIR="$withval" |
15535 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15537 | $as_echo "no" >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15538 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15539 | else |
15540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
15541 | $as_echo "no" >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15542 | fi |
15543 | |||||
15544 | |||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15545 | # Check whether right shifting a negative integer extends the sign bit |
15546 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
15548 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | ||||
15549 | if ${ac_cv_rshift_extends_sign+:} false; then : | ||||
15550 | $as_echo_n "(cached) " >&6 | ||||
15551 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15553 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15554 | ac_cv_rshift_extends_sign=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15555 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15557 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15558 | |
15559 | int main() | ||||
15560 | { | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15561 | return (((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15562 | } |
15563 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15565 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15566 | ac_cv_rshift_extends_sign=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15567 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15568 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15569 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15571 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15572 | fi |
15573 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15574 | fi |
15575 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
15577 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15578 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15579 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15581 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15582 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15583 | fi |
15584 | |||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15585 | # check for getc_unlocked and related locking functions |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
15587 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | ||||
15588 | if ${ac_cv_have_getc_unlocked+:} false; then : | ||||
15589 | $as_echo_n "(cached) " >&6 | ||||
15590 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15591 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15593 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15594 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15596 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15598 | |
15599 | FILE *f = fopen("/dev/null", "r"); | ||||
15600 | flockfile(f); | ||||
15601 | getc_unlocked(f); | ||||
15602 | funlockfile(f); | ||||
15603 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15604 | ; |
15605 | return 0; | ||||
15606 | } | ||||
15607 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15608 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15609 | ac_cv_have_getc_unlocked=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15610 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15611 | ac_cv_have_getc_unlocked=no |
15612 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15613 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15614 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15615 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15616 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
15618 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15619 | if test "$ac_cv_have_getc_unlocked" = yes |
15620 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15622 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15623 | |
15624 | fi | ||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15625 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15626 | |
15627 | # Check whether --with-readline was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15628 | if test "${with_readline+set}" = set; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15629 | withval=$with_readline; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15630 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15631 | with_readline=yes |
15632 | fi | ||||
15633 | |||||
15634 | |||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15635 | # check where readline lives |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15636 | py_cv_lib_readline=no |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15637 | # save the value of LIBS so we don't actually link Python with readline |
15638 | LIBS_no_readline=$LIBS | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15639 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15640 | if test "$with_readline" != no; then |
15641 | case "$with_readline" in | ||||
15642 | editline|edit) | ||||
15643 | LIBREADLINE=edit | ||||
15644 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15645 | $as_echo "#define WITH_EDITLINE 1" >>confdefs.h |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15646 | |
15647 | ;; | ||||
15648 | yes|readline) | ||||
15649 | LIBREADLINE=readline | ||||
15650 | ;; | ||||
15651 | *) | ||||
15652 | as_fn_error $? "proper usage is --with(out)-readline[=editline]" "$LINENO" 5 | ||||
15653 | ;; | ||||
15654 | esac | ||||
15655 | |||||
15656 | # On some systems we need to link readline to a termcap compatible | ||||
15657 | # library. NOTE: Keep the precedence of listed libraries synchronised | ||||
15658 | # with setup.py. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
15660 | $as_echo_n "checking how to link readline libs... " >&6; } | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15661 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
15662 | if test -z "$py_libtermcap"; then | ||||
15663 | READLINE_LIBS="-l$LIBREADLINE" | ||||
15664 | else | ||||
15665 | READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap" | ||||
15666 | fi | ||||
15667 | LIBS="$READLINE_LIBS $LIBS_no_readline" | ||||
15668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15669 | /* end confdefs.h. */ |
15670 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15671 | /* Override any GCC internal prototype to avoid an error. |
15672 | Use char because int might match the return type of a GCC | ||||
15673 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15674 | #ifdef __cplusplus |
15675 | extern "C" | ||||
15676 | #endif | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15677 | char readline (); |
15678 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15679 | main () |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15680 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15681 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15682 | ; |
15683 | return 0; | ||||
15684 | } | ||||
15685 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15686 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15687 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15688 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15689 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15690 | conftest$ac_exeext conftest.$ac_ext |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15691 | if test $py_cv_lib_readline = yes; then |
15692 | break | ||||
15693 | fi | ||||
15694 | done | ||||
15695 | |||||
15696 | # Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts | ||||
15697 | #AC_SUBST([READLINE_LIBS]) | ||||
15698 | if test $py_cv_lib_readline = no; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
15700 | $as_echo "none" >&6; } | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15701 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
15703 | $as_echo "$READLINE_LIBS" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15704 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15705 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15706 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15707 | fi |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15708 | fi |
15709 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15710 | if test "$py_cv_lib_readline" = yes; then |
15711 | # check for readline 2.2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15712 | ac_fn_c_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" " |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15713 | #include <stdio.h> /* Must be first for Gnu Readline */ |
15714 | #ifdef WITH_EDITLINE | ||||
15715 | # include <editline/readline.h> | ||||
15716 | #else | ||||
15717 | # include <readline/readline.h> | ||||
15718 | #endif | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15719 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15720 | " |
15721 | if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes; then : | ||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15722 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15723 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15724 | |
15725 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15726 | |
15727 | ac_fn_c_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" " | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15728 | #include <stdio.h> /* Must be first for Gnu Readline */ |
15729 | #ifdef WITH_EDITLINE | ||||
15730 | # include <editline/readline.h> | ||||
15731 | #else | ||||
15732 | # include <readline/readline.h> | ||||
15733 | #endif | ||||
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15734 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15735 | " |
15736 | if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes; then : | ||||
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15737 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15738 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15739 | |
15740 | fi | ||||
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15741 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15742 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15743 | # check for readline 4.0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15744 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_pre_input_hook" | $as_tr_sh` |
15745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5 | ||||
15746 | $as_echo_n "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; } | ||||
15747 | if eval \${$as_ac_Lib+:} false; then : | ||||
15748 | $as_echo_n "(cached) " >&6 | ||||
15749 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15751 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15753 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15755 | /* Override any GCC internal prototype to avoid an error. |
15756 | Use char because int might match the return type of a GCC | ||||
15757 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15758 | #ifdef __cplusplus |
15759 | extern "C" | ||||
15760 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15763 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15765 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | ; |
15767 | return 0; | ||||
15768 | } | ||||
15769 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15770 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15771 | eval "$as_ac_Lib=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15772 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15773 | eval "$as_ac_Lib=no" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15774 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15775 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15776 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | LIBS=$ac_check_lib_save_LIBS |
15778 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15779 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15781 | $as_echo "$ac_res" >&6; } | ||||
15782 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15783 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15784 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15785 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15786 | fi |
15787 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15788 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15789 | # also in 4.0 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15790 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_completion_display_matches_hook" | $as_tr_sh` |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5 | ||||
15792 | $as_echo_n "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; } | ||||
15793 | if eval \${$as_ac_Lib+:} false; then : | ||||
15794 | $as_echo_n "(cached) " >&6 | ||||
15795 | else | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15796 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15797 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15799 | /* end confdefs.h. */ |
15800 | |||||
15801 | /* Override any GCC internal prototype to avoid an error. | ||||
15802 | Use char because int might match the return type of a GCC | ||||
15803 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15804 | #ifdef __cplusplus |
15805 | extern "C" | ||||
15806 | #endif | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15807 | char rl_completion_display_matches_hook (); |
15808 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15809 | main () |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15810 | { |
15811 | return rl_completion_display_matches_hook (); | ||||
15812 | ; | ||||
15813 | return 0; | ||||
15814 | } | ||||
15815 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15816 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15817 | eval "$as_ac_Lib=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15818 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15819 | eval "$as_ac_Lib=no" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15820 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15821 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15822 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15823 | LIBS=$ac_check_lib_save_LIBS |
15824 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15825 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15827 | $as_echo "$ac_res" >&6; } | ||||
15828 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15829 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15830 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15831 | |
15832 | fi | ||||
15833 | |||||
15834 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15835 | # also in 4.0, but not in editline |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15836 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_resize_terminal" | $as_tr_sh` |
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5 | ||||
15838 | $as_echo_n "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; } | ||||
15839 | if eval \${$as_ac_Lib+:} false; then : | ||||
15840 | $as_echo_n "(cached) " >&6 | ||||
15841 | else | ||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15842 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15843 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15845 | /* end confdefs.h. */ | ||||
15846 | |||||
15847 | /* Override any GCC internal prototype to avoid an error. | ||||
15848 | Use char because int might match the return type of a GCC | ||||
15849 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15850 | #ifdef __cplusplus |
15851 | extern "C" | ||||
15852 | #endif | ||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15853 | char rl_resize_terminal (); |
15854 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15855 | main () |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15856 | { |
15857 | return rl_resize_terminal (); | ||||
15858 | ; | ||||
15859 | return 0; | ||||
15860 | } | ||||
15861 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15862 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15863 | eval "$as_ac_Lib=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15864 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15865 | eval "$as_ac_Lib=no" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15866 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15867 | rm -f core conftest.err conftest.$ac_objext \ |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15868 | conftest$ac_exeext conftest.$ac_ext |
15869 | LIBS=$ac_check_lib_save_LIBS | ||||
15870 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15871 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15873 | $as_echo "$ac_res" >&6; } | ||||
15874 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15875 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15876 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15877 | |
15878 | fi | ||||
15879 | |||||
15880 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15881 | # check for readline 4.2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15882 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_completion_matches" | $as_tr_sh` |
15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5 | ||||
15884 | $as_echo_n "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; } | ||||
15885 | if eval \${$as_ac_Lib+:} false; then : | ||||
15886 | $as_echo_n "(cached) " >&6 | ||||
15887 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15889 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15891 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15893 | /* Override any GCC internal prototype to avoid an error. |
15894 | Use char because int might match the return type of a GCC | ||||
15895 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15896 | #ifdef __cplusplus |
15897 | extern "C" | ||||
15898 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15899 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15901 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15902 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15903 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | ; |
15905 | return 0; | ||||
15906 | } | ||||
15907 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15908 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15909 | eval "$as_ac_Lib=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15910 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15911 | eval "$as_ac_Lib=no" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15912 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15913 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15914 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | LIBS=$ac_check_lib_save_LIBS |
15916 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15917 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15919 | $as_echo "$ac_res" >&6; } | ||||
15920 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15921 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15922 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15923 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15924 | fi |
15925 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15926 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15927 | # also in readline 4.2 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15928 | ac_fn_c_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" " |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15929 | #include <stdio.h> /* Must be first for Gnu Readline */ |
15930 | #ifdef WITH_EDITLINE | ||||
15931 | # include <editline/readline.h> | ||||
15932 | #else | ||||
15933 | # include <readline/readline.h> | ||||
15934 | #endif | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15935 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15936 | " |
15937 | if test "x$ac_cv_have_decl_rl_catch_signals" = xyes; then : | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15938 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15939 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15940 | |
15941 | fi | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15942 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15943 | |
15944 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_append_history" | $as_tr_sh` | ||||
15945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5 | ||||
15946 | $as_echo_n "checking for append_history in -l$LIBREADLINE... " >&6; } | ||||
15947 | if eval \${$as_ac_Lib+:} false; then : | ||||
15948 | $as_echo_n "(cached) " >&6 | ||||
15949 | else | ||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15950 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15951 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15953 | /* end confdefs.h. */ | ||||
15954 | |||||
15955 | /* Override any GCC internal prototype to avoid an error. | ||||
15956 | Use char because int might match the return type of a GCC | ||||
15957 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15958 | #ifdef __cplusplus |
15959 | extern "C" | ||||
15960 | #endif | ||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15961 | char append_history (); |
15962 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15963 | main () |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15964 | { |
15965 | return append_history (); | ||||
15966 | ; | ||||
15967 | return 0; | ||||
15968 | } | ||||
15969 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15970 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15971 | eval "$as_ac_Lib=yes" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15972 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15973 | eval "$as_ac_Lib=no" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15974 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15975 | rm -f core conftest.err conftest.$ac_objext \ |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15976 | conftest$ac_exeext conftest.$ac_ext |
15977 | LIBS=$ac_check_lib_save_LIBS | ||||
15978 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15979 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15981 | $as_echo "$ac_res" >&6; } | ||||
15982 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15983 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15984 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15985 | |
15986 | fi | ||||
15987 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15988 | fi |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15989 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15990 | # End of readline checks: restore LIBS |
15991 | LIBS=$LIBS_no_readline | ||||
15992 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
15994 | $as_echo_n "checking for broken nice()... " >&6; } | ||||
15995 | if ${ac_cv_broken_nice+:} false; then : | ||||
15996 | $as_echo_n "(cached) " >&6 | ||||
15997 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 15999 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16000 | ac_cv_broken_nice=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16001 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16003 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16004 | |
Benjamin Peterson | b84df2d | 2019-02-25 21:37:59 -0800 | [diff] [blame] | 16005 | #include <stdlib.h> |
16006 | #include <unistd.h> | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16007 | int main() |
16008 | { | ||||
16009 | int val1 = nice(1); | ||||
16010 | if (val1 != -1 && val1 == nice(2)) | ||||
16011 | exit(0); | ||||
16012 | exit(1); | ||||
16013 | } | ||||
16014 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16016 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16017 | ac_cv_broken_nice=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16018 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16019 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16020 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16022 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16023 | fi |
16024 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16025 | fi |
16026 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
16028 | $as_echo "$ac_cv_broken_nice" >&6; } | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16029 | if test "$ac_cv_broken_nice" = yes |
16030 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16032 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16033 | |
16034 | fi | ||||
16035 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
16037 | $as_echo_n "checking for broken poll()... " >&6; } | ||||
16038 | if ${ac_cv_broken_poll+:} false; then : | ||||
16039 | $as_echo_n "(cached) " >&6 | ||||
16040 | else | ||||
16041 | if test "$cross_compiling" = yes; then : | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16042 | ac_cv_broken_poll=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16043 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16045 | /* end confdefs.h. */ |
16046 | |||||
16047 | #include <poll.h> | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 16048 | #include <unistd.h> |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16049 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16050 | int main() |
16051 | { | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16052 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16053 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16054 | |
16055 | close (42); | ||||
16056 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16057 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16058 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16059 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16060 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16061 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16062 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16063 | return 1; |
16064 | } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16065 | |
16066 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16067 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16068 | ac_cv_broken_poll=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16069 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16070 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16071 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16073 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16074 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16075 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16076 | fi |
16077 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
16079 | $as_echo "$ac_cv_broken_poll" >&6; } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16080 | if test "$ac_cv_broken_poll" = yes |
16081 | then | ||||
16082 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16083 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16084 | |
16085 | fi | ||||
16086 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16087 | # check tzset(3) exists and works like we expect it to |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
16089 | $as_echo_n "checking for working tzset()... " >&6; } | ||||
16090 | if ${ac_cv_working_tzset+:} false; then : | ||||
16091 | $as_echo_n "(cached) " >&6 | ||||
16092 | else | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16093 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16094 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16095 | ac_cv_working_tzset=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16098 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16099 | |
16100 | #include <stdlib.h> | ||||
16101 | #include <time.h> | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16102 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16103 | |
16104 | #if HAVE_TZNAME | ||||
16105 | extern char *tzname[]; | ||||
16106 | #endif | ||||
16107 | |||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16108 | int main() |
16109 | { | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16110 | /* Note that we need to ensure that not only does tzset(3) |
16111 | do 'something' with localtime, but it works as documented | ||||
16112 | in the library reference and as expected by the test suite. | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16113 | This includes making sure that tzname is set properly if |
16114 | tm->tm_zone does not exist since it is the alternative way | ||||
16115 | of getting timezone info. | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16116 | |
16117 | Red Hat 6.2 doesn't understand the southern hemisphere | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16118 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16119 | */ |
16120 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16121 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16122 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
16123 | |||||
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16124 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16125 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16126 | if (localtime(&groundhogday)->tm_hour != 0) |
16127 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16128 | #if HAVE_TZNAME |
16129 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ | ||||
16130 | if (strcmp(tzname[0], "UTC") || | ||||
16131 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | ||||
16132 | exit(1); | ||||
16133 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16134 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16135 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16136 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16137 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16138 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16139 | #if HAVE_TZNAME |
16140 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | ||||
16141 | exit(1); | ||||
16142 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16143 | |
16144 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | ||||
16145 | tzset(); | ||||
16146 | if (localtime(&groundhogday)->tm_hour != 11) | ||||
16147 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16148 | #if HAVE_TZNAME |
16149 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | ||||
16150 | exit(1); | ||||
16151 | #endif | ||||
16152 | |||||
16153 | #if HAVE_STRUCT_TM_TM_ZONE | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16154 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
16155 | exit(1); | ||||
16156 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | ||||
16157 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16158 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16159 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16160 | exit(0); |
16161 | } | ||||
16162 | |||||
16163 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16164 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16165 | ac_cv_working_tzset=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16166 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16167 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16168 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16169 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16170 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16171 | fi |
16172 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16173 | fi |
16174 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
16176 | $as_echo "$ac_cv_working_tzset" >&6; } | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16177 | if test "$ac_cv_working_tzset" = yes |
16178 | then | ||||
16179 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16180 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16181 | |
16182 | fi | ||||
16183 | |||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16184 | # Look for subsecond timestamps in struct stat |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
16186 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | ||||
16187 | if ${ac_cv_stat_tv_nsec+:} false; then : | ||||
16188 | $as_echo_n "(cached) " >&6 | ||||
16189 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16191 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16192 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16193 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16194 | main () |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16195 | { |
16196 | |||||
16197 | struct stat st; | ||||
16198 | st.st_mtim.tv_nsec = 1; | ||||
16199 | |||||
16200 | ; | ||||
16201 | return 0; | ||||
16202 | } | ||||
16203 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16204 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16205 | ac_cv_stat_tv_nsec=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16206 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16207 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16208 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16210 | fi |
16211 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
16213 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | ||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16214 | if test "$ac_cv_stat_tv_nsec" = yes |
16215 | then | ||||
16216 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16217 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16218 | |
16219 | fi | ||||
16220 | |||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16221 | # Look for BSD style subsecond timestamps in struct stat |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
16223 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | ||||
16224 | if ${ac_cv_stat_tv_nsec2+:} false; then : | ||||
16225 | $as_echo_n "(cached) " >&6 | ||||
16226 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16228 | /* end confdefs.h. */ |
16229 | #include <sys/stat.h> | ||||
16230 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16231 | main () |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16232 | { |
16233 | |||||
16234 | struct stat st; | ||||
16235 | st.st_mtimespec.tv_nsec = 1; | ||||
16236 | |||||
16237 | ; | ||||
16238 | return 0; | ||||
16239 | } | ||||
16240 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16241 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16242 | ac_cv_stat_tv_nsec2=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16244 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16245 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16247 | fi |
16248 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
16250 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16251 | if test "$ac_cv_stat_tv_nsec2" = yes |
16252 | then | ||||
16253 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16254 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16255 | |
16256 | fi | ||||
16257 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16258 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16259 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 16260 | if test "$cross_compiling" = no; then |
16261 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||||
16262 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16263 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16264 | for ac_header in curses.h ncurses.h |
16265 | do : | ||||
16266 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
16267 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
16268 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
16269 | cat >>confdefs.h <<_ACEOF | ||||
16270 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
16271 | _ACEOF | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16272 | |
16273 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16274 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16275 | done |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16276 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16277 | |
16278 | # On Solaris, term.h requires curses.h | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16279 | for ac_header in term.h |
16280 | do : | ||||
16281 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16282 | #ifdef HAVE_CURSES_H |
16283 | #include <curses.h> | ||||
16284 | #endif | ||||
16285 | |||||
16286 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16287 | if test "x$ac_cv_header_term_h" = xyes; then : |
16288 | cat >>confdefs.h <<_ACEOF | ||||
16289 | #define HAVE_TERM_H 1 | ||||
16290 | _ACEOF | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16291 | |
16292 | fi | ||||
16293 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16294 | done |
16295 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16296 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16297 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
16299 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | ||||
16300 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | ||||
16301 | $as_echo_n "(cached) " >&6 | ||||
16302 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16304 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16305 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16307 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16308 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16309 | |
16310 | int rtn; | ||||
16311 | rtn = mvwdelch(0,0,0); | ||||
16312 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16313 | ; |
16314 | return 0; | ||||
16315 | } | ||||
16316 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16317 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16318 | ac_cv_mvwdelch_is_expression=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16319 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16320 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16321 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16323 | fi |
16324 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
16326 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16327 | |
16328 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||||
16329 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16330 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16331 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16332 | |
16333 | fi | ||||
16334 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16335 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
16336 | # structs since version 5.7. If the macro is defined as zero before including | ||||
16337 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | ||||
16338 | # configuration. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
16340 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | ||||
16341 | if ${ac_cv_window_has_flags+:} false; then : | ||||
16342 | $as_echo_n "(cached) " >&6 | ||||
16343 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16345 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16346 | |
16347 | #define NCURSES_OPAQUE 0 | ||||
16348 | #include <curses.h> | ||||
16349 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16350 | int |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16351 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16352 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16353 | |
16354 | WINDOW *w; | ||||
16355 | w->_flags = 0; | ||||
16356 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | ; |
16358 | return 0; | ||||
16359 | } | ||||
16360 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16361 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16362 | ac_cv_window_has_flags=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16363 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16364 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16365 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16367 | fi |
16368 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
16370 | $as_echo "$ac_cv_window_has_flags" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16371 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16372 | |
16373 | if test "$ac_cv_window_has_flags" = yes | ||||
16374 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16375 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16376 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16377 | |
16378 | fi | ||||
16379 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
16381 | $as_echo_n "checking for is_pad... " >&6; } | ||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16383 | /* end confdefs.h. */ | ||||
16384 | #include <curses.h> | ||||
16385 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16386 | main () |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16387 | { |
16388 | |||||
16389 | #ifndef is_pad | ||||
16390 | void *x=is_pad | ||||
16391 | #endif | ||||
16392 | |||||
16393 | ; | ||||
16394 | return 0; | ||||
16395 | } | ||||
16396 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16397 | if ac_fn_c_try_compile "$LINENO"; then : |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16398 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16399 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16400 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16402 | $as_echo "yes" >&6; } | ||||
16403 | else | ||||
16404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16405 | $as_echo "no" >&6; } | ||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16406 | |
16407 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16409 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
16411 | $as_echo_n "checking for is_term_resized... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16413 | /* end confdefs.h. */ |
16414 | #include <curses.h> | ||||
16415 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16416 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16417 | { |
16418 | void *x=is_term_resized | ||||
16419 | ; | ||||
16420 | return 0; | ||||
16421 | } | ||||
16422 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16423 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16424 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16425 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16426 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16428 | $as_echo "yes" >&6; } | ||||
16429 | else | ||||
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16431 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16432 | |
16433 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16435 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
16437 | $as_echo_n "checking for resize_term... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16439 | /* end confdefs.h. */ |
16440 | #include <curses.h> | ||||
16441 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16442 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16443 | { |
16444 | void *x=resize_term | ||||
16445 | ; | ||||
16446 | return 0; | ||||
16447 | } | ||||
16448 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16449 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16450 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16451 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16452 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16454 | $as_echo "yes" >&6; } | ||||
16455 | else | ||||
16456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16457 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16458 | |
16459 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16461 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
16463 | $as_echo_n "checking for resizeterm... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16465 | /* end confdefs.h. */ |
16466 | #include <curses.h> | ||||
16467 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16468 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16469 | { |
16470 | void *x=resizeterm | ||||
16471 | ; | ||||
16472 | return 0; | ||||
16473 | } | ||||
16474 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16475 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16476 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16477 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16478 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16480 | $as_echo "yes" >&6; } | ||||
16481 | else | ||||
16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16483 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16484 | |
16485 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16487 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 |
16489 | $as_echo_n "checking for immedok... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16491 | /* end confdefs.h. */ | ||||
16492 | #include <curses.h> | ||||
16493 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16494 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16495 | { |
16496 | |||||
16497 | #ifndef immedok | ||||
16498 | void *x=immedok | ||||
16499 | #endif | ||||
16500 | |||||
16501 | ; | ||||
16502 | return 0; | ||||
16503 | } | ||||
16504 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16505 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16506 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16507 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16508 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16510 | $as_echo "yes" >&6; } | ||||
16511 | else | ||||
16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16513 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16514 | |
16515 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16517 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 |
16519 | $as_echo_n "checking for syncok... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16521 | /* end confdefs.h. */ | ||||
16522 | #include <curses.h> | ||||
16523 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16524 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16525 | { |
16526 | |||||
16527 | #ifndef syncok | ||||
16528 | void *x=syncok | ||||
16529 | #endif | ||||
16530 | |||||
16531 | ; | ||||
16532 | return 0; | ||||
16533 | } | ||||
16534 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16535 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16536 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16537 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16538 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16540 | $as_echo "yes" >&6; } | ||||
16541 | else | ||||
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16543 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16544 | |
16545 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16547 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
16549 | $as_echo_n "checking for wchgat... " >&6; } | ||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16551 | /* end confdefs.h. */ | ||||
16552 | #include <curses.h> | ||||
16553 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16554 | main () |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16555 | { |
16556 | |||||
16557 | #ifndef wchgat | ||||
16558 | void *x=wchgat | ||||
16559 | #endif | ||||
16560 | |||||
16561 | ; | ||||
16562 | return 0; | ||||
16563 | } | ||||
16564 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16565 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16566 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16567 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16568 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16570 | $as_echo "yes" >&6; } | ||||
16571 | else | ||||
16572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16573 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16574 | |
16575 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16577 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
16579 | $as_echo_n "checking for filter... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16581 | /* end confdefs.h. */ | ||||
16582 | #include <curses.h> | ||||
16583 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16584 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16585 | { |
16586 | |||||
16587 | #ifndef filter | ||||
16588 | void *x=filter | ||||
16589 | #endif | ||||
16590 | |||||
16591 | ; | ||||
16592 | return 0; | ||||
16593 | } | ||||
16594 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16595 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16596 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16597 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16598 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16600 | $as_echo "yes" >&6; } | ||||
16601 | else | ||||
16602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16603 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16604 | |
16605 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16607 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 |
16609 | $as_echo_n "checking for has_key... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16611 | /* end confdefs.h. */ | ||||
16612 | #include <curses.h> | ||||
16613 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16614 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16615 | { |
16616 | |||||
16617 | #ifndef has_key | ||||
16618 | void *x=has_key | ||||
16619 | #endif | ||||
16620 | |||||
16621 | ; | ||||
16622 | return 0; | ||||
16623 | } | ||||
16624 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16625 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16626 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16627 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16628 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16630 | $as_echo "yes" >&6; } | ||||
16631 | else | ||||
16632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16633 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16634 | |
16635 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16637 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 |
16639 | $as_echo_n "checking for typeahead... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16641 | /* end confdefs.h. */ | ||||
16642 | #include <curses.h> | ||||
16643 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16644 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16645 | { |
16646 | |||||
16647 | #ifndef typeahead | ||||
16648 | void *x=typeahead | ||||
16649 | #endif | ||||
16650 | |||||
16651 | ; | ||||
16652 | return 0; | ||||
16653 | } | ||||
16654 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16655 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16656 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16657 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16658 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16660 | $as_echo "yes" >&6; } | ||||
16661 | else | ||||
16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16663 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16664 | |
16665 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16667 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 |
16669 | $as_echo_n "checking for use_env... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16671 | /* end confdefs.h. */ | ||||
16672 | #include <curses.h> | ||||
16673 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16674 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16675 | { |
16676 | |||||
16677 | #ifndef use_env | ||||
16678 | void *x=use_env | ||||
16679 | #endif | ||||
16680 | |||||
16681 | ; | ||||
16682 | return 0; | ||||
16683 | } | ||||
16684 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16685 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16686 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16687 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16688 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16690 | $as_echo "yes" >&6; } | ||||
16691 | else | ||||
16692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16693 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16694 | |
16695 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16697 | # last curses configure check |
16698 | CPPFLAGS=$ac_save_cppflags | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16699 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
16701 | $as_echo "$as_me: checking for device files" >&6;} | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16702 | |
16703 | if test "x$cross_compiling" = xyes; then | ||||
16704 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16706 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16708 | $as_echo "not set" >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16709 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
16710 | fi | ||||
16711 | if test "${ac_cv_file__dev_ptc+set}" != set; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16713 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16715 | $as_echo "not set" >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16716 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
16717 | fi | ||||
16718 | fi | ||||
16719 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16721 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16722 | if ${ac_cv_file__dev_ptmx+:} false; then : | ||||
16723 | $as_echo_n "(cached) " >&6 | ||||
16724 | else | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16725 | test "$cross_compiling" = yes && |
16726 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16727 | if test -r "/dev/ptmx"; then | ||||
16728 | ac_cv_file__dev_ptmx=yes | ||||
16729 | else | ||||
16730 | ac_cv_file__dev_ptmx=no | ||||
16731 | fi | ||||
16732 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
16734 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | ||||
16735 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16736 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16737 | fi |
16738 | |||||
16739 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | ||||
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16740 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16741 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16742 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16743 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16745 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16746 | if ${ac_cv_file__dev_ptc+:} false; then : | ||||
16747 | $as_echo_n "(cached) " >&6 | ||||
16748 | else | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16749 | test "$cross_compiling" = yes && |
16750 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16751 | if test -r "/dev/ptc"; then | ||||
16752 | ac_cv_file__dev_ptc=yes | ||||
16753 | else | ||||
16754 | ac_cv_file__dev_ptc=no | ||||
16755 | fi | ||||
16756 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
16758 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | ||||
16759 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16760 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16761 | fi |
16762 | |||||
16763 | if test "x$ac_cv_file__dev_ptc" = xyes; then | ||||
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16764 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16765 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16766 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16767 | fi |
16768 | |||||
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16769 | if test $ac_sys_system = Darwin |
16770 | then | ||||
16771 | LIBS="$LIBS -framework CoreFoundation" | ||||
16772 | fi | ||||
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16773 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
16775 | $as_echo_n "checking for %zd printf() format support... " >&6; } | ||||
16776 | if ${ac_cv_have_size_t_format+:} false; then : | ||||
16777 | $as_echo_n "(cached) " >&6 | ||||
16778 | else | ||||
16779 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16780 | ac_cv_have_size_t_format="cross -- assuming yes" |
16781 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16782 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16784 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16785 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16786 | #include <stdio.h> |
16787 | #include <stddef.h> | ||||
16788 | #include <string.h> | ||||
16789 | |||||
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16790 | #ifdef HAVE_SYS_TYPES_H |
16791 | #include <sys/types.h> | ||||
16792 | #endif | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16793 | |
16794 | #ifdef HAVE_SSIZE_T | ||||
16795 | typedef ssize_t Py_ssize_t; | ||||
16796 | #elif SIZEOF_VOID_P == SIZEOF_LONG | ||||
16797 | typedef long Py_ssize_t; | ||||
16798 | #else | ||||
16799 | typedef int Py_ssize_t; | ||||
16800 | #endif | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16801 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16802 | int main() |
16803 | { | ||||
16804 | char buffer[256]; | ||||
16805 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16806 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
16807 | return 1; | ||||
16808 | |||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16809 | if (strcmp(buffer, "123")) |
16810 | return 1; | ||||
16811 | |||||
16812 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | ||||
16813 | return 1; | ||||
16814 | |||||
16815 | if (strcmp(buffer, "-123")) | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16816 | return 1; |
16817 | |||||
16818 | return 0; | ||||
16819 | } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16820 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16821 | _ACEOF |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16822 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16823 | ac_cv_have_size_t_format=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16824 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16825 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16826 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16828 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16829 | fi |
16830 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16831 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
16833 | $as_echo "$ac_cv_have_size_t_format" >&6; } | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16834 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16835 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16836 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16837 | |
16838 | fi | ||||
16839 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16840 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16841 | #ifdef HAVE_SYS_TYPES_H |
16842 | #include <sys/types.h> | ||||
16843 | #endif | ||||
16844 | #ifdef HAVE_SYS_SOCKET_H | ||||
16845 | #include <sys/socket.h> | ||||
16846 | #endif | ||||
16847 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16848 | " |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16849 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16850 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16851 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16852 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16853 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16854 | |
16855 | fi | ||||
16856 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16857 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
16859 | $as_echo_n "checking for broken mbstowcs... " >&6; } | ||||
16860 | if ${ac_cv_broken_mbstowcs+:} false; then : | ||||
16861 | $as_echo_n "(cached) " >&6 | ||||
16862 | else | ||||
16863 | if test "$cross_compiling" = yes; then : | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16864 | ac_cv_broken_mbstowcs=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16865 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16867 | /* end confdefs.h. */ |
16868 | |||||
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16869 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16870 | #include<stdlib.h> |
16871 | int main() { | ||||
16872 | size_t len = -1; | ||||
16873 | const char *str = "text"; | ||||
16874 | len = mbstowcs(NULL, str, 0); | ||||
16875 | return (len != 4); | ||||
16876 | } | ||||
16877 | |||||
16878 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16879 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16880 | ac_cv_broken_mbstowcs=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16881 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16882 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16883 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16884 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16885 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16886 | fi |
16887 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16888 | fi |
16889 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
16891 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16892 | if test "$ac_cv_broken_mbstowcs" = yes |
16893 | then | ||||
16894 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16895 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16896 | |
16897 | fi | ||||
16898 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16899 | # Check for --with-computed-gotos |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
16901 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16902 | |
16903 | # Check whether --with-computed-gotos was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16904 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16905 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16906 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16907 | then |
16908 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16909 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16910 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16912 | $as_echo "yes" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16913 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16914 | if test "$withval" = no |
16915 | then | ||||
16916 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16917 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16918 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16920 | $as_echo "no" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16921 | fi |
16922 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16923 | else |
16924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
16925 | $as_echo "no value specified" >&6; } | ||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16926 | fi |
16927 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16928 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
16930 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | ||||
16931 | if ${ac_cv_computed_gotos+:} false; then : | ||||
16932 | $as_echo_n "(cached) " >&6 | ||||
16933 | else | ||||
16934 | if test "$cross_compiling" = yes; then : | ||||
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16935 | if test "${with_computed_gotos+set}" = set; then |
16936 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | ||||
16937 | else | ||||
16938 | ac_cv_computed_gotos=no | ||||
16939 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16940 | else |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16942 | /* end confdefs.h. */ | ||||
16943 | |||||
16944 | int main(int argc, char **argv) | ||||
16945 | { | ||||
16946 | static void *targets[1] = { &&LABEL1 }; | ||||
16947 | goto LABEL2; | ||||
16948 | LABEL1: | ||||
16949 | return 0; | ||||
16950 | LABEL2: | ||||
16951 | goto *targets[0]; | ||||
16952 | return 1; | ||||
16953 | } | ||||
16954 | |||||
16955 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16956 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16957 | ac_cv_computed_gotos=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16958 | else |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16959 | ac_cv_computed_gotos=no |
16960 | fi | ||||
16961 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16962 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16963 | fi | ||||
16964 | |||||
16965 | fi | ||||
16966 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
16968 | $as_echo "$ac_cv_computed_gotos" >&6; } | ||||
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16969 | case "$ac_cv_computed_gotos" in yes*) |
16970 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16971 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16972 | |
16973 | esac | ||||
16974 | |||||
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16975 | case $ac_sys_system in |
16976 | AIX*) | ||||
16977 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16978 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16979 | ;; |
16980 | esac | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16981 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16982 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16983 | |
16984 | |||||
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16985 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
16986 | do | ||||
16987 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | ||||
16988 | done | ||||
16989 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16990 | |
Ned Deily | 8d02f91 | 2020-06-25 10:46:44 -0400 | [diff] [blame] | 16991 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
16993 | $as_echo_n "checking for build directories... " >&6; } | ||||
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16994 | for dir in $SRCDIRS; do |
16995 | if test ! -d $dir; then | ||||
16996 | mkdir $dir | ||||
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16997 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16998 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 16999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
17000 | $as_echo "done" >&6; } | ||||
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 17001 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17002 | # Availability of -O2: |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
17004 | $as_echo_n "checking for -O2... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17005 | saved_cflags="$CFLAGS" |
17006 | CFLAGS="-O2" | ||||
17007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17008 | /* end confdefs.h. */ | ||||
17009 | |||||
17010 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17011 | main () |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17012 | { |
17013 | |||||
17014 | |||||
17015 | ; | ||||
17016 | return 0; | ||||
17017 | } | ||||
17018 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17019 | if ac_fn_c_try_compile "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17020 | have_O2=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17021 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17022 | have_O2=no |
17023 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | ||||
17026 | $as_echo "$have_O2" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17027 | CFLAGS="$saved_cflags" |
17028 | |||||
17029 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | ||||
17030 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
17032 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17033 | saved_cflags="$CFLAGS" |
17034 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | ||||
17035 | if test "$have_O2" = no; then | ||||
17036 | CFLAGS="" | ||||
17037 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17038 | if test "$cross_compiling" = yes; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17039 | have_glibc_memmove_bug=undefined |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17040 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17042 | /* end confdefs.h. */ | ||||
17043 | |||||
17044 | #include <stdio.h> | ||||
17045 | #include <stdlib.h> | ||||
17046 | #include <string.h> | ||||
17047 | void foo(void *p, void *q) { memmove(p, q, 19); } | ||||
17048 | int main() { | ||||
17049 | char a[32] = "123456789000000000"; | ||||
17050 | foo(&a[9], a); | ||||
17051 | if (strcmp(a, "123456789123456789000000000") != 0) | ||||
17052 | return 1; | ||||
17053 | foo(a, &a[9]); | ||||
17054 | if (strcmp(a, "123456789000000000") != 0) | ||||
17055 | return 1; | ||||
17056 | return 0; | ||||
17057 | } | ||||
17058 | |||||
17059 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17060 | if ac_fn_c_try_run "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17061 | have_glibc_memmove_bug=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17062 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17063 | have_glibc_memmove_bug=yes |
17064 | fi | ||||
17065 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17066 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17067 | fi | ||||
17068 | |||||
17069 | CFLAGS="$saved_cflags" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
17071 | $as_echo "$have_glibc_memmove_bug" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17072 | if test "$have_glibc_memmove_bug" = yes; then |
17073 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17074 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17075 | |
17076 | fi | ||||
17077 | |||||
17078 | if test "$have_gcc_asm_for_x87" = yes; then | ||||
17079 | # Some versions of gcc miscompile inline asm: | ||||
17080 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | ||||
17081 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | ||||
17082 | case $CC in | ||||
17083 | *gcc*) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
17085 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17086 | saved_cflags="$CFLAGS" |
17087 | CFLAGS="-O2" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17088 | if test "$cross_compiling" = yes; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17089 | have_ipa_pure_const_bug=undefined |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17090 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17092 | /* end confdefs.h. */ | ||||
17093 | |||||
17094 | __attribute__((noinline)) int | ||||
17095 | foo(int *p) { | ||||
17096 | int r; | ||||
17097 | asm ( "movl \$6, (%1)\n\t" | ||||
17098 | "xorl %0, %0\n\t" | ||||
17099 | : "=r" (r) : "r" (p) : "memory" | ||||
17100 | ); | ||||
17101 | return r; | ||||
17102 | } | ||||
17103 | int main() { | ||||
17104 | int p = 8; | ||||
17105 | if ((foo(&p) ? : p) != 6) | ||||
17106 | return 1; | ||||
17107 | return 0; | ||||
17108 | } | ||||
17109 | |||||
17110 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17111 | if ac_fn_c_try_run "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17112 | have_ipa_pure_const_bug=no |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17113 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17114 | have_ipa_pure_const_bug=yes |
17115 | fi | ||||
17116 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17117 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17118 | fi | ||||
17119 | |||||
17120 | CFLAGS="$saved_cflags" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
17122 | $as_echo "$have_ipa_pure_const_bug" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17123 | if test "$have_ipa_pure_const_bug" = yes; then |
17124 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17125 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17126 | |
17127 | fi | ||||
17128 | ;; | ||||
17129 | esac | ||||
17130 | fi | ||||
17131 | |||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17132 | # Check for stdatomic.h |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
17134 | $as_echo_n "checking for stdatomic.h... " >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17136 | /* end confdefs.h. */ | ||||
17137 | |||||
17138 | |||||
17139 | #include <stdatomic.h> | ||||
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 17140 | atomic_int int_var; |
17141 | atomic_uintptr_t uintptr_var; | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17142 | int main() { |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 17143 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
17144 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); | ||||
17145 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17146 | return 0; |
17147 | } | ||||
17148 | |||||
17149 | |||||
17150 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17151 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17152 | have_stdatomic_h=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17153 | else |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17154 | have_stdatomic_h=no |
17155 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17156 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17157 | conftest$ac_exeext conftest.$ac_ext |
17158 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
17160 | $as_echo "$have_stdatomic_h" >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17161 | |
17162 | if test "$have_stdatomic_h" = yes; then | ||||
17163 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17164 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17165 | |
17166 | fi | ||||
17167 | |||||
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17168 | # Check for GCC >= 4.7 and clang __atomic builtin functions |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5 |
17170 | $as_echo_n "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17172 | /* end confdefs.h. */ | ||||
17173 | |||||
17174 | |||||
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17175 | int val; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17176 | int main() { |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17177 | __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST); |
17178 | (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST); | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17179 | return 0; |
17180 | } | ||||
17181 | |||||
17182 | |||||
17183 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17184 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17185 | have_builtin_atomic=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17186 | else |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17187 | have_builtin_atomic=no |
17188 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17189 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17190 | conftest$ac_exeext conftest.$ac_ext |
17191 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
17193 | $as_echo "$have_builtin_atomic" >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17194 | |
17195 | if test "$have_builtin_atomic" = yes; then | ||||
17196 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17197 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17198 | |
17199 | fi | ||||
17200 | |||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17201 | # ensurepip option |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
17203 | $as_echo_n "checking for ensurepip... " >&6; } | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17204 | |
17205 | # Check whether --with-ensurepip was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17206 | if test "${with_ensurepip+set}" = set; then : |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17207 | withval=$with_ensurepip; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17208 | else |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17209 | with_ensurepip=upgrade |
17210 | fi | ||||
17211 | |||||
17212 | case $with_ensurepip in #( | ||||
17213 | yes|upgrade) : | ||||
17214 | ENSUREPIP=upgrade ;; #( | ||||
17215 | install) : | ||||
17216 | ENSUREPIP=install ;; #( | ||||
17217 | no) : | ||||
17218 | ENSUREPIP=no ;; #( | ||||
17219 | *) : | ||||
17220 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | ||||
17221 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
17223 | $as_echo "$ENSUREPIP" >&6; } | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17224 | |
17225 | |||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17226 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
17228 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | ||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17230 | /* end confdefs.h. */ | ||||
17231 | |||||
17232 | |||||
17233 | #include <dirent.h> | ||||
17234 | |||||
17235 | int main() { | ||||
17236 | struct dirent entry; | ||||
17237 | return entry.d_type == DT_UNKNOWN; | ||||
17238 | } | ||||
17239 | |||||
17240 | |||||
17241 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17242 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17243 | have_dirent_d_type=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17244 | else |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17245 | have_dirent_d_type=no |
17246 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17247 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17248 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
17250 | $as_echo "$have_dirent_d_type" >&6; } | ||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17251 | |
17252 | if test "$have_dirent_d_type" = yes; then | ||||
17253 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17254 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17255 | |
17256 | fi | ||||
17257 | |||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17258 | # check if the Linux getrandom() syscall is available |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
17260 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17262 | /* end confdefs.h. */ | ||||
17263 | |||||
17264 | |||||
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 17265 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17266 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 17267 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17268 | |
17269 | int main() { | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17270 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17271 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 17272 | const int flags = GRND_NONBLOCK; |
17273 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17274 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17275 | return 0; |
17276 | } | ||||
17277 | |||||
17278 | |||||
17279 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17280 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17281 | have_getrandom_syscall=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17282 | else |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17283 | have_getrandom_syscall=no |
17284 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17285 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17286 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
17288 | $as_echo "$have_getrandom_syscall" >&6; } | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17289 | |
17290 | if test "$have_getrandom_syscall" = yes; then | ||||
17291 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17292 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17293 | |
17294 | fi | ||||
17295 | |||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17296 | # check if the getrandom() function is available |
17297 | # the test was written for the Solaris function of <sys/random.h> | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
17299 | $as_echo_n "checking for the getrandom() function... " >&6; } | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17301 | /* end confdefs.h. */ | ||||
17302 | |||||
17303 | |||||
17304 | #include <sys/random.h> | ||||
17305 | |||||
17306 | int main() { | ||||
17307 | char buffer[1]; | ||||
17308 | const size_t buflen = sizeof(buffer); | ||||
17309 | const int flags = 0; | ||||
17310 | /* ignore the result, Python checks for ENOSYS at runtime */ | ||||
17311 | (void)getrandom(buffer, buflen, flags); | ||||
17312 | return 0; | ||||
17313 | } | ||||
17314 | |||||
17315 | |||||
17316 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17317 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17318 | have_getrandom=yes |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17319 | else |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17320 | have_getrandom=no |
17321 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17322 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17323 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
17325 | $as_echo "$have_getrandom" >&6; } | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17326 | |
17327 | if test "$have_getrandom" = yes; then | ||||
17328 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17329 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17330 | |
17331 | fi | ||||
17332 | |||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17333 | # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c |
17334 | # shm_* may only be available if linking against librt | ||||
17335 | save_LIBS="$LIBS" | ||||
17336 | save_includes_default="$ac_includes_default" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
17338 | $as_echo_n "checking for library containing shm_open... " >&6; } | ||||
17339 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17340 | $as_echo_n "(cached) " >&6 | ||||
17341 | else | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17342 | ac_func_search_save_LIBS=$LIBS |
17343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17344 | /* end confdefs.h. */ | ||||
17345 | |||||
17346 | /* Override any GCC internal prototype to avoid an error. | ||||
17347 | Use char because int might match the return type of a GCC | ||||
17348 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17349 | #ifdef __cplusplus |
17350 | extern "C" | ||||
17351 | #endif | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17352 | char shm_open (); |
17353 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17354 | main () |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17355 | { |
17356 | return shm_open (); | ||||
17357 | ; | ||||
17358 | return 0; | ||||
17359 | } | ||||
17360 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17361 | for ac_lib in '' rt; do |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17362 | if test -z "$ac_lib"; then |
17363 | ac_res="none required" | ||||
17364 | else | ||||
17365 | ac_res=-l$ac_lib | ||||
17366 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
17367 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17368 | if ac_fn_c_try_link "$LINENO"; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17369 | ac_cv_search_shm_open=$ac_res |
17370 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17371 | rm -f core conftest.err conftest.$ac_objext \ |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17372 | conftest$ac_exeext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17373 | if ${ac_cv_search_shm_open+:} false; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17374 | break |
17375 | fi | ||||
17376 | done | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17377 | if ${ac_cv_search_shm_open+:} false; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17378 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17379 | else |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17380 | ac_cv_search_shm_open=no |
17381 | fi | ||||
17382 | rm conftest.$ac_ext | ||||
17383 | LIBS=$ac_func_search_save_LIBS | ||||
17384 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 |
17386 | $as_echo "$ac_cv_search_shm_open" >&6; } | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17387 | ac_res=$ac_cv_search_shm_open |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17388 | if test "$ac_res" != no; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17389 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
17390 | |||||
17391 | fi | ||||
17392 | |||||
17393 | if test "$ac_cv_search_shm_open" = "-lrt"; then | ||||
17394 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17395 | $as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17396 | |
17397 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17398 | for ac_header in sys/mman.h |
17399 | do : | ||||
17400 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | ||||
17401 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : | ||||
17402 | cat >>confdefs.h <<_ACEOF | ||||
17403 | #define HAVE_SYS_MMAN_H 1 | ||||
17404 | _ACEOF | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17405 | |
17406 | fi | ||||
17407 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17408 | done |
17409 | |||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17410 | # temporarily override ac_includes_default for AC_CHECK_FUNCS below |
17411 | ac_includes_default="\ | ||||
17412 | ${ac_includes_default} | ||||
17413 | #ifndef __cplusplus | ||||
17414 | # ifdef HAVE_SYS_MMAN_H | ||||
17415 | # include <sys/mman.h> | ||||
17416 | # endif | ||||
17417 | #endif | ||||
17418 | " | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17419 | for ac_func in shm_open shm_unlink |
17420 | do : | ||||
17421 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
17422 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
17423 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
17424 | cat >>confdefs.h <<_ACEOF | ||||
17425 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
17426 | _ACEOF | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17427 | |
17428 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17429 | done |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17430 | |
17431 | # we don't want to link with librt always, restore LIBS | ||||
17432 | LIBS="$save_LIBS" | ||||
17433 | ac_includes_default="$save_includes_default" | ||||
17434 | |||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17435 | # Check for usable OpenSSL |
17436 | |||||
17437 | found=false | ||||
17438 | |||||
17439 | # Check whether --with-openssl was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17440 | if test "${with_openssl+set}" = set; then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17441 | withval=$with_openssl; |
17442 | case "$withval" in | ||||
17443 | "" | y | ye | yes | n | no) | ||||
17444 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 | ||||
17445 | ;; | ||||
17446 | *) ssldirs="$withval" | ||||
17447 | ;; | ||||
17448 | esac | ||||
17449 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17450 | else |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17451 | |
17452 | # if pkg-config is installed and openssl has installed a .pc file, | ||||
17453 | # then use that information and don't search ssldirs | ||||
17454 | if test -n "$ac_tool_prefix"; then | ||||
17455 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
17456 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17458 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17459 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : | ||||
17460 | $as_echo_n "(cached) " >&6 | ||||
17461 | else | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17462 | if test -n "$PKG_CONFIG"; then |
17463 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. | ||||
17464 | else | ||||
17465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17466 | for as_dir in $PATH | ||||
17467 | do | ||||
17468 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17469 | test -z "$as_dir" && as_dir=. |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17470 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17472 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17474 | break 2 |
17475 | fi | ||||
17476 | done | ||||
17477 | done | ||||
17478 | IFS=$as_save_IFS | ||||
17479 | |||||
17480 | fi | ||||
17481 | fi | ||||
17482 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG | ||||
17483 | if test -n "$PKG_CONFIG"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
17485 | $as_echo "$PKG_CONFIG" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17486 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17488 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17489 | fi |
17490 | |||||
17491 | |||||
17492 | fi | ||||
17493 | if test -z "$ac_cv_prog_PKG_CONFIG"; then | ||||
17494 | ac_ct_PKG_CONFIG=$PKG_CONFIG | ||||
17495 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
17496 | set dummy pkg-config; ac_word=$2 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17498 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17499 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : | ||||
17500 | $as_echo_n "(cached) " >&6 | ||||
17501 | else | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17502 | if test -n "$ac_ct_PKG_CONFIG"; then |
17503 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. | ||||
17504 | else | ||||
17505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17506 | for as_dir in $PATH | ||||
17507 | do | ||||
17508 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17509 | test -z "$as_dir" && as_dir=. |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17510 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17512 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17514 | break 2 |
17515 | fi | ||||
17516 | done | ||||
17517 | done | ||||
17518 | IFS=$as_save_IFS | ||||
17519 | |||||
17520 | fi | ||||
17521 | fi | ||||
17522 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG | ||||
17523 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
17525 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17526 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17528 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17529 | fi |
17530 | |||||
17531 | if test "x$ac_ct_PKG_CONFIG" = x; then | ||||
17532 | PKG_CONFIG="" | ||||
17533 | else | ||||
17534 | case $cross_compiling:$ac_tool_warned in | ||||
17535 | yes:) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17536 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
17537 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17538 | ac_tool_warned=yes ;; |
17539 | esac | ||||
17540 | PKG_CONFIG=$ac_ct_PKG_CONFIG | ||||
17541 | fi | ||||
17542 | else | ||||
17543 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" | ||||
17544 | fi | ||||
17545 | |||||
17546 | if test x"$PKG_CONFIG" != x""; then | ||||
17547 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` | ||||
17548 | if test $? = 0; then | ||||
17549 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` | ||||
17550 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` | ||||
17551 | found=true | ||||
17552 | fi | ||||
17553 | fi | ||||
17554 | |||||
17555 | # no such luck; use some default ssldirs | ||||
17556 | if ! $found; then | ||||
17557 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" | ||||
17558 | fi | ||||
17559 | |||||
17560 | |||||
17561 | fi | ||||
17562 | |||||
17563 | |||||
17564 | |||||
17565 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in | ||||
17566 | # an 'openssl' subdirectory | ||||
17567 | |||||
17568 | if ! $found; then | ||||
17569 | OPENSSL_INCLUDES= | ||||
17570 | for ssldir in $ssldirs; do | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 |
17572 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17573 | if test -f "$ssldir/include/openssl/ssl.h"; then |
17574 | OPENSSL_INCLUDES="-I$ssldir/include" | ||||
17575 | OPENSSL_LDFLAGS="-L$ssldir/lib" | ||||
17576 | OPENSSL_LIBS="-lssl -lcrypto" | ||||
17577 | found=true | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17579 | $as_echo "yes" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17580 | break |
17581 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17583 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17584 | fi |
17585 | done | ||||
17586 | |||||
17587 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe | ||||
17588 | # it will just work! | ||||
17589 | fi | ||||
17590 | |||||
17591 | # try the preprocessor and linker with our new flags, | ||||
17592 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS | ||||
17593 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 |
17595 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17596 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ |
17597 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 | ||||
17598 | |||||
17599 | save_LIBS="$LIBS" | ||||
17600 | save_LDFLAGS="$LDFLAGS" | ||||
17601 | save_CPPFLAGS="$CPPFLAGS" | ||||
17602 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17603 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17604 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17606 | /* end confdefs.h. */ | ||||
17607 | #include <openssl/ssl.h> | ||||
17608 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17609 | main () |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17610 | { |
17611 | SSL_new(NULL) | ||||
17612 | ; | ||||
17613 | return 0; | ||||
17614 | } | ||||
17615 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17616 | if ac_fn_c_try_link "$LINENO"; then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17617 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17619 | $as_echo "yes" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17620 | have_openssl=yes |
17621 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17622 | else |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17623 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17625 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17626 | have_openssl=no |
17627 | |||||
17628 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17629 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17630 | conftest$ac_exeext conftest.$ac_ext |
17631 | CPPFLAGS="$save_CPPFLAGS" | ||||
17632 | LDFLAGS="$save_LDFLAGS" | ||||
17633 | LIBS="$save_LIBS" | ||||
17634 | |||||
17635 | |||||
17636 | |||||
17637 | |||||
17638 | |||||
17639 | |||||
17640 | if test "$have_openssl" = yes; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 |
17642 | $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17643 | |
17644 | save_LIBS="$LIBS" | ||||
17645 | save_LDFLAGS="$LDFLAGS" | ||||
17646 | save_CPPFLAGS="$CPPFLAGS" | ||||
17647 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17648 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17649 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17650 | |||||
17651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17652 | /* end confdefs.h. */ | ||||
17653 | |||||
17654 | #include <openssl/x509_vfy.h> | ||||
17655 | |||||
17656 | int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17657 | main () |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17658 | { |
17659 | |||||
17660 | X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); | ||||
17661 | X509_VERIFY_PARAM_set1_host(p, "localhost", 0); | ||||
17662 | X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); | ||||
17663 | X509_VERIFY_PARAM_set_hostflags(p, 0); | ||||
17664 | |||||
17665 | ; | ||||
17666 | return 0; | ||||
17667 | } | ||||
17668 | |||||
17669 | _ACEOF | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17670 | if ac_fn_c_try_link "$LINENO"; then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17671 | |
17672 | ac_cv_has_x509_verify_param_set1_host=yes | ||||
17673 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17674 | else |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17675 | |
17676 | ac_cv_has_x509_verify_param_set1_host=no | ||||
17677 | |||||
17678 | fi | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17679 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17680 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 |
17682 | $as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17683 | if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then |
17684 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17685 | $as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17686 | |
17687 | fi | ||||
17688 | |||||
17689 | CPPFLAGS="$save_CPPFLAGS" | ||||
17690 | LDFLAGS="$save_LDFLAGS" | ||||
17691 | LIBS="$save_LIBS" | ||||
17692 | fi | ||||
17693 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17694 | # rpath to libssl and libcrypto |
17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5 | ||||
17696 | $as_echo_n "checking for --with-openssl-rpath... " >&6; } | ||||
17697 | |||||
17698 | # Check whether --with-openssl-rpath was given. | ||||
17699 | if test "${with_openssl_rpath+set}" = set; then : | ||||
17700 | withval=$with_openssl_rpath; | ||||
17701 | else | ||||
17702 | with_openssl_rpath=no | ||||
17703 | |||||
17704 | fi | ||||
17705 | |||||
17706 | case $with_openssl_rpath in #( | ||||
17707 | auto|yes) : | ||||
17708 | OPENSSL_RPATH=auto ;; #( | ||||
17709 | no) : | ||||
17710 | OPENSSL_RPATH= ;; #( | ||||
17711 | *) : | ||||
17712 | if test -d "$with_openssl_rpath"; then : | ||||
17713 | OPENSSL_RPATH="$with_openssl_rpath" | ||||
17714 | else | ||||
17715 | as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 | ||||
17716 | fi | ||||
17717 | |||||
17718 | ;; | ||||
17719 | esac | ||||
17720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5 | ||||
17721 | $as_echo "$OPENSSL_RPATH" >&6; } | ||||
17722 | |||||
17723 | |||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17724 | # ssl module default cipher suite string |
17725 | |||||
17726 | |||||
17727 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 |
17729 | $as_echo_n "checking for --with-ssl-default-suites... " >&6; } | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17730 | |
17731 | # Check whether --with-ssl-default-suites was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17732 | if test "${with_ssl_default_suites+set}" = set; then : |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17733 | withval=$with_ssl_default_suites; |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
17735 | $as_echo "$withval" >&6; } | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17736 | case "$withval" in |
17737 | python) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17738 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17739 | |
17740 | ;; | ||||
17741 | openssl) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17742 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17743 | |
17744 | ;; | ||||
17745 | *) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17746 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17747 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17748 | cat >>confdefs.h <<_ACEOF |
17749 | #define PY_SSL_DEFAULT_CIPHER_STRING "$withval" | ||||
17750 | _ACEOF | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17751 | |
17752 | ;; | ||||
17753 | esac | ||||
17754 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17755 | else |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17756 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 |
17758 | $as_echo "python" >&6; } | ||||
17759 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17760 | |
17761 | |||||
17762 | fi | ||||
17763 | |||||
17764 | |||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17765 | # builtin hash modules |
17766 | default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" | ||||
17767 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17768 | $as_echo "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17769 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 |
17771 | $as_echo_n "checking for --with-builtin-hashlib-hashes... " >&6; } | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17772 | |
17773 | # Check whether --with-builtin-hashlib-hashes was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17774 | if test "${with_builtin_hashlib_hashes+set}" = set; then : |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17775 | withval=$with_builtin_hashlib_hashes; |
17776 | case "$withval" in | ||||
17777 | yes) | ||||
17778 | withval=$default_hashlib_hashes | ||||
17779 | ;; | ||||
17780 | no) | ||||
17781 | withval="" | ||||
17782 | ;; | ||||
17783 | esac | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
17785 | $as_echo "$withval" >&6; } | ||||
17786 | cat >>confdefs.h <<_ACEOF | ||||
17787 | #define PY_BUILTIN_HASHLIB_HASHES "$withval" | ||||
17788 | _ACEOF | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17789 | |
17790 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17791 | else |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17792 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5 |
17794 | $as_echo "$default_hashlib_hashes" >&6; }; | ||||
17795 | cat >>confdefs.h <<_ACEOF | ||||
17796 | #define PY_BUILTIN_HASHLIB_HASHES "$default_hashlib_hashes" | ||||
17797 | _ACEOF | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17798 | |
17799 | |||||
17800 | fi | ||||
17801 | |||||
17802 | |||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17803 | # --with-experimental-isolated-subinterpreters |
17804 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-experimental-isolated-subinterpreters" >&5 |
17806 | $as_echo_n "checking for --with-experimental-isolated-subinterpreters... " >&6; } | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17807 | |
17808 | # Check whether --with-experimental-isolated-subinterpreters was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17809 | if test "${with_experimental_isolated_subinterpreters+set}" = set; then : |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17810 | withval=$with_experimental_isolated_subinterpreters; |
17811 | if test "$withval" != no | ||||
17812 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17814 | $as_echo "yes" >&6; }; | ||||
17815 | $as_echo "#define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 1" >>confdefs.h | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17816 | |
17817 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17819 | $as_echo "no" >&6; }; | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17820 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17821 | else |
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17823 | $as_echo "no" >&6; } | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17824 | fi |
17825 | |||||
17826 | |||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17827 | # --with-static-libpython |
17828 | STATIC_LIBPYTHON=1 | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5 |
17830 | $as_echo_n "checking for --with-static-libpython... " >&6; } | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17831 | |
17832 | # Check whether --with-static-libpython was given. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17833 | if test "${with_static_libpython+set}" = set; then : |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17834 | withval=$with_static_libpython; |
17835 | if test "$withval" = no | ||||
17836 | then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17838 | $as_echo "no" >&6; }; | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17839 | STATIC_LIBPYTHON=0 |
17840 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17842 | $as_echo "yes" >&6; }; | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17843 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17844 | else |
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17846 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17847 | fi |
17848 | |||||
17849 | LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' | ||||
Ned Deily | 0608425 | 2021-03-01 02:04:02 -0500 | [diff] [blame] | 17850 | if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17851 | LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" |
17852 | if test "$STATIC_LIBPYTHON" = 1; then | ||||
17853 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" | ||||
17854 | fi | ||||
17855 | else | ||||
17856 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" | ||||
17857 | fi | ||||
17858 | |||||
17859 | |||||
17860 | |||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17861 | # Check whether to disable test modules. Once set, setup.py will not build |
17862 | # test extension modules and "make install" will not install test suites. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5 |
17864 | $as_echo_n "checking for --disable-test-modules... " >&6; } | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17865 | # Check whether --enable-test-modules was given. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17866 | if test "${enable_test_modules+set}" = set; then : |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17867 | enableval=$enable_test_modules; |
17868 | fi | ||||
17869 | |||||
17870 | if test "$enable_test_modules" = no; then | ||||
17871 | TEST_MODULES=no | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17873 | $as_echo "yes" >&6; } | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17874 | else |
17875 | TEST_MODULES=yes | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17877 | $as_echo "no" >&6; } | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17878 | fi |
17879 | |||||
17880 | |||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17881 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17882 | # generate output files |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 17883 | ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17884 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17885 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
17886 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17887 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17888 | # This file is a shell script that caches the results of configure |
17889 | # tests run on this system so they can be shared between configure | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17890 | # scripts and configure runs, see configure's option --config-cache. |
17891 | # It is not useful on other systems. If it contains results you don't | ||||
17892 | # want to keep, you may remove or edit it. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17893 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17894 | # config.status only pays attention to the cache file if you give it |
17895 | # the --recheck option to rerun configure. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17896 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17897 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17898 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
17899 | # following values. | ||||
17900 | |||||
17901 | _ACEOF | ||||
17902 | |||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17903 | # The following way of writing the cache mishandles newlines in values, |
17904 | # but we know of no workaround that is simple, portable, and efficient. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17905 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17906 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17907 | # and sets the high bit in the cache file unless we assign to the vars. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17908 | ( |
17909 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||||
17910 | eval ac_val=\$$ac_var | ||||
17911 | case $ac_val in #( | ||||
17912 | *${as_nl}*) | ||||
17913 | case $ac_var in #( | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17914 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17915 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17916 | esac |
17917 | case $ac_var in #( | ||||
17918 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17919 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17920 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17921 | esac ;; |
17922 | esac | ||||
17923 | done | ||||
17924 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17925 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17926 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17927 | *${as_nl}ac_space=\ *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17928 | # `set' does not quote correctly, so add quotes: double-quote |
17929 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17930 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17931 | "s/'/'\\\\''/g; |
17932 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17933 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17934 | *) |
17935 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17936 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17937 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17938 | esac | |
17939 | sort | ||||
17940 | ) | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17941 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17942 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17944 | :clear |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17945 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17947 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17948 | :end' >>confcache | ||||
17949 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||||
17950 | if test -w "$cache_file"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17951 | if test "x$cache_file" != "x/dev/null"; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17952 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17953 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17954 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17955 | cat confcache >"$cache_file" | ||||
17956 | else | ||||
17957 | case $cache_file in #( | ||||
17958 | */* | ?:*) | ||||
17959 | mv -f confcache "$cache_file"$$ && | ||||
17960 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||||
17961 | *) | ||||
17962 | mv -f confcache "$cache_file" ;; | ||||
17963 | esac | ||||
17964 | fi | ||||
17965 | fi | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17966 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17968 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17969 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17970 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17971 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17972 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17973 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17974 | # Let make expand exec_prefix. | ||||
17975 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17976 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17977 | DEFS=-DHAVE_CONFIG_H |
17978 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17979 | ac_libobjs= |
17980 | ac_ltlibobjs= | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17981 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17982 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17983 | # 1. Remove the extension, and $U if already installed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17984 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17985 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17986 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17987 | # will be set to the directory where LIBOBJS objects are built. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17988 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17989 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17990 | done |
17991 | LIBOBJS=$ac_libobjs | ||||
17992 | |||||
17993 | LTLIBOBJS=$ac_ltlibobjs | ||||
17994 | |||||
17995 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17996 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17997 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17998 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17999 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | ac_clean_files_save=$ac_clean_files |
18001 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18002 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18003 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18004 | as_write_fail=0 |
18005 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | #! $SHELL |
18007 | # Generated by $as_me. | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18008 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18009 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18010 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18012 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18013 | ac_cs_recheck=false |
18014 | ac_cs_silent=false | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18015 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18016 | SHELL=\${CONFIG_SHELL-$SHELL} |
18017 | export SHELL | ||||
18018 | _ASEOF | ||||
18019 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||||
18020 | ## -------------------- ## | ||||
18021 | ## M4sh Initialization. ## | ||||
18022 | ## -------------------- ## | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18023 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18024 | # Be more Bourne compatible |
18025 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18026 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | emulate sh |
18028 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18029 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18030 | # is contrary to our usage. Disable this feature. |
18031 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18032 | setopt NO_GLOB_SUBST |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18033 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18034 | case `(set -o) 2>/dev/null` in #( |
18035 | *posix*) : | ||||
18036 | set -o posix ;; #( | ||||
18037 | *) : | ||||
18038 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18039 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18040 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18041 | |
18042 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18043 | as_nl=' |
18044 | ' | ||||
18045 | export as_nl | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18046 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
18047 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
18048 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
18049 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
18050 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
18051 | # but without wasting forks for bash or zsh. | ||||
18052 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
18053 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
18054 | as_echo='print -r --' | ||||
18055 | as_echo_n='print -rn --' | ||||
18056 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
18057 | as_echo='printf %s\n' | ||||
18058 | as_echo_n='printf %s' | ||||
18059 | else | ||||
18060 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
18061 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
18062 | as_echo_n='/usr/ucb/echo -n' | ||||
18063 | else | ||||
18064 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
18065 | as_echo_n_body='eval | ||||
18066 | arg=$1; | ||||
18067 | case $arg in #( | ||||
18068 | *"$as_nl"*) | ||||
18069 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
18070 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
18071 | esac; | ||||
18072 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
18073 | ' | ||||
18074 | export as_echo_n_body | ||||
18075 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
18076 | fi | ||||
18077 | export as_echo_body | ||||
18078 | as_echo='sh -c $as_echo_body as_echo' | ||||
18079 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18080 | |
18081 | # The user is always right. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18082 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18083 | PATH_SEPARATOR=: |
18084 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
18085 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
18086 | PATH_SEPARATOR=';' | ||||
18087 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18088 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18089 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18090 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18091 | # IFS |
18092 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
18093 | # there to prevent editors from complaining about space-tab. | ||||
18094 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
18095 | # splitting by setting IFS to empty value.) | ||||
18096 | IFS=" "" $as_nl" | ||||
18097 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18098 | # Find who we are. Look in the path if we contain no directory separator. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18099 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18100 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18101 | *[\\/]* ) as_myself=$0 ;; |
18102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18103 | for as_dir in $PATH |
18104 | do | ||||
18105 | IFS=$as_save_IFS | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18106 | test -z "$as_dir" && as_dir=. |
18107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18108 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18109 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18110 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18111 | ;; |
18112 | esac | ||||
18113 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
18114 | # in which case we are not to be found in the path. | ||||
18115 | if test "x$as_myself" = x; then | ||||
18116 | as_myself=$0 | ||||
18117 | fi | ||||
18118 | if test ! -f "$as_myself"; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18120 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18121 | fi |
18122 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18123 | # Unset variables that we do not need and which cause bugs (e.g. in |
18124 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
18125 | # suppresses any "Segmentation fault" message there. '((' could | ||||
18126 | # trigger a bug in pdksh 5.2.14. | ||||
18127 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
18128 | do eval test x\${$as_var+set} = xset \ | ||||
18129 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
18130 | done | ||||
18131 | PS1='$ ' | ||||
18132 | PS2='> ' | ||||
18133 | PS4='+ ' | ||||
18134 | |||||
18135 | # NLS nuisances. | ||||
18136 | LC_ALL=C | ||||
18137 | export LC_ALL | ||||
18138 | LANGUAGE=C | ||||
18139 | export LANGUAGE | ||||
18140 | |||||
18141 | # CDPATH. | ||||
18142 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18143 | |
18144 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18145 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18146 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18147 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18148 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18149 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18150 | as_fn_error () |
18151 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18152 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18153 | if test "$4"; then | ||||
18154 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18155 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18156 | fi |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18157 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18158 | as_fn_exit $as_status |
18159 | } # as_fn_error | ||||
18160 | |||||
18161 | |||||
18162 | # as_fn_set_status STATUS | ||||
18163 | # ----------------------- | ||||
18164 | # Set $? to STATUS, without forking. | ||||
18165 | as_fn_set_status () | ||||
18166 | { | ||||
18167 | return $1 | ||||
18168 | } # as_fn_set_status | ||||
18169 | |||||
18170 | # as_fn_exit STATUS | ||||
18171 | # ----------------- | ||||
18172 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
18173 | as_fn_exit () | ||||
18174 | { | ||||
18175 | set +e | ||||
18176 | as_fn_set_status $1 | ||||
18177 | exit $1 | ||||
18178 | } # as_fn_exit | ||||
18179 | |||||
18180 | # as_fn_unset VAR | ||||
18181 | # --------------- | ||||
18182 | # Portably unset VAR. | ||||
18183 | as_fn_unset () | ||||
18184 | { | ||||
18185 | { eval $1=; unset $1;} | ||||
18186 | } | ||||
18187 | as_unset=as_fn_unset | ||||
18188 | # as_fn_append VAR VALUE | ||||
18189 | # ---------------------- | ||||
18190 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
18191 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
18192 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
18193 | # implementations. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18194 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18195 | eval 'as_fn_append () |
18196 | { | ||||
18197 | eval $1+=\$2 | ||||
18198 | }' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18199 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18200 | as_fn_append () |
18201 | { | ||||
18202 | eval $1=\$$1\$2 | ||||
18203 | } | ||||
18204 | fi # as_fn_append | ||||
18205 | |||||
18206 | # as_fn_arith ARG... | ||||
18207 | # ------------------ | ||||
18208 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
18209 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
18210 | # must be portable across $(()) and expr. | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18211 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18212 | eval 'as_fn_arith () |
18213 | { | ||||
18214 | as_val=$(( $* )) | ||||
18215 | }' | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18216 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18217 | as_fn_arith () |
18218 | { | ||||
18219 | as_val=`expr "$@" || test $? -eq 1` | ||||
18220 | } | ||||
18221 | fi # as_fn_arith | ||||
18222 | |||||
18223 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18224 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18225 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
18226 | as_expr=expr | ||||
18227 | else | ||||
18228 | as_expr=false | ||||
18229 | fi | ||||
18230 | |||||
18231 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
18232 | as_basename=basename | ||||
18233 | else | ||||
18234 | as_basename=false | ||||
18235 | fi | ||||
18236 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18237 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18238 | as_dirname=dirname | ||||
18239 | else | ||||
18240 | as_dirname=false | ||||
18241 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18242 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18243 | as_me=`$as_basename -- "$0" || |
18244 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
18245 | X"$0" : 'X\(//\)$' \| \ | ||||
18246 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18247 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18248 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18249 | s//\1/ | ||||
18250 | q | ||||
18251 | } | ||||
18252 | /^X\/\(\/\/\)$/{ | ||||
18253 | s//\1/ | ||||
18254 | q | ||||
18255 | } | ||||
18256 | /^X\/\(\/\).*/{ | ||||
18257 | s//\1/ | ||||
18258 | q | ||||
18259 | } | ||||
18260 | s/.*/./; q'` | ||||
18261 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18262 | # Avoid depending upon Character Ranges. |
18263 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
18264 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
18265 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
18266 | as_cr_digits='0123456789' | ||||
18267 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18268 | |
18269 | ECHO_C= ECHO_N= ECHO_T= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18270 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18271 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18272 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18273 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18274 | xy) ECHO_C='\c';; |
18275 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
18276 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18277 | esac;; |
18278 | *) | ||||
18279 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18280 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 18281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18282 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18283 | if test -d conf$$.dir; then |
18284 | rm -f conf$$.dir/conf$$.file | ||||
18285 | else | ||||
18286 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18287 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18288 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18289 | if (echo >conf$$.file) 2>/dev/null; then |
18290 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
18291 | as_ln_s='ln -s' | ||||
18292 | # ... but there are two gotchas: | ||||
18293 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
18294 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18295 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18296 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18297 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18298 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18299 | as_ln_s=ln | ||||
18300 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18301 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18304 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18305 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18306 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18307 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18308 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18309 | |
18310 | # as_fn_mkdir_p | ||||
18311 | # ------------- | ||||
18312 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
18313 | as_fn_mkdir_p () | ||||
18314 | { | ||||
18315 | |||||
18316 | case $as_dir in #( | ||||
18317 | -*) as_dir=./$as_dir;; | ||||
18318 | esac | ||||
18319 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
18320 | as_dirs= | ||||
18321 | while :; do | ||||
18322 | case $as_dir in #( | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18323 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18324 | *) as_qdir=$as_dir;; |
18325 | esac | ||||
18326 | as_dirs="'$as_qdir' $as_dirs" | ||||
18327 | as_dir=`$as_dirname -- "$as_dir" || | ||||
18328 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
18329 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
18330 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
18331 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18332 | $as_echo X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18334 | s//\1/ | ||||
18335 | q | ||||
18336 | } | ||||
18337 | /^X\(\/\/\)[^/].*/{ | ||||
18338 | s//\1/ | ||||
18339 | q | ||||
18340 | } | ||||
18341 | /^X\(\/\/\)$/{ | ||||
18342 | s//\1/ | ||||
18343 | q | ||||
18344 | } | ||||
18345 | /^X\(\/\).*/{ | ||||
18346 | s//\1/ | ||||
18347 | q | ||||
18348 | } | ||||
18349 | s/.*/./; q'` | ||||
18350 | test -d "$as_dir" && break | ||||
18351 | done | ||||
18352 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18353 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18354 | |
18355 | |||||
18356 | } # as_fn_mkdir_p | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18357 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18358 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18359 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18360 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18361 | as_mkdir_p=false |
18362 | fi | ||||
18363 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18364 | |
18365 | # as_fn_executable_p FILE | ||||
18366 | # ----------------------- | ||||
18367 | # Test if FILE is an executable regular file. | ||||
18368 | as_fn_executable_p () | ||||
18369 | { | ||||
18370 | test -f "$1" && test -x "$1" | ||||
18371 | } # as_fn_executable_p | ||||
18372 | as_test_x='test -x' | ||||
18373 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18374 | |
18375 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18376 | 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 +0000 | [diff] [blame] | 18377 | |
18378 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18379 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18380 | |
18381 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18382 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18383 | ## ----------------------------------- ## |
18384 | ## Main body of $CONFIG_STATUS script. ## | ||||
18385 | ## ----------------------------------- ## | ||||
18386 | _ASEOF | ||||
18387 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18388 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18390 | # Save the log message, to keep $0 and so on meaningful, and to | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18391 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18392 | # values after options handling. |
18393 | ac_log=" | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 18394 | This file was extended by python $as_me 3.10, which was |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18395 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18396 | |
18397 | CONFIG_FILES = $CONFIG_FILES | ||||
18398 | CONFIG_HEADERS = $CONFIG_HEADERS | ||||
18399 | CONFIG_LINKS = $CONFIG_LINKS | ||||
18400 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||||
18401 | $ $0 $@ | ||||
18402 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18403 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18404 | " | ||||
18405 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18406 | _ACEOF |
18407 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18408 | case $ac_config_files in *" |
18409 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||||
18410 | esac | ||||
18411 | |||||
18412 | case $ac_config_headers in *" | ||||
18413 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||||
18414 | esac | ||||
18415 | |||||
18416 | |||||
18417 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18418 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 18419 | config_files="$ac_config_files" |
18420 | config_headers="$ac_config_headers" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18421 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18422 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18423 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18424 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18425 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18426 | \`$as_me' instantiates files and other configuration actions |
18427 | from templates according to the current configuration. Unless the files | ||||
18428 | and actions are specified as TAGs, all are instantiated by default. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18429 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18430 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18431 | |
18432 | -h, --help print this help, then exit | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18433 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18434 | --config print configuration, then exit |
18435 | -q, --quiet, --silent | ||||
18436 | do not print progress messages | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18437 | -d, --debug don't remove temporary files |
18438 | --recheck update $as_me by reconfiguring in the same conditions | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18439 | --file=FILE[:TEMPLATE] |
18440 | instantiate the configuration file FILE | ||||
18441 | --header=FILE[:TEMPLATE] | ||||
18442 | instantiate the configuration header FILE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18443 | |
18444 | Configuration files: | ||||
18445 | $config_files | ||||
18446 | |||||
18447 | Configuration headers: | ||||
18448 | $config_headers | ||||
18449 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 18450 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 18451 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18452 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18453 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18454 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18455 | ac_cs_version="\\ |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 18456 | python config.status 3.10 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18457 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18458 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18459 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18460 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18461 | This config.status script is free software; the Free Software Foundation |
18462 | gives unlimited permission to copy, distribute and modify it." | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18463 | |
18464 | ac_pwd='$ac_pwd' | ||||
18465 | srcdir='$srcdir' | ||||
18466 | INSTALL='$INSTALL' | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18467 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18468 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18469 | _ACEOF |
18470 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18472 | # The default lists apply if the user does not specify any file. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18473 | ac_need_defaults=: |
18474 | while test $# != 0 | ||||
18475 | do | ||||
18476 | case $1 in | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18477 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18478 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18479 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18480 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18481 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18482 | --*=) |
18483 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||||
18484 | ac_optarg= | ||||
18485 | ac_shift=: | ||||
18486 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18487 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18488 | ac_option=$1 |
18489 | ac_optarg=$2 | ||||
18490 | ac_shift=shift | ||||
18491 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18492 | esac |
18493 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18494 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18495 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18496 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18497 | ac_cs_recheck=: ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18498 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18499 | $as_echo "$ac_cs_version"; exit ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18500 | --config | --confi | --conf | --con | --co | --c ) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18501 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18502 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18503 | debug=: ;; |
18504 | --file | --fil | --fi | --f ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18505 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18506 | case $ac_optarg in |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18507 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18508 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18509 | esac |
18510 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | ac_need_defaults=false;; |
18512 | --header | --heade | --head | --hea ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18513 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18514 | case $ac_optarg in |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18515 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18516 | esac |
18517 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18518 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18519 | --he | --h) |
18520 | # Conflict between --help and --header | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18521 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18522 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18523 | --help | --hel | -h ) |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18524 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18525 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18526 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||||
18527 | ac_cs_silent=: ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18528 | |
18529 | # This is an error. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18530 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18531 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18532 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18533 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18534 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18535 | |
18536 | esac | ||||
18537 | shift | ||||
18538 | done | ||||
18539 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18540 | ac_configure_extra_args= |
18541 | |||||
18542 | if $ac_cs_silent; then | ||||
18543 | exec 6>/dev/null | ||||
18544 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||||
18545 | fi | ||||
18546 | |||||
18547 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18548 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18549 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18550 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18551 | shift |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18552 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18553 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18554 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18555 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18556 | fi |
18557 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18558 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18560 | exec 5>>config.log |
18561 | { | ||||
18562 | echo | ||||
18563 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||||
18564 | ## Running $as_me. ## | ||||
18565 | _ASBOX | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18566 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18567 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18568 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18569 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18571 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18572 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18573 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18574 | |
18575 | # Handling of arguments. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18576 | for ac_config_target in $ac_config_targets |
18577 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18578 | case $ac_config_target in |
18579 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | ||||
18580 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | ||||
18581 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 18582 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
18583 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18584 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18585 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 18586 | "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 18587 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 18588 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18589 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18590 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18591 | esac |
18592 | done | ||||
18593 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18595 | # If the user did not use the arguments to specify the items to instantiate, |
18596 | # then the envvar interface is used. Set only those that are not. | ||||
18597 | # We use the long form for the default assignment because of an extremely | ||||
18598 | # bizarre bug on SunOS 4.1.3. | ||||
18599 | if $ac_need_defaults; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18600 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
18601 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18602 | fi |
18603 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18604 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18605 | # simply because there is no reason against having it here, and in addition, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18606 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18607 | # Hook for its removal unless debugging. |
18608 | # Note that there is a small window in which the directory will not be cleaned: | ||||
18609 | # after its creation but before its name has been assigned to `$tmp'. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18610 | $debug || |
18611 | { | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18612 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18613 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18614 | : "${ac_tmp:=$tmp}" |
18615 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18616 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18617 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18618 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18619 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18621 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18622 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18623 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18624 | } || |
18625 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18626 | tmp=./conf$$-$RANDOM |
18627 | (umask 077 && mkdir "$tmp") | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18628 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18629 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18630 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18631 | # Set up the scripts for CONFIG_FILES section. |
18632 | # No need to generate them if there are no CONFIG_FILES. | ||||
18633 | # This happens for instance with `./config.status config.h'. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18634 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18636 | |
18637 | ac_cr=`echo X | tr X '\015'` | ||||
18638 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||||
18639 | # But we know of no other shell where ac_cr would be empty at this | ||||
18640 | # point, so we can use a bashism as a fallback. | ||||
18641 | if test "x$ac_cr" = x; then | ||||
18642 | eval ac_cr=\$\'\\r\' | ||||
18643 | fi | ||||
18644 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||||
18645 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18646 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18647 | else |
18648 | ac_cs_awk_cr=$ac_cr | ||||
18649 | fi | ||||
18650 | |||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18651 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | _ACEOF |
18653 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18654 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18655 | { |
18656 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||||
18657 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||||
18658 | echo "_ACEOF" | ||||
18659 | } >conf$$subs.sh || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18660 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18661 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18662 | ac_delim='%!_!# ' |
18663 | for ac_last_try in false false false false false :; do | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18664 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18665 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18666 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18667 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18668 | if test $ac_delim_n = $ac_delim_num; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18669 | break |
18670 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18671 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18672 | else |
18673 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18674 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18675 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18676 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18677 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18679 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18680 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18681 | sed -n ' |
18682 | h | ||||
18683 | s/^/S["/; s/!.*/"]=/ | ||||
18684 | p | ||||
18685 | g | ||||
18686 | s/^[^!]*!// | ||||
18687 | :repl | ||||
18688 | t repl | ||||
18689 | s/'"$ac_delim"'$// | ||||
18690 | t delim | ||||
18691 | :nl | ||||
18692 | h | ||||
18693 | s/\(.\{148\}\)..*/\1/ | ||||
18694 | t more1 | ||||
18695 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||||
18696 | p | ||||
18697 | n | ||||
18698 | b repl | ||||
18699 | :more1 | ||||
18700 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18701 | p | ||||
18702 | g | ||||
18703 | s/.\{148\}// | ||||
18704 | t nl | ||||
18705 | :delim | ||||
18706 | h | ||||
18707 | s/\(.\{148\}\)..*/\1/ | ||||
18708 | t more2 | ||||
18709 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||||
18710 | p | ||||
18711 | b | ||||
18712 | :more2 | ||||
18713 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18714 | p | ||||
18715 | g | ||||
18716 | s/.\{148\}// | ||||
18717 | t delim | ||||
18718 | ' <conf$$subs.awk | sed ' | ||||
18719 | /^[^""]/{ | ||||
18720 | N | ||||
18721 | s/\n// | ||||
18722 | } | ||||
18723 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18724 | rm -f conf$$subs.awk | ||||
18725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18726 | _ACAWK | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18727 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18728 | for (key in S) S_is_set[key] = 1 |
18729 | FS = "" | ||||
18730 | |||||
18731 | } | ||||
18732 | { | ||||
18733 | line = $ 0 | ||||
18734 | nfields = split(line, field, "@") | ||||
18735 | substed = 0 | ||||
18736 | len = length(field[1]) | ||||
18737 | for (i = 2; i < nfields; i++) { | ||||
18738 | key = field[i] | ||||
18739 | keylen = length(key) | ||||
18740 | if (S_is_set[key]) { | ||||
18741 | value = S[key] | ||||
18742 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||||
18743 | len += length(value) + length(field[++i]) | ||||
18744 | substed = 1 | ||||
18745 | } else | ||||
18746 | len += 1 + keylen | ||||
18747 | } | ||||
18748 | |||||
18749 | print line | ||||
18750 | } | ||||
18751 | |||||
18752 | _ACAWK | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18753 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18755 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||||
18756 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||||
18757 | else | ||||
18758 | cat | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18759 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18760 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 18761 | _ACEOF |
18762 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18763 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18764 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18765 | # trailing colons and then remove the whole line if VPATH becomes empty |
18766 | # (actually we leave an empty line to preserve line numbers). | ||||
18767 | if test "x$srcdir" = x.; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18768 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18769 | h | ||||
18770 | s/// | ||||
18771 | s/^/:/ | ||||
18772 | s/[ ]*$/:/ | ||||
18773 | s/:\$(srcdir):/:/g | ||||
18774 | s/:\${srcdir}:/:/g | ||||
18775 | s/:@srcdir@:/:/g | ||||
18776 | s/^:*// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18777 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18778 | x |
18779 | s/\(=[ ]*\).*/\1/ | ||||
18780 | G | ||||
18781 | s/\n// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18782 | s/^[^=]*=[ ]*$// |
18783 | }' | ||||
18784 | fi | ||||
18785 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18786 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18787 | fi # test -n "$CONFIG_FILES" |
18788 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18789 | # Set up the scripts for CONFIG_HEADERS section. |
18790 | # No need to generate them if there are no CONFIG_HEADERS. | ||||
18791 | # This happens for instance with `./config.status Makefile'. | ||||
18792 | if test -n "$CONFIG_HEADERS"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18793 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18794 | BEGIN { |
18795 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18796 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18797 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18798 | # here-document in config.status, that substitutes the proper values into | ||||
18799 | # config.h.in to produce config.h. | ||||
18800 | |||||
18801 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||||
18802 | # handling of long lines. | ||||
18803 | ac_delim='%!_!# ' | ||||
18804 | for ac_last_try in false false :; do | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18805 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18806 | if test -z "$ac_tt"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18807 | break |
18808 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18809 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18810 | else |
18811 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
18812 | fi | ||||
18813 | done | ||||
18814 | |||||
18815 | # For the awk script, D is an array of macro values keyed by name, | ||||
18816 | # likewise P contains macro parameters if any. Preserve backslash | ||||
18817 | # newline sequences. | ||||
18818 | |||||
18819 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||||
18820 | sed -n ' | ||||
18821 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18822 | t rset | ||||
18823 | :rset | ||||
18824 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||||
18825 | t def | ||||
18826 | d | ||||
18827 | :def | ||||
18828 | s/\\$// | ||||
18829 | t bsnl | ||||
18830 | s/["\\]/\\&/g | ||||
18831 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18832 | D["\1"]=" \3"/p | ||||
18833 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||||
18834 | d | ||||
18835 | :bsnl | ||||
18836 | s/["\\]/\\&/g | ||||
18837 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18838 | D["\1"]=" \3\\\\\\n"\\/p | ||||
18839 | t cont | ||||
18840 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||||
18841 | t cont | ||||
18842 | d | ||||
18843 | :cont | ||||
18844 | n | ||||
18845 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18846 | t clear | ||||
18847 | :clear | ||||
18848 | s/\\$// | ||||
18849 | t bsnlc | ||||
18850 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||||
18851 | d | ||||
18852 | :bsnlc | ||||
18853 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||||
18854 | b cont | ||||
18855 | ' <confdefs.h | sed ' | ||||
18856 | s/'"$ac_delim"'/"\\\ | ||||
18857 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18858 | |||||
18859 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18860 | for (key in D) D_is_set[key] = 1 | ||||
18861 | FS = "" | ||||
18862 | } | ||||
18863 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||||
18864 | line = \$ 0 | ||||
18865 | split(line, arg, " ") | ||||
18866 | if (arg[1] == "#") { | ||||
18867 | defundef = arg[2] | ||||
18868 | mac1 = arg[3] | ||||
18869 | } else { | ||||
18870 | defundef = substr(arg[1], 2) | ||||
18871 | mac1 = arg[2] | ||||
18872 | } | ||||
18873 | split(mac1, mac2, "(") #) | ||||
18874 | macro = mac2[1] | ||||
18875 | prefix = substr(line, 1, index(line, defundef) - 1) | ||||
18876 | if (D_is_set[macro]) { | ||||
18877 | # Preserve the white space surrounding the "#". | ||||
18878 | print prefix "define", macro P[macro] D[macro] | ||||
18879 | next | ||||
18880 | } else { | ||||
18881 | # Replace #undef with comments. This is necessary, for example, | ||||
18882 | # in the case of _POSIX_SOURCE, which is predefined and required | ||||
18883 | # on some systems where configure will not decide to define it. | ||||
18884 | if (defundef == "undef") { | ||||
18885 | print "/*", prefix defundef, macro, "*/" | ||||
18886 | next | ||||
18887 | } | ||||
18888 | } | ||||
18889 | } | ||||
18890 | { print } | ||||
18891 | _ACAWK | ||||
18892 | _ACEOF | ||||
18893 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18894 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18895 | fi # test -n "$CONFIG_HEADERS" |
18896 | |||||
18897 | |||||
18898 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||||
18899 | shift | ||||
18900 | for ac_tag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18901 | do |
18902 | case $ac_tag in | ||||
18903 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||||
18904 | esac | ||||
18905 | case $ac_mode$ac_tag in | ||||
18906 | :[FHL]*:*);; | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18907 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18908 | :[FH]-) ac_tag=-:-;; |
18909 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||||
18910 | esac | ||||
18911 | ac_save_IFS=$IFS | ||||
18912 | IFS=: | ||||
18913 | set x $ac_tag | ||||
18914 | IFS=$ac_save_IFS | ||||
18915 | shift | ||||
18916 | ac_file=$1 | ||||
18917 | shift | ||||
18918 | |||||
18919 | case $ac_mode in | ||||
18920 | :L) ac_source=$1;; | ||||
18921 | :[FH]) | ||||
18922 | ac_file_inputs= | ||||
18923 | for ac_f | ||||
18924 | do | ||||
18925 | case $ac_f in | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18926 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18927 | *) # Look for the file first in the build tree, then in the source tree |
18928 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||||
18929 | # because $ac_f cannot contain `:'. | ||||
18930 | test -f "$ac_f" || | ||||
18931 | case $ac_f in | ||||
18932 | [\\/$]*) false;; | ||||
18933 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||||
18934 | esac || | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18935 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18936 | esac |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18937 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18938 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18939 | done |
18940 | |||||
18941 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||||
18942 | # use $as_me), people would be surprised to read: | ||||
18943 | # /* config.h. Generated by config.status. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18944 | configure_input='Generated from '` |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18945 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18946 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18947 | if test x"$ac_file" != x-; then |
18948 | configure_input="$ac_file. $configure_input" | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18949 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
18950 | $as_echo "$as_me: creating $ac_file" >&6;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18951 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18952 | # Neutralize special characters interpreted by sed in replacement strings. |
18953 | case $configure_input in #( | ||||
18954 | *\&* | *\|* | *\\* ) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18955 | ac_sed_conf_input=`$as_echo "$configure_input" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18956 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
18957 | *) ac_sed_conf_input=$configure_input;; | ||||
18958 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18959 | |
18960 | case $ac_tag in | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18961 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18962 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18963 | esac |
18964 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18965 | esac |
18966 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18967 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18968 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18969 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18970 | X"$ac_file" : 'X\(//\)$' \| \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18971 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18972 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18973 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18974 | s//\1/ | ||||
18975 | q | ||||
18976 | } | ||||
18977 | /^X\(\/\/\)[^/].*/{ | ||||
18978 | s//\1/ | ||||
18979 | q | ||||
18980 | } | ||||
18981 | /^X\(\/\/\)$/{ | ||||
18982 | s//\1/ | ||||
18983 | q | ||||
18984 | } | ||||
18985 | /^X\(\/\).*/{ | ||||
18986 | s//\1/ | ||||
18987 | q | ||||
18988 | } | ||||
18989 | s/.*/./; q'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18990 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | ac_builddir=. |
18992 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18993 | case "$ac_dir" in |
18994 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18995 | *) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18996 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18997 | # A ".." for each directory in $ac_dir_suffix. |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 18998 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18999 | case $ac_top_builddir_sub in |
19000 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
19001 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
19002 | esac ;; | ||||
19003 | esac | ||||
19004 | ac_abs_top_builddir=$ac_pwd | ||||
19005 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
19006 | # for backward compatibility: | ||||
19007 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19008 | |
19009 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19010 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19011 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19012 | ac_top_srcdir=$ac_top_builddir_sub |
19013 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
19014 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19015 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19016 | ac_top_srcdir=$srcdir |
19017 | ac_abs_top_srcdir=$srcdir ;; | ||||
19018 | *) # Relative name. | ||||
19019 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
19020 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
19021 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19023 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19026 | case $ac_mode in |
19027 | :F) | ||||
19028 | # | ||||
19029 | # CONFIG_FILE | ||||
19030 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19031 | |
19032 | case $INSTALL in | ||||
19033 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19034 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19035 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 19036 | ac_MKDIR_P=$MKDIR_P |
19037 | case $MKDIR_P in | ||||
19038 | [\\/$]* | ?:[\\/]* ) ;; | ||||
19039 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||||
19040 | esac | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19041 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19042 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19044 | # If the template does not know about datarootdir, expand it. |
19045 | # FIXME: This hack should be removed a few years after 2.60. | ||||
19046 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19047 | ac_sed_dataroot=' |
19048 | /datarootdir/ { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19049 | p |
19050 | q | ||||
19051 | } | ||||
19052 | /@datadir@/p | ||||
19053 | /@docdir@/p | ||||
19054 | /@infodir@/p | ||||
19055 | /@localedir@/p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19056 | /@mandir@/p' |
19057 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19058 | *datarootdir*) ac_datarootdir_seen=yes;; |
19059 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19061 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19062 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19063 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19064 | ac_datarootdir_hack=' |
19065 | s&@datadir@&$datadir&g | ||||
19066 | s&@docdir@&$docdir&g | ||||
19067 | s&@infodir@&$infodir&g | ||||
19068 | s&@localedir@&$localedir&g | ||||
19069 | s&@mandir@&$mandir&g | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19070 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19071 | esac |
19072 | _ACEOF | ||||
19073 | |||||
19074 | # Neutralize VPATH when `$srcdir' = `.'. | ||||
19075 | # Shell code in configure.ac might set extrasub. | ||||
19076 | # FIXME: do we really want to maintain this feature? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19077 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19078 | ac_sed_extra="$ac_vpsub | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19079 | $extrasub |
19080 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19082 | :t |
19083 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19084 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19085 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19086 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19087 | s&@srcdir@&$ac_srcdir&;t t |
19088 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||||
19089 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||||
19090 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||||
19091 | s&@builddir@&$ac_builddir&;t t | ||||
19092 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||||
19093 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||||
19094 | s&@INSTALL@&$ac_INSTALL&;t t | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 19095 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19096 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19097 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19098 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19099 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19100 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19101 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19102 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19103 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||||
19104 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19106 | which seems to be undefined. Please make sure it is defined" >&5 |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19107 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19108 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19109 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19110 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19111 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19112 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19113 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19114 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19115 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19116 | ;; |
19117 | :H) | ||||
19118 | # | ||||
19119 | # CONFIG_HEADER | ||||
19120 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19121 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19122 | { |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19123 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19124 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19125 | } >"$ac_tmp/config.h" \ | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19126 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19127 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19128 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19129 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19130 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19131 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19132 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19133 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19134 | fi |
19135 | else | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19136 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19137 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19138 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19139 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19140 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19141 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19142 | |
19143 | esac | ||||
19144 | |||||
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 19145 | |
19146 | case $ac_file$ac_mode in | ||||
19147 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | ||||
19148 | |||||
19149 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19150 | done # for ac_tag |
19151 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19152 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19153 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19154 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19155 | ac_clean_files=$ac_clean_files_save |
19156 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19157 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19158 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19160 | |
19161 | # configure is writing to config.log, and then calls config.status. | ||||
19162 | # config.status does its own redirection, appending to config.log. | ||||
19163 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||||
19164 | # by configure, so config.status won't be able to write to it; its | ||||
19165 | # output is simply discarded. So we exec the FD to /dev/null, | ||||
19166 | # effectively closing config.log, so it can be properly (re)opened and | ||||
19167 | # appended to by config.status. When coming back to configure, we | ||||
19168 | # need to make the FD available again. | ||||
19169 | if test "$no_create" != yes; then | ||||
19170 | ac_cs_success=: | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19171 | ac_config_status_args= |
19172 | test "$silent" = yes && | ||||
19173 | ac_config_status_args="$ac_config_status_args --quiet" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19174 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19175 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19176 | exec 5>>config.log |
19177 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||||
19178 | # would make configure fail if this is the last instruction. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19179 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19180 | fi |
19181 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
19183 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19184 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19185 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19186 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 19187 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19188 | if test ! -f Modules/Setup.local |
19189 | then | ||||
19190 | echo "# Edit this file for local setup changes" >Modules/Setup.local | ||||
19191 | fi | ||||
19192 | |||||
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 19193 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19194 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 19195 | -s Modules \ |
Antoine Pitrou | 961d54c | 2018-07-16 19:03:03 +0200 | [diff] [blame] | 19196 | Modules/Setup.local $srcdir/Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 19197 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 19198 | |
19199 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | ||||
19200 | echo "" >&6 | ||||
19201 | echo "" >&6 | ||||
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 19202 | 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 +0000 | [diff] [blame] | 19203 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 19204 | echo "" >&6 |
19205 | echo "" >&6 | ||||
19206 | fi |